HM_DOM = (document.getElementById) ? true : false; HM_NS4 = (document.layers) ? true : false; HM_IE = (document.all) ? true : false; HM_IE4 = HM_IE && !HM_DOM; HM_Mac = (navigator.appVersion.indexOf("Mac") != -1); HM_IE4M = HM_IE4 && HM_Mac; HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1); HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1); HM_NS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")); HM_NS7=false qq=navigator.userAgent i=qq.indexOf("Netscape") if (i>=0) if (qq.substring(i+9,i+10)=="7") HM_NS7=true HM_IsMenu = !HM_Opera && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4 || HM_Konqueror); HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4"; if(window.event + "" == "undefined") event = null; function HM_f_PopUp(){return false}; function HM_f_PopDown(){return false}; popUp = HM_f_PopUp; popDown = HM_f_PopDown; HM_GL_CreateTopOnly = HM_NS4 ? true : false; function HM_f_CenterMenu(topmenuid) { var MinimumPixelLeft = 0; var TheMenu = HM_DOM ? document.getElementById(topmenuid) : window[topmenuid]; var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width; var TheWindowWidth = HM_IE ? (HM_DOM ? HM_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth; if (HM_NS7)TheWindowWidth=TheWindowWidth-8 if (HM_NS4)TheWindowWidth=TheWindowWidth-14 return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft); } function HM_f_LeftMenu(topmenuid) { var MinimumPixelLeft = 0; var TheMenu = HM_DOM ? document.getElementById(topmenuid) : window[topmenuid]; var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width; var TheWindowWidth = HM_IE ? (HM_DOM ? HM_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth; if (HM_NS7)TheWindowWidth=TheWindowWidth-8 if (HM_NS4)TheWindowWidth=TheWindowWidth-14 return Math.max(parseInt((TheWindowWidth-PageRight) / 2),MinimumPixelLeft); } function HM_f_RightMenu(topmenuid) { var MinimumPixelLeft = 0; var TheMenu = HM_DOM ? document.getElementById(topmenuid) : window[topmenuid]; var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width; var TheWindowWidth = HM_IE ? (HM_DOM ? HM_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth; if (HM_NS7)TheWindowWidth=TheWindowWidth-8 if (HM_NS4)TheWindowWidth=TheWindowWidth-14 return Math.max(parseInt((TheWindowWidth+PageRight) / 2),MinimumPixelLeft); }