var isIE=(document.all)?true:false
var isNN=(document.getElementById&&!isIE)?true:false
var isMAC=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)?true:false
var layerRef='document.getElementById("';var styleRef='").style';var idRef=(isNN)?'").innerHTML':'").innerHTML';var topRef=(isNN)?'.top':'.pixelTop';var leftRef=(isNN)?'.left':'.pixelLeft';var ofsetRef=(isNN)?'").offsetLeft':'").offsetLeft';var activeMenu=0;var buble=false;var selectedSection=0;if(isNN)
var topPixel=250;else
var topPixel=250;if(isNN)
{document.captureEvents(Event.MOUSEMOVE);document.onmousemove=checkUp;}
else document.onmouseover=killMenu;function activateSelected(menuLayerRef){buble=true;activateMenu(menuLayerRef);buble=false;}
function spanIn(theSpan){theSpan.className='submenulinkhover';}
function spanOut(theSpan){theSpan.className='submenulink';}
function activateMenu(menuLayerRef){if(activeMenu!=menuLayerRef)
{if(activeMenu)
hideMenu("menu"+activeMenu);menuID="menu"+menuLayerRef;smenuID="smenu"+menuLayerRef;activeMenu=menuLayerRef;showMenu(menuID);}
if(!isNN&&!buble)
window.event.cancelBubble=true;}
function showMenu(menuID){eval(layerRef+menuID+styleRef+'.display = "block"');}
function hideMenu(menuID){eval(layerRef+menuID+styleRef+'.display = "none"');}
function killMenu(){if(selectedSection>0)
activateSelected(selectedSection)
else
{if(activeMenu)
{menuID="menu"+activeMenu;hideMenu(menuID);activeMenu=0;}}}
function checkUp(){if(isNN&&(activeMenu!=0))
{var x=e.pageX;var y=e.pageY;var x1=eval('document.getElementById("menu'+activeMenu+'").style.width')+leftPixel;var y1=topPixel-19;var y2=eval('document.getElementById("menu'+activeMenu+'").style.height')+topPixel;if((y<y1)||(y>y2)||(x<x1-80)||(x>x1))setTimeout("killMenu(null)",5000);}}
