var loadnav = { einklappzeit: 250, nomenueklick: true, weich_einblenden: 1, useieiframe: 1, pdmenueoj: null, ie: document.all, firefox: document.getElementById && !document.all, menubacktimer: undefined, bottomclip:0, goposof:function(ttw, offsettype){ var gesof = (offsettype == "left")? ttw.offsetLeft : ttw.offsetTop; var parentEl = ttw.offsetParent; while (parentEl != null){ gesof = (offsettype == "left")? gesof + parentEl.offsetLeft : gesof + parentEl.offsetTop; parentEl = parentEl.offsetParent; } return gesof; }, effs:function(){ if (this.clbt < parseInt(this.pdmenueoj.offsetHeight)){ this.clbt += 10 + (this.clbt/10); this.pdmenueoj.style.clip ="rect(0 auto "+this.clbt+"px 0)"; } else return; this.menubacktimer=setTimeout("loadnav.effs()", 10); }, getbackmen:function(obj, z){ if (this.ie || this.firefox) this.pdmenueoj.style.left=this.pdmenueoj.style.top="-500px"; if (z.type=="click" && obj.visibility==hidden || z.type=="mouseover"){ if (this.weich_einblenden==1){ if (typeof this.menubacktimer!="undefined") clearTimeout(this.menubacktimer); obj.clip = "rect(0 auto 0 0)"; this.clbt = 0; this.effs(); } obj.visibility = "visible"; } else if (z.type=="click") obj.visibility="hidden"; }, msictt:function(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body }, dcbe:function(obj, bred){ var eckenpos = 0; if (bred == "rightedge"){ var wfeck = this.ie && !window.opera? this.msictt().scrollLeft+this.msictt().clientWidth-15 : window.pageXOffset+window.innerWidth-15; this.pdmenueoj.kmso = this.pdmenueoj.offsetWidth; if (wfeck - this.pdmenueoj.x < this.pdmenueoj.kmso) eckenpos = this.pdmenueoj.kmso - obj.offsetWidth; } else { var topedge = this.ie && !window.opera? this.msictt().scrollTop : window.pageYOffset; var wfeck = this.ie && !window.opera? this.msictt().scrollTop+this.msictt().clientHeight-15 : window.pageYOffset+window.innerHeight-15; this.pdmenueoj.kmso=this.pdmenueoj.offsetHeight; if (wfeck - this.pdmenueoj.y < this.pdmenueoj.kmso){ eckenpos=this.pdmenueoj.kmso+obj.offsetHeight; if ((this.pdmenueoj.y-topedge) < this.pdmenueoj.kmso) eckenpos = this.pdmenueoj.y+obj.offsetHeight-topedge; } } return eckenpos }, rundr:function(obj, z, iddrm){ if (this.pdmenueoj!=null) this.pdmenueoj.style.visibility="hidden"; this.hdmcl(); if (this.ie||this.firefox){ obj.onmouseout=function(){ loadnav.thhmenu(); }; obj.onclick=function(){ return !loadnav.nomenueklick }; this.pdmenueoj=document.getElementById(iddrm); this.pdmenueoj.onmouseover = function(){loadnav.hdmcl()}; this.pdmenueoj.onmouseout = function(z){loadnav.dyhi(z)}; this.pdmenueoj.onclick = function(){loadnav.thhmenu()}; this.getbackmen(this.pdmenueoj.style, z); this.pdmenueoj.x=this.goposof(obj, "left"); this.pdmenueoj.y=this.goposof(obj, "top"); this.pdmenueoj.style.left=this.pdmenueoj.x-this.dcbe(obj, "rightedge")+"px"; this.pdmenueoj.style.top=this.pdmenueoj.y-this.dcbe(obj, "bottomedge")+obj.offsetHeight+1+"px"; this.msfrpos(); } }, msfrpos:function(){ if (this.useieiframe && typeof this.ieframeobj!="undefined"){ if (this.pdmenueoj.style.visibility=="visible"){ this.ieframeobj.style.width=this.pdmenueoj.offsetWidth+"px"; this.ieframeobj.style.height=this.pdmenueoj.offsetHeight+"px"; this.ieframeobj.style.left=this.pdmenueoj.style.left; this.ieframeobj.style.top=this.pdmenueoj.style.top; } this.ieframeobj.style.display=(this.pdmenueoj.style.visibility=="visible")? "block" : "none" }}, ieframeweg:function(){ if (this.useieiframe && typeof this.ieframeobj!="undefined") this.ieframeobj.style.display='none' }, contains_firefox:function(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; }, dyhi:function(z){ var evtobj=window.event? window.event : z; if (this.ie && !this.pdmenueoj.contains(evtobj.toElement)) this.thhmenu(); else if (this.firefox && z.currentTarget != evtobj.relatedTarget && !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget)) this.thhmenu(); }, thhmenu:function(){ this.tdlhd=setTimeout("loadnav.pdmenueoj.style.visibility='hidden'; loadnav.ieframeweg()",this.einklappzeit) }, hdmcl:function(){ if (this.tdlhd!="undefined") clearTimeout(this.tdlhd)}, lnb:function(){ for (var dmid = 0; dmid < arguments.length; dmid++){ var pdmit = document.getElementById(arguments[dmid]).getElementsByTagName("a"); for (var i = 0; i < pdmit.length; i++){ if (pdmit[i].getAttribute("target")){ var targetval = pdmit[i].getAttribute("target"); pdmit[i].onmouseover=function(z){ var event = typeof z!= "undefined"? z : window.event;  loadnav.rundr(this,event,this.getAttribute("target")); } } } } if (window.createPopup && !window.XmlHttpRequest){ document.write('<iframe id="iewinframe"  src="javascript:false;" style="display: none; left: 0; top: 0; z-index: 90; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)" frameBorder="0" scrolling="no"></iframe>'); this.ieframeobj = document.getElementById("iewinframe");}}}