// Copyright 2003, DuaneWeb. All rights reserved.
var Menus=new Array();
var mCnt=0;
mIndex=1;

function mmover(obj)
{
 obj.className='menuh';
 mover(obj);
 timeroff();
}
function mmout(obj)
{
 obj.className='menu';
 mout(obj);
 timeron();
}
var MenuTimer=0;
function MenuItem(iid, cap, url, hint)
{
 this.id=iid;
 this.caption=cap;
 this.url=url;
 this.hint=hint;
}
function AddMenu(iid, cap, url, hint)
{
 this.items[this.icnt++]=new MenuItem(iid, cap, url, hint);
}
function Menu(cap, hint, url)
{
 this.id="MH"+cap;
 this.caption=cap;
 this.hint=hint;
 this.url=url;
 this.items=new Array();
 this.icnt=0;
 this.AddItem=AddMenu;
}
function timeron()
{
 if ( MenuTimer )
  timeroff();
 MenuTimer=setTimeout('hideothers(0)', 500);
}
function timeroff()
{
 clearTimeout(MenuTimer);
 MenuTimer=0;
}
function writemenus()
{
 var i;
 var j;
 var tmenu;
 for (i=0;i<mCnt;i++){
  tmenu=Menus[i];
  var s='<div id="M_'+tmenu.id+'" class="menudiv" style="position: absolute; left: 0px; top: 0px; visibility: hidden; z-index: 1">';
  s+='<div onmouseout="timeron()">';
  for (j=0;j<tmenu.icnt;j++){
   var cap=tmenu.items[j].caption;
   s+='<div class="menu" onmouseover="mmover(this)" onmouseout="mmout(this)" onclick="window.location.assign(\''+Menus[i].items[j].url+'\')">'+cap+'</div>';
   }
  s+='</div>'+(isNS4 ? '</layer>' : '</div>');
  document.write(s);
  }
}
function showmenu(obj)
{
 mmover(obj);
 hideothers(99);
 if (document.all)
  obj.style.cursor="Hand";
 else obj.style.cursor="Pointer";
 var dstyle=getStyle("M_MH"+obj.id);
 dstyle.top=''+(getTop(obj)+18)+'px';
 dstyle.left=''+getLeft(obj)+"px";
 dstyle.visibility="visible";
}
function hideothers(mid)
{
 for (i=0;i<mCnt;i++ )
  getStyle("M_"+Menus[i].id).visibility="hidden";
 timeroff();
}
function menuout(obj)
{
 mmout(obj);
 timeron();
}
function loadpage(ref)
{
 window.location.assign(ref);
}
function cover(obj)
{
 if (document.all)
  obj.style.cursor="Hand";
 else obj.style.cursor="Pointer";
 obj.style.color="black";
 obj.style.backgroundColor="#FFCC00";
}
function cout(obj)
{
 obj.style.cursor="Default";
 obj.style.color="navy";
 obj.style.backgroundColor="#FF9933";
}
function cload(ref)
{
 window.location.assign(ref);
}
function nav(i, j)
{
 window.location.assign(Menus[i].items[j].url);
}
function navt(i)
{
 window.location.assign(Menus[i].url);
}
var mpath=in_phpbb ? '../' : '';


