var MAINWIDTH=975;var MAINPADDING=45;var DDSPEED=2;var IMMEDOUT=false;var IMMEDDISP=false;var OPAQUE=true;var HSTICKY=0;var DDTIMER=5;var maxHeight=377;var hoverClsAdded;function ddMenu(f,b){window.hoverClsAdded=false;var a=document.getElementById(f+"-ddheader");var e=document.getElementById(f+"-ddcontent");clearInterval(e.timer);if(b==1){clearTimeout(a.timer);e.style.display="block";if(e.maxh&&e.maxh<=e.offsetHeight){return}else{if(!e.maxh){e.style.height="auto";e.maxh=(e.offsetHeight>maxHeight?e.offsetHeight:maxHeight);e.style.height="0px"}}if(IS_CLIENT_BROWSER_IE6){$("#divKonfigurator").hide()}e.timer=setInterval(function(){ddSlide(e,1)},DDTIMER)}else{a.timer=setTimeout(function(){ddCollapse(e)},50)}}function ddCollapse(a){if(window.IMMEDOUT){a.style.display="none";a.style.height="0px";a.offsetHeight=0;a.style.opacity=0;a.style.filter="alpha(opacity=0)";if(IS_CLIENT_BROWSER_IE6){$("#divKonfigurator").show()}$("#mnuLnk1").removeClass("hoverMnuLnk1")}else{a.timer=setInterval(function(){ddSlide(a,-1)},DDTIMER)}}function cancelHide(d){var a=document.getElementById(d+"-ddheader");var b=document.getElementById(d+"-ddcontent");clearTimeout(a.timer);clearInterval(b.timer);if(b.offsetHeight<b.maxh){b.timer=setInterval(function(){ddSlide(b,1)},DDTIMER)}$("#mnuLnk1").addClass("hoverMnuLnk1")}function ddSlide(f,e){if(window.IMMEDDISP){var b=window.HSTICKY}else{var b=f.offsetHeight}var a;if(e==1){if(f.offsetWidth>0){$(f).css("margin-left",((window.MAINWIDTH-f.offsetWidth-window.MAINPADDING)+2))}a=(Math.round((f.maxh-b)/DDSPEED))}else{a=(Math.round(b/DDSPEED))}if(a<=1&&e==1){a=1}if(e==1&&window.IMMEDDISP){f.style.height=f.maxh+"px";window.HSTICKY=b+(a*e)}else{f.style.height=b+(a*e)+"px"}if(OPAQUE){f.style.opacity=1;f.style.filter="alpha(opacity=100)"}else{f.style.opacity=b/f.maxh;f.style.filter="alpha(opacity="+(b*100/f.maxh)+")"}if(b<2&&e!=1){clearInterval(f.timer);window.HSTICKY=0;if(e==-1&&IS_CLIENT_BROWSER_IE6){$("#divKonfigurator").show()}$("#mnuLnk1").removeClass("hoverMnuLnk1")}if(b>(f.maxh-2)&&e==1){clearInterval(f.timer)}}function findPos(a){var b=curtop=0;if(a.offsetParent){b=a.offsetLeft;curtop=a.offsetTop;while(a=a.offsetParent){b+=a.offsetLeft;curtop+=a.offsetTop}}if(navigator.appName=="Microsoft Internet Explorer"){if(IS_CLIENT_BROWSER_IE8==false){curtop-=5;b-=10}}else{if(navigator.appName=="Opera"){curtop+=11}}return[b,curtop]}function display_menu(d,a,e){var b=document.getElementById(a);b.style.display="";var c=findPos(d);if(a=="newsletterPopup"){c[0]=c[0]-295+92}b.style.left=c[0]+"px";if(e){b.style.top=(c[1]+e)+"px"}else{b.style.top=c[1]+"px"}if(a=="loginPopup"){$("#loginEmail").focus()}}function slideDown_menu(d,a,e){var b=document.getElementById(a);var c=findPos(d);b.style.left=c[0]+"px";if(e){b.style.top=(c[1]+e)+"px"}else{b.style.top=c[1]+"px"}$("#"+a).slideDown()}function hide_menu(a){var b=document.getElementById(a);b.style.display="none"}function hide_other_menu(a){if(a===undefined||a==1){if(window.showCountryLang<1){window.showCountryLang=0;document.getElementById("mnu1").style.display="none";document.getElementById("menu1").style.display="none"}}if(a===undefined||a==2){if(window.showMyMaxiprint<1){window.showMyMaxiprint=0;document.getElementById("mnuLoginPopup").style.display="none";document.getElementById("loginPopup").style.display="none"}}if(a===undefined||a==3){if(window.showNewsletter<1){window.showNewsletter=0;document.getElementById("mnuNewsletterPopup").style.display="none";document.getElementById("newsletterPopup").style.display="none"}}}function hide_all_menu(){$("#mnu1").hide();$("#menu1").hide();$("#mnuLoginPopup").hide();$("#loginPopup").hide();$("#mnuNewsletterPopup").hide();$("#newsletterPopup").hide()};
