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

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

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

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

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