// JavaScript Document
<!--

var browser_width = 0;
var myBrowser = 0;

document.writeln("<br>");<!--　※この行がないと下のブラウザ幅でエラーとなる-->
browser_width = document.body.clientWidth;
//myBrowser = checkBrowser();

//document.writeln("browser = " + myBrowser + "<br>");
//document.writeln("width = " + browser_width + "<br>");
//document.writeln("menu2 = " + (210+(browser_width-800)/2) + "<br>");

function moveImg() {
if(document.getElementById){
  document.getElementById("menu2").style.left= 210+(browser_width-800)/2 + 'px';
	document.getElementById("menu3").style.left= 593+(browser_width-800)/2 + 'px';
  document.getElementById("menu4").style.left=  16+(browser_width-800)/2 + 'px';
  document.getElementById("menu5").style.left= 210+(browser_width-800)/2 + 'px';
  document.getElementById("menu2").style.top= '540px';
  document.getElementById("menu3").style.top= '510px';
  document.getElementById("menu4").style.top= '564px';
  document.getElementById("menu5").style.top= '534px';
	}
else {
  document.all["menu2"].style.left= 210+(browser_width-800)/2;
  document.all["menu3"].style.left= 593+(browser_width-800)/2;
  document.all["menu4"].style.left=  16+(browser_width-800)/2;
  document.all["menu5"].style.left= 210+(browser_width-800)/2;
  document.all["menu2"].style.top= 540;
  document.all["menu3"].style.top= 510;
  document.all["menu4"].style.top= 564;
  document.all["menu5"].style.top= 534;
	}
}

function show_menu(menu_no) {
if(document.getElementById){
	if(menu_no==0)document.getElementById("menu2").style.visibility="hidden";
	if(menu_no==0)document.getElementById("menu3").style.visibility="hidden";
	if(menu_no==0)document.getElementById("menu4").style.visibility="hidden";
	if(menu_no==0)document.getElementById("menu5").style.visibility="hidden";
	if(menu_no!==2)document.getElementById("menu2").style.visibility="hidden";
	if(menu_no!==3)document.getElementById("menu3").style.visibility="hidden";
	if(menu_no!==4)document.getElementById("menu4").style.visibility="hidden";
	if(menu_no!==5)document.getElementById("menu5").style.visibility="hidden";
	if(menu_no==2)document.getElementById("menu2").style.visibility="visible";
	if(menu_no==3)document.getElementById("menu3").style.visibility="visible";
	if(menu_no==4)document.getElementById("menu4").style.visibility="visible";
	if(menu_no==5)document.getElementById("menu5").style.visibility="visible";
	}
else {
	if(menu_no==0)document.all["menu2"].style.visibility="hidden";
	if(menu_no==0)document.all["menu3"].style.visibility="hidden";
	if(menu_no==0)document.all["menu4"].style.visibility="hidden";
	if(menu_no==0)document.all["menu5"].style.visibility="hidden";
	if(menu_no!==2)document.all["menu2"].style.visibility="hidden";
	if(menu_no!==3)document.all["menu3"].style.visibility="hidden";
	if(menu_no!==4)document.all["menu4"].style.visibility="hidden";
	if(menu_no!==5)document.all["menu5"].style.visibility="hidden";
	if(menu_no==2)document.all["menu2"].style.visibility="visible";
	if(menu_no==3)document.all["menu3"].style.visibility="visible";
	if(menu_no==4)document.all["menu4"].style.visibility="visible";
	if(menu_no==5)document.all["menu5"].style.visibility="visible";
	}
}

//　実際にはこの関数は使用していない
function checkBrowser()	{
	var check = navigator.userAgent;
	if(check.indexOf("Safari") != -1) myBrowser = 1;
	else if(check.indexOf("Opera") != -1) myBrowser = 2;
	else if(check.indexOf("Firefox") != -1) myBrowser = 3;
	else if(check.indexOf("Gecko") != -1) myBrowser = 4;
	else if(check.indexOf("MSIE") != -1) myBrowser = 5;
	else if(check.indexOf("Mozilla") != -1) myBrowser = 6;
	return myBrowser;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  child=window.open(theURL,winName,features);
}

// -->