if(document.getElementById&&document.createElement&&!(navigator.vendor=="Apple Computer, Inc."&&typeof XMLHttpRequest=="undefined")&&typeof navigator.IBM_HPR=="undefined"){mpm={};mpm.hideDelay=100;mpm.scriptable=true;mpm.agent=navigator.userAgent.toLowerCase();if(mpm.agent.indexOf("msie 5")>0){if(mpm.agent.indexOf("mac")>0){mpm.macIE=true;if(mpm.hideDelay<250)mpm.hideDelay=250}else if(mpm.agent.indexOf("msie 5.5")<0){mpm.winIE50=true}}mpm.menuWidth=0;mpm.submenuCnt=0;mpm.menuStatus=[];mpm.timerId=[];mpm.INVISIBLE=0;mpm.VISIBLE=1}if(document.addEventListener){document.addEventListener("DOMContentLoaded",createSubmenus,false)}/*@cc_on@*//*@if(@_win32)document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");var script=document.getElementById("__ie_onload");script.onreadystatechange=function(){if(this.readyState=="complete"){createSubmenus()}};/*@end@*/if(/KHTML|WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){createSubmenus()}},10)}var oldOnload=window.onload;if(typeof window.onload!="function"){window.onload=createSubmenus}else{window.onload=function(){if(oldOnload){oldOnload()}createSubmenus()}}if(mpm.scriptable){document.write("\n<!--[if lt IE 5.5000]>\n<link type=\"text/css\" rel=\"stylesheet\" href=\"css/hidesubs.css\" media=\"all\" />\n<![endif]-->")}function createSubmenus(){if(arguments.callee.done)return;arguments.callee.done=true;if(_timer){clearInterval(_timer);_timer=null}if(mpm.scriptable){var oldOnUnload=window.onload;if(typeof window.onunload!="function"){window.onunload=hideVisibleMenus}else{window.onunload=function(){if(oldOnUnload){oldOnUnload()}hideVisibleMenus()}}var subMenuLevel=0;var objMenuList=document.getElementById("nav_menu_box");var objSubmenu=objMenuList.getElementsByTagName("ul");for(var i=0;i<objSubmenu.length;i++){objSubmenu[i].style.visibility="hidden"}if(mpm.menuWidth==0){mpm.menuWidth=objMenuList.offsetWidth}createMenuStructure(objMenuList,subMenuLevel,mpm.menuWidth);if(mpm.winIE50){document.body.style.fontSize=document.body.currentStyle.fontSize}}}function createMenuStructure(menuContainer,subMenuLevel,offset){var menuId;var menuTitleFound=false;var menuElement=menuContainer.firstChild;do{if(menuElement.nodeName.toUpperCase()=="LI"){if(menuElement.className=="nav_menu_title"){mpm.submenuCnt++;if(menuTitleFound){if(mpm.macIE){menuElement.style.marginLeft="-13px"}}menuTitleFound=true;menuElement.onmouseover=function(){showMenu(this)};menuElement.onmouseout=function(){queueHide(this)};createMenuStructure(menuElement,subMenuLevel+1,offset);menuElement.style.borderTopWidth="1px";if(subMenuLevel>0){if(mpm.winIE50){menuElement.style.width=menuElement.clientWidth+15+"px"}else{menuElement.style.width=menuElement.offsetWidth+4+"px"}}}else{if(menuTitleFound){menuTitleFound=false;if(mpm.macIE){menuElement.style.marginLeft="-13px"}}if(isLinkToCurrentPage(menuElement.firstChild.href)){menuElement.firstChild.style.backgroundImage='url("images/gold-circle.gif")';menuElement.firstChild.style.backgroundRepeat="no-repeat";menuElement.firstChild.style.backgroundPosition="left center"}}if(subMenuLevel>0){if(menuElement.firstChild.nodeName.toUpperCase()=="A"){menuElement.firstChild.className="submenu_item"}if(mpm.winIE50&&!mpm.macIE){menuElement.style.marginLeft="-16px"}}}else if(menuElement.nodeName.toUpperCase()=="UL"){menuElement.id="m"+mpm.submenuCnt;mpm.menuStatus[menuElement.id]=mpm.INVISIBLE;mpm.timerId[menuElement.id]=null;menuElement.style.position="absolute";if(!mpm.macIE){menuElement.style.top=menuElement.parentNode.offsetTop+"px"}menuElement.style.left=offset+"px";menuElement.style.width=offset+"px";menuElement.className="submenu_box";createMenuStructure(menuElement,subMenuLevel,menuElement.offsetParent.offsetWidth)}menuElement=menuElement.nextSibling}while(menuElement)}function showMenu(menuTitleElement){var menuToShow=menuTitleElement.getElementsByTagName('ul')[0];if(mpm.timerId[menuToShow.id]!=null){clearTimeout(mpm.timerId[menuToShow.id]);mpm.timerId[menuToShow.id]=null}menuToShow.style.visibility="visible";menuToShow.style.display="block";mpm.menuStatus[menuToShow.id]=mpm.VISIBLE}function queueHide(menuTitleElement){var menuToHide=menuTitleElement.getElementsByTagName('ul')[0];mpm.menuStatus[menuToHide.id]=mpm.INVISIBLE;if(mpm.timerId[menuToHide.id]==null){var t=setTimeout("hideMenu(\""+menuToHide.id+"\")",mpm.hideDelay);mpm.timerId[menuToHide.id]=t}}function hideMenu(menuId){var menuToHide=document.getElementById(menuId);if(mpm.menuStatus[menuToHide.id]==mpm.INVISIBLE){mpm.timerId[menuToHide.id]=null;menuToHide.style.visibility="hidden"}}function hideVisibleMenus(){for(var menuId in mpm.menuStatus){if(mpm.menuStatus[menuId]==mpm.VISIBLE){mpm.menuStatus[menuId]=mpm.INVISIBLE;document.getElementById(menuId).style.visibility="hidden"}}}function isLinkToCurrentPage(linkHref){var currentHref=window.location.href;var pageHref="";if(currentHref.substr(currentHref.length-1)=="#"){currentHref=currentHref.substr(0,currentHref.length-1)}if(linkHref==currentHref){return true}else{if(currentHref.charAt(currentHref.length-1)=="/"&&linkHref.charAt(linkHref.length-1)!="/"){pageHref=linkHref.substr(linkHref.lastIndexOf("/")+1);if(pageHref.toLowerCase().substr(0,5)=="index"){if(currentHref+pageHref==linkHref){return true}}}else if(currentHref.charAt(currentHref.length-1)!="/"&&linkHref.charAt(linkHref.length-1)=="/"){pageHref=currentHref.substr(currentHref.lastIndexOf("/")+1);if(pageHref.toLowerCase().substr(0,5)=="index"){if(currentHref==linkHref+pageHref){return true}}}return false}}