/* * DO NOT REMOVE THIS NOTICE * * PROJECT: MyGosuMenu * VERSION: 1.56 (2009-09-11) itemXXX fix by dominik.ras@extranet.pl * COPYRIGHT: (c) 2003-2009 Cezary Tomczak * LINK: http://www.gosu.pl/MyGosuMenu/ * LICENSE: BSD revised (free for any use) */ function DropDownMenuX(id) {var self=this;this.type="horizontal";this.delay={"show":0,"hide":400} this.position={"level1":{"top":0,"left":0},"levelX":{"top":0,"left":0}} this.fixIeSelectBoxBug=true;this.zIndex={"visible":500,"hidden":-1};this.browser={"ie":Boolean(document.body.currentStyle),"ie5":(navigator.appVersion.indexOf("MSIE 5.5")!=-1||navigator.appVersion.indexOf("MSIE 5.0")!=-1),"ie6":(navigator.appVersion.indexOf("MSIE 6.0")!=-1)};if(!this.browser.ie){this.browser.ie5=false;this.browser.ie6=false;} this.origWidth=document.body.clientWidth;this.origHeight=document.body.clientHeight;this.init=function() {if(!document.getElementById(this.id)){return alert("DropDownMenuX.init() failed. Element '"+this.id+"' does not exist.");} if(this.type!="horizontal"&&this.type!="vertical"){return alert("DropDownMenuX.init() failed. Unknown menu type: '"+this.type+"'");} if(this.browser.ie&&this.browser.ie5){fixWrap();} fixSections();parse(document.getElementById(this.id).childNodes,this.tree,this.id);if(window.addEventListener){window.addEventListener('resize',this.onresize,false);}else if(window.attachEvent){window.attachEvent('onresize',this.onresize);}else{window.onresize=this.onresize;}};this.onresize=function() {if(self.origWidth!=document.body.clientWidth ||self.origHeight!=document.body.clientHeight) {self.origWidth=document.body.clientWidth;self.origHeight=document.body.clientHeight;self.resizeFix();}};this.resizeFix=function() {clearTimers();for(var i=0;i'+elements[i].innerHTML+'';}}} function getMaxWidth(nodes){var maxWidth=0;for(var i=0;imaxWidth){maxWidth=nodes[i].offsetWidth;}} return maxWidth;} function setMaxWidth(nodes,maxWidth){for(var i=0;i