/* 2008-10-30 GEOKOSMOS Japan LLC.  K.Nakaizumi */

function InitializeMenu()
{
	var path = window.location.href; 
	var Index = path.substring(path.lastIndexOf('/', path.length) + 1, path.lastIndexOf('.', path.length)); 
	var Cnt = 0;
	
	Index = (Index == 'index' || Index == 's.jp/') ? '10' : Index;

	if (parseInt(Index, 10) < 10)
	{
		document.getElementById('submenu1').style.display = "none";
		document.getElementById('submenu2').style.display = "block";

		while(document.getElementById('tab' + Cnt))
		{
			document.getElementById('tab' + Cnt).className = (parseInt(Index, 10) == Cnt) ? 'sel_tab' : 'non_tab';
			document.getElementById('sheet' + Cnt).className = (parseInt(Index, 10) == Cnt) ? "sel_sheet" : "non_sheet";
			Cnt++;
		}
	}
	else
	{	
		document.getElementById('submenu1').style.display = "block";
		document.getElementById('submenu2').style.display = "block";

		if (parseInt(Index, 10) < 20)
			document.getElementById('submenu' + Index).style.fontWeight = 'bold';
	}
}


var w = window;
var t;

function openViewCustom(url, w1, h1)
{
	if (w != window) w.close();
   
    w = window.open(url, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+w1+",height="+h1);
    w.focus();

 	return false;
}

function openViewCustomFix(url, w1, h1)
{
	if (w != window) w.close();

	w = window.open(url, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w1+",height="+h1);
    w.focus();

 	return false;
}


