/* START Navigations $Id:navigations.css 4739 2009-05-28 10:50:27Z mseckert $ START */
function deactivateDataTableNavigation(b,a){b.style.visibility="hidden"}function hoverEffectNavigationLvl1Button(a,b){if(a==="hover"){b.getElementsByTagName("td")[0].style.backgroundPosition="0px -43px";b.getElementsByTagName("a")[0].style.color="white"}else{if(a==="normal"){b.getElementsByTagName("td")[0].style.backgroundPosition="0px 0px";b.getElementsByTagName("a")[0].style.color="black"}else{alert("Fehler in Parameteruebergabe.")}}}function hoverEffectNavigationLvl4Button(a,b){if(a==="hover"){b.getElementsByTagName("td")[0].style.backgroundPosition="0px -37px";b.getElementsByTagName("a")[0].style.color="white"}else{if(a==="normal"){b.getElementsByTagName("td")[0].style.backgroundPosition="0px 0px";b.getElementsByTagName("a")[0].style.color="black"}else{alert("Fehler in Parameteruebergabe.")}}}function doBannerSlide(a){$("#teaserSlider").animate({marginLeft:a},600)}function bannerSlide(d,c){var a,e,b;switch(d){case 1:b=293;break;case 3:b=879;break;default:b=879}e=parseInt(document.getElementById("teaserSlider").style.marginLeft,10);if(c==="left"&&e>-1758){a=(e-b)+"px";doBannerSlide(a)}if(c==="right"&&e<0){a=(e+b)+"px";doBannerSlide(a)}}$(document).ready(function(){$(window).unload(function(){$(".navigationLvl2, .navigationLvl3, .soccercard").css("visibility","hidden")});$("#teaserSlider").animate({marginLeft:"0px"},600);$(".navigationLvl2, .navigationLvl3").css("visibility","hidden");$(".callToActionLink").hover(function(){$(this).siblings(".closer").css("backgroundPosition","0 -25px")},function(){$(this).siblings(".closer").css("backgroundPosition","0 0")});$(".callToActionMainActionLink").hover(function(){$(this).siblings(".closer").css("backgroundPosition","0 -25px")},function(){$(this).siblings(".closer").css("backgroundPosition","0 0")});$(".modelDataTableCategoryLinkOpenClose").click(function(){$(this).css("backgroundPosition","0 -39px");$(this).parent("tr").next(".category").children(".categoryContent").css("border","1px solid red")});$("#modelName").css("cursor","pointer");$("#modelName").click(function(){location.replace("lacetti-overview.html")});var a=$("#navigationFirstModel").offset()});function findPos(b){var c=0,a=0;while(b.offsetParent){c+=b.offsetLeft;a+=b.offsetTop;b=b.offsetParent}return[c,a]}function handle_main_nav(){return true}jQuery(document).ready(function(){var a={isTypeHtmlElement:function(g){return(typeof(g)==="object"&&g.nodeName&&typeof(g.nodeType==="number"))?true:false},isTypeString:function(g){return(typeof(g)==="string")},isTypeBoolean:function(g){return(typeof(g)==="boolean")},isTypeNumber:function(g){return(typeof(g)==="number")},isTypeArray:function(g){return(typeof(g)==="object"&&g instanceof Array)},getDomElement:function(h){var g="";if(jQuery){switch(arguments[1]){case"id":g="#";break;case"class":g=".";break;default:g=""}return jQuery(g+h)}else{switch(arguments[1]){case"id":return document.getElementById(h);break;case"class":return document.getElementsByName(h)[0];break;default:return document.getElementsByTagName(h)[0]}}},oExtend:function(i,g){var h=function(){};h.prototype=g.prototype;i.prototype=new h();i.prototype.constructor=i},oConv:function(h){var k={};for(var j=0,g=h.length;j<g;j++){k[h[j]]=null}return k}};function d(g){this.init(g)}d.prototype.delay=290;d.prototype.elementHoverClassName="hover";d.prototype.elementSelectedClassName="selected";d.prototype.init=function(g){this.rootElement=g};d.prototype.apply=function(){if(!jQuery){alert("Framework 'jQuery' not found!");return false}try{(a.isTypeHtmlElement(this.rootElement))?true:this.rootElement=a.getDomElement(this.rootElement,"id")}catch(g){alert("The html-element can not be found or is not of type ID-Element.\n"+g);return false}try{(this.rootElement.nodeName==="UL"||this.rootElement.nodeName==="ul")?true:false}catch(g){alert("Selected element is not of type 'UL'!");return false}this._scanItems()};d.prototype._stack=[];d.prototype._getRoot=function(){return this.rootElement};d.prototype._addStack=function(g){window.clearTimeout(this._stack[0]);this._stack[0]=g};d.prototype._emptyStack=function(){while(0<this._stack.length){window.clearTimeout(this._stack[0]);this._stack.shift()}};d.prototype._scanItems=function(){var h=jQuery(this.rootElement).find("li");var g=this.rootElement;jQuery(h).each(function(j){h[j]=new e(jQuery(this),g);h[j].constructor=h[j]})};function e(h,g){this.htmlElement=h;this.rootElement=g;this.addEvents()}a.oExtend(e,d);e.prototype.addEvents=function(){var i=this;var h=this.htmlElement;var g=jQuery(this.htmlElement).hover(function(){var k=jQuery(this);var j=k.siblings("li");j.removeClass(i.elementHoverClassName);j.removeClass(i.elementSelectedClassName);k.addClass(i.elementHoverClassName);i.activateParentItems(this)},function(){jQuery(this).removeClass(i.elementHoverClassName);i._addStack(window.setTimeout(function(){i.hideMenu(h)},i.delay))});if(isMobile()){g.click(function(j){j.stopPropagation();i._addStack(window.setTimeout(function(){i.showMenu(h)},i.delay));if(g.find("ul").length>0&&!h.children("a:first").hasClass("sdtNavigationCallToAction")&&!h.children("div:first").hasClass("boxTop")){return false}})}else{g.mouseover(function(){i._addStack(window.setTimeout(function(){i.showMenu(h)},i.delay));return false})}};e.prototype.activateParentItems=function(g){var h=jQuery(g).parent("ul:first");if(jQuery(h).attr("id")!=jQuery(this.rootElement).attr("id")){h=jQuery(h).parent("li");jQuery(h).addClass(this.elementHoverClassName);this.activateParentItems(h)}};e.prototype.showMenu=function(h){var i=jQuery(h);var g=i.siblings("li");g.removeClass(this.elementSelectedClassName);i.find("li").removeClass(this.elementSelectedClassName);i.parent("ul").parent("li").addClass(this.elementSelectedClassName);g.find("ul").css("visibility","hidden");i.find("ul:first").css("visibility","visible")};e.prototype.hideMenu=function(h){var i=jQuery(h);var g=i.siblings("li");g.find("ul").css("visibility","hidden");i.removeClass(this.elementSelectedClassName).find("ul").css("visibility","hidden")};function f(){var g=jQuery("#navigationFirstModel").offset();var h=jQuery("ul#navigationLvl1").find("ul.soccercard");jQuery.each(h,function(){var i=jQuery(this).offset();jQuery(this).css("top","-"+(parseInt(i.top,10)-parseInt(g.top,10))+"px")})}f();var c="navigationLvl1";var b=new d(c);b.apply()});
/* START Inline-Windows $Id: navigations.js 11512 2010-12-21 13:34:44Z dvrhein $ START */
function drawWindowOverlay(c,e){var d=c.getElementsByTagName("img"),a=new Image(),f=new Image(),b;a.src=d[0].src;f.src=d[1].src;if(e==="show"){b="visible";d[0].src=f.src;d[1].src=a.src}else{b="hidden";d[0].src=f.src;d[1].src=a.src}$("div:eq(0)",c).css("visibility",b)}function activateInlineWindow(b){var d,h,a=0,e,g,f=document.body.offsetWidth-800,c=f/2;if(c<=0){c=0}if(document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{if(document.body.offsetHeight){a=document.body.offsetHeight}}e=a-$(document.getElementById(b)).height();g=e/2;if(g<=0){g=0}if(window.pageYOffset){g+=window.pageYOffset}else{if(document.body.scrollTop){g+=document.body.scrollTop}else{if(document.documentElement.scrollTop){g+=document.documentElement.scrollTop}}}c+="px";g+="px";if(!document.getElementById("inlinewindowOverlay")){$(document.body).append("<div id='inlinewindowOverlay'></div>")}d=window.innerHeight;if(window.scrollMaxY){d+=window.scrollMaxY}if(!d){d=document.body.clientHeight}$(document.getElementById("inlinewindowOverlay")).show();if(document.getElementsByTagName("body")[0].scrollHeight<d){h=d}else{h=document.getElementsByTagName("body")[0].scrollHeight}document.getElementById("inlinewindowOverlay").style.height=h+"px";$("#"+b).show().css({top:g,left:c,"z-index":"1000"})}function deactivateInlineWindow(a){$("#inlinewindowOverlay").remove();$(document.getElementById(a)).hide();$(document.getElementById(a)).attr({style:"top:128px;left:119px;"})}function iwLoadElementsFromFile(c,e,d,a){var b=$.ajax({url:c,beforeSend:function(){if(a){if(a.preloader&&a.preloaderElement){var f="<img src='"+a.preloader+"' />";$("#"+e+" "+a.preloaderElement).html(f)}}},success:function(g){var f;for(f in d){if(d.hasOwnProperty(f)){$("#"+e+" ."+f).html($(b.responseText).find(d[f]).html());activateInlineWindow(e)}}if(a){if(a.iwTitle){$("#"+e+" .titleHeadline").text(a.iwTitle)}}},error:function(f){if(a){if(a.preloaderElement){$(a.preloaderElement).text(b.status)}}}})}$(document).ready(function(){var a;$(".activateInlineWindow").click(function(){var b="inlineWindow_"+$(this).attr("id"),c;activateInlineWindow(b);if($(this).hasClass("iwTitle")){c=$(this).attr("title")}if($(this).hasClass("iwLoader")){a=$(this).attr("href");iwLoadElementsFromFile(a,b,{titleHeadline:"#iwPageHeadline",contentText:"#iwPageCopy"},{preloader:"/assets/images/global/ajax-loader.gif",preloaderElement:".contentText",iwTitle:c})}return false});$(".deactivateInlineWindow").click(function(){deactivateInlineWindow("inlineWindow_"+($(this).attr("id").replace(/(\w[^\n\r$]+)_/,"")))});$(".activateInlineWindow,.generateMousePointer").attr({style:"cursor:pointer"})});function browseContinents(a){var b=$(a).attr("id").replace("activate","");$(a).parent().siblings().children().removeClass("continentActive");$(a).addClass("continentActive");$(document.getElementById("iwWorldWide"+b)).siblings().hide();$(document.getElementById("iwWorldWide"+b)).show()};
