//	イメージ画像移動
x       = 0;		//　画像の表示X座標
dx      = 32;		//　１回の移動量
imgName01 = "myIMG1";	//　移動させる画像名
imgName02 = "myIMG2";
imgName03 = "myIMG3";
imgName04 = "myIMG4";
imgName05 = "myIMG5";
imgName06 = "myIMG6";

function iMove01(){
var wWidth;
	//　左端の座標
	if (document.all) limitX = document.body.clientWidth / 2 - 385;
	if (!document.all && document.getElementById) limitX = window.innerWidth / 2 - 385;
	x -= dx;	//　左側へ移動
	if (limitX < x) setTimeout('iMove01()',0); else x = limitX;
	document.images[imgName01].style.left = x;
}
function iSet01(){
	if (document.all) x = document.body.clientWidth / 2 + 235;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 + 235;
	document.images[imgName01].style.left = x;
	setTimeout("iMove01()",0);
}

function iMove02(){
var wWidth;
	wWidth= document.body.clientWidth
	limitX  =  (wWidth - 770 )/ 2 +124;		//　左端の座標
	x -= dx;	//　左側へ移動
	if (limitX < x) setTimeout('iMove02()',0); else x = limitX;
	document.images[imgName02].style.left = x;
}
function iSet02(){
	if (document.all) x = document.body.clientWidth / 2 + 235;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 + 235;
	document.images[imgName02].style.left = x;
	setTimeout("iMove02()",0);
}

function iMove03(){
var wWidth;
	wWidth= document.body.clientWidth
	limitX  =  (wWidth - 770 )/ 2 + 248;		//　左端の座標
	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 + 235;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 + 235;
	document.images[imgName03].style.left = x;
	setTimeout("iMove03()",0);
}

function iMove04(){
var wWidth;
	wWidth= document.body.clientWidth
	limitX  =  (wWidth - 770 )/ 2 + 372;
	x -= dx;
	if (limitX < x) setTimeout('iMove04()',0); else x = limitX;
	document.images[imgName04].style.left = x;
}
function iSet04(){
	if (document.all) x = document.body.clientWidth / 2 + 235;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 + 235;
	document.images[imgName04].style.left = x;
	setTimeout("iMove04()",0);
}

function iMove05(){
var wWidth;
	wWidth= document.body.clientWidth
	limitX  =  (wWidth - 770 )/ 2 + 496;
	x -= dx;
	if (limitX < x) setTimeout('iMove05()',0); else x = limitX;
	document.images[imgName05].style.left = x;
}
function iSet05(){
	if (document.all) x = document.body.clientWidth / 2 + 235;
	if (!document.all && document.getElementById) x = window.innerWidth / 2 + 235;
	document.images[imgName05].style.left = x;
	setTimeout("iMove05()",0);
}

//	画像初期ポジション
function imgmove(){
	var wWidth2;
	if (document.all) wWidth2 = document.body.clientWidth / 2 + 235;
	if (!document.all && document.getElementById) wWidth2 = window.innerWidth / 2 + 235;
	document.write("<img src='topimg/topimg01.jpg' width='150' height='200' name='myIMG1' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
	document.write("<img src='topimg/topimg02.jpg' width='150' height='200' name='myIMG2' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
	document.write("<img src='topimg/topimg03.jpg' width='150' height='200' name='myIMG3' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
	document.write("<img src='topimg/topimg04.jpg' width='150' height='200' name='myIMG4' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
	document.write("<img src='topimg/topimg05.jpg' width='150' height='200' name='myIMG5' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
	document.write("<img src='topimg/topimg06.jpg' width='150' height='200' name='myIMG6' style='position:absolute; z-index:1; left:"+ wWidth2 +"px; top:24px;'>");
}

//	button部分
if(navigator.appVersion.charAt(0) >= "3"){
btn = new Array();

	btn[0] = new Image; btn[0].src = "topimg/banner007.gif";
	btn[1] = new Image; btn[1].src = "topimg/banner007_f2.gif";
	btn[2] = new Image; btn[2].src = "topimg/banner006.gif";
	btn[3] = new Image; btn[3].src = "topimg/banner006_f2.gif";
	btn[4] = new Image; btn[4].src = "topimg/banner008.gif";
	btn[5] = new Image; btn[5].src = "topimg/banner008_f2.gif";
	btn[6] = new Image; btn[6].src = "topimg/banner004.gif";
	btn[7] = new Image; btn[7].src = "topimg/banner004_f2.gif";
	btn[8] = new Image; btn[8].src = "topimg/banner005.gif";
	btn[9] = new Image; btn[9].src = "topimg/banner005_f2.gif";
}
function chg_btn(imgname,imgstate){  
		document.images[imgname].src=btn[imgstate].src;
}

