// Global Navi

/*
var timeOutBackMenuNo = -9999;
var standbyTime = 2*1000;
var timerId = 0;
*/

function gNavChange(index) {
	/*
	var n = 0;
	
	if(timeOutBackMenuNo == -9999){
		
		document.getElementById("globalNav").onmouseout = menuBackTimer;
		
		var targets = document.getElementById("gnavPrimary").getElementsByTagName("li");
		
		while (n <= 7) {
			if(targets[n].className == "active"){
				timeOutBackMenuNo = n;
			}
			
			document.getElementById("gnavSub".concat(n)).onmouseover = function(){
				clearTimeout(timerId);
			}
			
			n++;
		}
		n = 0;
	}
	
	while (n <= 7) {
		document.getElementById("gnavSub".concat(n)).style.visibility = "hidden";
		n++;
	}
	if(index != -9999){
		document.getElementById("gnavSub".concat(index)).style.visibility = "visible";
	}
	clearTimeout(timerId);
	*/
}

function menuBackTimer(){
	clearTimeout(timerId);
	timerId = setTimeout(menuBackPriSet, standbyTime);
}

function menuBackPriSet(){
	clearTimeout(timerId);
	gNavChange(timeOutBackMenuNo);
}

//IE7 search
document.write('<link rel="search" type="application/opensearchdescription+xml" title="BIGLOBE" href="http://www.biglobe.ne.jp/xml/ie7_search_engine.xml">\n');


//Pop up Window
function openWin(url,winname,window_width,window_height){
	param = new String();
	param = "width=" + window_width + ",height=" + window_height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	newwin = window.open("",winname,param);
	newwin.location.href = url;
	newwin.focus();
}

