function getbrowsertype()
{
    var AgntUsr=navigator.userAgent.toLowerCase();
    var AppVer=navigator.appVersion.toLowerCase();
    var DomYes=document.getElementById?1:0;
    var NavYes=AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1?1:0;
    var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0;
    if (NavYes==1)
    return 1;
    if (ExpYes==1)
    return 0;
    
    
    //alert(NavYes);
    //alert(ExpYes);
}

function showmenu(myid)
{var x;
x=0;
// deduct 32 from the body offsetwidth to adjust the left of division.
if (myid=="menu1")
 {var thisid;
 thisid=document.getElementById("prodid"); 
 
 thisid.style.visibility="visible";
// z=screen.width;
z=document.body.offsetWidth; 
//alert(z);
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+100;
 x=parseInt(x,10);
//alert(x);
 thisid.style.left=x;
 }
 if (myid=="menu2")
 {var thisid;
 thisid=document.getElementById("prodid1"); 
 
 thisid.style.visibility="visible";
// z=screen.width;
z=document.body.offsetWidth; 
//alert(z);
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+255;
 x=parseInt(x,10);
//alert(x);
 thisid.style.left=x;
 }
 
}

function remmenu(msg)
{
var thisid;
  thisid=document.getElementById("prodid");
  thisid1=document.getElementById("prodid1");  
  thisid.style.visibility="hidden";
  thisid1.style.visibility="hidden";
  
}

function showmenu1()
{
var thisid;
 thisid=document.getElementById("prodid"); 
z=document.body.offsetWidth; 
var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
//alert(z);

x=x/2;
x=x+100;
x=parseInt(x,10);
l=x+'px';
if(thisid.style.left==l)
thisid.style.visibility='visible';
}
function showmenu2()
{
var thisid;
 thisid=document.getElementById("prodid1"); 
z=document.body.offsetWidth; 
var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
//alert(z);

x=x/2;
x=x+255;
x=parseInt(x,10);
l=x+'px';
if(thisid.style.left==l)
thisid.style.visibility='visible';
}


function remmenu1()
{//alert("r");
var thisid;
 thisid=document.getElementById("prodid"); 
thisid.style.visibility='hidden';

}
function remmenu2()
{//alert("r");
var thisid;
 thisid=document.getElementById("prodid1"); 
thisid.style.visibility='hidden';

}



function showsubmenu(msg)
{var x;
x=0;

if (msg=="submenu1")
{
   var thisid,thisid1,thisid2,thisid3;
   thisid=document.getElementById("subprodid"); 
   thisid1=document.getElementById("prodid");
   thisid2=document.getElementById("subprodid1"); 
    thisid3=document.getElementById("subprodid5");
   thisid3.style.visibility="hidden";
   
 
   thisid.style.visibility="visible";
   thisid1.style.visibility="visible";
   thisid2.style.visibility="hidden";
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+150;
   x=parseInt(x,10);
   //alert(x);
   thisid.style.left=x;
} 
if (msg=="submenu2")
{//alert("show");
   var thisid;
   thisid=document.getElementById("subprodid1"); 
   var thisid1;
   thisid1=document.getElementById("prodid"); 
 thisid3=document.getElementById("subprodid5");
   thisid3.style.visibility="hidden";
   thisid.style.visibility="visible";
   thisid1.style.visibility="visible";
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+150;
   x=parseInt(x,10);
   //alert(x);
   thisid.style.left=x;
} 
if (msg=="submenu3")
{//alert();
   var thisid,thisid1,thisid2;
   thisid=document.getElementById("subprodid2"); 
   thisid1=document.getElementById("prodid1");
   thisid2=document.getElementById("subprodid3");  
 thisid3=document.getElementById("subprodid4");
   thisid3.style.visibility="hidden";
   thisid.style.visibility="visible";
   thisid1.style.visibility="visible";
   thisid2.style.visibility="hidden";
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+310;
   x=parseInt(x,10);
   //alert(x);
   thisid.style.left=x;
}  
if (msg=="submenu4")
{
   var thisid,thisid1,thisid2;
   thisid=document.getElementById("subprodid3"); 
   thisid1=document.getElementById("prodid1"); 
   thisid2=document.getElementById("subprodid2"); 
   thisid3=document.getElementById("subprodid4");
   thisid3.style.visibility="hidden";
   thisid.style.visibility="visible";
   thisid1.style.visibility="visible";
   thisid2.style.visibility="hidden";
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+310;
   x=parseInt(x,10);
   //alert(x);
   thisid.style.left=x;
}   
if (msg=="submenu5")
{
   var thisid,thisid1,thisid2;
   thisid=document.getElementById("subprodid3"); 
   thisid1=document.getElementById("prodid1"); 
   thisid2=document.getElementById("subprodid2");
   thisid3=document.getElementById("subprodid4"); 
 
   thisid1.style.visibility="visible";
   thisid3.style.visibility="visible";
   thisid.style.visibility="hidden";
   thisid2.style.visibility="hidden";
   
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+310;
   x=parseInt(x,10);
   //alert(x);
   thisid3.style.left=x;
}   
if (msg=="submenu6")
{
   var thisid,thisid1,thisid2,thisid3;
   thisid=document.getElementById("subprodid"); 
   thisid1=document.getElementById("prodid");
   thisid2=document.getElementById("subprodid1"); 
   thisid3=document.getElementById("subprodid5");
   
   
   thisid3.style.visibility="visible";
   thisid.style.visibility="hidden";
   thisid1.style.visibility="visible";
   thisid2.style.visibility="hidden";
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800+32;
   else
   x=z-800;

   x=x/2;
   x=x+150;
   x=parseInt(x,10);
   //alert(x);
   thisid3.style.left=x;
} 

}

function remsubmenu(msg)
{
var thisid,thisid1,thisid2,thisid3,thisid4,thisid5,thisid6,thisid7;
 thisid=document.getElementById("subprodid"); 
 thisid1=document.getElementById("prodid"); 
 thisid2=document.getElementById("subprodid1"); 
 thisid3=document.getElementById("prodid1"); 
 thisid4=document.getElementById("subprodid2");
 thisid5=document.getElementById("subprodid3");
 thisid6=document.getElementById("subprodid4");
 thisid7=document.getElementById("subprodid5");
  
  
 thisid.style.visibility='hidden';
 thisid1.style.visibility='hidden';
 thisid2.style.visibility='hidden';
 thisid3.style.visibility='hidden';
  thisid5.style.visibility='hidden';
 thisid6.style.visibility='hidden';
  thisid7.style.visibility='hidden';
  
   thisid4.style.visibility='hidden';

 
}

function showsubmenu1(msg)
{
var thisid;
 thisid=document.getElementById("subprodid"); 
 var thisid1;
 thisid1=document.getElementById("prodid"); 
 thisid1.style.visibility='visible';
z=document.body.offsetWidth; 
var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;

x=x/2;
x=x+150;
x=parseInt(x,10);
l=x+'px';
if(thisid.style.left==l)
thisid.style.visibility='visible';
}
function showsubmenu2(msg)
{
 var thisid;
 thisid=document.getElementById("subprodid1"); 
 var thisid1;
 thisid1=document.getElementById("prodid"); 
 thisid1.style.visibility='visible';
 z=document.body.offsetWidth; 
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+150;
 x=parseInt(x,10);
 l=x+'px';
 if(thisid.style.left==l)
 thisid.style.visibility='visible';
}
function showsubmenu3(msg)
{//alert();
 var thisid,thisid1;
 thisid=document.getElementById("subprodid2"); 
 thisid1=document.getElementById("prodid1"); 
 thisid1.style.visibility='visible';
 z=document.body.offsetWidth; 
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+310;
 x=parseInt(x,10);
 l=x+'px';
 //alert(thisid.style.visibility);
 //alert(thisid1.style.visibility);
  //thisid1.style.visibility='visible';
 if(thisid.style.left==l)
 thisid.style.visibility='visible';
}
function showsubmenu4(msg)
{
 var thisid;
 thisid=document.getElementById("subprodid3"); 
 var thisid1;
 thisid1=document.getElementById("prodid1"); 
 thisid1.style.visibility='visible';
 z=document.body.offsetWidth; 
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+310;
 x=parseInt(x,10);
 l=x+'px';
 if(thisid.style.left==l)
 thisid.style.visibility='visible';
}
function showsubmenu5(msg)
{
 var thisid;
 thisid=document.getElementById("subprodid4"); 
 var thisid1;
 thisid1=document.getElementById("prodid1"); 
 thisid1.style.visibility='visible';
 z=document.body.offsetWidth; 
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+310;
 x=parseInt(x,10);
 l=x+'px';
 //alert(l);
 if(thisid.style.left==l)
 thisid.style.visibility='visible';
}
function showsubmenu6(msg)
{
 var thisid;
 thisid=document.getElementById("subprodid5"); 
 var thisid1;
 thisid1=document.getElementById("prodid"); 
 thisid1.style.visibility='visible';
 z=document.body.offsetWidth; 
 var btype;
 btype=getbrowsertype();
 if (btype==1)
 x=z-800+32;
 else
 x=z-800;
 x=x/2;
 x=x+150;
 x=parseInt(x,10);
 l=x+'px';
 //alert(l);
 if(thisid.style.left==l)
 thisid.style.visibility='visible';
}
function remsubmenu1(msg)
{//alert();
 var thisid,thisid1,thisid2;
 thisid=document.getElementById("subprodid");
 thisid1=document.getElementById("prodid"); 
 thisid2=document.getElementById("subprodid1");
  thisid3=document.getElementById("subprodid5"); 
   thisid3.style.visibility='hidden';
 thisid.style.visibility='hidden';
 thisid1.style.visibility='hidden';
 thisid2.style.visibility='hidden';
}
function remsubmenu3(msg)
{//alert();
 var thisid,thisid1,thisid2;

 thisid=document.getElementById("subprodid2");
 thisid1=document.getElementById("prodid1"); 
 thisid2=document.getElementById("subprodid3");  
  thisid3=document.getElementById("subprodid4"); 
   thisid3.style.visibility='hidden';  
   thisid2.style.visibility='hidden';
   thisid1.style.visibility='hidden';
  // if (thisid1.style.visibility=='hidden')
   thisid.style.visibility='hidden';
    
   
  
}
function remsubmenu4(msg)
{
 var thisid,thisid1,thisid2;
 thisid=document.getElementById("subprodid2");
 thisid1=document.getElementById("prodid1"); 
 thisid2=document.getElementById("subprodid3");  
  thisid3=document.getElementById("subprodid4"); 
   thisid3.style.visibility='hidden'; 
 thisid.style.visibility='hidden';
 thisid1.style.visibility='hidden';
 thisid2.style.visibility='hidden';
}
function remsubmenu5(msg)
{
 var thisid,thisid1,thisid2;
 thisid=document.getElementById("subprodid4");
 thisid1=document.getElementById("prodid1"); 
 thisid2=document.getElementById("subprodid3");  
  thisid3=document.getElementById("subprodid4"); 
   thisid3.style.visibility='hidden'; 
 thisid.style.visibility='hidden';
 thisid1.style.visibility='hidden';
 thisid2.style.visibility='hidden';
}

function remsubmenu6(msg)
{//alert();
 var thisid,thisid1,thisid2;
 thisid=document.getElementById("subprodid");
 thisid1=document.getElementById("prodid"); 
 thisid2=document.getElementById("subprodid1");  
 thisid3=document.getElementById("subprodid5"); 
 thisid.style.visibility='hidden';
 thisid1.style.visibility='hidden';
 thisid2.style.visibility='hidden';
  thisid3.style.visibility='hidden';
}

function settdover(msg,msg1)
{//window.alert(msg);
var thiselem,thiselem1;
  thiselem=document.getElementById(msg);
  thiselem1=document.getElementById(msg1);
 thiselem.bgColor ='#ffffff';
 thiselem1.style.color='#006699';
 thiselem.style.cursor='hand'
}
function settdout(msg,msg1)
{var thiselem,thiselem1;
  thiselem=document.getElementById(msg);
  thiselem1=document.getElementById(msg1);
   thiselem.bgColor ='#006699';
   thiselem1.style.color='#ffffff';
   //#b76e0a
}