// JavaScript Document
function light(asdf,t, isr)
{
  asdf.className = 'Parnt2';
  var el = document.getElementById("CHIELDMENU"+t);
  if (el)
  {
   var maindx = 0;
   var maindy = 0;
   var mm = document.getElementById("MAINMENU");
   //if (!mm.offsetLeft) return;
   do {
      maindx += mm.offsetLeft;
      maindy += mm.offsetTop;
   }
   while ((mm = mm.offsetParent));   
   el.style.visibility="visible";
   if (isr==1)
   {
    el.style.left =maindx+asdf.offsetLeft+asdf.offsetWidth-el.offsetWidth;
   } else {
    el.style.left =maindx+asdf.offsetLeft;
   };
   el.style.top=maindy+asdf.offsetTop+asdf.offsetHeight;
   //el.style.width = asdf.offsetWidth;
  };
}
function dark(asd,t)
{
  asd.style.color="#ffffff";
  if (asd.style.cursor=='pointer') asd.className = 'Parnt';
  var el = document.getElementById("CHIELDMENU"+t);
  if (el)
  {
   el.style.visibility="hidden";
  };
}
function SubMenuLight(asd,elid)
{
  asd.style.color="#000000";
  asd.style.backgroundColor="#ff9e04";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
function SubMenuDark(asd,elid)
{
  asd.style.color="#ffffff";
  asd.style.backgroundColor="#ae0d0d";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
function SubMenuLight2(asd,elid)
{
  asd.style.color="#000000";
  asd.style.backgroundColor="#ff9e04";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
function SubMenuDark2(asd,elid)
{
  asd.style.color="#ff9e04";
  asd.style.backgroundColor="#ae0d0d";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
