//
x       = 0;		//　画像の表示X座標
dx      = 32;		//　１回の移動量
imgName01 = "myIMG1";	//　移動させる画像名
imgName02 = "myIMG2";	//　移動させる画像名
imgName03 = "myIMG3";	//　移動させる画像名
imgName11 = "myIMG11";	//　移動させる画像名
imgName12 = "myIMG12";	//　移動させる画像名

function iMove01(){
var wWidth;
	//　左端の座標
	if (document.all) limitX = document.body.clientWidth / 2 + 5;
	if (!document.all && document.getElementById) limitX = window.innerWidth / 2 + 5;
	x += dx;	//　左側へ移動
	if (limitX > x) setTimeout('iMove01()',0); else x = limitX;
	document.images[imgName01].style.left = x;
	document.images[imgName11].style.left = x;
}
function iSet01(){
	if (document.all) x = document.body.clientWidth / 2 - 105;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 - 105;
	document.images[imgName01].style.left = x;
	document.images[imgName11].style.left = x;
	setTimeout("iMove01()",0);
}
function iMove02(){
var wWidth;
	//　左端の座標
	if (document.all) limitX = document.body.clientWidth / 2 + 115;
	if (!document.all && document.getElementById) limitX = window.innerWidth / 2 + 115;
	x += dx;	//　左側へ移動
	if (limitX > x) setTimeout('iMove02()',0); else x = limitX;
	document.images[imgName02].style.left = x;
	document.images[imgName12].style.left = x;
}
function iSet02(){
	if (document.all) x = document.body.clientWidth / 2 - 105;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 - 105;
	document.images[imgName02].style.left = x;
	document.images[imgName12].style.left = x;
	setTimeout("iMove02()",0);
}
function iMove03(){
var wWidth;
var wWidth;
	//　左端の座標
	if (document.all) limitX = document.body.clientWidth / 2 + 225;
	if (!document.all && document.getElementById) limitX = window.innerWidth / 2 + 225;
	x += dx;	//　左側へ移動
	if (limitX > x) setTimeout('iMove03()',0); else x = limitX;
	document.images[imgName03].style.left = x;
}
function iSet03(){
	if (document.all) x = document.body.clientWidth / 2 - 105;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 - 105;
	document.images[imgName03].style.left = x;
	setTimeout("iMove03()",0);
}

//
function imgmove(){
	var wWidth2;
	if (document.all) wWidth2 = document.body.clientWidth / 2 - 105;
	if (!document.all && document.getElementById) wWidth2 = window.innerWidth / 2 - 105;
	document.write("<img src='topimg/movie01.gif' width='100' height='100' style='position:absolute; z-index:4; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/koma01.gif' width='100' height='100' style='position:absolute; z-index:4; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/movie02.gif' width='100' height='100' name='myIMG1' style='position:absolute; z-index:3; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/koma02.gif' width='100' height='100' name='myIMG11' style='position:absolute; z-index:3; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/movie03.gif' width='100' height='100' name='myIMG2' style='position:absolute; z-index:2; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/koma03.gif' width='100' height='100' name='myIMG12' style='position:absolute; z-index:2; left:"+ wWidth2 +"px; top:162px;'>");
	document.write("<img src='topimg/koma04.gif' width='100' height='100' name='myIMG3' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:162px;'>");
}

