
/*　音楽ファイル名　*/
ConMusicFile = "tyuka.mp3"

/*----------------------------------------------------------------
'関数名：setImg
'機能：イメージを設定する
'引数：ID(項目名),image(イメージUrl)
'戻り値：なし
'作成者：
'作成日：
'変更者：
'変更日：
-----------------------------------------------------------------*/
function setImg(ID,image){
    navRoot = document.getElementById(ID);
	if (navRoot != null){
		navRoot.src = image;
	};
	
};

/*----------------------------------------------------------------
'関数名：rotZIMG
'機　能：イメージの回転
'引　数：なし
'戻り値：なし
'作成者：
'作成日：
'変更者：
'変更日：
-----------------------------------------------------------------*/
iList = ["mankanzenseki2","mankanzenseki3","mankanzenseki4","mankanzenseki5","mankanzenseki6","mankanzenseki7","mankanzenseki8","mankanzenseki9"];
cx = 430;		/* 回転の中心のX座標*/
cy = 460;		/* 回転の中心のY座標*/
cnt = 0;
rx = 310;		/* 横方向の回転の半径*/
ry = 200;		/* 縦方向の回転の半径*/
function rotZIMG(){
	cx = document.body.clientWidth / 2 - 100;
	document.images["mankanzenseki10"].style.pixelLeft = cx - 60;
	
	for (i=0; i<iList.length; i++){
		n = (i * (360 / iList.length) + cnt++) * Math.PI / 180;
		y = cy - Math.cos(n) * ry;
		z = 200 - Math.cos(n) * 50;
		document.images[iList[i]].style.pixelLeft = cx + Math.sin(n) * rx;
		document.images[iList[i]].style.pixelTop = y;
		document.images[iList[i]].style.zIndex = z;
		document.images[iList[i]].style.width = z / 1;
		document.images[iList[i]].style.height = z / 1.5;

	}
	
};

function setoyaLocation(url){
	parent.location.href=url;
};


