var pref="null", suff="null", xx = "null", yy = "null";
var mx = "null", my = "null", now="null",tid, sx;

ie6 = (navigator.appVersion.indexOf("MSIE 6")>-1 || navigator.appVersion.indexOf("MSIE 5.5")>-1);
if (document.getElementById) {
  pref="document.getElementById('"; suff="').style"; xx=".left"; yy=".top";
  mx="event.pageX";
  my="event.pageY";
  sx="innerWidth-16";
}
else if (navigator.appName == "Netscape") {
  pref="document.layer('"; suff="')"; xx=".left"; yy=".top";
  mx="event.pageX";
  my="event.pageY";
  sx="innerWidth-16";
}
else {
  pref="document.all.item('"; suff="').style"; xx=".pixelLeft"; yy=".pixelTop";
  mx="window.event.clientX";
  my="document.body.scrollTop+window.event.clientY";
  sx="document.body.clientWidth";
}

function hideall() {
  if (now!="null") {
    k=0;
    el=document.getElementsByTagName("select");
    while (el.item(k)) { el.item(k++).style.visibility="visible"; }
//    k=0;
//    if (!ie6) {
//      el=document.getElementById("infoblock");
//      if (el) { el.style.visibility="visible"; }
//      el=document.getElementById("skyscraper");
//      if (el) { el.style.visibility="visible"; }
//    }
    //eval(pref+now+suff+xx+' = '+ 0);
    eval(pref+now+suff+'.visibility="hidden"');
  }
}

function hide(who){ 
  if (who!="null") {
    eval(pref+who+suff+'.visibility="hidden"');  
  }
}

function show(who, x,y, menu,id)
{
  k=0;
  el=document.getElementsByTagName("select");
  while (el.item(k)) el.item(k++).style.visibility="hidden";
//  k=0;
//  if (!ie6) {
//    el=document.getElementById("infoblock");
//    if (el) { el.style.visibility="hidden"; }
//    el=document.getElementById("skyscraper");
//    if (el) { el.style.visibility="hidden"; }
//  }
  hide(now);
  hide(who);
  if (tid!=null) {clearTimeout(tid);}
  now=who;
  tid=setTimeout("hideall;",5000);
  eval(pref+who+suff+xx+' = x');
  eval(pref+who+suff+yy+' = y');
  eval(pref+who+suff+'.visibility="visible"');
}

function hiding(menu) { tid=setTimeout("hideall();",500); }
function nover(){ if(navigator.appName=="Netscape") clearTimeout(tid); }
function nout(menu){ if(navigator.appName=="Netscape") hiding(menu); }
function mOured(div){ div.className="outred"; }
function mOu(div){ div.className="out"; }
function mOv(div){ div.className="over"; }

