 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=="history_mnu")
   {
    var thisid;
    thisid=document.getElementById("history_mnu");
    thisid.style.visibility="visible";
    // z=screen.width;
    z=document.body.offsetWidth;
    //alert(z);
    var btype;
    btype=getbrowsertype();
    if (btype==1)
    x=z-800;
    else
    x=z-800;
    x=x/2;
    x=x+128;
    x=parseInt(x,10);
    thisid.style.left=x+'px';
    //alert(x+"||"+thisid.style.left);
   }




  if (myid=="memship_mnu")
   {
   //alert("thth");
    var thisid;
    thisid=document.getElementById("memship_mnu");
    thisid.style.visibility="visible";
    // z=screen.width;
    z=document.body.offsetWidth;
    //alert(z);
    var btype;
    btype=getbrowsertype();
    if (btype==1)
    x=z-800;
    else
    x=z-800;
    x=x/2;
    x=x+230;
    x=parseInt(x,10);
    //alert(x);
    thisid.style.left=x+'px';
   }


   if (myid=="mnu_aux")
   {
   //alert("thth");
    var thisid;
    thisid=document.getElementById("mnu_aux");
    thisid.style.visibility="visible";

    thisid1=document.getElementById("memship_mnu");
    thisid1.style.visibility="visible";

    // z=screen.width;
    z=document.body.offsetWidth;
    //alert(z);
    var btype;
    btype=getbrowsertype();
    if (btype==1)
    x=z-800;
    else
    x=z-800;
    x=x/2;
    x=x+320;
    x=parseInt(x,10);

    thisid.style.left=x+'px';
    //alert(x);
   }

 }





 function showmenu1()
  {
   var thisid;
   thisid=document.getElementById("history_mnu");
   z=document.body.offsetWidth; 
   var btype;
   btype=getbrowsertype();
   if (btype==1)
   x=z-800;
   else
   x=z-800;
   //alert(z);

   x=x/2;
   x=x+128;
   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;
   else
   x=z-800+271;
   //alert(z);

   x=x/2;
   x=x+171;
   x=parseInt(x,10);
   l=x+'px';
   //alert(thisid.style.left);
   //alert(l);
   //if(thisid.style.left==l)
   //{
   //alert("here");
    thisid.style.visibility='visible';
    //}
  }



 function remmenu(msg)
  {

    thisid1=document.getElementById("mnu_aux");
    if (thisid1.style.visibility=="visible" && msg=="memship_mnu")
    {
    // alert('no remove'+msg);
    }
    else
    {
    // alert('remove'+msg);
    var thisid;
    thisid=document.getElementById(msg);
    thisid.style.visibility="hidden";
    }

    if (msg=="mnu_aux")
    {
     var thisid2;
    thisid2=document.getElementById("memship_mnu");
    thisid2.style.visibility="hidden";
    }

  }

function remmenu1()
 {//alert("r");
  var thisid;
  thisid=document.getElementById("history_mnu");
  thisid.style.visibility='hidden';
 }


function remmenu2()
 {//alert("r");
  var thisid;
  thisid=document.getElementById("prodid1"); 
  thisid.style.visibility='hidden';
 }



function settdover(msg,msg1)
{//alert(msg+"  "+msg1);
  var thiselem,thiselem1;
  thiselem=document.getElementById(msg);
  thiselem1=document.getElementById(msg1);
  thiselem.bgColor ='#FFFFFF';
  thiselem1.style.color='#8C1E27';
  thiselem.style.cursor='hand';
 }


function settdout(msg,msg1)
 {
  var thiselem,thiselem1;
  thiselem=document.getElementById(msg);
  thiselem1=document.getElementById(msg1);
  thiselem.bgColor ='#8C1E27';
  thiselem1.style.color='#FFFFFF';
 }