var inmenu=false;
var lastmenu=0;

function Menu(current) {
   if (!document.getElementById) return;
   inmenu=true;
   oldmenu=lastmenu;
   lastmenu=current;
   if (oldmenu) Erase(oldmenu);
   m=document.getElementById("menu-orderprints");
   box=document.getElementById(current);
  
  if(identifyBrowser()=="mozilla")
  {
   box.style.left= m.offsetLeft+4;
   box.style.top= m.offsetTop + m.offsetHeight + 58;
  }
  else if(identifyBrowser()=="ie")
  {
	 box.style.left= m.offsetLeft+326;
   box.style.top= m.offsetTop + m.offsetHeight + 58; 
  }
   box.style.visibility="visible";
   box.style.width="108px";
}
function goTo(url, item)
{
	obj=document.getElementById(item);
	obj.style.cursor='pointer';
	location.href=url;
}
function Erase(current) {
   if (!document.getElementById) return;
   if (inmenu && lastmenu==current) {
     return;
   }
   m=document.getElementById("menu-" + current);
   box=document.getElementById(current);
   box.style.visibility="hidden";
   m.style.backgroundColor="Silver";
}
function Timeout(current) {
   inmenu=false;
   window.setTimeout("Erase('" + current + "')",1) ;
}
function Highlight(menu,item) {
   if (!document.getElementById) return;
   inmenu=true;
   lastmenu=menu;
   obj=document.getElementById(item);
   obj.style.cursor='pointer';
   obj.style.backgroundColor="Silver";
}
function UnHighlight(menu,item) {
   if (!document.getElementById) return;
   Timeout(menu);
   obj=document.getElementById(item);
   obj.style.backgroundColor="#eeeeee";
}

function identifyBrowser()
{
	var agent=navigator.userAgent.toLowerCase();
	
	if(agent.indexOf("gecko") !=-1)
	{
		return "mozilla";
	}
	else if(typeof document.all != "undefined")
	{
		return "ie";
	}
}