  //0.5秒メニュー消し>
var timectrl

function menuhide01(str){
if(str == 0) {
	clearTimeout(timectrl);
	timectrl = setTimeout("hideLAYER(getLayOj('mainMN01'));",100);btnOff(1);
	}
else {
	clrom11(0);
	clearTimeout(timectrl);	
	showLAYER(getLayOj('mainMN01'));btnOn(1);
	}
}
function menuhide02(str){
if(str == 0) {
	clearTimeout(timectrl);
	timectrl = setTimeout("hideLAYER(getLayOj('mainMN02'));",100);btnOff(5);
	}
else {
	clrom11(1);
	clearTimeout(timectrl);	
	showLAYER(getLayOj('mainMN02'));btnOn(5);
	}
}
function clrom11(clrstr){
if(clrstr == 0) {
	hideLAYER(getLayOj('mainMN02'));
	}
else if(clrstr == 1) {
	hideLAYER(getLayOj('mainMN01'));
	}
}

//button部分
if(navigator.appVersion.charAt(0) >= "3"){
photo = new Array();

	photo[0] = new Image; photo[0].src = "products/indeximg/photo00.jpg";
	photo[1] = new Image; photo[1].src = "products/indeximg/photo01.jpg";
	photo[2] = new Image; photo[2].src = "products/indeximg/photo02.jpg";
	photo[3] = new Image; photo[3].src = "products/indeximg/photo03.jpg";
	photo[4] = new Image; photo[4].src = "products/indeximg/photo04.jpg";
	photo[5] = new Image; photo[5].src = "products/indeximg/photo05.jpg";
	photo[6] = new Image; photo[6].src = "products/indeximg/photo06.jpg";
	photo[7] = new Image; photo[7].src = "products/indeximg/photo07.jpg";
	photo[8] = new Image; photo[8].src = "products/indeximg/photo08.jpg";
	photo[9] = new Image; photo[9].src = "products/indeximg/photo09.jpg";
	photo[10] = new Image; photo[10].src = "products/indeximg/photo10.jpg";
	photo[11] = new Image; photo[11].src = "products/indeximg/photo11.jpg";
	photo[12] = new Image; photo[12].src = "products/indeximg/photo12.jpg";
	photo[13] = new Image; photo[13].src = "products/indeximg/photo13.jpg";
	photo[14] = new Image; photo[14].src = "products/indeximg/photo14.jpg";
	photo[15] = new Image; photo[15].src = "products/indeximg/photo15.jpg";
}
function chg_photo(imgname,imgstate){  
		document.images[imgname].src=photo[imgstate].src;
}

// パラパラ画像
a = 1;
timeID = 10;	// 割り込みタイマ用
function animation()
{
	document.images['topimg'].src="cmnimg/topimg0"+a+".jpg";
	a++;
	if (a>8) a = 1;
	clearTimeout(timeID);
	timeID = setTimeout('animation()',3000);
}
