var cur_URL,navLocation;
var tableWidth;


function load_table()
{
//		alert("table height" + document.getElementById("main_table").height);

		if (document.getElementById("main_table").height>600)
		{			
			//tableWidth=screen.width-21;//for IE less for safari
			//tableWidth=document.body.clientWidth-21;
			tableWidth=document.body.clientWidth;
		}
		else
		{			
			//tableWidth=screen.width;
			//document.body.style.overflow='hidden';
			tableWidth=document.body.clientWidth;
		}

		if (tableWidth==0) 
			document.getElementById("main_table").width ="1";
		else
			document.getElementById("main_table").width = tableWidth;
		
//		alert("table width" + tableWidth);
//		alert("Testing");

/*	logo1_left=(((document.body.clientWidth/2) - (768/2)) + 8);
	logo2_left=(((document.body.clientWidth/2) - (768/2)) + 565 + 8);
	if (logo1_left>"3")
	{
		document.getElementById("logo1").style.left = logo1_left + "px";
		document.getElementById("logo2").style.left = logo2_left + "px";	
	}
	else
	{
		document.getElementById("logo1").style.left = "0px";
		document.getElementById("logo2").style.left = "565px";	
	}*/
//	alert(logo1.style.left);
//	alert(logo2.style.left);

	
	cur_URL=location.search;

	if (cur_URL!="")
	{
		navLocation=cur_URL.substr((cur_URL.indexOf("navLoc")+7),(cur_URL.length - cur_URL.indexOf("=")) );
		document.getElementById(navLocation).className="topbar";
		document.getElementById("lnk_" + navLocation).className="sel_secondlvl";
	}
}

function onmouse(cur_link,cur_selection)
{
//	alert(cur_link + "1");
	document.getElementById(cur_link).className="sel_secondlvl";
	document.getElementById(cur_selection).className="topBar";
//	alert(cur_selection + "2");
}

function outmouse_sec(cur_link,cur_selection)
{
	if (cur_selection!=navLocation)
	{
//		alert(cur_link + "3");
		document.getElementById(cur_link).className="secondlvl";
		document.getElementById(cur_selection).className="";
//		alert(cur_selection + "4");
	}
}

function outmouse_main(cur_link,cur_selection)
{
	if (cur_selection!=navLocation)
	{
//		alert(cur_link + "3");
		document.getElementById(cur_link).className="mainlvl";
		document.getElementById(cur_selection).className="";
//		alert(cur_selection + "4");
	}
}