var oUnitThemestage={init:function(){this.setEvents('.unitthemestage');this.setTabContent('.unitthemestage')},setEvents:function(sCssPath){sCssPath=(sCssPath!=undefined&&sCssPath!=''?sCssPath+' ':'');$(sCssPath+'[data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))},setTabContent:function(sCssPath){sCssPath=(sCssPath!=undefined&&sCssPath!=''?sCssPath+' ':'');$(sCssPath+'[data-tab-content]:not([data-tab-content=""])').each($.proxy(function(lIndex,oElement){var oContainer=$(sCssPath+'[data-tab-container='+$(oElement).attr('data-tab-content')+']').html($(oElement).html())},this))},toggleTab:function(lCurrent,oEvent){oTab=$('.unitthemestage .tabs .tab').eq(lCurrent);var oMain=oTab.closest('[data-unit-layoutkey]');var sLayoutKey=oMain.attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].toggleTab)=='function'){}else{oTab.siblings('.tab').removeClass('active').find('.tabContent').slideUp();oTab.addClass('active').find('.tabContent').slideDown()}},getOffset:function(){return 0},next:function(oElement){oElement=$(oElement);var oMain=oElement.closest('[data-unit-layoutkey]');var sLayoutKey=oMain.attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{var oNext=$('[data-unit-scroll-to]',oMain).first();if(!oNext.length)return;$('body, html').animate({scrollTop:oNext.offset().top+this.getOffset(oNext)})}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitThemestage.init()})});var oUnitContent={init:function(){this.setEvents('.unitintro');this.initSocialShares()},setEvents:function(sCssPath){sCssPath=(sCssPath!=''?sCssPath+' ':sCssPath);if(typeof(Prototype)=='undefined'){$(sCssPath+' [data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))}else{$$(sCssPath+' [data-unit-event]:not([data-unit-event=""])').each(function(oElement,lIndex){var sParams,sFunction;sFunction=oElement.readAttribute('data-unit-event-function');sParams=oElement.readAttribute('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')}.bind(this))}.bind(this))}},initSocialShares:function(){if(typeof(Prototype)=='undefined'){$('.unitbycodedetail div.authorbox div.share a[data-share]').each(function(i,oElement){oElement=$(oElement);var sKey=oElement.attr('data-share');oElement.on('click',function(){var oOpenGraph={title:undefined,description:undefined,url:undefined,site_name:undefined,image:undefined};$("meta[property^='og:']").each(function(){oOpenGraph[$(this).attr('property').substr(3)]=$(this).attr('content')});if(sKey=='facebook'){var sUrl='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='twitter'){var sUrl='https://twitter.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='pinterest'){var sUrl='https://www.pinterest.com/pin/create/button/?url='+encodeURI(oOpenGraph.url)+'&media='+encodeURI(oOpenGraph.image)+'&description='+encodeURI(oOpenGraph.title).replace('&','%26')+' '+encodeURI(oOpenGraph.description).replace('&','%26')+' '+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='googleplus'){var sUrl='https://plus.google.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}})})}else{$$('.unitbycodedetail div.authorbox div.share a[data-share]').each(function(oElement,i){var sKey=oElement.readAttribute('data-share');oElement.on('click',function(){var oOpenGraph={title:undefined,description:undefined,url:undefined,site_name:undefined,image:undefined};$$("meta[property^='og:']").each(function(){oOpenGraph[$(this).attr('property').substr(3)]=$(this).attr('content')});if(sKey=='facebook'){var sUrl='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='twitter'){var sUrl='https://twitter.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='pinterest'){var sUrl='https://www.pinterest.com/pin/create/button/?url='+encodeURI(oOpenGraph.url)+'&media='+encodeURI(oOpenGraph.image)+'&description='+encodeURI(oOpenGraph.title).replace('&','%26')+' '+encodeURI(oOpenGraph.description).replace('&','%26')+' '+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='googleplus'){var sUrl='https://plus.google.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}})})}},next:function(oElement){if(typeof(Prototype)=='undefined'){oElement=$(oElement);var sLayoutKey=oElement.closest('[data-unit-layoutkey]').attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}}else{var sLayoutKey=oElement.up('[data-unit-layoutkey]').readAttribute('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}}}};onScrMngrLoaded(function(){if(typeof(Prototype)=='undefined'){$(document).ready(function(){oUnitContent.init()})}else{document.observe('dom:loaded',function(){oUnitContent.init()})}});var oUnitList={init:function(){this.setEvents('.unitlist');this.drawIcons();this.checkAndSetDetailLink();this.moveIntro();$('.unitlist.list').each($.proxy(function(i,o){var sLayoutKey=$(o).attr('data-unit-layoutkey');if(sLayoutKey!==undefined&&this[sLayoutKey]&&typeof(this[sLayoutKey].onInit)=='function'){this[sLayoutKey].onInit(o)}},this))},setEvents:function(sCssPath){sCssPath=(sCssPath!=''?sCssPath+' ':sCssPath);$(sCssPath+'[data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))},drawIcons:function(){$('.unitlist.list .elementicon[data-unit-icon]:not([data-unit-icon=""])').each($.proxy(function(lIndex,oElement){this.drawIcon($(oElement),eval($(oElement).attr('data-unit-icon')))},this))},drawIcon:function(oElement,oIcon){if(!oElement||!oElement.length||!oIcon)return;$(oElement).html('');if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oIcon.setViewBox(oPaper);var oIconSet;if(typeof(oIcon.types)=='function'){oIconSet=oPaper.add(oIcon.types(oElement))}else{oIconSet=oPaper.add(oIcon.types)}return{'oIcon':oPaper,'oIconSet':oIconSet}},next:function(oElement){oElement=$(oElement);var sLayoutKey=oElement.closest('[data-unit-layoutkey]').attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}},checkAndSetDetailLink:function(){$('.unitlist.list[data-unit-elementlinked="true"]').each(function(){$('[data-unit-detaillink]:not([data-unit-detaillink=""])',$(this)).each(function(lIndex,oElement){oElement=$(oElement);oElement.addClass('hover');$$(oElement).find('a[class!="liveedit"]').each(function(){$(this).removeAttr("href")});oElement.click(function(o){if(!$(o.target).closest('div.liveedit').length){if($(oElement).attr('data-unit-detaillink-target')!=undefined&&$(oElement).attr('data-unit-detaillink-target')!=''){window.open(oElement.attr('data-unit-detaillink'),$(oElement).attr('data-unit-detaillink-target'))}else{window.location.href=oElement.attr('data-unit-detaillink')}}})})})},moveIntro:function(){$$('.unitlist.filter').each(function(){if($(this).find('.mainintro').size()>0){$(this).prepend($(this).find('.mainintro'))}})},filter:{init:function(options){if(this.bInit!=true){this.options=$.extend({sSharedKey:'',sAjaxUrl:'',sAjaxContainer:'unitlist',sLabelBox:'unitlistlabelbox',sLabelIDs:'',sSearchTerm:'',oCheckBoxAll:undefined,onChangeIcon:function(){},bFormClass:false},options||{});this.oLoading=$('#unitlistfilterloading');this.options.onChangeIcon()}this.bInit=true},checkBox:function(oElement){oElement=$(oElement);var sValue=oElement.val();if(oElement.prop("checked")==true){if(this.options.sLabelIDs!='')this.options.sLabelIDs+=',';this.options.sLabelIDs+=sValue}else{this.options.sLabelIDs=(','+this.options.sLabelIDs).replace(','+sValue,'');if(this.options.sLabelIDs.substr(0,1)==','){this.options.sLabelIDs=this.options.sLabelIDs.slice(1,this.options.sLabelIDs.length)}if(this.options.sLabelIDs.substr(this.options.sLabelIDs.length-1,this.options.sLabelIDs.length)==','){this.options.sLabelIDs=this.options.sCategoryIDs.slice(0,this.options.sLabelIDs.length-1)}}if(this.options.bFormClass){this.setCheckboxValue(oElement,oElement.prop("checked"));this.options.onChangeIcon()}if(this.options.oCheckBoxAll){if(this.options.sLabelIDs==''){this.setCheckboxValue(this.options.oCheckBoxAll,true)}else{this.setCheckboxValue(this.options.oCheckBoxAll,false)}this.options.onChangeIcon()}this.loadAjax()},searchText:function(oElement,oEvent){if(oEvent.keyCode==13){this.options.sSearchTerm=$(oElement).val();this.loadAjax()}},resetCheckBox:function(){this.options.sLabelIDs='';if($('#unitlistlabelbox')){var oCheckBox=this.options.oCheckBoxAll;var oThat=this;$('#unitlistlabelbox input[type="checkbox"]').each(function(i,o){if(o==oCheckBox[0]){oThat.setCheckboxValue(o,true)}else{oThat.setCheckboxValue(o,false)}})}this.options.onChangeIcon();this.loadAjax()},setCheckboxValue:function(oElement,bChecked){oElement=$(oElement);oElement.prop("checked",bChecked);if(this.options.bFormClass){if(bChecked){$(oElement).prev('span').addClass('checked')}else{$(oElement).prev('span').removeClass('checked')}}},setLabelID:function(oElement,lLabelID){var oSelect;oElement=$(oElement);this.options.sLabelIDs=lLabelID;$('#'+this.options.sLabelBox+' div.active').removeClass('active');oSelect=$('#UnitListFilterFormlistlabels');if(oSelect.length){if(lLabelID==-1)lLabelID='All';oSelect.val(lLabelID);oSelect.next('span.select').html(oSelect.children(':selected').text())}oElement.addClass('active');this.loadAjax()},setLabelIdBySelect:function(oElement){this.options.sLabelIDs=$F(oElement);var sValue=this.options.sLabelIDs;if(sValue=='All')sValue=-1;$('#'+this.options.sLabelBox+' div.active').removeClass('active');$('#unitlistlabelbox [data-unit-list-labelid='+sValue+']').addClass('active');this.loadAjax()},loadAjax:function(){if($(this.oLoading).size()>0){$(this.oLoading).show()}var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");var sAjaxCont=this.options.sAjaxContainer;var oLoad=this.oLoading;$.ajax(msie>0?encodeURI(this.options.sAjaxUrl):this.options.sAjaxUrl,{data:{sLabelIDs:this.options.sLabelIDs,sSharedKey:this.options.sSharedKey,sSearchTerm:this.options.sSearchTerm,sPageKey:'Select',sUnitKey:'UnitList'},type:"POST",success:function(data){if(oLoad){oLoad.hide()}$('#'+sAjaxCont).html(data).find("script").each(function(){eval($(this).text())});$('#'+sAjaxCont+" picture").each(function(){if(typeof(Prototype)=='undefined'){if(typeof $.fn.convertPictureToImg!='undefined')$(this).convertPictureToImg()}else{$(this).convertPictureToImg()}});$('[data-carousel="true"]').each(function(lIndex,oElement){initCarousel(this)});var oContainer=$('#'+sAjaxCont).find('[data-unit-layoutkey]');if(oContainer.length){var sLayoutKey=$(oContainer).attr('data-unit-layoutkey');if(sLayoutKey!==undefined&&oUnitList[sLayoutKey]&&typeof(oUnitList[sLayoutKey].onInit)=='function'){oUnitList[sLayoutKey].onInit(oContainer)}}if(typeof($.fn.convertVideo)=='function'){$('div.ajaxlist video[data-resize="true"]').convertVideo()}var oMainIntroElement=$('.unitlist.list .mainintro');if(oMainIntroElement.size()>0){oMainIntroElement.hide()}oUnitList.checkAndSetDetailLink()}})}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitList.init()})});oUnitList.layout7={oIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,38,15,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M 27.0713 15 L 19.1704 3.4305 L 11.6193 14.9454 L 6.2999 8.1213 L 1.6416 13.9548 C 1.3047 14.3749 0.7163 14.4257 0.3264 14.0643 C -0.0653 13.7048 -0.1108 13.0737 0.2244 12.6537 L 6.3163 5.0227 L 11.4918 11.6632 L 19.1376 0 L 27.0677 11.6085 L 31.5328 5.0326 L 37.7667 12.6439 C 38.1092 13.0602 38.0691 13.691 37.6829 14.0564 C 37.2968 14.4198 36.7064 14.3788 36.3677 13.9646 L 31.6712 8.2286 L 27.0713 15 Z',fill:oElement.css('color'),stroke:'none'}]}}};oUnitContent.introlayout2={getOffset:function(){return 0},next:function(oElement){oElement=$(oElement).closest('article.innerIntro');var oNext=$('[data-unit-scroll-to]',oElement);if(!oNext.length)return;$('body, html').animate({scrollTop:oNext.offset().top+this.getOffset(oNext)})}};function renderDefaultIcons(sParent){sParent=sParent==undefined?'':sParent+' ';$(sParent+"*.icon1 ul li, "+sParent+"ul.icon1 li").each(function(){var oElement=$('> svg.icon-ul',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<svg class="icon icon-ul"><use xlink:href="#icon-ul"></use></svg>'+$(this).html());oElement=$('> svg.icon-ul',this)}});$(sParent+"*.link, *.button1").each(function(){$(this).append('<svg class="icon icon-custom-arrow"><use xlink:href="#icon-custom-arrow"></use></svg>')});$(sParent+"*.back").each(function(){$(this).prepend('<svg class="icon icon-custom-arrow"><use xlink:href="#icon-custom-arrow"></use></svg>')})}function positionBreadcrumb(){var oBreadcrumb=$('[itemprop="breadcrumb"]');if(!oBreadcrumb.length)return;var oContainer=$('[data-breadcrumb="true"]').first().find('[data-breadcrumb-container="true"]');if(!oContainer.length)return;oContainer.html(oBreadcrumb[0].outerHTML);oBreadcrumb.remove()}function initObjectFit(sType,oContext){oContext=oContext||document;var oObjects=$('[data-object-fit="'+sType+'"]',$(oContext));oObjects.each(function(i,o){var oPicture,oVideo,oImg;var oElement=$(o);var bUseCssObjectFit=oElement.attr('data-object-fit-css');if(bUseCssObjectFit=='true'){bUseCssObjectFit=true}else if(bUseCssObjectFit=='false'){bUseCssObjectFit=false}else{bUseCssObjectFit=undefined}if(oElement.is('img'))oElement=oElement.parent();if(oElement.data('bInitObjectFit')==true){oElement.objectFit(sType,bUseCssObjectFit)}else{oElement.data('bInitObjectFit',true);if(oElement.is('picture')||oElement.find('picture').length||oElement.is('video')||oElement.find('video').length){if(oElement.is('picture')){oPicture=oElement}else if(oElement.is('video')){oVideo=oElement}else{oPicture=oElement.find('picture');oVideo=oElement.find('video')}oPicture.each(function(){oImg=$(this).find('img');if(oImg.length){$('<img />').load(function(){oElement.objectFit(sType,bUseCssObjectFit)}).attr('src',oImg.attr('src'))}else{$(this).on('image:load',function(){$(this).closest('[data-object-fit="'+sType+'"]').objectFit(sType,bUseCssObjectFit)})}});oVideo.each(function(){if($(this).attr('bVideoConverted')=='true'){oElement.objectFit(sType,bUseCssObjectFit)}else{$(this).one('video:converted',$.proxy(function(){$(this).closest('[data-object-fit="'+sType+'"]').objectFit(sType,bUseCssObjectFit)},this))}})}else if(oElement.find('img').length){oElement.find('img').each(function(){$('<img />').load(function(){oElement.objectFit(sType,bUseCssObjectFit)}).attr('src',$(this).find('img').attr('src'))})}}})}function initAdaptHeight(oContext){oContext=oContext||document;$('[data-adapt-height="true"]',$(oContext)).each(function(i,o){var oElement=$(this);if(oElement.data('bInitAdaptHeight')!==true){oElement.data('bInitAdaptHeight',true);var lMinWidth=parseInt(oElement.attr('data-adapt-height-min-width'),10)||0;var lMinHeight=parseInt(oElement.attr('data-adapt-height-min-height'),10)||0;RespHelper.on('resize:change',$.proxy(function(){var oElem=$(this);var sSelector=oElement.attr('data-adapt-height-selector');var lHeight=$(window).height();var lLastHeight=oElem.data('lLastAdaptedHeight')||-1;var lMultiplier=parseInt(oElement.attr('data-adapt-height-multiplier'),10)||1;lHeight=lHeight*lMultiplier;if(sSelector!=undefined&&sSelector!=''){$(sSelector).each(function(){lHeight-=$(this).outerHeight()})}if(lHeight>$(window).width()&&lMinHeight>0){lHeight=lMinHeight}if(lLastHeight==lHeight&&oElement.hasClass('adapted-height'))return;oElem.data('lLastAdaptedHeight',lHeight);oElem.css('height',lHeight);oElem.addClass('adapted-height');initObjectFit('cover',oElem.parent())},this),{lMinWidth:lMinWidth+1,lMinHeight:lMinHeight+1,sOperator:'and'});if(lMinWidth>0||lMinHeight>0){RespHelper.on('resize:change',$.proxy(function(){var oElem=$(this);if(!oElem.hasClass('adapted-height'))return;oElem.css('height','');oElem.removeClass('adapted-height');initObjectFit('cover',oElem.parent())},this),{lMaxWidth:lMinWidth,lMaxHeight:lMinHeight})}}});RespHelper.fire('resize:change')}$(function(){positionBreadcrumb();initAdaptHeight();initObjectFit('cover');var resizeTimer;$(window).resize(function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){$('[data-object-fit="cover"]').objectFit('cover')},200)});renderDefaultIcons();var aFeatures=['transition','transform'];var sPrefix;for(var i=0;i<aFeatures.length;i++){sPrefix='no';if(detectCSSFeature(aFeatures[i]))sPrefix='with';$(document.body).addClass(sPrefix+aFeatures[i])}});function detectCSSFeature(sFeatureName){var bFeature=false;var aDomPrefixes='Webkit Moz ms O'.split(' ');var oBody=document.body;var sFeatureNameCapital;sFeatureName=sFeatureName.toLowerCase();if(oBody.style[sFeatureName]!==undefined){bFeature=true}if(bFeature===false){sFeatureNameCapital=sFeatureName.charAt(0).toUpperCase()+sFeatureName.substr(1);for(var i=0;i<aDomPrefixes.length;i++){if(oBody.style[aDomPrefixes[i]+sFeatureNameCapital]!==undefined){bFeature=true;break}}}return bFeature}function setColorLuminance(sColor,fLum){if(sColor.substr(0,3)=='rgb'){eval('sColor = rgb2hex'+sColor.substr(3))}sColor=String(sColor).replace(/[^0-9a-f]/gi,'');if(sColor.length<6){sColor=sColor[0]+sColor[0]+sColor[1]+sColor[1]+sColor[2]+sColor[2]}fLum=fLum||0;var sRgb="#",c,i;for(i=0;i<3;i++){c=parseInt(sColor.substr(i*2,2),16);c=Math.round(Math.min(Math.max(0,c+(c*fLum)),255)).toString(16);sRgb+=("00"+c).substr(c.length)}return sRgb}function rgb2hex(r,g,b){return'#'+r.toString(16)+g.toString(16)+b.toString(16)}oTabs={oContainers:undefined,oTabs:undefined,init:function(){if(this.oContainers){this.oContainers.each(function(i,obj){if(i>0)$(obj).removeClass('active')})}},open:function($this,$container){this.closeAll();$container.addClass('active');$this.addClass('active');var oOWLObject=$container.find('div.innerTeaserT1').data('owlCarousel');if(oOWLObject)oOWLObject.onResize()},closeAll:function(){if(this.oContainers)this.oContainers.removeClass('active');if(this.oTabs)this.oTabs.removeClass('active')}};function changeFilterValue(oElement,sValue){$(oElement).siblings().removeClass('active');$(oElement).toggleClass('active');if($('#ReferencesT1LabelID').val()==sValue){$('#ReferencesT1LabelID').val('')}else{$('#ReferencesT1LabelID').val(sValue)}}function submitReferencesT1Form(){$('div.ReferencesT1Loader').show();ReferencesT1.checkFormular(ReferencesT1Data)}function setReferencesT1MinHeight(){$('#ReferencesT1ListContent').css({'min-height':$('#ReferencesT1ListContent').width()*770/1170})}var oMenu={lTabletWidth:1280,lMobileWidth:680,mobileOpen:function(){},init:function(){$('nav.mainmenu>ul>li').on('mouseenter',function(event){var bTabletorMobile=window.innerWidth<oMenu.lTabletWidth;if(!bTabletorMobile){var oElement=$(event.delegateTarget);oElement.addClass('open')}});$('nav.mainmenu>ul>li').on('mouseleave',function(event){var bTabletorMobile=window.innerWidth<oMenu.lTabletWidth;if(!bTabletorMobile){var oElement=$(event.delegateTarget);oElement.removeClass('open')}});$('nav.mainmenu>ul>li').on('click',function(event){event.stopPropagation();var oElement=$(event.currentTarget);var oTargetElement=$(event.target);var bTablet=window.innerWidth<oMenu.lTabletWidth&&oMenu.lMobileWidth<window.innerWidth;var bMobile=window.innerWidth<oMenu.lMobileWidth;var bTopElementClicked=oElement[0]===oTargetElement.parent()[0];var bHasSubmenu=!!oElement.find('.sub').length;if((bTablet||bMobile)&&(bTopElementClicked&&bHasSubmenu)){event.preventDefault()}if(bMobile){oElement.toggleClass('open')}else{oElement.parent().find('li').removeClass('open');oElement.addClass('open');$('body').one('click',function(){oElement.parent().find('li').removeClass('open')})}})}};$(window).one('load',function(){oMenu.init()});function filterGoogleMapV1(oElement,oMap,sLabel){oElement=$(oElement);if(oElement.hasClass('aktiv')){oElement.removeClass('aktiv');oMap.hideLabel(sLabel);if(oElement.closest('ul').select('li.aktiv').length==0){oMap.showAll()}}else{oElement.addClass('aktiv');oMap.showLabel(sLabel)}}