// 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("menu2").style.top= '540px';
	}
else {
  document.all["menu2"].style.left= 210+(browser_width-800)/2;
  document.all["menu2"].style.top= 540;
	}
}

function show_menu(menu_no) {
if(document.getElementById){
	if(menu_no==0)document.getElementById("menu2").style.visibility="hidden";
	if(menu_no==2)document.getElementById("menu2").style.visibility="visible";
	}
else {
	if(menu_no==0)document.all["menu2"].style.visibility="hidden";
	if(menu_no==2)document.all["menu2"].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);
}

// -->
