//グローバル変数var menuFlag="news"btnName=["shoptop"];//関数function onloadHandler(e){	btnOver = new Array();	for(j=0;j<1;j++){		//ボタンをプリロード		btnOver[j]= new Image();		btnOver[j].src = "img/"+btnName[j]+"_btn_over.gif";	}	for(i=1;i<=1;i++){		//ボタンの数だけハンドラを作る		document.images[i].onmouseover=onmouseoverHandler;		document.images[i].onmouseout=onmouseoutHandler;		document.images[i].onmouseup=onmouseupHandler;	}}function onmouseoverHandler(e){	document.body.style.cursor="hand"	if(e){//W3Cモデル		theTarget=e.target;	}else if(event){//IEモデル		theTarget=event.srcElement;	}	if(menuFlag!=theTarget.id){		theTarget.src="img/"+theTarget.id+"_btn_over.gif";	}	return true;}function onmouseoutHandler(e){	document.body.style.cursor="auto"	if(e){//W3Cモデル		theTarget=e.target;	}else if(event){//IEモデル		theTarget=event.srcElement;	}	if(menuFlag!=theTarget.id){		theTarget.src="img/"+theTarget.id+"_btn.gif";	}	return true;}function onmouseupHandler(e){	if(e){//W3Cモデル		theTarget=e.target;	}else if(event){//IEモデル		theTarget=event.srcElement;	}	menuFlag=theTarget.id;	if(theTarget.id=="mark"){		//parent.location.href="index.html";		//parent.contents.location.href="contents/news.html";		//parent.submenus.location.href="submenus/news_menu.html";	}else{		parent.contents.location.href="../../shop.html"		parent.submenus.location.href="../../../submenus/shop_menu.html"	}}//実行window.onload=onloadHandler;