mapExtras = new Image(); mapExtras.src='/img/map-extras.gif'

function showDiv(object) {
 document.getElementById(object).style.visibility="visible";
}

function hideDiv(object) {
 document.getElementById(object).style.visibility="hidden";
}

function homeFlash() {
 document.write('<embed src="img/home.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="630" height="240" name="img/home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
}

function showMenu(object) {
 hideAll();
 show[object]=1;
 coords=findPos(document.getElementById(object));
 document.getElementById('dd_'+object).style.left=coords[0]-10;
 document.getElementById('dd_'+object).style.visibility='visible';
}

function hideMenu(object) {
 if (show[object]==0) {
  document.getElementById('dd_'+object).style.visibility='hidden';
 }
}

function preHide(object) {
 show[object]=0;
 setTimeout("hideMenu('"+object+"')",1000);
}

function findPos(obj) {
 var curleft = curtop = 0;
 if (obj.offsetParent) {
  do {
   curleft += obj.offsetLeft;
   curtop += obj.offsetTop;
  } while (obj = obj.offsetParent);
 }
 return [curleft,curtop];
}