/////////////////// menu codes ////////////////
var mytimeout;
var lastdivshown="";
function showmenu(divname,e)
{
	
	
		var myEvent = window.event ? window.event : e;
	
	
	document.getElementById(divname).style.left=(myEvent.clientX-50)+"px";

$("#"+divname).fadeIn("slow");

if((lastdivshown!="")&&(lastdivshown!=divname))
{
 if(document.getElementById(lastdivshown).style.display!="none")
 {$("#"+lastdivshown).fadeOut("fast");}
}
lastdivshown=divname;
clearTimeout(mytimeout);
}

function hidemenu()
{
//alert(lastdivshown);
$("#"+lastdivshown).fadeOut("slow");
}

function overmenu(divname,obj)
{
obj.style.backgroundColor="#eeeeee";
obj.style.color="#000000";
clearTimeout(mytimeout);

}

function outmenu(divname,obj)
{
obj.style.backgroundColor="#ffffff";
obj.style.color="#000000";
mytimeout=setTimeout("hidemenu();",500);

}

function outmenu1(divname)
{
mytimeout=setTimeout("hidemenu();",500);
}

function overlink(obj)
{
obj.style.color="#C50102";
}

function outlink(obj)
{
obj.style.color="#666666";
}

function adjustpage()
 {
   // calculate the screen width
   var sw=screen.width;
   //alert(sw);
   if(sw<1024)
   {
	document.getElementById("head1").style.width="960px";
	   document.getElementById("head2").style.width="960px";
	   document.getElementById("foot1").style.width="960px";
   }
}

document.onload=adjustpage();