// JavaScript Document
function light1(asdf,t, isr)
{
  asdf = $('#parm'+t); 
  asdf.removeClass('Parnt'); 
  asdf.addClass('Parnt2');
  var el = $('#CHIELDMENU'+t);
  if (el)
  {
   var mm = asdf.offset();
   mm.top += asdf.height();
   el.css('visibility','visible');
   mm.left = Math.round(mm.left);
   mm.top = Math.round(mm.top);
   el.offset(mm);
  };
}
function light12(asdf,t, isr)
{
  asdf = $('#parm'+t); 
  asdf.removeClass('Parntt'); 
  asdf.addClass('Parnt2t');
  var el = $('#CHIELDMENU2'+t);
  if (el)
  {
   var mm = asdf.offset();
   mm.top += asdf.height();
   el.css('visibility','visible');
   mm.left = Math.round(mm.left);
   mm.top = Math.round(mm.top);
   el.offset(mm);
  };
}
function dark1(asd,t)
{
  var el = document.getElementById("CHIELDMENU"+t);
  if (el)
  {
   el.style.visibility="hidden";
  };
  asd.style.color="#ffffff";
  if (asd.style.cursor=='pointer') asd.className = 'Parnt';
}
function dark12(asd,t)
{
  var el = document.getElementById("CHIELDMENU2"+t);
  if (el)
  {
   el.style.visibility="hidden";
  };
  asd.style.color="#ffffff";
  if (asd.style.cursor=='pointer') asd.className = 'Parntt';
}

function light(asdf,t, isr)
{
return;
  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 light2(asdf,t, isr)
{
return;
  asdf.className = 'Parnt2t';
  var el = document.getElementById("CHIELDMENU2"+t);
  if (el)
  {
   var maindx = 0;
   var maindy = 0;
   var mm = document.getElementById("MAINMENU2");
   //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)
{
return;
  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 dark2(asd,t)
{
return;
  asd.style.color="#ffffff";
  if (asd.style.cursor=='pointer') asd.className = 'Parntt';
  var el = document.getElementById("CHIELDMENU2"+t);
  if (el)
  {
   el.style.visibility="hidden";
  };
}
function SubMenuLight(asd,elid)
{
  asd.style.color="#0097ff";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
function SubMenuLight2(asd,elid)
{
  asd.style.color="#ffbf26";
  asd.style.fontWeight="normal";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2t';
}
function SubMenuDark(asd,elid)
{
  asd.style.color="#333333";
  asd.style.fontWeight="normal";
  asd.style.borderBottom="1px dotted #999999";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2';
}
function SubMenuDark2(asd,elid)
{
  asd.style.color="#ffffff";
  asd.style.fontWeight="normal";
  asd.style.borderBottom="1px dotted #FFffff";
  var el = document.getElementById('parm'+elid);
  el.className = 'Parnt2t';
}

