
jQuery(document).ready(function(){jQuery("body div").hover(function(){})});if(typeof NELibs==='undefined')var NELibs={};if(typeof NELibs.browser==='undefined')NELibs.browser={};NELibs.currentLoadingFiles=[];NELibs.init=function(){if(window.jQuery){for(var k in NELibs.browser){var className=NELibs.browser[k];if(k.substr(0,3)==="is_")if(NELibs.browser[k]==='1'){className=k.substr(3)}else className="";if(k==="version")if(NELibs.browser[k]){var major_version=NELibs.browser[k].split('.');className="v_"+major_version[0]}else className="";if(typeof className==="string"){className=className.toLowerCase();className=className.replace(/-/g,"_");className=className.replace(/ /g,"_");className=className.replace(/\./g,"_");jQuery("body").addClass(className)}};var langKeyClass="lang_"+NELibs.langkey,countryCodeClass="country_code_"+NELibs.countryCode.toLowerCase();jQuery("body").addClass(langKeyClass+" "+countryCodeClass)};NELibs.translate_colorbox()};NELibs.translate_colorbox=function(){if(typeof($.colorbox)!=="undefined"){$.colorbox.settings.current=NELibs.ll('colorbox_current');$.colorbox.settings.previous=NELibs.ll('colorbox_previous');$.colorbox.settings.next=NELibs.ll('colorbox_next');$.colorbox.settings.close=NELibs.ll('colorbox_close');$.colorbox.settings.xhrError=NELibs.ll('colorbox_xhrError');$.colorbox.settings.imgError=NELibs.ll('colorbox_imgError')}};NELibs.browser.isIE=function(){if(NELibs.browser.name==="Internet Explorer")return true;return false};NELibs.browser.isIElte=function(version){if(NELibs.browser.name==="Internet Explorer")if(NELibs.browser.version<=version)return true;return false};NELibs.getAjaxUrl=function(){return NELibs.g('ajaxurl')};NELibs.getBaseUrl=function(){var baseurl=NELibs.g('baseurl');if(baseurl.substr(-1,1)!=="/")baseurl=baseurl+"/";return baseurl};NELibs.getLangId=function(){return NELibs.g('langid')};NELibs.getLangKey=function(){return NELibs.g('langkey')};NELibs.getLangKey_alt=function(){return NELibs.g('langkey_alt')};NELibs.getPageId=function(){return NELibs.g('pageid')};NELibs.g=function(varname){if(typeof(NELibs[varname])!=='undefined'){return NELibs[varname]}else return''};NELibs.in_array=function(needle,haystack,argStrict){var key='',strict=!!argStrict;if(strict){for(key in haystack)if(haystack[key]===needle)return true}else for(key in haystack)if(haystack[key]===needle)return true;return false};NELibs.layoutdiff=function(){NELibs.loadJs("../JavaScript/newego/jquery.layoutdiff.js")};NELibs.checkFileIsLoaded=function(file){var files=NELibs.getLoadedJsCss(),myExt=NELibs.getFileExtFromUrl(file);if(typeof(files[myExt])==='undefined')return false;if(NELibs.in_array(file,files[myExt]))return true;return false};NELibs.getLoadedJsCss=function(){var c=document.getElementsByTagName("head")[0].children,ret={};ret.css=[];ret.js=[];for(var k in c){var item=c[k],path='',type='';if(typeof(item.href)!=='undefined'){path=item.href;type="css"};if(typeof(item.src)!=='undefined'){path=item.src;type="js"};if(path==='')continue;if(typeof(item.rel)!=='undefined'&&item.rel==='preload')continue;var ext=NELibs.getFileExtFromUrl(path);if(type===ext)ret[type][ret[type].length]=path};return ret};NELibs.getFileExtFromUrl=function(fileUrl){var path_=fileUrl.split("?"),path__=path_[0].split("/"),basename=path__[path__.length-1],basename_=basename.split("."),ext=basename_[basename_.length-1];return ext};NELibs.loadJS_=function(absPath,callbackFunc){var fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",absPath);var normalizedAbsPath=fileref.src;if(NELibs.checkFileIsLoaded(normalizedAbsPath)){if(typeof callbackFunc==='function'){chkFile=function(callbackFunc){if(NELibs.currentLoadingFiles[normalizedAbsPath]===1){window.setTimeout(function(){chkFile(callbackFunc)},1)}else callbackFunc()};chkFile(callbackFunc)};return};NELibs.currentLoadingFiles[normalizedAbsPath]=1;var onloadedCB=function(){NELibs.currentLoadingFiles[normalizedAbsPath]=0;if(typeof callbackFunc==='function')callbackFunc()};fileref.onload=onloadedCB;fileref.onreadystatechange=function(){window.setTimeout(onloadedCB,50)};document.getElementsByTagName("head")[0].appendChild(fileref)};NELibs.loadJs=function(file,callbackFunc){var absPath=NELibs.getBaseUrl();absPath=absPath+"typo3conf/ext/ne_flibs/Resources/Public/Lib/";absPath=absPath+file;NELibs.loadJS_(absPath,callbackFunc)};NELibs.loadCss_=function(absPath,callbackFunc){var fileref=document.createElement("link");fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",absPath);var normalizedAbsPath=fileref.href;if(NELibs.checkFileIsLoaded(normalizedAbsPath)){if(typeof callbackFunc==='function')callbackFunc();return};var onloadedCB=function(){NELibs.currentLoadingFiles[normalizedAbsPath]=0;if(typeof callbackFunc==='function')callbackFunc()};fileref.onload=onloadedCB;fileref.onreadystatechange=function(){window.setTimeout(onloadedCB,50)};document.getElementsByTagName("head")[0].appendChild(fileref)};NELibs.loadCss=function(file,callbackFunc){var absPath=NELibs.getBaseUrl();absPath=absPath+"typo3conf/ext/ne_flibs/Resources/Public/plugins/";absPath=absPath+file;NELibs.loadCss_(absPath,callbackFunc)};NELibs.preloadCss=function(){var urlParserElement=document.createElement('a'),links=document.getElementsByTagName('link');for(var i=0;i<links.length;i++){var l=links[i];urlParserElement.href=l.href;var path=urlParserElement.pathname,isCss=path.substr(-4).toLowerCase()==='.css',isCssGzip=path.substr(-9).toLowerCase()==='.css.gzip';if(l.rel==='preload'&&(isCss||isCssGzip)){var l2=l.cloneNode(false);l2.removeAttribute('as');l2.setAttribute('rel','stylesheet');l.parentNode.insertBefore(l2,l.nextSibling)}}};NELibs.loadLoadMask=function(callbackFunc){NELibs.loadJs("jquery.plugins/jquery.loadmask/jquery.loadmask.js",callbackFunc);NELibs.loadCss("../Lib/jquery.plugins/jquery.loadmask/images/jquery.loadmask.css")};NELibs.loadVideoJs=function(callbackFunc){NELibs.loadCss("../Lib/video-js/video-js.css");NELibs.loadJs("video-js/video.js",function(){var absPath=NELibs.getBaseUrl();absPath=absPath+"typo3conf/ext/ne_flibs/Resources/Public/Lib/";absPath=absPath+"video-js/video-js.swf";videojs.options.flash.swf="http://example.com/path/to/video-js.swf";if(typeof callbackFunc!=='undefined')callbackFunc()})};NELibs.mask=function(JElem,text){if(typeof text==='undefined')text='';NELibs.loadLoadMask(function(){JElem.mask(text)})};NELibs.unmask=function(JElem){NELibs.loadLoadMask(function(){JElem.unmask()})};NELibs.getAjaxUrlNE=function(extensionKey,dataArray,with_no_cache,use_escape){if(typeof use_escape==='undefined')use_escape=true;var url=NELibs.getAjaxBaseUrl(with_no_cache);url+="&ajx="+extensionKey;if(typeof dataArray==='object')for(var i in dataArray){var v=dataArray[i];if(use_escape)v=encodeURIComponent(v);url+="&"+i+"="+v};return url};NELibs.getAjaxBaseUrl=function(with_no_cache){if(typeof with_no_cache==='undefined')with_no_cache=false;var u='';u+=NELibs.getAjaxUrl();if(u.indexOf('?')===-1)u+='?';if(with_no_cache)u+=NELibs.cache_param();return u};NELibs.cache_param=function(){var csh=new Date().getTime();return"&cache_param="+csh};NELibs.redirect_url=function(url){window.location.href=url};NELibs.scrollAnchor=function(jquerySelector_To,duration,offset_add){if(typeof offset_add==='undefined')offset_add=0;if(typeof duration==='undefined')duration=0;NELibs.scrollTop($(jquerySelector_To).offset().top+offset_add,duration)};NELibs.scrollTop=function(offset,duration){$('html').animate({scrollTop:offset},duration);$('body').animate({scrollTop:offset},duration)};NELibs.getClassBeginningWith=function(jquery_obj,startClassName,without_start){if(typeof without_start==='undefined')without_start=false;var reg=new RegExp(" "+startClassName+"[^ ]*","gi"),cls=" "+jquery_obj.attr('class')+" ",ret=reg.exec(cls),str='';if(ret!==null&&typeof ret!=='undefined'&&typeof(ret[0])!=='undefined')str=ret[0];if(without_start)str=str.replace(startClassName,"");str=$.trim(str);return str};NELibs.validate={};NELibs.validate.email=function(email){var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(reg.test(email)===false)return false;return true};NELibs.ll=function(transKey,langKey){if(typeof langKey==='undefined')langKey=NELibs.getLangKey();if(typeof(NELibs.lldata)==="undefined")return"";if(typeof(NELibs.lldata[langKey])==="undefined")return"";if(typeof(NELibs.lldata[langKey][transKey])==="undefined")return"";return NELibs.lldata[langKey][transKey]};NELibs.lang={};NELibs.lang.de={};NELibs.lang.de.months=new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");NELibs.lang.en={};NELibs.lang.en.months=new Array("January","February","March","April","May","June","July","August","September","October","November","December");NELibs.lang.getMonth=function(monthIndex){return NELibs.lang.getLL("months",monthIndex)};NELibs.lang.getLL=function(typekey,index,langkey,alt_langkey){if(typeof langkey==='undefined')langkey=NELibs.getLangKey();if(typeof(NELibs.lang[langkey])!=='undefined')if(typeof(NELibs.lang[langkey][typekey])!=='undefined')if(typeof(NELibs.lang[langkey][typekey][index])!=='undefined')return NELibs.lang[langkey][typekey][index];if(typeof alt_langkey==='undefined')alt_langkey=NELibs.getLangKey_alt();if(alt_langkey!==langkey)return NELibs.lang.getLL(typekey,index,alt_langkey);return''};NELibs.winheight=function(){var h=$(window).height();h=parseInt(h);if(typeof(window.orientation)==="undefined")if(typeof screen!=='undefined')if(typeof(screen.availHeight)!=='undefined')if(NELibs.browser.is_tablet){var wih=$(window).innerHeight(),sah=screen.availHeight;sah=parseInt(sah);wih=parseInt(wih);if(wih>sah)h=sah};if(h<568)if(window.orientation===0||window.orientation===180){if(typeof screen!=='undefined')if(typeof(screen.availHeight)!=='undefined')if(NELibs.browser.is_mobile){var sH=screen.availHeight;h=sH;h=parseInt(h)}}else if(typeof screen!=='undefined')if(typeof(screen.availHeight)!=='undefined')if(NELibs.browser.is_mobile){var sH=screen.availWidth;h=sH;h=parseInt(h)};return h};NELibs.setCookie=function(c_name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var c_value=escape(value)+((exdays===null)?"":"; expires="+exdate.toUTCString());c_value=c_value+";path="+window.location.pathname;document.cookie=c_name+"="+c_value};NELibs.getCookie=function(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);x=x.replace(/^\s+|\s+$/g,"");if(x===c_name)return unescape(y)}};NELibs.printElement=function(element){if(typeof element==='undefined'){l("print element is undefined");return};var frame=document.createElement('iframe');frame.id=frame.name="printf";frame.style.display='none';document.body.appendChild(frame);var frameHead=frame.contentWindow.document.head||frame.contentWindow.document.getElementsByTagName("head")[0],frameBody=frame.contentWindow.document.body||frame.contentWindow.document.getElementsByTagName("body")[0];if(!frameHead||!frameBody){frame.contentWindow.document.write("<html><head></head><body></body></html>");frameHead=frame.contentWindow.document.head||frame.contentWindow.document.getElementsByTagName("head")[0];frameBody=frame.contentWindow.document.body||frame.contentWindow.document.getElementsByTagName("body")[0]};var linkTags=document.getElementsByTagName('link');for(var i=0;i<linkTags.length;++i){var link=linkTags[i];if(link.rel.toLowerCase()==='stylesheet')frameHead.appendChild(link.cloneNode(true))};frameBody.appendChild(element.cloneNode(true));frameBody.style.visibility='visible';frame.contentWindow.document.close();frame.style.display='block';frame.contentWindow.focus();frame.contentWindow.print();document.body.removeChild(frame)};NELibs.registerClickCollector=function(){$('body').on('click','.js_item_clickcollect',function(event){if(event.target.tagName==='A')return;var $target=$(this).find('.js_item_clicktarget:first');if($target.length===0)$target=$(this).find('a:first');if($target.length===0)return;if(event.target===$target[0])return;if(document.createEvent){var evt=document.createEvent('MouseEvent');evt.initEvent('click',true,true);$target[0].dispatchEvent(evt);return false}else if(document.createEventObject){$target[0].click();return false}})}
function l(v){if(typeof console!=='undefined')if(typeof(console.log)!=='undefined')console.log(v)}
function dp(optionalMessage){l(arguments.callee.caller);if(typeof optionalMessage!=="undefined")l(optionalMessage)};window.onload=function(){NELibs.init()};NELibs.preloadCss();
(function($,window){var hoverHelper='hoverHelper',init=function(){$('.js_hover').unbind('mouseenter.js_hover');$('.js_hover').unbind('mouseleave.js_hover');$('.js_hover').bind('mouseenter.js_hover',function(){var duration=parseInt($(this).data('hover-transition'),10)||0;$(this).addClass('hovered',duration)});$('.js_hover').bind('mouseleave.js_hover',function(){var duration=parseInt($(this).data('hover-transition'),10)||0;$(this).removeClass('hovered',duration)});var els1=$('.js_hover.hovered'),els2=$('.js_hover:not(.hovered)');els1.removeClass('hovered');els2.addClass('hovered');window.setTimeout(function(){els1.addClass('hovered');els2.removeClass('hovered');$(document).data('hoverInitialized',true);var upG=$(document).data('hoverNeedUpgrade');if(typeof upG!=='undefined')if(upG===true){$(document).data('hoverNeedUpgrade',false);$.hoverHelper()}},1)},publicMethod=$.fn[hoverHelper]=$[hoverHelper]=function(){var d=$(document).data('hoverInitialized');if(typeof d!=='undefined')if(d===false){$(document).data('hoverNeedUpgrade',true);return};$(document).data('hoverInitialized',false);var $this=this;init();return $this}}(jQuery,window));jQuery(document).ready(function(){$.hoverHelper()});
(function($,window,document,undefined){var pluginName='stylingDropdown',defaults={optList:"optionList",actOption:"select",optListElem:"selectOption",optListElemAddClass:"js_hover",scrollTime:250,bufferTTL:1e3}
function Plugin(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()};Plugin.prototype.initMarkup=function(){var $this=this,$select=$(this.element),$options=$select.find('option'),$selected=$options.filter(':selected'),text="";if($selected.length>0&&$selected.val()!==''){text=$selected.text()}else text=$options.first().text();$select.before("<div class='styled_dropdown_outer'></div>");var $newElement=$select.prev('.styled_dropdown_outer');$select.detach().appendTo($newElement);this.select=this.element;this.element=$newElement.get(0);$select.after('<span class="js_hover '+$this.options.actOption+'"><span class="'+$this.options.actOption+'-inner">'+text+'</span></span>');$select.next().after("<div class='"+$this.options.optList+"'></div>");var i=0;$this.options.optionList=new Array();$this.options.optionClass=new Array();$options.each(function(){$this.options.optionList[i]=$(this).text();$this.options.optionClass[i]=this.className;i++});var optionListLength=$options.length,optListHtml='';for(var x=0;x<optionListLength;x++){var classAttr='class="'+$this.options.optListElem+' '+$this.options.optListElemAddClass+' '+$this.options.optionClass[x]+'"',optIdxAttr='data-optidx="'+x+'"';optListHtml+='<div '+classAttr+' '+optIdxAttr+'>'+$this.options.optionList[x]+'</div>'};$select.next().next("."+$this.options.optList).append(optListHtml).css('display','none')};Plugin.prototype.initKeyevent=function(){var $this=this;$this.options.buffer=[];$this.options.lastKeystroke=0;$(document).keydown(function(evt){var d=new Date(),time=d.getTime(),button=String.fromCharCode(evt.which);if(time-$this.options.lastKeystroke>$this.options.bufferTTL)$this.options.buffer=[];$this.options.lastKeystroke=time;$this.options.buffer.push(button);var searchTerm=$this.options.buffer.join(''),options=$($this.select).next().next("."+$this.options.optList).find('.'+$this.options.optListElem).filter(function(){return this.innerHTML.toUpperCase().lastIndexOf(searchTerm.toUpperCase(),0)===0});if(options.length===0)$this.options.buffer=[];if(options.length>0&&typeof options.first()!=='undefined'){var newTop=options.first().position().top,curTop=$($this.select).next().next("."+$this.options.optList).scrollTop(),sumTop=newTop+curTop;$($this.select).next().next("."+$this.options.optList).animate({scrollTop:sumTop},$this.options.scrollTime)}})};Plugin.prototype.initClickEvent=function(){var $this=this;$($this.select).next("span."+$this.options.actOption).click(function(){$this.openDropDown()})};Plugin.prototype.openDropDown=function(){var $this=this;if($($this.select).is(':enabled')){$($this.element).find("."+$this.options.optList).slideToggle();$($this.select).next("span."+$this.options.actOption).focus()}};Plugin.prototype.closeDropDown=function(){var $this=this;$($this.select).next("span."+$this.options.actOption).next("."+$this.options.optList).slideUp()};Plugin.prototype.initItemClickEvent=function(){var $this=this;$(this.select).next('span').next("."+$this.options.optList).children('.'+$this.options.optListElem).click(function(){var optValue=$.trim($(this).text()),$options=$($this.select).find('option'),$option=$options.eq($(this).data('optidx'));if($option.prop('disabled')||$option.attr('disabled'))return false;$options.removeAttr("selected");$options.prop("selected",false);$option.prop("selected",true);$option.attr("selected","selected");$(this).parent("."+$this.options.optList).prev("."+$this.options.actOption).children().text(optValue);$this.closeDropDown();$($this.select).change();$($this.select).next("span."+$this.options.actOption).focus()})};Plugin.prototype.initPageClickEvent=function(){var $this=this;$(document).bind('click',function(e){if($(e.target).is($($this.select).next("span."+$this.options.actOption))||$(e.target).is($($this.select).next("span."+$this.options.actOption).children("span."+$this.options.actOption+"-inner")));else $this.closeDropDown()})};Plugin.prototype.initChangeEvent=function(){var $this=this;$($this.select).change(function(){$($this.select).trigger("optionStatusChange");var text='';if($($this.select).find('option:selected').val()!==''){text=$($this.select).find('option:selected').text()}else text=$($this.select).find('option:first').text();var $label=$($this.select).next('.'+$this.options.actOption).find('.'+$this.options.actOption+'-inner');$label.html(text)})};Plugin.prototype.initOptionStatusChange=function(){var $this=this;$($this.select).bind('optionStatusChange',function(){var $options=$($this.select).find('option'),$spans=$($this.select).next('span').next("."+$this.options.optList).children('.'+$this.options.optListElem);$spans.removeClass('disabled');for(var i=0;i<$options.length;++i)if($options.eq(i).prop('disabled'))$spans.eq(i).addClass('disabled');var $selDisItem=$($this.select).find("option[selected=selected][disabled=disabled]");if($selDisItem.length>0){$selDisItem.removeAttr('selected');var $newSelOption=$selDisItem.prevAll().filter(function(){return!$(this).is(":disabled")}).first();if($newSelOption.length===0)$newSelOption=$selDisItem.nextAll().filter(function(){return!$(this).is(":disabled")}).first();$newSelOption.prop("selected",true);$newSelOption.attr("selected","selected");$($this.select).change()};var $option=$($this.select).find('option[selected=selected]');if($option.text().length>0)$($this.select).next('span').next("."+$this.options.optList).prev("."+$this.options.actOption).find('.'+$this.options.actOption+'-inner').text($option.text())})};Plugin.prototype.init=function(){var $this=this;$this.initMarkup();$this.initKeyevent();$($this.select).next().next("."+$this.options.optList).mouseup(function(){$($this.select).next("span."+$this.options.actOption).focus()});$this.initClickEvent();$this.initItemClickEvent();$this.initPageClickEvent();$this.initChangeEvent();$this.initOptionStatusChange();$($this.select).trigger("optionStatusChange");if(typeof($.hoverHelper)==='function')$.hoverHelper()};$.fn[pluginName]=$[pluginName]=function(){var method=arguments[0],pluginInstance=undefined,arguments_=arguments;if(typeof method==="undefined")method=false;$this=this;if(typeof $this==='function')$this=$(document);var count=0;$this.each(function(){count=count+1;var publicMethod=$(this).data()['plugin_'+pluginName];if(typeof publicMethod==="undefined")publicMethod={};if(publicMethod[method]){method=publicMethod[method];arguments=Array.prototype.slice.call(arguments_,1)}else if(typeof method==='object'||!method){if(!$.data(this,'plugin_'+pluginName)){pluginInstance=new Plugin(this,arguments_[0]);$.data(this,'plugin_'+pluginName,pluginInstance)};return}else if(typeof method==="function");else{$.error('Method '+method+' does not exist on jQuery.'+pluginName);return this};method.apply(publicMethod,arguments)});return pluginInstance}
function l(msg){if(typeof console!=='undefined')if(typeof(console.log)!=='undefined')console.log(msg)}})(jQuery,window,document);$(document).ready(function(){$("select.select").stylingDropdown()});
(function($,window){var responsive='responsive',viewport=window.ResponsiveBootstrapToolkit,breakpointChangeCallbacks=[],currentBreakpoint=null,lastBreakpoint=null,debug=false,verboseDebug=false,init=function(){if(verboseDebug){$("body").append("<div id='verbose_debug'></div>");$('#verbose_debug').css('position','absolute');$('#verbose_debug').css('left','0');$('#verbose_debug').css('top','0');$('#verbose_debug').css('width','300');$('#verbose_debug').css('height','100');$('#verbose_debug').css('zIndex','100000');$('#verbose_debug').css('backgroundColor','red')};var bootstrapDivs={xs:$('<div class="device-xs d-block d-sm-none"></div>'),sm:$('<div class="device-sm d-none d-sm-block d-md-none"></div>'),md:$('<div class="device-md d-none d-md-block d-lg-none"></div>'),lg:$('<div class="device-lg d-none d-lg-block d-xl-none"></div>'),xl:$('<div class="device-xl d-none d-xl-block butts"></div>')};viewport.use('bs4',bootstrapDivs);viewport.interval=50;$(window).on('resize',viewport.changed(function(){var bp=viewport.current();if(bp===currentBreakpoint)return;lastBreakpoint=currentBreakpoint;currentBreakpoint=bp;var currentWindowWidth=$(window).innerWidth(),nominalWindowWidth=currentWindowWidth;if(typeof window.mqGenie!='undefined')nominalWindowWidth+=window.mqGenie.width;onResize(nominalWindowWidth)})).trigger('resize')},onResize=function(currentWindowWidth){if(verboseDebug){debug_verbose("innerwidth: "+currentWindowWidth);debug_verbose("innerheight: "+$(window).innerHeight());debug_verbose("NEW Breakpoint: "+currentBreakpoint)};_debug("BP px, new, old ",currentWindowWidth,currentBreakpoint,lastBreakpoint);$(window).trigger('breakpointChange',[currentWindowWidth,currentBreakpoint,lastBreakpoint]);for(var k in breakpointChangeCallbacks)breakpointChangeCallbacks[k](currentWindowWidth,currentBreakpoint,lastBreakpoint)},_debug=function(){if(debug)console.log(arguments)},debug_verbose=function(msg){$('#verbose_debug').prepend(msg+"<br />")},publicMethod=$.fn[responsive]=$[responsive]=function(){init();return this};publicMethod.enableDebug=function(enabled){debug=enabled};publicMethod.breakpointChange=function(callback){breakpointChangeCallbacks[breakpointChangeCallbacks.length]=callback;var currentWindowWidth=$(window).innerWidth();callback(currentWindowWidth,currentBreakpoint,lastBreakpoint)};publicMethod.getCurrentBreakpoint=function(){return currentBreakpoint};publicMethod.getBreakpoints=function(){return viewport.breakpoints}}(jQuery,window));$.responsive();
(function($,document,window){$.navigation=function($nav,options){var defaults={mobileNavBreakpoint:'1199',subMenuAnimation:'slide',mainContainer:$('.page'),hasOverlay:true,alignSubMenuHeights:false,onInit:null,onReset:null},plugin=this,$navOverlay=$('<div id="nav_overlay" class="nav_overlay js_nav_overlay"></div>');plugin.settings={};var init=function(){plugin.settings=$.extend({},defaults,options);plugin.$nav=$nav;var isTouch=isTouchDevice();if(isTouch){$nav.addClass('touch').removeClass('notouch')}else $nav.removeClass('touch').addClass('notouch');if(plugin.settings.hasOverlay)$('body').append($navOverlay);initMobileNav();initDesktopNav();if(typeof plugin.settings.onInit==='function')plugin.settings.onInit.call(plugin);resetNav($(window).width());$(window).on('load',function(){resetNav($(window).width())});$(window).on('breakpointChange',function(e,breakpoint){resetNav(breakpoint)})},isTouchDevice=function(){return'ontouchstart'in document.documentElement},resetNav=function(breakpoint){$nav.removeClass('open');$navOverlay.removeClass('visible');$nav.find('li').removeClass('clicked open touched hovered').off('hover');$nav.find('[style]').removeAttr('style');plugin.settings.mainContainer.removeClass('open');if(breakpoint<=plugin.settings.mobileNavBreakpoint){$nav.removeClass('js_desktop').addClass('js_mobile');$navOverlay.removeClass('js_desktop').addClass('js_mobile');$nav.find('.act').addClass('open');$nav.find('li.open > .js_sub_nav').css('display','block')}else{$nav.removeClass('js_mobile').addClass('js_desktop');$navOverlay.removeClass('js_mobile').addClass('js_desktop');$nav.find('.act.has_sub').removeClass('open');if(plugin.settings.alignSubMenuHeights)$nav.find('.nav_items').children('li.has_sub').each(function(){var $item=$(this),$subNav=$item.children('.js_sub_nav'),subNavOffsetTop=$subNav.offset().top,maxHeight=0,$subNavContainers=$item.find('ul,.subNav');$subNavContainers.each(function(){var navOffset=$(this).offset().top-subNavOffsetTop,heightWithOffset=$(this).innerHeight()+navOffset;if(heightWithOffset>maxHeight)maxHeight=heightWithOffset});$subNavContainers.innerHeight(maxHeight);if($item.data('navuid'))$('.nav_trigger_target[data-navuid='+$item.data('navuid')+']').innerHeight(maxHeight);if($item.find('.js_nav_switch').length>0)$item.find('.js_nav_2_wrapper').addClass('has_nav_switch')})};if(typeof plugin.settings.onReset==='function')plugin.settings.onReset.call(plugin)},initMobileNav=function(){$(document).on('click','.navbar-toggler',function(){var $activeListitem=$('.navigation.js_mobile ul.nav_items>li.has_sub.open');$activeListitem.find('.item_trigger').text('-');$nav.toggleClass('open');$navOverlay.toggleClass('visible');plugin.settings.mainContainer.toggleClass('open');$('body').toggleClass('fixed')});$(document).on('click','.navigation.js_mobile .item_trigger',function(e){e.stopPropagation();var $item=$(this).closest('li'),navOpenIcon=$(this).text();navOpenIcon=(navOpenIcon=='+')?'-':'+';$(this).text(navOpenIcon);if($item.hasClass('has_sub')){$item.siblings('.open').find('.item_trigger').text('+');if($(this).hasClass('toggle')||(!$(this).hasClass('toggle')&&!$item.hasClass('open'))){e.preventDefault();if($(this).hasClass('accordion'))toggleMobileSubMenu($item.siblings('.open'));toggleMobileSubMenu($item)}}});$(document).on('click','.navigation.js_mobile .back_trigger',function(e){toggleMobileSubMenu($(this).closest('ul').closest('li'))})},toggleMobileSubMenu=function($items){$.each($items,function(){var $item=$(this);switch(plugin.settings.subMenuAnimation){case'slide':$item.children('.js_sub_nav').stop().slideToggle();break;case'move':$item.closest('.js_sub_nav').toggleClass('closed');break};$item.toggleClass('open')})},initDesktopNav=function(){$(document).on('click','.navigation.js_desktop.touch li',function(e){if($(this).hasClass('has_sub')&&!$(this).hasClass('touched')){e.preventDefault();$navOverlay.addClass('visible');$(this).addClass('touched open');if($(this).data('navuid'))$('.nav_trigger_target[data-navuid='+$(this).data('navuid')+']').addClass('open')}});$(document).on('mouseleave','.navigation.js_desktop.touch li',function(e){$(this).removeClass('clicked open touched');if($(this).data('navuid'))$('.nav_trigger_target[data-navuid='+$(this).data('navuid')+']').removeClass('open')});$(document).on('mouseenter','.navigation.js_desktop.notouch li',function(e){$(this).addClass('open');if($(this).data('navuid'))$('.nav_trigger_target[data-navuid='+$(this).data('navuid')+']').addClass('open')});$(document).on('mouseleave','.navigation.js_desktop.notouch li',function(e){$(this).removeClass('open');if($(this).data('navuid'))$('.nav_trigger_target[data-navuid='+$(this).data('navuid')+']').removeClass('open')});$(document).on('mouseenter','.navigation.js_desktop.notouch li.has_sub',function(e){$navOverlay.addClass('visible')});$(document).on('mouseleave','.navigation.js_desktop li.has_sub',function(e){$navOverlay.removeClass('visible')})};init()}})(jQuery,document,window);
(function($,window,document,undefined){var pluginName='cookieInfo',defaults={cookieName:'cookieInfo',wrapperId:'cookie_info',wrapperClass:'wrap cf',innerClass:'cookie_container cf',textClass:'text cf',buttonClass:'button btn blue',html:'We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we\'ll assume that you are happy to receive all cookies from this website. If you would like to change your preferences you may do so by following the instructions <a href="http://www.aboutcookies.org/Default.aspx?page=1">here</a>',button:'Ok',inlineStyle:{display:'none',position:'fixed',zIndex:9999999}}
function Plugin(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()};Plugin.prototype.init=function(){var $this=this;if(this.docCookies.hasItem(this.options.cookieName))return;var element=this.createUI();element.slideDown();element.find('input[type=button]').on('click',function(){$this.docCookies.setItem($this.options.cookieName,'displayed',2592e3,'/');element.slideUp()})};Plugin.prototype.createUI=function(){var $textWrap=$('<div/>');$textWrap.attr('class',this.options.textClass);$textWrap.html(this.options.html);var $inner=$('<div/>');$inner.attr('id',this.options.innerId);$inner.attr('class',this.options.innerClass);$inner.html($textWrap);var $wrapper=$('<div/>');$wrapper.attr('id',this.options.wrapperId);$wrapper.attr('class',this.options.wrapperClass);$wrapper.html($inner);$wrapper.css(this.options.inlineStyle);$wrapper.prependTo('body');var $button=$('<input/>');$button.attr('type','button');$button.attr('value',this.options.button);$button.attr('class',this.options.buttonClass);$button.css('display','inline-block');if(!$('.js_header').parent().hasClass(this.options.darkClass))$wrapper.addClass(this.options.darkClass);$button.appendTo($inner);return $wrapper};Plugin.prototype.docCookies={getItem:function(sKey){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(sKey,sValue,vEnd,sPath,sDomain,bSecure){if(!sKey||/^(?:expires|max\-age|path|domain|secure)$/i.test(sKey))return false;var sExpires="";if(vEnd)switch(vEnd.constructor){case Number:sExpires=vEnd===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+vEnd;break;case String:sExpires="; expires="+vEnd;break;case Date:sExpires="; expires="+vEnd.toUTCString();break};document.cookie=encodeURIComponent(sKey)+"="+encodeURIComponent(sValue)+sExpires+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"")+(bSecure?"; secure":"");return true},removeItem:function(sKey,sPath,sDomain){if(!sKey||!this.hasItem(sKey))return false;document.cookie=encodeURIComponent(sKey)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"");return true},hasItem:function(sKey){return(new RegExp("(?:^|;\\s*)"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")).test(document.cookie)},keys:function(){var aKeys=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/);for(var nIdx=0;nIdx<aKeys.length;nIdx++)aKeys[nIdx]=decodeURIComponent(aKeys[nIdx]);return aKeys}};$.fn[pluginName]=$[pluginName]=function(){var method=arguments[0],pluginInstance=undefined,arguments_=arguments;if(typeof method==="undefined")method=false;var $this=this;if(typeof $this==='function')$this=$(document);var count=0;$this.each(function(){count=count+1;var publicMethod=$(this).data()['plugin_'+pluginName];if(typeof publicMethod==="undefined")publicMethod={};if(publicMethod[method]){method=publicMethod[method];arguments=Array.prototype.slice.call(arguments_,1)}else if(typeof method==='object'||!method){if(!$.data(this,'plugin_'+pluginName)){pluginInstance=new Plugin(this,arguments_[0]);$.data(this,'plugin_'+pluginName,pluginInstance)};return}else if(typeof method==="function");else{$.error('Method '+method+' does not exist on jQuery.'+pluginName);return this};method.apply(publicMethod,arguments)});return pluginInstance}
function l(msg){if(typeof console!=='undefined')if(typeof(console.log)!=='undefined')console.log(msg)}})(jQuery,window,document);
(function($,window,document,undefined){var pluginName='fitimage',defaults={centerImagesVertical:true,centerImagesHorizontal:true,useMargin:false,tags:'img'}
function Plugin(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()};Plugin.prototype.imageHAlignLeft=function(elW){if(this.options.useMargin){this.$img.css('marginLeft','0px')}else this.$img.css('left','0px')};Plugin.prototype.imageHAlignRight=function(elW){var imgNW=parseInt(this.$img.css('width'),10),offset=elW-imgNW;if(this.options.useMargin){this.$img.css('marginLeft',offset+'px')}else this.$img.css('left',offset+'px')};Plugin.prototype.imageHAlignCenter=function(elW){var imgNW=parseInt(this.$img.css('width'),10),offset=(elW-imgNW)/2;if(this.options.useMargin){this.$img.css('marginLeft',offset+'px')}else this.$img.css('left',offset+'px')};Plugin.prototype.imageHAlignCustom=function(elW){switch(this.fitPos){case'left':this.imageHAlignLeft(elW);break;case'right':this.imageHAlignRight(elW);break;case'center':this.imageHAlignCenter(elW);break}};Plugin.prototype.imageVAlignCenter=function(elH){var imgNH=parseInt(this.$img.css('height'),10),offset=(elH-imgNH)/2;if(this.options.useMargin){this.$img.css('marginTop',offset+'px')}else this.$img.css('top',offset+'px')};Plugin.prototype.retryFitLater=function($element){var _this=this,counter=0,d=$element.data('fitimage_retry_counter');if(typeof d==="number")counter=d;if(counter>100)return;counter=counter+1;$element.data('fitimage_retry_counter',counter);setTimeout(function(){_this.fit($element)},50)};Plugin.prototype.prepareVerticalImagePositioning=function(){if(this.$img.hasClass('fill_v'))this.$img.removeClass('fill_v');if(!this.$img.hasClass('fill_h'))this.$img.addClass('fill_h');if(this.options.useMargin){this.$img.css('marginLeft','')}else this.$img.css('left','')};Plugin.prototype.prepareHorizontalImagePositioning=function(){if(this.$img.hasClass('fill_h'))this.$img.removeClass('fill_h');if(!this.$img.hasClass('fill_v'))this.$img.addClass('fill_v');if(this.options.useMargin){this.$img.css('marginTop','')}else this.$img.css('top','')};Plugin.prototype.fit=function(){var _this=this,$element=$(this.element),imgW=0,imgH=0;if(!$element.hasClass('fitimage'))$element.addClass('fitimage');if(typeof this.$img[0]!=='undefined'){var tagName=this.$img.prop('tagName');if(tagName==='IMG'){imgW=parseInt(this.$img[0].naturalWidth,10)||0;imgH=parseInt(this.$img[0].naturalHeight,10)||0}else if(tagName==='VIDEO'){imgW=parseInt(this.$img[0].videoWidth,10)||0;imgH=parseInt(this.$img[0].videoHeight,10)||0}};if(imgW+imgH===0){this.retryFitLater($element);return};var elW=$element.innerWidth(),elH=$element.innerHeight(),imgRatio=imgW/imgH,winRatio=elW/elH;if(!winRatio){this.retryFitLater($element);return};if(imgRatio<winRatio){this.prepareVerticalImagePositioning();if(this.options.centerImagesVertical)this.imageVAlignCenter(elH)}else{this.prepareHorizontalImagePositioning();if(this.fitPos&&this.fitPos.length){this.imageHAlignCustom(elW)}else if(this.options.centerImagesHorizontal)this.imageHAlignCenter(elW)};$element.data('fitimage_retry_counter',0)};Plugin.prototype.fitimages=function(){var _this=this;this.fit();for(var x=1;x<=10;x++)window.setTimeout(function(){_this.fit()},x*100)};Plugin.prototype.init=function(){var _this=this;this.$img=$(this.element).find(this.options.tags+':first');this.fitPos=this.$img.data('fitimage-pos');if(this.$img.length===0)return;var $img=this.$img.eq(0),imgEl=$img[0];if(imgEl.hasAttribute('data-fitimage-usemargin'))this.options.useMargin=!!$img.data('fitimage-usemargin');if(imgEl.hasAttribute('data-fitimage-centerimagesvertical'))this.options.centerImagesVertical=!!$img.data('fitimage-centerimagesvertical');if(imgEl.hasAttribute('data-fitimage-centerimageshorizontal'))this.options.centerImagesHorizontal=!!$img.data('fitimage-centerimageshorizontal');$(window).resize(function(){_this.fitimages()});$(this.element).on('fitimageRefresh',function(){_this.fitimages()});_this.fitimages()};$.fn[pluginName]=$[pluginName]=function(){var method=arguments[0],pluginInstance=undefined,arguments_=arguments;if(typeof method==="undefined")method=false;$this=this;if(typeof $this==='function')$this=$(document);var count=0;$this.each(function(){count=count+1;var publicMethod=$(this).data()['plugin_'+pluginName];if(typeof publicMethod==="undefined")publicMethod={};if(publicMethod[method]){method=publicMethod[method];arguments=Array.prototype.slice.call(arguments_,1)}else if(typeof method==='object'||!method){if(!$.data(this,'plugin_'+pluginName)){pluginInstance=new Plugin(this,arguments_[0]);$.data(this,'plugin_'+pluginName,pluginInstance)};return}else if(typeof method==="function");else{$.error('Method '+method+' does not exist on jQuery.'+pluginName);return this};method.apply(publicMethod,arguments)});return pluginInstance}
function l(msg){if(typeof console!=='undefined')if(typeof(console.log)!=='undefined')console.log(msg)}})(jQuery,window,document);
(function($){window.onload=function(){};$(document).ready(function(){$.navigation($('.js_navigation'),{mobileNavBreakpoint:1199,subMenuAnimation:'slide',mainContainer:$('.page'),hasOverlay:true});if(typeof $.fn.fitimage==='function')$('.js_fitimage').fitimage({useMargin:true});$('#toTop').click(function(){$("html, body").animate({scrollTop:0},500);return false});$('nav li>a.sector_redirect_link').click(function(){var isItemTrigger=$(event.target).hasClass('item_trigger');if(!isItemTrigger){if($('.page').hasClass('open'))$('.navbar-toggler').first().trigger('click');if(NELibs.langid==="1"){document.location.href="/de/#Sectors";if(window.location.pathname=='/de/')scrollToHash()}else{document.location.href="/#Sectors";if(window.location.pathname=='/')scrollToHash()};return false}});scrollToHash()
function scrollToHash(){var hash=window.location.hash;if(hash=='#Sectors'){var offset;if($('.js_navigation').hasClass('js_mobile')){offSet=100}else offSet=180;var obj=$('.js_sector_nav_anchor').first().offset();if(obj){var targetOffset=obj.top-offSet;$('html,body').animate({scrollTop:targetOffset},1500)}}}})})(jQuery);
$(document).ready(function(){var $loadMoreButton=$('.js_announcement_load_more .js_load_more_btn');if($loadMoreButton.length)$loadMoreButton.on('click',function(){var params=getFilterParameters(),offset=$('.js_item_clickcollect').length,limit=$('.js_items_per_page').val();sendAJAXWithParams(offset,limit,params)});$('select.js_filter').on('change',function(){$('.js_item_clickcollect').each(function(){$(this).remove()});var params=getFilterParameters(),offset=$('.js_item_clickcollect').length,limit=$('.js_items_per_page').val();updateRSSLink(params);sendAJAXWithParams(offset,limit,params)});$('.js_search_button').on('click',function(){$('.js_item_clickcollect').each(function(){$(this).remove()});var params=getFilterParameters(),offset=$('.js_item_clickcollect').length,limit=$('.js_items_per_page').val();updateRSSLink(params);sendAJAXWithParams(offset,limit,params)});$(document).on('keypress',function(e){var $search=$('.js_search_button');if((e.which===10||e.which===13)&&$search.length)$search.trigger('click')});var $shareTarget=$('.js_share_target');if($shareTarget.length){var shareLink=$shareTarget.text(),$shares=$('.js_social_media_share a');$.each($shares,function(){var templateURL=$(this).attr('href'),url=templateURL.replace('{shareURL}',shareLink);$(this).attr('href',url)})};$('.module_announce .js_read_more_btn').on('click',function(){$(this).prev('.js_read_more_text').slideToggle();$(this).children('.js_read_more_btn_text').toggleClass('d-none');$(this).children('.js_read_less_btn_text').toggleClass('d-none');var readMoreBtnIconText=$(this).children('.js_read_more_btn_icon');readMoreBtnIconText.toggleClass('lh-fix');readMoreBtnIconText.text(readMoreBtnIconText.text()=='+'?'-':'+')});var $facebook=$('.module_announce .js_social_share.facebook'),$twitter=$('.module_announce .js_social_share.twitter'),$xing=$('.module_announce .js_social_share.xing'),$linkedin=$('.module_announce .js_social_share.linkedin');$facebook.on('click',function(){var url=$(this).attr('href'),popup=window.open(url,"Facebook","width=700,height=500,resizable=yes");popup.focus();return false});$twitter.on('click',function(){var url=$(this).attr('href'),popup=window.open(url,"Twitter","width=700,height=500,resizable=yes");popup.focus();return false});$xing.on('click',function(){var url=$(this).attr('href'),popup=window.open(url,"Xing","width=700,height=600,resizable=yes");popup.focus();return false});$linkedin.on('click',function(){var url=$(this).attr('href'),popup=window.open(url,"LinkedIn","width=850,height=600,resizable=yes");popup.focus();return false})})
function updateRSSLink(params){var urlParameters=$.param(params),$rss=$('.js_rss_feed'),rssBase=$rss.data('rssBase');if(urlParameters.length){$rss.attr('href',rssBase+'?'+urlParameters)}else $rss.attr('href',rssBase)}
function sendAJAXWithParams(offset,limit,params){params.piuid=NELibs.ajaxContext.neannounce_paging.pluginUid;params.offset=offset;params.limit=limit;var url=NELibs.getAjaxUrlNE('tx_neannounce',params,true);$.ajax({url:url,type:'GET',success:function(response){$('.js_announcement_list').append(response);var resultCount=parseInt($('.js_ajax_results').val());if(typeof resultCount!=='number'||isNaN(resultCount)||resultCount<1)resultCount=0;var templateString=$('.js_search_result_info_template').val();$('.js_search_result_info').text(templateString.replace("%count%",resultCount));$('.js_ajax_results').remove();if($('.js_item_clickcollect').length===parseInt(resultCount)){$('.js_load_more_btn').hide()}else $('.js_load_more_btn').show()}})}
function getFilterParameters(){var params={};$('select[class*="js_filter_"], input[class*="js_filter_"]').each(function(){var $filterElement=$(this),value=$filterElement.val();if(value)params['filter['+$filterElement.attr('name')+']']=value});return params};
$(function(){var containerClones={};$('[data-repeatable-container][data-is-root]').each(function(e){var $element=$(this),$containerClone=$element.clone(),containerIdentifier=$element.attr('data-identifier'),formIdentifier=$element.closest('form').attr('id');containerClones[formIdentifier]=containerClones[formIdentifier]||{};$('[data-repeatable-container][data-is-copy]',$containerClone).remove();$('[data-repeatable-container][data-copy-button]',$containerClone).first().remove();$('[role="alert"]',$containerClone).remove();$('[data-repeatable-container][data-is-root]',$containerClone).each(function(e){$(this).removeAttr('data-is-root').attr('data-is-copy','').attr('data-copy-mother',$(this).attr('data-identifier'))});$containerClone.removeAttr('data-is-root').attr('data-is-copy','');$containerClone.find('*').removeClass('has-error');$containerClone.find('input').filter(':text, :password, :file').attr('value','').end().filter(':checkbox, :radio').removeAttr('checked').end().end().find('textarea').attr('value','').end().find('select').prop("selectedIndex",-1).find('option:selected').removeAttr('selected');containerClones[formIdentifier][containerIdentifier]=$containerClone});$(document).trigger('initialize-repeatable-container-copy-buttons',[containerClones]);$(document).trigger('initialize-repeatable-container-remove-buttons')});$(document).on('initialize-repeatable-container-copy-buttons',function(event,containerClones){var getNextCopyNumber=function($referenceElement,$form){var highestCopyNumber=0;$('[data-repeatable-container][data-copy-reference="'+$referenceElement.attr('data-identifier')+'"]',$form).each(function(e){var copyNumber=parseInt($(this).attr('data-identifier').split('.').pop());if(copyNumber>highestCopyNumber)highestCopyNumber=copyNumber});return++highestCopyNumber},setRandomIds=function($subject){var idReplacements={};$('[id]',$subject).each(function(e){var $element=$(this),id=$element.attr('id'),newId=Math.floor(Math.random()*42)+Date.now();$element.attr('id',newId);idReplacements[id]=newId});$subject.find('*').each(function(e){for(var i=0,len=this.attributes.length;i<len;i++){var attributeValue=this.attributes[i].nodeValue;if(attributeValue in idReplacements)this.attributes[i].nodeValue=idReplacements[attributeValue]}})},escapeRegExp=function(subject){return subject.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')};$('[data-repeatable-container][data-copy-button]').each(function(e){var $element=$(this),referenceElementIdentifier=$element.attr('data-copy-button-for'),$referenceElement=$('[data-repeatable-container][data-identifier="'+referenceElementIdentifier+'"]',$form),$form=$element.closest('form'),$elementCopies=$('[data-repeatable-container][data-copy-reference="'+referenceElementIdentifier+'"]',$form),maxCopies=$referenceElement.attr('data-max-copies');$element.closest('.row').insertAfter($elementCopies.last());if($elementCopies.length>=maxCopies){$element.attr('disabled','disabled')}else{$element.attr('disabled',null);$element.off().on('click',function(e){e.preventDefault();var $element=$(this),referenceElementIdentifier=$element.attr('data-copy-button-for'),$form=$element.closest('form'),formIdentifier=$form.attr('id'),$referenceElement=$('[data-repeatable-container][data-identifier="'+referenceElementIdentifier+'"]',$form),referenceElementIsRoot=$referenceElement.is('[data-is-root]'),$elementCopies=$('[data-repeatable-container][data-copy-reference="'+referenceElementIdentifier+'"]',$form),containerCloneIdentifier=referenceElementIsRoot?referenceElementIdentifier:$referenceElement.attr('data-copy-mother'),copyMotherIdentifier=containerClones[formIdentifier][containerCloneIdentifier].attr('data-identifier'),newIdentifierParts=$referenceElement.attr('data-identifier').split('.'),oldIdentifierNameRegex=escapeRegExp('['+copyMotherIdentifier.split('.').join('][')+']'),copyMotherIdentifierRegex='('+escapeRegExp('data-copy-mother="')+')?'+escapeRegExp(copyMotherIdentifier),newIdentifier=undefined,newIdentifierNameRegex=undefined,$containerClone=undefined,containerCloneHtml=undefined;newIdentifierParts.pop();newIdentifierParts.push(getNextCopyNumber($referenceElement,$form));newIdentifier=newIdentifierParts.join('.');containerCloneHtml=containerClones[formIdentifier][containerCloneIdentifier][0].outerHTML;containerCloneHtml=containerCloneHtml.replace(new RegExp(copyMotherIdentifierRegex,'g'),function($0,$1){return $1?$0:newIdentifier});newIdentifierNameRegex='['+newIdentifierParts.join('][')+']';containerCloneHtml=containerCloneHtml.replace(new RegExp(oldIdentifierNameRegex,'g'),newIdentifierNameRegex);$containerClone=$(containerCloneHtml);$containerClone.attr('data-copy-reference',referenceElementIdentifier);containerCloneHtml=$containerClone[0].outerHTML;setRandomIds($containerClone);if($elementCopies.length===0){$referenceElement.after($containerClone)}else $elementCopies.last().after($containerClone);$(document).trigger('after-element-copy',[$containerClone]);$(document).trigger('initialize-repeatable-container-copy-buttons',[containerClones]);$(document).trigger('initialize-repeatable-container-remove-buttons')})}})});$(document).on('initialize-repeatable-container-remove-buttons',function(event){$('[data-repeatable-container][data-remove-button]').each(function(e){var $element=$(this),referenceElementIdentifier=$element.attr('data-remove-button-for'),$form=$element.closest('form'),$referenceElement=$('[data-repeatable-container][data-identifier="'+referenceElementIdentifier+'"]',$form),referenceElementIsRoot=$referenceElement.is('[data-is-root]'),referenceReferenceElementIdentifier=referenceElementIsRoot?referenceElementIdentifier:$referenceElement.attr('data-copy-reference'),$referenceReferenceElement=$('[data-repeatable-container][data-identifier="'+referenceReferenceElementIdentifier+'"]',$form),$elementCopies=$('[data-repeatable-container][data-copy-reference="'+referenceReferenceElementIdentifier+'"]',$form),minCopies=$referenceReferenceElement.attr('data-min-copies');if($referenceElement.is('[data-copy-reference]')&&$referenceElement.attr('data-copy-reference')!==''){if($elementCopies.length<=minCopies){$element.removeClass('hidden').addClass('disabled')}else $element.removeClass('hidden disabled')}else $element.empty().off().remove();if($element.hasClass('disabled')){$element.off()}else $element.off().on('click',function(e){e.preventDefault();var $element=$(this),referenceElementIdentifier=$element.attr('data-remove-button-for'),$form=$element.closest('form'),$referenceElement=$('[data-repeatable-container][data-identifier="'+referenceElementIdentifier+'"]',$form),referenceElementIsRoot=$referenceElement.is('[data-is-root]'),referenceReferenceElementIdentifier=referenceElementIsRoot?referenceElementIdentifier:$referenceElement.attr('data-copy-reference'),$referenceReferenceElement=$('[data-repeatable-container][data-identifier="'+referenceReferenceElementIdentifier+'"]',$form),$elementCopies=$('[data-repeatable-container][data-copy-reference="'+referenceReferenceElementIdentifier+'"]',$form),maxCopies=$referenceReferenceElement.attr('data-max-copies'),$copyButton=$('[data-repeatable-container][data-copy-button-for="'+referenceReferenceElementIdentifier+'"]',$form);if($elementCopies.length-1<maxCopies)$copyButton.attr('disabled',null);$referenceElement.empty().off().remove();$(document).trigger('initialize-repeatable-container-remove-buttons')})})});$(document).on('after-element-copy',function(event,$containerClone){$('[data-element-type="DatePicker"]').each(function(e){var $element=$(this),dateFormat;if(!$element.hasClass('hasDatepicker')&&parseInt($element.attr('data-element-datepicker-enabled'))===1){dateFormat=$element.attr('data-element-datepicker-date-format');dateFormat=dateFormat.replace('d','dd');dateFormat=dateFormat.replace('j','o');dateFormat=dateFormat.replace('l','DD');dateFormat=dateFormat.replace('F','MM');dateFormat=dateFormat.replace('m','mm');dateFormat=dateFormat.replace('n','m');dateFormat=dateFormat.replace('Y','yy');$('#'+$element.attr('id')).datepicker({dateFormat:dateFormat}).on('keydown',function(e){if(e.keyCode==8||e.keyCode==46){e.preventDefault();$.datepicker._clearDate(this)}})}})});
/*Parse error: Missing ; before statement in file '[inline]' on line 4
*/;
(function ($) {

	let dateformat = "Y-m-d";
	let datelocale = "en";
	let lang = $('html').attr('lang');
	if (lang) {
		datelocale = lang;
	}

	$(document).ready(function () {
		if (typeof $.datetimepicker !== 'undefined') {
			$.datetimepicker.setLocale(datelocale);
			let $datePicker = $('.form-control.js_datepicker');
			$datePicker.datetimepicker({
				minDate: 0,
				timepicker: false,
				format: dateformat
			});
		}
	});

})(jQuery);;
/*Parse error: Missing ; before statement in file '[inline]' on line 83
*/;(function ($, window, document, undefined) {

	var dynamicItemCounter = 0;

	/*
	 * XXX: This array should be 'per Form' and not a single global one.
	 * It hopefuly won't hurt, as overlapping names will still work.
	 * But this is still ugly.
	 *
	 * @type Array The row classes available ON THE PAGE. Not only one Form!
	 */
	var rows = [];

	/*
	 * Remember if the browser support the placeholder attribute.
	 */
	$.support.placeholder = (function () {
		var i = document.createElement('input');
		return 'placeholder' in i;
	})();

	/**
	 * Get the absolute offset to the top.
	 * @param {Element} element
	 * @returns {Number}
	 */
	function getAbsoluteOffsetTop(element) {
		var yPos = 0;
		while (element && !isNaN(element.offsetTop)) {
			yPos += element.offsetTop;
			element = element.offsetParent;
		}
		return yPos;
	}

	/**
	 * Remove the row data attribute and the corresponding CSS class.
	 * @param {jQueryElement} $parent
	 * @returns {undefined}
	 */
	function rowsClear($parent) {
		$parent.find('.form-group .row').each(function () {
			var rowClass = $(this).data('row');
			$(this).removeClass(rowClass);
			$(this).removeAttr('data-row');
		});
	}

	/**
	 * Add a data attribute and a CSS class to the form fields in the same row
	 * in order to identify them.
	 * XXX: recursive function
	 * @param {jQueryElement} $parent
	 * @param {string} prefix
	 * @returns {undefined}
	 */
	function rowsInit($parent, prefix) {
		rows = $parent.find('.row');
	}

	/**
	 * @link http://stackoverflow.com/a/4515470
	 * @param {DOMElement} element
	 * @returns {Number}
	 */
	function getLineHeight(element) {
		var temp = document.createElement(element.nodeName);
		temp.setAttribute("style", "margin:0px;padding:0px;font-family:" + element.style.fontFamily + ";font-size:" + element.style.fontSize);
		temp.setAttribute("class", "error-message");
		temp.innerHTML = "test";
		temp = element.parentNode.appendChild(temp);
		var ret = temp.clientHeight;
		temp.parentNode.removeChild(temp);
		return ret;
	}

	/**
	 * Equalize the heights of form fields in the same row.
	 * @returns {undefined}
	 */
	function rowsFixHeight() {
		rows.each(function () {
			let $row = $(this);
			var maxHeight = 0;
			var maxLines = 0;
			var lineHeight = 0;

			// find max height of error message
			$row.children().each(function () {
				let errBox = $(this).find('.error-message').first();

				// clear old err message corrections
				errBox.contents().filter('br').remove();
				let txt = $.trim(errBox.text());
				errBox.contents().remove();
				errBox.text(txt);

				let errHeight = errBox.height();
				if (errHeight > maxHeight) {
					maxHeight = errHeight;
					lineHeight = getLineHeight(errBox[0]);
					maxLines = errHeight / lineHeight;
				}
			});

			// adapt to max height
			$row.children().each(function () {
				let errBox = $(this).find('.error-message');
				let errHeight = errBox.height();
				if (errHeight < maxHeight) {
					let linesDiff = maxLines - (errHeight / lineHeight);
					for (let i = 0; i < linesDiff; i++) {
						errBox.prepend('&nbsp;<br>');
					}
				}
			});
		});
	}

	/**
	 * Resize current colorbox if necessary
	 */
	function resizeColorbox() {
		if (window.parent == window.top) {
			$('body').css('height', '');

			if (typeof parent.$ !== 'undefined') {
				if (typeof parent.$.fn.colorbox !== 'undefined') {
					parent.$.colorbox.resize({
						innerHeight: $('body').outerHeight()
					});
				}
			} else if (typeof parent.jQuery !== 'undefined') {
				if (typeof parent.jQuery.fn.colorbox !== 'undefined') {
					parent.jQuery.colorbox.resize({
						innerHeight: $('body').outerHeight()
					});
				}
			}
		}
	}

	/**
	 * Adds a dynamic item to the markup.
	 * @returns {undefined}
	 */
	function addDynamicItem() {
		var $tplWrapper = $(this).prev('.js_addItemDynTpl');
		var maxItems = parseInt($tplWrapper.attr('data-max'), 10) || 0;
		var counter = parseInt($tplWrapper.prop('item-count'), 10) || 0;
		if (counter > maxItems) {
			return false;
		}

		$tplWrapper.prop('item-count', ++counter);
		if (counter === maxItems) {
			$(this).hide();
		}

		var tpl = $tplWrapper.children().clone(true);
		var basename = $(this).attr('data-basename');
		tpl.find('input, select, textarea').each(function () {

			var name = $(this).attr('name');
			if (typeof name !== 'undefined' && name !== false) {
				name = name.replace('[' + basename + ']', '[' + basename + '][' + dynamicItemCounter + ']');
				$(this).attr('name', name);
				$(this).attr('disabled', false);
			}
		});
		dynamicItemCounter += 1;
		tpl.insertBefore($(this).parent());
	}

	/**
	 * Emulate the placeholder attribute
	 * @param {jQueryElement} $obj
	 * @param {string} defaultValue
	 * @returns {undefined}
	 */
	function clearOnFocus($obj, defaultValue) {
		$obj.focus(function () {
			if ($obj.val() === defaultValue) {
				$obj.val('');
			}
		});
		$obj.blur(function () {
			if ($obj.val() === '') {
				$obj.val(defaultValue);
			}
		});
	}

	/**
	 * Enforce a maximum amount of characters in a textarea
	 * @param {Object} event
	 * @returns {Boolean}
	 */
	function textareaMaxLength(event) {
		var max = parseInt($(this).attr('data-maxlength'));
		if (max > 0 && $(this).val().length >= max) {
			// still allow backspace, delete, metas, arrows...
			var allowedKeys = [8, 9, 16, 17, 18, 20, 35, 36, 37, 38, 39, 40, 45, 46, 91, 93, 116];
			if ($.inArray(event.keyCode, allowedKeys) === -1) {
				return false;
			}
		}
	}

	/**
	 *
	 */
	function registerSwitchAreaHandler() {
		$('.js_switch_area_wrapper').each(function () {
			var $switchAreaWrapper = $(this);
			$switchAreaWrapper.find('.js_switch_area_select').on('change', function () {
				$switchAreaWrapper.find('.js_switch_area').hide().eq(this.selectedIndex).show();
			}).trigger('change');
		});
	}

	/**
	 *
	 * @param includeFirst
	 */
	function hideStateFields(includeFirst) {
		var $stateFields = $('[name$=\\[field-state-input\\]],[name$=\\[field-state-select-au\\]],[name$=\\[field-state-select-ca\\]]');
		if ($stateFields.length > 1) {
			for (var i = 0; i < $stateFields.length; i++) {
				if (includeFirst || (!includeFirst && i > 0)) {
					var $stateField = $($stateFields.get(i));
					$stateField.prop('disabled', true);
					$stateField.closest('.form-group').parent().hide();
				}
			}
		}
	}

	/**
	 *
	 */
	$(document).ready(function () {

		/*
		 * Check if the browser supports the placeholder attribute.
		 * If not, emulate it.
		 */
		if (!($.support.placeholder)) {
			$('input[type="text"]').each(function () {
				if ($(this).val() === '') {
					var txt = $(this).attr('placeholder');
					$(this).val(txt);
					clearOnFocus($(this), txt);
				}
			});
		}

		/*
		 * Initialize all "add to form" links.
		 */
		$('.js_addItemLink').each(function () {
			$(this).click(addDynamicItem);
		});

		/*
		 * Forward css error class to the select-styling
		 */
		$('select').each(function () {
			if ($(this).hasClass('error')) {
				$(this).next('span.select').addClass('error');
			}
		});

		/*
		 * Enable maxlength emulation for textareas
		 */
		$('textarea').keydown(textareaMaxLength);

		registerSwitchAreaHandler();

		/*
		 * Initilizing the row heights only works, if they're visible.
		 * 1. Find all hidden parents and display them.
		 * 2. Initialize rows.
		 * 3. Hide previously hidden parents.
		 * @link http://stackoverflow.com/questions/5974323/jquery-get-the-offset-of-hidden-element
		 */
		{
			var forms = $('.contact__form');
			var hiddenParent = forms.parents();
			var toHide = [];
			hiddenParent.each(function () {
				if ($(this).css('display') === 'none') {
					$(this).css('display', 'block');
					toHide.push($(this));
				}
			});

			rowsInit(forms, '-');
			$.each(toHide, function () {
				$(this).css('display', 'none');
			});
		}

		/*
		 * Equalize field-heights in a row.
		 */
		rowsFixHeight();

		$(window).on('load neFormsReinitRows', function () {
			setTimeout(function () {
				rowsClear(forms);
				rowsInit(forms, '-');
				rowsFixHeight();
				resizeColorbox();
			}, 100);
		});

		if (typeof $.fn.datetimepicker !== 'undefined') {
			var $datepickerFields = $('.js_form_datepicker');
			if ($datepickerFields.length > 0) {
				$.datetimepicker.setLocale(NELibs.langkey);
				$datepickerFields.each(function () {
					$(this).datetimepicker({
						dayOfWeekStart: 1,
						format: 'd.m.Y H:i',
						startDate: new Date(),
						weeks: true,
						yearStart: new Date().getFullYear(),
						yearEnd: new Date().getFullYear() + 1,
					});
				});
			}
		}

		/**
		 * @ticket https://ticket.newego.de/issues/13670
		 * Set autocomplete=off with JS, so that simple bots won't notice
		 */
		$('[name=tx_neforms_show\\[sugarsugarhoney\\]]').attr('autocomplete', 'off');

		// hide all state fields except the first one initially
		hideStateFields(false);
		var countriesToHideState = ['SG', 'TW'];
		// show special state field at country selection
		$('[name$=\\[field-country\\]]').on('change', function () {
			hideStateFields(true);
			var $countrySelect = $(this);
			var $targetElement = $('[data-additional=' + $countrySelect.val());
			if ($targetElement.length === 1) {
				$targetElement.prop('disabled', false);
				$targetElement.closest('.form-group').parent().show();
			} else {
				var $firstStateField = $($('[name$=\\[field-state-input\\]],[name$=\\[field-state-select-au\\]],[name$=\\[field-state-select-ca\\]]').get(0));
				$firstStateField.prop('disabled', false);
				if (countriesToHideState.indexOf($countrySelect.val()) > -1) {
					$firstStateField.val('');
				} else {
					$firstStateField.closest('.form-group').parent().show();
				}
			}
		});
	});

})(jQuery, window, document);;
$(document).ready(function(){var html='This website uses cookies to provide you with good functionality. By using our website, you agree to the use of cookies. <a target="_blank" href="/privacy/">More information</a>',button='',buttonLabel='OK';$.cookieInfo({cookieName:'cookieInfo',html:html,button:buttonLabel})});