 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(id)

 {

  var x;

  x=0;

  //alert("in");

  // deduct 32 from the body offsetwidth to adjust the left of division.

  var obj;

  obj=document.getElementById("prodid");

  obj.style.visibility="visible";

   //z=screen.availWidth;

  y=document.body.offsetWidth;

   //alert(z);

  var btype;

  btype=getbrowsertype();



  if (btype==1)

    x=y-765;

  else

    x=y-800;

  x=x/2;

  x=x+462;

  x=parseInt(x,10);

  //alert(x);

  obj.style.left=x;

  if (btype==1)

    obj.style.top='38px';

  else

    obj.style.top='45px';

}



function hideMenu(id)

{

  var obj;

  obj=document.getElementById(id);

  obj.style.visibility="hidden";

}





function settdover(id)

{

  var thiselem;

  thiselem=document.getElementById(id);

  thiselem.bgColor ='#808080';

  thiselem.style.cursor='hand';

}

function settdout(id)

{

  var thiselem;

  thiselem=document.getElementById(id);

  thiselem.bgColor ='#000000';

}



function showMenu1(id)

 {

  var x;

  x=0;

  //alert("in");

  // deduct 32 from the body offsetwidth to adjust the left of division.

  var obj;

  obj=document.getElementById("prodid1");

  obj.style.visibility="visible";

   //z=screen.availWidth;

  y=document.body.offsetWidth;

   //alert(z);

  var btype;

  btype=getbrowsertype();



  if (btype==1)

    x=y-920;

  else

    x=y-960;

  x=x/2;

  x=x+462;

  x=parseInt(x,10);

  //alert(x);

  obj.style.left=x;

  if (btype==1)

    obj.style.top='38px';

  else

    obj.style.top='45px';

}




