var curmenu=0;

function mover(obj) {obj.style.backgroundColor="#d1d8df";}
function mout(obj) {obj.style.backgroundColor="#b7bec5";}

function smover(obj) {obj.style.backgroundColor="#e1e8ef";}
function smout(obj) {obj.style.backgroundColor="#d1d8df";}

function getScroll() {
   if (document.body.scrollTop != undefined) {  // IE model
      var ieBox = document.compatMode != "CSS1Compat";
      var cont = ieBox ? document.body : document.documentElement;
      return {x : cont.scrollLeft, y : cont.scrollTop};
   }
   else {
      return {x : window.pageXOffset, y : window.pageYOffset};
   }
}

function show(ref,obj) {
/*
  obj.style.left=getScroll().x+event.clientX-event.offsetX-3;
  if (obj==sm5)
    obj.style.left=getScroll().x+event.clientX-event.offsetX-3;
*/
  obj.style.left=ref.offsetLeft+274+ref.offsetParent.offsetLeft;
  obj.style.top=157;
  obj.style.visibility='visible';
  if (ref!=0) curmenu=ref;
  curmenu.style.color="#800000";
  curmenu.style.backgroundImage='url("images/m_bg2.gif")';
}


function show2(ref,obj) {
  obj.style.visibility='visible';
  if (ref!=0) curmenu=ref;
  curmenu.style.color="#800000";
  curmenu.style.backgroundImage='url("images/m_bg2.gif")';
}

function hide(obj) {
  obj.style.visibility='hidden';
  if (curmenu!=0) {
    curmenu.style.color="#004060";
    curmenu.style.backgroundImage='url("images/m_bg1.gif")';
  }
}
