/////////////////// menu codes ////////////////
var mytimeout;
var lastdivshown="";
function showmenu(divname,e)
{
	
	var myEvent = window.event ? window.event : e;
	
	
	document.getElementById(divname).style.left=myEvent.clientX+"px";
	
	//$("#"+divname).fadeIn("slow");
	document.getElementById(divname).style.display="block";
	
	if((lastdivshown!="")&&(lastdivshown!=divname))
	{
	 if(document.getElementById(lastdivshown).style.display!="none")
	 {//$("#"+lastdivshown).fadeOut("fast");
	 document.getElementById(lastdivshown).style.display="none";
	 }
	}
	lastdivshown=divname;
	clearTimeout(mytimeout);
}




function hidemenu()

{

//alert(lastdivshown);

$("#"+lastdivshown).fadeOut("slow");
//document.getElementById(lastdivshown).style.display="none";
}



function overmenu(divname,obj)

{

obj.style.backgroundColor="#ffffff";

obj.style.color="#C50102";

clearTimeout(mytimeout);



}



function outmenu(divname,obj)

{

obj.style.backgroundColor="#C50102";

obj.style.color="#ffffff";

mytimeout=setTimeout("hidemenu();",500);



}



function outmenu1(divname)

{

mytimeout=setTimeout("hidemenu();",500);

}



function overlink(obj)

{

obj.style.color="#dddddd";

}



function outlink(obj)

{

obj.style.color="#ffffff";

}


function setinterface()
{
	
//alert(document.width);
var x=parseInt(screen.width);
var siders=parseInt((x-755)/2);

if(siders<0)
siders=0;
//alert(siders);
document.body.style.marginLeft=siders+"px";

//document.style.color="#eeeeee";

}


