/* Create file on the fly... */
var Nx=Nx||{};Nx.$=jQuery.noConflict(false);
Nx.Config={dependencyPath:{library:'/js/libraries/dynamic/',plugin:'/js/plugins/dynamic/',util:'/js/utils/dynamic/'}};
Nx.Config={dependencyPath:{library:'/Frontend/Nationale/Scripts/libraries/dynamic/',plugin:'/Frontend/Nationale/Scripts/plugins/dynamic/',util:'/Frontend/Nationale/Scripts/utils/dynamic/'},services:{consultant:'/modules/'+'ConsultantSelector/data/plz'+'.json',leaflet:'/modules/'+'TeaserLeaflet/data/leaflet'+'.json',agents:'/modules/'+'ConsultantSelector/data/agent.php',base:'/modules/'}};(function($){Nx.GoogleAnalytics=function(pCategorie,pAction,pLabel){if(typeof(_gaq)!=='undefined'){_gaq.push(['_trackEvent',pCategorie,pAction,pLabel]);if(typeof(_gaqAlert)!=='undefined'){alert(pCategorie+" - "+pAction+" - "+pLabel);}}};Nx.ShowAnalytics=true;})(Nx.$);
(function($){$.oo={extend:function(subClass,superClass){var F=function(){};F.prototype=superClass.prototype;subClass.prototype=new F();subClass.prototype.constructor=subClass;subClass.superclass=superClass.prototype;if(superClass.prototype.constructor==Object.prototype.constructor){superClass.protoype.constructor=superClass;}}};})(Nx.$);
(function($){$.log={toggle:function(){},resize:function(){},clear:function(){},move:function(){},debug:function(){},warn:function(){},info:function(){},error:function(){},time:function(){}};})(jQuery);
(function($){Nx.Application=function($ctx,config){this.config=$.extend(Nx.Config,config);this.$ctx=$ctx||$('body');this.modules=[];this.connectors={};this.wildcardComponents=[];this.sandbox=new Nx.Sandbox(this,this.config);};$.extend(Nx.Application.prototype,{addModules:function($ctx){$ctx=$ctx||this.$ctx;var modules=this.registerModules($ctx);this.start(modules);return modules;},removeModules:function(modules){modules=modules||this.modules;this.stop(modules);this.unregisterModules(modules);},registerModules:function($ctx){var that=this;var modules=[];$ctx=$ctx||this.$ctx;$('.mod',$ctx).each(function(){var $this=$(this);var classes=$this.attr('class').split(' ');if(classes.length>1){var modName;var skins=[];var connectors=[];for(var i=0;i<classes.length;i++){if(classes[i].indexOf('mod')===0&&classes[i].length>3){modName=classes[i].substr(3);}
else if(classes[i].indexOf('skin')===0){skins.push(classes[i].substr(4));}
else if(classes[i].indexOf('conn')===0){connectors.push(classes[i].substr(4));}}
if(modName&&Nx.Module[modName]){modules.push(that.registerModule($this,modName,skins,connectors));}}});return modules;},unregisterModules:function(modules){modules=modules||this.modules;if(modules===this.modules){delete this.wildcardComponents;this.wildcardComponents=[];delete this.connectors;this.connectors=[];delete this.modules;this.modules=[];}
else{for(var i=0;i<modules.length;i++){var module=modules[i];var index;for(var connId in this.connectors){this.connectors[connId].unregisterComponent(module);}
index=$.inArray(module,this.wildcardComponents);delete this.wildcardComponents[index];index=$.inArray(module,this.modules);delete this.modules[index];}}},start:function(modules){modules=modules||this.modules;for(var i=0;i<modules.length;i++){modules[i].start();}
for(var i=0;i<this.wildcardComponents.length;i++){var component=this.wildcardComponents[i];if($.inArray(component,modules)>-1){for(var connectorId in this.connectors){component.attachConnector(this.connectors[connectorId]);this.connectors[connectorId].registerComponent(component,'*');}}}},stop:function(modules){modules=modules||this.modules;for(var i=0;i<modules.length;i++){modules[i].stop();}},registerModule:function($node,modName,skins,connectors){modName=modName||null;skins=skins||[];connectors=connectors||[];if(modName&&Nx.Module[modName]){var modId=this.modules.length;$node.data('id',modId);$.log.debug('instantiate Nx.Module.'+modName);this.modules[modId]=new Nx.Module[modName]($node,this.sandbox,modId);for(var i=0;i<skins.length;i++){var skinName=skins[i];skinName=skinName.replace(modName,'');if(Nx.Module[modName][skinName]){$.log.debug('decorate it with the skin Nx.Module.'+modName+'.'+skinName);this.modules[modId]=this.modules[modId].getDecoratedModule(modName,skinName);}}
this.applyErrorHandler(modName,this.modules[modId]);for(var i=0;i<connectors.length;i++){this.registerConnection(connectors[i],this.modules[modId]);}
return this.modules[modId];}
else{$.log.info('the module Nx.Module.'+modName+' does not exist');return null;}},registerConnection:function(connector,component){var connectorType=connector.replace(/[0-9]+[a-zA-Z]*$/,'');var connectorId=connector.replace(/[a-zA-Z]*$/,'').replace(/^[a-zA-Z]*/,'');var connectorRole=connector.replace(/^[a-zA-Z]*[0-9]*/,'');if(connectorId==='*'&&connectorRole==='*'){this.wildcardComponents.push(component);}
else{if(!this.connectors[connectorId]){if(connectorType===''){this.connectors[connectorId]=new Nx.Connector(connectorId);}
else if(Nx.Connector[connectorType]){this.connectors[connectorId]=new Nx.Connector[connectorType](connectorId);}}
if(this.connectors[connectorId]){$.log.debug('attach the connector: '+connectorId);component.attachConnector(this.connectors[connectorId]);this.connectors[connectorId].registerComponent(component,connectorRole);}}},applyErrorHandler:function(componentName,component){var that=this;for(var methodName in component){var method=component[methodName];if($.isFunction(method)){component[methodName]=function(componentName,methodName,method){return function(){try{return method.apply(this,arguments);}
catch(ex){$.log.error(componentName+'.'+methodName+'(): '+ex.message);if(that.config.debug){throw ex;}}};}(componentName,methodName,method);}}}});})(Nx.$);
(function($){Nx.Module=function($ctx,sandbox,modId){if(arguments.length>0){this.$ctx=$ctx;this.modId=modId;this.connectors=[];this.dependencyCounter={beforeBinding:0,onBinding:1,afterBinding:0};this.sandbox=sandbox;}};$.extend(Nx.Module.prototype,{start:function(){var that=this;if(this.dependencies){this.dependencyCounter.beforeBinding++;this.dependencies();this.dependencyCounter.beforeBinding--;}
this.checkDependencies('beforeBinding',function(){that.initBeforeBinding();});},stop:function(){$('*',this.$ctx).unbind().removeData();this.$ctx.unbind().removeData();},initBeforeBinding:function(){var that=this;if(this.beforeBinding){this.beforeBinding(function(){that.beforeBindingCallback();});}
else{this.beforeBindingCallback();}},beforeBindingCallback:function(){var that=this;that.dependencyCounter.onBinding--;var callback=function(){that.initOnBinding();};that.checkDependencies('onBinding',callback);},initOnBinding:function(){var that=this;if(this.onBinding){this.onBinding();}
this.checkDependencies('afterBinding',function(){that.sandbox.readyForAfterBinding(function(){that.initAfterBinding();});});},initAfterBinding:function(){if(this.afterBinding){this.afterBinding();}},checkDependencies:function(phase,callback){if(this.dependencyCounter[phase]===0){callback();}},require:function(dependency,type,phase,executeCallback){var that=this;phase=phase||'onBinding';type=type||'plugin';executeCallback=executeCallback===false?false:true;this.dependencyCounter[phase]++;var callback=$.proxy(function(){if(executeCallback){var that=this;this.dependencyCounter[phase]--;this.checkDependencies(phase,function(){that['init'+Nx.Utils.String.capitalize(phase)]();});}},this.sandbox.getModuleById(this.modId));this.sandbox.loadDependency(dependency,type,callback,phase);},fire:function(state,data,defaultAction){var that=this;data=data||{};state=Nx.Utils.String.capitalize(state);$.each(that.connectors,function(){var connector=this;var callback=function(){if(typeof defaultAction=='function'){defaultAction();}
connector.notify(that,'after'+state,data);};if(connector.notify(that,'on'+state,data,callback)){callback();}});if(this.connectors.length<1){if(typeof defaultAction=='function'){defaultAction();}}},attachConnector:function(connector){this.connectors.push(connector);},getDecoratedModule:function(module,skin){if(Nx.Module[module][skin]){var decorator=Nx.Module[module][skin];decorator.prototype=this;decorator.prototype.constructor=Nx.Module[module][skin];return new decorator(this);}
else{$.log.info('the skin '+skin+' does not exists for this module');return null;}}});})(Nx.$);
(function($){Nx.Connector=function(connectorId){if(arguments.length>0){this.connectorId=connectorId;this.components=[];}};$.extend(Nx.Connector.prototype,{registerComponent:function(component,role){role=role||'standard';this.components.push({'component':component,'role':role});},unregisterComponent:function(component){var index;for(var id in this.components){if(this.components[id].component===component){delete this.components[id];}}},notify:function(component,state,data,callback){var proceed=true;for(var id in this.components){if(this.components[id].component!==component&&this.components[id].component[state]){if(this.components[id].component[state](data,callback)===false){proceed=false;}}}
return proceed;}});})(Nx.$);
(function($){Nx.Connector.MasterSlave=function(connectorId){Nx.Connector.MasterSlave.superclass.constructor.call(this,connectorId);};$.oo.extend(Nx.Connector.MasterSlave,Nx.Connector);Nx.$.extend(Nx.Connector.MasterSlave.prototype,{notify:function(component,state,data,callback){var proceed=true,id;for(id in this.components){if(this.components[id].component.modId===component.modId&&this.components[id].role==='Master'){for(id in this.components){if(this.components[id].component.modId!==component.modId&&this.components[id].component[state]){if(this.components[id].component[state](data,callback)===false){proceed=false;}}}}}
return proceed;}});})(Nx.$);
(function($){Nx.Sandbox=function(application,config){this.application=application;this.config=config;this.dependencies=[];this.afterBindingCallbacks=[];};$.extend(Nx.Sandbox.prototype,{addModules:function($ctx){var modules=[];if($ctx){modules=this.application.addModules($ctx);}
return modules;},removeModules:function(modules){modules=modules||[];this.application.removeModules(modules);},loadDependency:function(dependency,type,callback,phase){var that=this;phase=phase||'none';type=type||'plugin';if(that.dependencies[dependency]&&that.dependencies[dependency].state==='requested'){$.log.info('dependency '+dependency+' already requested');that.dependencies[dependency].callbacks.push(function(){callback(phase);});}
else if(that.dependencies[dependency]&&that.dependencies[dependency].state==='loaded'){$.log.info('dependency '+dependency+' already loaded');callback(phase);}
else{$.log.time('load dependency '+dependency);that.dependencies[dependency]={state:'requested',callbacks:[]};var path;switch(type){case'library':case'plugin':case'util':path=this.config.dependencyPath[type];break;case'url':path='';break;case'default':$.log.error('the type '+type+' is not known');break;}
setTimeout(function(){$.ajax({url:''+path+dependency,dataType:'script',cache:true,success:function(){$.log.time('load dependency '+dependency);that.dependencies[dependency].state='loaded';callback(phase);var callbacks=that.dependencies[dependency].callbacks;for(var i=0;i<callbacks.length;i++){callbacks[i]();}},error:function(){$.log.error('an error occured during loading the dependency '+path+dependency);}});},5);}},readyForAfterBinding:function(callback){this.afterBindingCallbacks.push(callback);if(this.application.modules.length==this.afterBindingCallbacks.length){for(var i=0;i<this.afterBindingCallbacks.length;i++){this.afterBindingCallbacks[i]();}}},getConfig:function(){return this.config;},getConfigParam:function(name){if(this.config.name!==undefined){return this.config.name;}
else{throw new Error('the config param '+name+' does not exist');}},getModuleById:function(id){if(this.application.modules[id]!==undefined){return this.application.modules[id];}
else{throw new Error('the module with the id '+id+' does not exist');}}});})(Nx.$);
Nx.Utils={};
(function($){Nx.Utils.String={capitalize:function(str){return str.substr(0,1).toUpperCase().concat(str.substr(1));}};})(Nx.$);
(function($,window){var
defaults={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},colorbox='colorbox',prefix='cbox',event_open=prefix+'_open',event_load=prefix+'_load',event_complete=prefix+'_complete',event_cleanup=prefix+'_cleanup',event_closed=prefix+'_closed',event_purge=prefix+'_purge',event_loaded=prefix+'_loaded',isIE=$.browser.msie&&!$.support.opacity,isIE6=isIE&&$.browser.version<7,event_ie6=prefix+'_IE6',$overlay,$box,$wrap,$content,$topBorder,$leftBorder,$rightBorder,$bottomBorder,$related,$window,$loaded,$loadingBay,$loadingOverlay,$title,$current,$slideshow,$next,$prev,$close,interfaceHeight,interfaceWidth,loadedHeight,loadedWidth,element,bookmark,index,settings,open,active,closing=false,publicMethod,boxElement=prefix+'Element';function $div(id,css){id=id?' id="'+prefix+id+'"':'';css=css?' style="'+css+'"':'';return $('<div'+id+css+'/>');}
function setSize(size,dimension){dimension=dimension==='x'?$window.width():$window.height();return(typeof size==='string')?Math.round((/%/.test(size)?(dimension/100)*parseInt(size,10):parseInt(size,10))):size;}
function isImage(url,target){url=$.isFunction(url)?url.call(target):url;return settings.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(url);}
function process(settings){for(var i in settings){if($.isFunction(settings[i])&&i.substring(0,2)!=='on'){settings[i]=settings[i].call(element);}}
settings.rel=settings.rel||element.rel||'nofollow';settings.href=settings.href||$(element).attr('href');settings.title=settings.title||element.title;return settings;}
function trigger(event,callback){if(callback){callback.call(element);}
$.event.trigger(event);}
function slideshow(){var
timeOut,className=prefix+"Slideshow_",click="click."+prefix,start,stop,clear;if(settings.slideshow&&$related[1]){start=function(){$slideshow.text(settings.slideshowStop).unbind(click).bind(event_complete,function(){if(index<$related.length-1||settings.loop){timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed);}}).bind(event_load,function(){clearTimeout(timeOut);}).one(click,stop);$box.removeClass(className+"off").addClass(className+"on");timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed);};stop=function(){clearTimeout(timeOut);$slideshow.text(settings.slideshowStart).unbind(event_complete+' '+event_load+' '+click).one(click,start);$box.removeClass(className+"on").addClass(className+"off");};$slideshow.bind(event_closed,function(){clearTimeout(timeOut);});if($box.hasClass(className+"on")||(settings.slideshowAuto&&!$box.hasClass(className+"off"))){start();}else{stop();}}}
function launch(elem){if(!closing){element=elem;settings=process($.extend({},$.data(element,colorbox)));$related=$(element);index=0;if(settings.rel!=='nofollow'){$related=$('.'+boxElement).filter(function(){var relRelated=$.data(this,colorbox).rel||this.rel;return(relRelated===settings.rel);});index=$related.index(element);if(index===-1){$related=$related.add(element);index=$related.length-1;}}
if(!open){open=active=true;$box.show();bookmark=element;try{bookmark.blur();}catch(e){}
$overlay.css({"opacity":+settings.opacity,"cursor":settings.overlayClose?"pointer":"auto"}).show();settings.w=setSize(settings.initialWidth,'x');settings.h=setSize(settings.initialHeight,'y');publicMethod.position(0);if(isIE6){$window.bind('resize.'+event_ie6+' scroll.'+event_ie6,function(){$overlay.css({width:$window.width(),height:$window.height(),top:$window.scrollTop(),left:$window.scrollLeft()});}).trigger('scroll.'+event_ie6);}
trigger(event_open,settings.onOpen);$current.add($prev).add($next).add($slideshow).add($title).hide();$close.html(settings.close).show();}
publicMethod.load(true);}}
publicMethod=$.fn[colorbox]=$[colorbox]=function(options,callback){var $this=this,autoOpen;if(!$this[0]&&$this.selector){return $this;}
options=options||{};if(callback){options.onComplete=callback;}
if(!$this[0]||$this.selector===undefined){$this=$('<a/>');options.open=true;}
$this.each(function(){$.data(this,colorbox,$.extend({},$.data(this,colorbox)||defaults,options));$(this).addClass(boxElement);});autoOpen=options.open;if($.isFunction(autoOpen)){autoOpen=autoOpen.call($this);}
if(autoOpen){launch($this[0]);}
return $this;};publicMethod.init=function(){$window=$(window);$box=$div().attr({id:colorbox,'class':isIE?prefix+'IE':''});$overlay=$div("Overlay",isIE6?'position:absolute':'').hide();$wrap=$div("Wrapper");$content=$div("Content").append($loaded=$div("LoadedContent",'width:0; height:0; overflow:hidden'),$loadingOverlay=$div("LoadingOverlay").add($div("LoadingGraphic")),$title=$div("Title"),$current=$div("Current"),$next=$div("Next"),$prev=$div("Previous"),$slideshow=$div("Slideshow").bind(event_open,slideshow),$close=$div("Close"));$wrap.append($div().append($div("TopLeft"),$topBorder=$div("TopCenter"),$div("TopRight")),$div(false,'clear:left').append($leftBorder=$div("MiddleLeft"),$content,$rightBorder=$div("MiddleRight")),$div(false,'clear:left').append($div("BottomLeft"),$bottomBorder=$div("BottomCenter"),$div("BottomRight"))).children().children().css({'float':'left'});$loadingBay=$div(false,'position:absolute; width:9999px; visibility:hidden; display:none');$('body').prepend($overlay,$box.append($wrap,$loadingBay));$content.children().hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');}).addClass('hover');interfaceHeight=$topBorder.height()+$bottomBorder.height()+$content.outerHeight(true)-$content.height();interfaceWidth=$leftBorder.width()+$rightBorder.width()+$content.outerWidth(true)-$content.width();loadedHeight=$loaded.outerHeight(true);loadedWidth=$loaded.outerWidth(true);$box.css({"padding-bottom":interfaceHeight,"padding-right":interfaceWidth}).hide();$next.click(publicMethod.next);$prev.click(publicMethod.prev);$close.click(publicMethod.close);$content.children().removeClass('hover');$('.'+boxElement).live('click',function(e){if(!((e.button!==0&&typeof e.button!=='undefined')||e.ctrlKey||e.shiftKey||e.altKey)){e.preventDefault();launch(this);}});$overlay.click(function(){if(settings.overlayClose){publicMethod.close();}});$(document).bind("keydown",function(e){if(open&&settings.escKey&&e.keyCode===27){e.preventDefault();publicMethod.close();}
if(open&&settings.arrowKey&&!active&&$related[1]){if(e.keyCode===37&&(index||settings.loop)){e.preventDefault();$prev.click();}else if(e.keyCode===39&&(index<$related.length-1||settings.loop)){e.preventDefault();$next.click();}}});};publicMethod.remove=function(){$box.add($overlay).remove();$('.'+boxElement).die('click').removeData(colorbox).removeClass(boxElement);};publicMethod.position=function(speed,loadedCallback){var
animate_speed,posTop=Math.max(document.documentElement.clientHeight-settings.h-loadedHeight-interfaceHeight,0)/2+$window.scrollTop(),posLeft=Math.max($window.width()-settings.w-loadedWidth-interfaceWidth,0)/2+$window.scrollLeft();animate_speed=($box.width()===settings.w+loadedWidth&&$box.height()===settings.h+loadedHeight)?0:speed;$wrap[0].style.width=$wrap[0].style.height="9999px";function modalDimensions(that){$topBorder[0].style.width=$bottomBorder[0].style.width=$content[0].style.width=that.style.width;$loadingOverlay[0].style.height=$loadingOverlay[1].style.height=$content[0].style.height=$leftBorder[0].style.height=$rightBorder[0].style.height=that.style.height;}
$box.dequeue().animate({width:settings.w+loadedWidth,height:settings.h+loadedHeight,top:posTop,left:posLeft},{duration:animate_speed,complete:function(){modalDimensions(this);active=false;$wrap[0].style.width=(settings.w+loadedWidth+interfaceWidth)+"px";$wrap[0].style.height=(settings.h+loadedHeight+interfaceHeight)+"px";if(loadedCallback){loadedCallback();}},step:function(){modalDimensions(this);}});};publicMethod.resize=function(options){if(open){options=options||{};if(options.width){settings.w=setSize(options.width,'x')-loadedWidth-interfaceWidth;}
if(options.innerWidth){settings.w=setSize(options.innerWidth,'x');}
$loaded.css({width:settings.w});if(options.height){settings.h=setSize(options.height,'y')-loadedHeight-interfaceHeight;}
if(options.innerHeight){settings.h=setSize(options.innerHeight,'y');}
if(!options.innerHeight&&!options.height){var $child=$loaded.wrapInner("<div style='overflow:auto'></div>").children();settings.h=$child.height();$child.replaceWith($child.children());}
$loaded.css({height:settings.h});publicMethod.position(settings.transition==="none"?0:settings.speed);}};publicMethod.prep=function(object){if(!open){return;}
var photo,speed=settings.transition==="none"?0:settings.speed;$window.unbind('resize.'+prefix);$loaded.remove();$loaded=$div('LoadedContent').html(object);function getWidth(){settings.w=settings.w||$loaded.width();settings.w=settings.mw&&settings.mw<settings.w?settings.mw:settings.w;return settings.w;}
function getHeight(){settings.h=settings.h||$loaded.height();settings.h=settings.mh&&settings.mh<settings.h?settings.mh:settings.h;return settings.h;}
$loaded.hide().appendTo($loadingBay.show()).css({width:getWidth(),overflow:settings.scrolling?'auto':'hidden'}).css({height:getHeight()}).prependTo($content);$loadingBay.hide();$('#'+prefix+'Photo').css({cssFloat:'none',marginLeft:'auto',marginRight:'auto'});if(isIE6){$('select').not($box.find('select')).filter(function(){return this.style.visibility!=='hidden';}).css({'visibility':'hidden'}).one(event_cleanup,function(){this.style.visibility='inherit';});}
function setPosition(s){var prev,prevSrc,next,nextSrc,total=$related.length,loop=settings.loop;publicMethod.position(s,function(){function defilter(){if(isIE){$box[0].style.filter=false;}}
if(!open){return;}
if(isIE){if(photo){$loaded.fadeIn(100);}}
$loaded.show();trigger(event_loaded);$title.show().html(settings.title);if(total>1){$current.html(settings.current.replace(/\{current\}/,index+1).replace(/\{total\}/,total)).show();$next[(loop||index<total-1)?"show":"hide"]().html(settings.next);$prev[(loop||index)?"show":"hide"]().html(settings.previous);prev=index?$related[index-1]:$related[total-1];next=index<total-1?$related[index+1]:$related[0];if(settings.slideshow){$slideshow.show();}
if(settings.preloading){nextSrc=$.data(next,colorbox).href||next.href;prevSrc=$.data(prev,colorbox).href||prev.href;if(isImage(nextSrc,next)){$('<img/>')[0].src=nextSrc;}
if(isImage(prevSrc,prev)){$('<img/>')[0].src=prevSrc;}}}
$loadingOverlay.hide();if(settings.transition==='fade'){$box.fadeTo(speed,1,function(){defilter();});}else{defilter();}
$window.bind('resize.'+prefix,function(){publicMethod.position(0);});trigger(event_complete,settings.onComplete);});}
if(settings.transition==='fade'){$box.fadeTo(speed,0,function(){setPosition(0);});}else{setPosition(speed);}};publicMethod.load=function(launched){var href,img,setResize,prep=publicMethod.prep;active=true;element=$related[index];if(!launched){settings=process($.extend({},$.data(element,colorbox)));}
trigger(event_purge);trigger(event_load,settings.onLoad);settings.h=settings.height?setSize(settings.height,'y')-loadedHeight-interfaceHeight:settings.innerHeight&&setSize(settings.innerHeight,'y');settings.w=settings.width?setSize(settings.width,'x')-loadedWidth-interfaceWidth:settings.innerWidth&&setSize(settings.innerWidth,'x');settings.mw=settings.w;settings.mh=settings.h;if(settings.maxWidth){settings.mw=setSize(settings.maxWidth,'x')-loadedWidth-interfaceWidth;settings.mw=settings.w&&settings.w<settings.mw?settings.w:settings.mw;}
if(settings.maxHeight){settings.mh=setSize(settings.maxHeight,'y')-loadedHeight-interfaceHeight;settings.mh=settings.h&&settings.h<settings.mh?settings.h:settings.mh;}
href=settings.href;$loadingOverlay.show();if(settings.inline){$div().hide().insertBefore($(href)[0]).one(event_purge,function(){$(this).replaceWith($loaded.children());});prep($(href));}else if(settings.iframe){$box.one(event_loaded,function(){var $iframe=$("<iframe name='"+new Date().getTime()+"' frameborder=0"+(settings.scrolling?"":" scrolling='no'")+(isIE?" allowtransparency='true'":'')+" style='width:100%; height:100%; border:0; display:block;'/>");$iframe[0].src=settings.href;$iframe.appendTo($loaded).one(event_purge,function(){$iframe[0].src='about:blank';});});prep(" ");}else if(settings.html){prep(settings.html);}else if(isImage(href,element)){img=new Image();img.onload=function(){var percent;img.onload=null;img.id=prefix+'Photo';$(img).css({border:'none',display:'block',cssFloat:'left'});if(settings.scalePhotos){setResize=function(){img.height-=img.height*percent;img.width-=img.width*percent;};if(settings.mw&&img.width>settings.mw){percent=(img.width-settings.mw)/img.width;setResize();}
if(settings.mh&&img.height>settings.mh){percent=(img.height-settings.mh)/img.height;setResize();}}
if(settings.h){img.style.marginTop=Math.max(settings.h-img.height,0)/2+'px';}
if($related[1]&&(index<$related.length-1||settings.loop)){$(img).css({cursor:'pointer'}).click(publicMethod.next);}
if(isIE){img.style.msInterpolationMode='bicubic';}
setTimeout(function(){prep(img);},1);};setTimeout(function(){img.src=href;},1);}else{$div().appendTo($loadingBay).load(href,function(data,status,xhr){prep(status==='error'?'Request unsuccessful: '+xhr.statusText:this);});}};publicMethod.next=function(){if(!active){index=index<$related.length-1?index+1:0;publicMethod.load();}};publicMethod.prev=function(){if(!active){index=index?index-1:$related.length-1;publicMethod.load();}};publicMethod.close=function(){if(open&&!closing){closing=true;open=false;trigger(event_cleanup,settings.onCleanup);$window.unbind('.'+prefix+' .'+event_ie6);$overlay.fadeTo('fast',0);$box.stop().fadeTo('fast',0,function(){trigger(event_purge);$loaded.remove();$box.add($overlay).css({'opacity':1,cursor:'auto'}).hide();try{bookmark.focus();}catch(e){}
setTimeout(function(){closing=false;trigger(event_closed,settings.onClosed);},1);});}};publicMethod.element=function(){return $(element);};publicMethod.settings=defaults;$(publicMethod.init);}(jQuery,this));
(function($){(function($){var $jq=$;$.fn.colorbox.closeFlag=false;$.fn.colorbox.reloadFlag=false;$.fn.colorbox.language;var cboxClose=$.fn.colorbox.close;var $confirmation=null;jQuery.fn.center=function(){this.css("position","absolute");this.css("top",($(window).height()-this.height())/2+$(window).scrollTop()+"px");this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px");return this;}
jQuery.fn.centerOnParent=function(obj){this.css("position","absolute");this.css("top",($(parent.window).height()-this.height())/2+$(parent.window).scrollTop()+"px");this.css("left",($(parent.window).width()-this.width())/2+$(parent.window).scrollLeft()+"px");return this;}
$.fn.colorbox.close=function(){$mod=$('.skinGuideConfDialogDefault');$overlay=$('.overlayConfDialog');if($mod.is(":visible")==true||$.fn.colorbox.closeFlag==true){cboxClose();if($.fn.colorbox.reloadFlag)
{var strGuids=Nx.Module.getCookie("LeafLetSessionCookie");var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));if(strGuids==''){Nx.Module.delCookie("LeafLetCookie","/");}
else{Nx.Module.setCookie("LeafLetCookie",strGuids,date,"/");}
$.fn.colorbox.reloadFlag=false;$.fn.colorbox.reloadLeaflet();}
Nx.Module.delCookie("LeafLetSessionCookie","/");var url=window.location.href.split("?");window.location=url[0].replace("https","http")+"?sc_lang="+$.fn.colorbox.language;}
else{$mod.show();$mod.center();$overlay.show();$overlay.height($(document).height());}};$.fn.colorbox.closedirect=function(){cboxClose();};$.fn.getURLParameter=function(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results===null){return"";}
else{return results[1];}};$.fn.colorbox.reloadLeaflet=function(){var $leafletContent=$('.modTeaserLeaflet .wrapper .content .item');var IDs=Nx.Module.getCookie("LeafLetCookie");$.ajax({url:Nx.Config.services.leaflet,data:"op=GetPagesForIDs&pIDs="+IDs,dataType:"json",type:"GET",cache:true,timeout:Nx.Utils.Service.config.timeout.update,contentType:"application/json; charset=utf-8",success:function(data){if(data.GetPageForID.length>0){$('li',$leafletContent).remove();$.each(data.GetPageForID,function(i,item){var name=item["Title"];var guid=item["ID"];var href=item["Link"];$leafletContent.append('<li><span class="txt"><a href="'+href+'" rel="'+guid+'">'+name+'</a></span><span class="img"><img class="blank" src="/Frontend/Nationale/Images/blank.gif"></span></li>');});Nx.Module.TeaserLeaflet.SetHeight();}}});};})($);})(jQuery);
(function($){Nx.Module.setCookie=function(name,value,expires,path){value=encodeURI(value);var theCookie=name+"="+value+
((expires)?";expires="+expires.toGMTString():"")+
((path)?";path="+path:"");document.cookie=theCookie;}
Nx.Module.getCookie=function(Name){var search=Name+"="
if(document.cookie.length>0){var offset=document.cookie.indexOf(search)
if(offset!=-1){offset+=search.length
var end=document.cookie.indexOf(";",offset)
if(end==-1)
end=document.cookie.length
return unescape(document.cookie.substring(offset,end))}}}
Nx.Module.delCookie=function(name,path){if(Nx.Module.getCookie(name))
document.cookie=name+"="+
((path)?";path="+path:"")+";expires=Thu, 01-Jan-70 00:00:01 GMT";}})(jQuery);
(function(b,a,c){b.fn.jScrollPane=function(f){function d(C,L){var au,N=this,V,ah,v,aj,Q,W,y,q,av,aB,ap,i,H,h,j,X,R,al,U,t,A,am,ac,ak,F,l,ao,at,x,aq,aE,g,aA,ag=true,M=true,aD=false,k=false,Z=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aE=C.css("paddingTop")+" "+C.css("paddingRight")+" "+C.css("paddingBottom")+" "+C.css("paddingLeft");g=(parseInt(C.css("paddingLeft"))||0)+(parseInt(C.css("paddingRight"))||0);an(L);function an(aH){var aL,aK,aJ,aG,aF,aI;au=aH;if(V==c){C.css({overflow:"hidden",padding:0});ah=C.innerWidth()+g;v=C.innerHeight();C.width(ah);V=b('<div class="jspPane" />').wrap(b('<div class="jspContainer" />').css({width:ah+"px",height:v+"px"}));C.wrapInner(V.parent());aj=C.find(">.jspContainer");V=aj.find(">.jspPane");V.css("padding",aE)}else{C.css("width","");aI=C.outerWidth()+g!=ah||C.outerHeight()!=v;if(aI){ah=C.innerWidth()+g;v=C.innerHeight();aj.css({width:ah+"px",height:v+"px"})}aA=V.innerWidth();if(!aI&&V.outerWidth()==Q&&V.outerHeight()==W){if(aB||av){V.css("width",aA+"px");C.css("width",(aA+g)+"px")}return}V.css("width","");C.css("width",(ah)+"px");aj.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}aL=V.clone().css("position","absolute");aK=b('<div style="width:1px; position: relative;" />').append(aL);b("body").append(aK);Q=Math.max(V.outerWidth(),aL.outerWidth());aK.remove();W=V.outerHeight();y=Q/ah;q=W/v;av=q>1;aB=y>1;if(!(aB||av)){C.removeClass("jspScrollable");V.css({top:0,width:aj.width()-g});n();D();O();w();af()}else{C.addClass("jspScrollable");aJ=au.maintainPosition&&(H||X);if(aJ){aG=ay();aF=aw()}aC();z();E();if(aJ){K(aG);J(aF)}I();ad();if(au.enableKeyboardNavigation){P()}if(au.clickOnTrack){p()}B();if(au.hijackInternalLinks){m()}}if(au.autoReinitialise&&!aq){aq=setInterval(function(){an(au)},au.autoReinitialiseDelay)}else{if(!au.autoReinitialise&&aq){clearInterval(aq)}}C.trigger("jsp-initialised",[aB||av])}function aC(){if(av){aj.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));R=aj.find(">.jspVerticalBar");al=R.find(">.jspTrack");ap=al.find(">.jspDrag");if(au.showArrows){am=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",az(0,-1)).bind("click.jsp",ax);ac=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",az(0,1)).bind("click.jsp",ax);if(au.arrowScrollOnHover){am.bind("mouseover.jsp",az(0,-1,am));ac.bind("mouseover.jsp",az(0,1,ac))}ai(al,au.verticalArrowPositions,am,ac)}t=v;aj.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){t-=b(this).outerHeight()});ap.hover(function(){ap.addClass("jspHover")},function(){ap.removeClass("jspHover")}).bind("mousedown.jsp",function(aF){b("html").bind("dragstart.jsp selectstart.jsp",function(){return false});ap.addClass("jspActive");var s=aF.pageY-ap.position().top;b("html").bind("mousemove.jsp",function(aG){S(aG.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",ar);return false});o()}}function o(){al.height(t+"px");H=0;U=au.verticalGutter+al.outerWidth();V.width(ah-U-g);if(R.position().left==0){V.css("margin-left",U+"px")}}function z(){if(aB){aj.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));ak=aj.find(">.jspHorizontalBar");F=ak.find(">.jspTrack");h=F.find(">.jspDrag");if(au.showArrows){at=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",az(-1,0)).bind("click.jsp",ax);x=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",az(1,0)).bind("click.jsp",ax);if(au.arrowScrollOnHover){at.bind("mouseover.jsp",az(-1,0,at));x.bind("mouseover.jsp",az(1,0,x))}ai(F,au.horizontalArrowPositions,at,x)}h.hover(function(){h.addClass("jspHover")},function(){h.removeClass("jspHover")}).bind("mousedown.jsp",function(aF){b("html").bind("dragstart.jsp selectstart.jsp",function(){return false});h.addClass("jspActive");var s=aF.pageX-h.position().left;b("html").bind("mousemove.jsp",function(aG){T(aG.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",ar);return false});l=aj.innerWidth();ae()}else{}}function ae(){aj.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){l-=b(this).outerWidth()});F.width(l+"px");X=0}function E(){if(aB&&av){var aF=F.outerHeight(),s=al.outerWidth();t-=aF;b(ak).find(">.jspCap:visible,>.jspArrow").each(function(){l+=b(this).outerWidth()});l-=s;v-=s;ah-=aF;F.parent().append(b('<div class="jspCorner" />').css("width",aF+"px"));o();ae()}if(aB){V.width((aj.outerWidth()-g)+"px")}W=V.outerHeight();q=W/v;if(aB){ao=1/y*l;if(ao>au.horizontalDragMaxWidth){ao=au.horizontalDragMaxWidth}else{if(ao<au.horizontalDragMinWidth){ao=au.horizontalDragMinWidth}}h.width(ao+"px");j=l-ao;ab(X)}if(av){A=1/q*t;if(A>au.verticalDragMaxHeight){A=au.verticalDragMaxHeight}else{if(A<au.verticalDragMinHeight){A=au.verticalDragMinHeight}}ap.height(A+"px");i=t-A;aa(H)}}function ai(aG,aI,aF,s){var aK="before",aH="after",aJ;if(aI=="os"){aI=/Mac/.test(navigator.platform)?"after":"split"}if(aI==aK){aH=aI}else{if(aI==aH){aK=aI;aJ=aF;aF=s;s=aJ}}aG[aK](aF)[aH](s)}function az(aF,s,aG){return function(){G(aF,s,this,aG);this.blur();return false}}function G(aH,aF,aK,aJ){aK=b(aK).addClass("jspActive");var aI,s=function(){if(aH!=0){T(X+aH*au.arrowButtonSpeed,false)}if(aF!=0){S(H+aF*au.arrowButtonSpeed,false)}},aG=setInterval(s,au.arrowRepeatFreq);s();aI=aJ==c?"mouseup.jsp":"mouseout.jsp";aJ=aJ||b("html");aJ.bind(aI,function(){aK.removeClass("jspActive");clearInterval(aG);aJ.unbind(aI)})}function p(){w();if(av){al.bind("mousedown.jsp",function(aH){if(aH.originalTarget==c||aH.originalTarget==aH.currentTarget){var aG=b(this),s=setInterval(function(){var aI=aG.offset(),aJ=aH.pageY-aI.top;if(H+A<aJ){S(H+au.trackClickSpeed)}else{if(aJ<H){S(H-au.trackClickSpeed)}else{aF()}}},au.trackClickRepeatFreq),aF=function(){s&&clearInterval(s);s=null;b(document).unbind("mouseup.jsp",aF)};b(document).bind("mouseup.jsp",aF);return false}})}if(aB){F.bind("mousedown.jsp",function(aH){if(aH.originalTarget==c||aH.originalTarget==aH.currentTarget){var aG=b(this),s=setInterval(function(){var aI=aG.offset(),aJ=aH.pageX-aI.left;if(X+ao<aJ){T(X+au.trackClickSpeed)}else{if(aJ<X){T(X-au.trackClickSpeed)}else{aF()}}},au.trackClickRepeatFreq),aF=function(){s&&clearInterval(s);s=null;b(document).unbind("mouseup.jsp",aF)};b(document).bind("mouseup.jsp",aF);return false}})}}function w(){F&&F.unbind("mousedown.jsp");al&&al.unbind("mousedown.jsp")}function ar(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");ap&&ap.removeClass("jspActive");h&&h.removeClass("jspActive")}function S(s,aF){if(!av){return}if(s<0){s=0}else{if(s>i){s=i}}if(aF==c){aF=au.animateScroll}if(aF){N.animate(ap,"top",s,aa)}else{ap.css("top",s);aa(s)}}function aa(aF){if(aF==c){aF=ap.position().top}aj.scrollTop(0);H=aF;var aI=H==0,aG=H==i,aH=aF/i,s=-aH*(W-v);if(ag!=aI||aD!=aG){ag=aI;aD=aG;C.trigger("jsp-arrow-change",[ag,aD,M,k])}u(aI,aG);V.css("top",s);C.trigger("jsp-scroll-y",[-s,aI,aG])}function T(aF,s){if(!aB){return}if(aF<0){aF=0}else{if(aF>j){aF=j}}if(s==c){s=au.animateScroll}if(s){N.animate(h,"left",aF,ab)}else{h.css("left",aF);ab(aF)}}function ab(aF){if(aF==c){aF=h.position().left}aj.scrollTop(0);X=aF;var aI=X==0,aH=X==j,aG=aF/j,s=-aG*(Q-ah);if(M!=aI||k!=aH){M=aI;k=aH;C.trigger("jsp-arrow-change",[ag,aD,M,k])}r(aI,aH);V.css("left",s);C.trigger("jsp-scroll-x",[-s,aI,aH])}function u(aF,s){if(au.showArrows){am[aF?"addClass":"removeClass"]("jspDisabled");ac[s?"addClass":"removeClass"]("jspDisabled")}}function r(aF,s){if(au.showArrows){at[aF?"addClass":"removeClass"]("jspDisabled");x[s?"addClass":"removeClass"]("jspDisabled")}}function J(s,aF){var aG=s/(W-v);S(aG*i,aF)}function K(aF,s){var aG=aF/(Q-ah);T(aG*j,s)}function Y(aR,aM,aG){var aK,aH,aI,s=0,aQ=0,aF,aL,aO,aN,aP;try{aK=b(aR)}catch(aJ){return}aH=aK.outerHeight();aI=aK.outerWidth();aj.scrollTop(0);aj.scrollLeft(0);while(!aK.is(".jspPane")){s+=aK.position().top;aQ+=aK.position().left;aK=aK.offsetParent();if(/^body|html$/i.test(aK[0].nodeName)){return}}aF=aw();aL=aF+v;if(s<aF||aM){aN=s-au.verticalGutter}else{if(s+aH>aL){aN=s-v+aH+au.verticalGutter}}if(aN){J(aN,aG)}viewportLeft=ay();aO=viewportLeft+ah;if(aQ<viewportLeft||aM){aP=aQ-au.horizontalGutter}else{if(aQ+aI>aO){aP=aQ-ah+aI+au.horizontalGutter}}if(aP){K(aP,aG)}}function ay(){return-V.position().left}function aw(){return-V.position().top}function ad(){aj.unbind(Z).bind(Z,function(aI,aJ,aH,aF){var aG=X,s=H;T(X+aH*au.mouseWheelSpeed,false);S(H-aF*au.mouseWheelSpeed,false);return aG==X&&s==H})}function n(){aj.unbind(Z)}function ax(){return false}function I(){V.unbind("focusin.jsp").bind("focusin.jsp",function(s){if(s.target===V[0]){return}Y(s.target,false)})}function D(){V.unbind("focusin.jsp")}function P(){var aF,s;C.attr("tabindex",0).unbind("keydown.jsp").bind("keydown.jsp",function(aJ){if(aJ.target!==C[0]){return}var aH=X,aG=H,aI=aF?2:16;switch(aJ.keyCode){case 40:S(H+aI,false);break;case 38:S(H-aI,false);break;case 34:case 32:J(aw()+Math.max(32,v)-16);break;case 33:J(aw()-v+16);break;case 35:J(W-v);break;case 36:J(0);break;case 39:T(X+aI,false);break;case 37:T(X-aI,false);break}if(!(aH==X&&aG==H)){aF=true;clearTimeout(s);s=setTimeout(function(){aF=false},260);return false}});if(au.hideFocus){C.css("outline","none");if("hideFocus"in aj[0]){C.attr("hideFocus",true)}}else{C.css("outline","");if("hideFocus"in aj[0]){C.attr("hideFocus",false)}}}function O(){C.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp")}function B(){if(location.hash&&location.hash.length>1){var aG,aF;try{aG=b(location.hash)}catch(s){return}if(aG.length&&V.find(aG)){if(aj.scrollTop()==0){aF=setInterval(function(){if(aj.scrollTop()>0){Y(location.hash,true);b(document).scrollTop(aj.position().top);clearInterval(aF)}},50)}else{Y(location.hash,true);b(document).scrollTop(aj.position().top)}}}}function af(){b("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function m(){af();b("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var s=this.href.split("#"),aF;if(s.length>1){aF=s[1];if(aF.length>0&&V.find("#"+aF).length>0){Y("#"+aF,true);return false}}})}b.extend(N,{reinitialise:function(aF){aF=b.extend({},aF,au);an(aF)},scrollToElement:function(aG,aF,s){Y(aG,aF,s)},scrollTo:function(aG,s,aF){K(aG,aF);J(s,aF)},scrollToX:function(aF,s){K(aF,s)},scrollToY:function(s,aF){J(s,aF)},scrollBy:function(aF,s,aG){N.scrollByX(aF,aG);N.scrollByY(s,aG)},scrollByX:function(s,aG){var aF=ay()+s,aH=aF/(Q-ah);T(aH*j,aG)},scrollByY:function(s,aG){var aF=aw()+s,aH=aF/(W-v);S(aH*i,aG)},animate:function(aF,aI,s,aH){var aG={};aG[aI]=s;aF.animate(aG,{duration:au.animateDuration,ease:au.animateEase,queue:false,step:aH})},getContentPositionX:function(){return ay()},getContentPositionY:function(){return aw()},getIsScrollableH:function(){return aB},getIsScrollableV:function(){return av},getContentPane:function(){return V},scrollToBottom:function(s){S(i,s)},hijackInternalLinks:function(){m()}})}f=b.extend({},b.fn.jScrollPane.defaults,f);var e;this.each(function(){var g=b(this),h=g.data("jsp");if(h){h.reinitialise(f)}else{h=new d(g,f);g.data("jsp",h)}e=e?e.add(g):g});return e};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:10,arrowButtonSpeed:10,arrowRepeatFreq:100,arrowScrollOnHover:false,trackClickSpeed:30,trackClickRepeatFreq:100,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false}})(jQuery,this);
(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(i){var g=i||window.event,f=[].slice.call(arguments,1),j=0,h=true,e=0,d=0;i=c.event.fix(g);i.type="mousewheel";if(i.wheelDelta){j=i.wheelDelta/120}if(i.detail){j=-i.detail/3}d=j;if(g.axis!==undefined&&g.axis===g.HORIZONTAL_AXIS){d=0;e=-1*j}if(g.wheelDeltaY!==undefined){d=g.wheelDeltaY/120}if(g.wheelDeltaX!==undefined){e=-1*g.wheelDeltaX/120}f.unshift(i,j,e,d);return c.event.handle.apply(this,f)}})(jQuery);
(function($){Nx.Utils.Service={config:{timeout:{update:15000,calculate:30000}},status:{ok:'ok',operationfailed:'operation_failed',servicefailed:'service_failed',dbfailed:'db_failed'},ajaxerror:function(callback){$.log.error('AJAX - Error - block');if($.isFunction(callback)){callback();}}};})(Nx.$);
(function($){Nx.Module.Namics=function($ctx,sandbox,moduleId){Nx.Module.call(this,$ctx,sandbox,moduleId);};Nx.Module.Namics.prototype=new Nx.Module();Nx.Module.Namics.prototype.constructor=Nx.Module.Namics;$.extend(Nx.Module.Namics.prototype,{afterBinding:function(){var that=this;var objFields=$('.search .input input',that.$ctx);var strDefVal=objFields.attr('value');objFields.bind('focus',function(){objFields.removeClass('error');if($(this).attr('value')==''||$(this).attr('value')==strDefVal){$(this).attr('value','');}});objFields.bind('blur',function(){if($(this).attr('value')==''||$(this).attr('value')==strDefVal){$(this).attr('value',strDefVal);$(this).autocomplete('close');}});},onBinding:function(){var that=this;$(".testbutton").click(function(){$('.scroll-pane').hide().show().jScrollPane({showArrows:true,horizontalArrowPositions:'split'});if($(".FieldErrorMsg:visible").size()<=1){if($(".modGuideProfile").size()==0){$(".buttonLine .buttonNext input").click();}
else{$mod=$('.skinGuideConfDialogSend',parent.document);$overlay=$('.overlayConfDialog',parent.document);$mod.show();$mod.centerOnParent();$overlay.show();$overlay.height($(parent.document).height());}}});$('body').addClass('js');$('.scroll-pane').jScrollPane({showArrows:true,horizontalArrowPositions:'split'});$('.guideForm .buttonNext').click(function(){$('.scroll-pane').hide().show().jScrollPane({showArrows:true,horizontalArrowPositions:'split'});});$resizeColorbox=$('.resizeColorbox');if($resizeColorbox.length!=0)
{var size=$resizeColorbox.attr("boxsize");if(size>0){parent.jQuery.fn.colorbox.resize({innerHeight:size});$(this).attr("boxsize",-1);}}
$closeDirect=$('.closeDirect');if($closeDirect.length!=0){parent.jQuery.fn.colorbox.closeFlag=true;}
var parameter=gup("openGuide");if(parameter!=""&&!$.fn.colorbox.closeFlag)
{$(".guideOpener").colorbox({iframe:true,innerWidth:960,innerHeight:505,escKey:false,close:'',overlayClose:true,scrolling:false,arrowKey:true,open:true});$.fn.colorbox.language=$.fn.getURLParameter("sc_lang");}
function gup(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)
return"";else
return results[1];}},lastEmpty:function(){}});})(Nx.$);
(function($){Nx.Module.AgenturFinder=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.AgenturFinder.prototype=new Nx.Module();Nx.Module.AgenturFinder.prototype.constructor=Nx.Module.AgenturFinder;$.extend(Nx.Module.AgenturFinder.prototype,{dependencies:function(){},onBinding:function(){var that=this;$('.form .input input',that.$ctx).autocomplete({source:function(request,response){$.ajax({url:Nx.Config.services.consultant,data:"op=AutoCompletePLZ&limit=999&q="+request.term,dataType:"json",type:"GET",cache:true,timeout:Nx.Utils.Service.config.timeout.update,contentType:"application/json; charset=utf-8",dataFilter:function(data){return data;},success:function(data){if(data.AutoCompletePLZ.length>0){$('.error',that.$ctx).hide();}
response($.map(data.AutoCompletePLZ,function(item){return{label:item.label,value:item.label};}));}});},minLength:3,close:function(event,ui){$(".search-button",that.$ctx).click();}})
$(".search-textbox",that.$ctx).keypress(function(event){if(event.keyCode=='13'){$(".search-button",that.$ctx).click();return false;}});$(".ui-autocomplete").addClass("agentur-finder");}});})(Nx.$);
(function($){Nx.Module.ConsultantSelector=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.ConsultantSelector.prototype=new Nx.Module();Nx.Module.ConsultantSelector.prototype.constructor=Nx.Module.ConsultantSelector;$.extend(Nx.Module.ConsultantSelector.prototype,{dependencies:function(){this.require('jquery.mousewheel.js','library','onBinding');this.require('jScrollPane.js','library','onBinding');},onBinding:function(){var that=this;$('.close',this.$ctx).bind('click',function(){that.onCloseBox();return false;});},posLeft:null,posTop:null,onSetPosition:function(event){var that=this;var offPar=$(event.target).parents('.mod').eq(0);if($('.sideBarUnit','.body').length>0){that.posLeft='923';}
else{that.posLeft=offPar.offset().left;}
that.posTop=offPar.offset().top;},onShowBox:function(data){var that=this;var posLeft=that.posLeft;var posTop=that.posTop;var aTitle=data[0].AgencyTitle==''?'':'<h3>'+data[0].AgencyTitle+'</h3>';$('.ct',that.$ctx).empty().append(aTitle);var selectText=$('.ft>a',that.$ctx).text();$.each(data,function(index){var consBox='<div class="consultant ext">';if(data[index].ImageUrl!=="")
{consBox+='<img src="'+data[index].ImageUrl+'" alt="'+data[index].Firstname+' '+data[index].Lastname+'">';}
consBox+='<div class="cct">';consBox+='<h4>'+data[index].Firstname+' '+data[index].Lastname+'</h4>';consBox+='<span>'+data[index].JobTitle+'</span>';consBox+='<a class="select" href="#" rel="'+index+'">'+selectText+'</a>';consBox+='</div><div class="clearfix">&nbsp;</div></div>';$('.ct',that.$ctx).append(consBox);});$('.consultant .select',that.$ctx).bind('click',function(){that.fire('consultantSelected',data[$(this).attr('rel')]);that.onCloseBox();return false;});$(that.$ctx).css({'left':posLeft-15,'top':posTop-25});$(that.$ctx).show();$('.ct',that.$ctx).jScrollPane({scrollbarWidth:16,scrollbarMargin:0,wheelSpeed:18,showArrows:true,arrowSize:16,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,topCapHeight:0,bottomCapHeight:0,observeHash:true});},onCloseBox:function(){$(this.$ctx).hide();},onGetConsultant:function(strZip){var that=this;if(''!==strZip&&!isNaN(parseInt(strZip,10))&&strZip.length>3){$.ajax({url:Nx.Config.services.agents,data:"op=GetAgentsForZip&pZIP="+strZip,dataType:"json",type:"GET",cache:true,timeout:Nx.Utils.Service.config.timeout.update,contentType:"application/json; charset=utf-8",dataFilter:function(data){return data;},success:function(data){if(data==null||data.GetAgentsForZip.length==0){that.fire('error');}
else if(data.GetAgentsForZip.length==1){that.fire('consultantSelected',data.GetAgentsForZip[0]);}
else{that.onShowBox(data.GetAgentsForZip);}}});}
else{that.fire('error');return false;}}});})(Nx.$);
(function($){Nx.Module.Content=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Content.prototype=new Nx.Module();Nx.Module.Content.prototype.constructor=Nx.Module.Content;$.extend(Nx.Module.Content.prototype,{dependencies:function(){},onBinding:function(){var that=this;$('.searchbox input').keypress(function(event){if(event.keyCode=='13'){$(".button",that.$ctx).click();return false;}});}});})(Nx.$);
(function($){Nx.Module.ContentServiceNavigation=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.ContentServiceNavigation.prototype=new Nx.Module();Nx.Module.ContentServiceNavigation.prototype.constructor=Nx.Module.ContentServiceNavigation;$.extend(Nx.Module.ContentServiceNavigation.prototype,{dependencies:function(){},onBinding:function(){var that=this;this.setContent($('.icon_leaflet',this.$ctx));$('.icon_leaflet',this.$ctx).hover(function(){that.offsetLeft=($('.icon_leaflet',that.$ctx).offset()['left']-($('body').width()-$('.body').width())/2)-160;$('.body .tooltip').css({'left':that.offsetLeft,'top':that.offsetTop}).show();},function(){$('.body .tooltip').hide();});$('.icon_leaflet',this.$ctx).bind('click',function(){that.fire('addMerkzettelItem',$(this));return false;});},strContent:"",offsetLeft:0,offsetTop:38,setContent:function(elm){if(elm.attr('title')!=""){this.strContent=elm.attr('title');this.createBubble();}},createBubble:function(){if(this.strContent!=""){$('.body').append('<div class="tooltip" style="display: none;"><div class="bd">'+this.strContent+'</div></div>');}}});})(Nx.$);
(function($){Nx.Module.CountrySelector=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.CountrySelector.prototype=new Nx.Module();Nx.Module.CountrySelector.prototype.constructor=Nx.Module.CountrySelector;$.extend(Nx.Module.CountrySelector.prototype,{onBinding:function(){var that=this;$selector=$('.modMetaNavigation .countryselector');w1=$(that.$ctx).width();w2=$selector.width();delta=(w1/2)-(w2/2);$(this.$ctx).hide();w1=$(that.$ctx).width();w2=$selector.bind('click',function(){$(that.$ctx).show(1,function(){$('body').bind('click',function(){$(that.$ctx).hide();$(this).unbind('click');});}).css(position={left:$(this).position().left-delta+5});});}});})(Nx.$);
(function($){Nx.Module.FooterPage=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.FooterPage.prototype=new Nx.Module();Nx.Module.FooterPage.prototype.constructor=Nx.Module.FooterPage;$.extend(Nx.Module.FooterPage.prototype,{dependencies:function(){},onBinding:function(){var that=this;this.createBubble();var $icon=$('.icon',this.$ctx);var $leaflet=$('.leaflet',this.$ctx);$icon.each(function(index){that.setHover($(this));});$leaflet.bind('click',function(){that.fire('addMerkzettelItem',$(this));return false;});},setHover:function(elm){var title=elm.attr('title');if(title=="")
title="Kein Text vorhanden";elm.hover(function(){var offsetTop=$(this).offset().top-25;var offsetLeft=$(this).offset().left-160;$('.tooltip-foot .bd').html(title);$('.page .tooltip-foot').css({'left':offsetLeft,'top':offsetTop}).show();},function(){$('.page .tooltip-foot').hide();});},createBubble:function(){$('.page').append('<div class="tooltip-foot" style="display: none; left: '+this.offsetLeft+'px; top: '+this.offsetTop+'px;"><div class="bd"></div></div>');}});})(Nx.$);
(function($){Nx.Module.GuideBigbutton=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideBigbutton.prototype=new Nx.Module();Nx.Module.GuideBigbutton.prototype.constructor=Nx.Module.GuideBigbutton;$.extend(Nx.Module.GuideBigbutton.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.GuideClose=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideClose.prototype=new Nx.Module();Nx.Module.GuideClose.prototype.constructor=Nx.Module.GuideClose;$.extend(Nx.Module.GuideClose.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.GuideConfDialog=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideConfDialog.prototype=new Nx.Module();Nx.Module.GuideConfDialog.prototype.constructor=Nx.Module.GuideConfDialog;$.extend(Nx.Module.GuideConfDialog.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();if($('body .overlayConfDialog').size()==0){$('body').prepend("<div class=\"overlayConfDialog\"></div>");}},onBinding:function(){$mod=$('.modGuideConfDialog');$overlay=$('.overlayConfDialog');$('.closeButton').click(function(){parent.jQuery.fn.colorbox.close();$mod.hide();$overlay.hide();$iframe=$('iframe').contents().get(0);var location=$iframe.location+"";if(Nx.ShowAnalytics==true){Nx.GoogleAnalytics("Online-Ratgeber","Schliessen",location.replace("https://"+$iframe.location.hostname,""));}});$('.backButton').click(function(){$mod.hide();$overlay.hide();Nx.ShowAnalytics=true;});$('.close').click(function(){$mod.hide();$overlay.hide();return false;Nx.ShowAnalytics=true;});},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.GuideFoot=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideFoot.prototype=new Nx.Module();Nx.Module.GuideFoot.prototype.constructor=Nx.Module.GuideFoot;$.extend(Nx.Module.GuideFoot.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.GuideHead=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideHead.prototype=new Nx.Module();Nx.Module.GuideHead.prototype.constructor=Nx.Module.GuideHead;$.extend(Nx.Module.GuideHead.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.GuideIntro=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideIntro.prototype=new Nx.Module();Nx.Module.GuideIntro.prototype.constructor=Nx.Module.GuideIntro;$.extend(Nx.Module.GuideIntro.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){var that=this;if($.browser.msie){that.fadeInTime=3500;that.fadeOutTime=2500;}
else{that.fadeInTime=1;that.fadeOutTime=1;}
that.fadeOverlappingQ=0.6;that.$steps=$("ul",that.$ctx).children();var $guideHead=$(".modGuideHead");that.$headSteps=$guideHead.find(".stepsStps").children();that.$headTitle=$guideHead.find(".ft h2");that.$loading=$(".hd",this.$ctx);},afterBinding:function(){var that=this;function stop(){$(that).stop('introAnim');$.fx.off=false;that.$steps.stop();}
function reStart(){$.fx.off=false;$(that).dequeue('introAnim');}
$("#re-start").click(reStart);$("#stop").click(stop);function start(){$(that).delay(1000,'introAnim');$(that).queue('introAnim',function(next){that.$loading.fadeOut("100");that.$steps.eq(3).fadeIn(that.fadeInTime);that.$steps.eq(0).fadeIn(that.fadeInTime);that.$headTitle.eq(0).fadeOut(that.fadeOutTime);that.$headSteps.eq(0).addClass('active step1Active').fadeIn(that.fadeInTime,function(){});});$(that).queue('introAnim',function(next){that.$steps.eq(0).fadeOut(that.fadeOutTime);});$(that).dequeue('introAnim');$(that).delay(3000,'introAnim');$(that).queue('introAnim',function(next){that.$steps.eq(1).fadeIn(that.fadeInTime);that.$headSteps.eq(1).addClass('active step2Active').fadeIn(that.fadeInTime);});$(that).dequeue('introAnim');$(that).queue('introAnim',function(next){that.$steps.eq(1).fadeOut(that.fadeOutTime);});$(that).dequeue('introAnim');$(that).delay(3000,'introAnim');$(that).queue('introAnim',function(next){that.$steps.eq(2).fadeIn(that.fadeInTime,function(){next();});that.$headSteps.eq(2).addClass('active step3Active').fadeIn(that.fadeInTime,function(){});});$(that).dequeue('introAnim');}
$("#start").click(start);that.$headSteps.eq(0).hover(function(){stop();that.$steps.eq(0).hide();that.$steps.eq(1).hide();that.$steps.eq(2).hide();that.$steps.eq(0).show();},function(){that.$steps.eq(0).hide();reStart();});that.$headSteps.eq(1).hover(function(){that.$steps.eq(0).hide();that.$steps.eq(1).hide();that.$steps.eq(2).hide();that.$steps.eq(1).show();},function(){that.$steps.eq(1).hide();});that.$headSteps.eq(2).hover(function(){that.$steps.eq(0).hide();that.$steps.eq(1).hide();that.$steps.eq(2).hide();that.$steps.eq(2).show();},function(){});}});})(Nx.$);
(function($){Nx.Module.GuideIntro=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideIntro.prototype=new Nx.Module();Nx.Module.GuideIntro.prototype.constructor=Nx.Module.GuideIntro;$.extend(Nx.Module.GuideIntro.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){var that=this;if(!$.browser.msie)
{that.fadeInTime=3500;that.fadeOutTime=2500;that.delayTime=2500;}
else
{that.fadeInTime=1;that.fadeOutTime=1;that.delayTime=3000;}
that.fadeOverlappingQ=0.6;that.$steps=$("ul",that.$ctx).children();var $guideHead=$(".modGuideHead");that.$headSteps=$guideHead.find(".stepsStps").children();that.$headTitle=$guideHead.find(".ft h2");that.$loading=$(".hd",this.$ctx);},afterBinding:function(){var that=this;var tempQueue;that.$stopped=false;that.$activeStep=-1;function pauseIntro(){if(!that.$stopped){that.$headSteps.each(function(i){if($(this).hasClass('active')){that.$activeStep=i;}});tempQueue=$('<div></div>');tempQueue.queue('introAnim',that.$animQueue.queue('introAnim'));that.$animQueue.clearQueue('introAnim');that.$stopped=true;}}
function restartIntro(){if(that.$stopped){setActiveStep(that.$activeStep);that.$animQueue=tempQueue;that.$animQueue.dequeue('introAnim');that.$stopped=false;}}
function cleanSteps(){cleanHeadSteps();that.$steps.eq(0).hide();that.$steps.eq(1).hide();that.$steps.eq(2).hide();}
function cleanHeadSteps(){that.$headSteps.eq(0).removeClass('active').removeClass('step1Active');that.$headSteps.eq(1).removeClass('active').removeClass('step2Active');that.$headSteps.eq(2).removeClass('active').removeClass('step3Active');}
function setActiveStep(index){cleanSteps();that.$headSteps.eq(index).addClass('active '+'step'+(index+1)+'Active');if(index==2)
that.$steps.eq(index).show();}
function bindHover(){that.$headSteps.eq(0).hover(function(){pauseIntro();cleanSteps();that.$steps.eq(0).show();that.$headSteps.eq(0).addClass('active step1Active');});that.$headSteps.eq(1).hover(function(){pauseIntro();cleanSteps();that.$steps.eq(1).show();that.$headSteps.eq(1).addClass('active step2Active');});that.$headSteps.eq(2).hover(function(){pauseIntro();cleanSteps();that.$steps.eq(2).show();that.$headSteps.eq(2).addClass('active step3Active');});$(document).mouseover(function(e){var $hovered=$(e.target);if(!($hovered.parents().hasClass("steps")||$hovered.hasClass("steps"))){restartIntro();}});}
that.$animQueue=$('<div></div>').delay(1000,'introAnim').queue('introAnim',function(next){that.$loading.fadeOut("100",bindHover());that.$steps.eq(3).fadeIn(that.fadeInTime,function(){});that.$steps.eq(0).fadeIn(that.fadeInTime,function(){next();that.$steps.eq(0).delay(that.delayTime-1/(that.fadeOutTime*that.fadeOverlappingQ)).fadeOut(that.fadeOutTime,function(){});});that.$headTitle.eq(0).fadeOut(that.fadeOutTime,function(){});that.$headSteps.eq(0).addClass('active step1Active').fadeIn(that.fadeInTime,function(){});}).queue('introAnim',function(next){setTimeout(function(){next();},3000);}).queue('introAnim',function(next){cleanHeadSteps();that.$steps.eq(1).fadeIn(that.fadeInTime,function(){next();that.$steps.eq(1).delay(that.delayTime-1/(that.fadeOutTime*that.fadeOverlappingQ)).fadeOut(that.fadeOutTime,function(){});});that.$headSteps.eq(1).addClass('active step2Active').fadeIn(that.fadeInTime,function(){});}).queue('introAnim',function(next){setTimeout(function(){next();},3000);}).queue('introAnim',function(next){cleanHeadSteps();that.$steps.eq(2).fadeIn(that.fadeInTime,function(){});that.$headSteps.eq(2).addClass('active step3Active').fadeIn(that.fadeInTime,function(){});});that.$animQueue.dequeue('introAnim');}});})(Nx.$);
(function($){Nx.Module.GuideProfile=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideProfile.prototype=new Nx.Module();Nx.Module.GuideProfile.prototype.constructor=Nx.Module.GuideProfile;$.extend(Nx.Module.GuideProfile.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){$(".div-myprofile u").click(function(){$mod=$('.skinGuideConfDialogToolTip',parent.document);$overlay=$('.overlayConfDialog',parent.document);$mod.show();$mod.centerOnParent();$overlay.show();$overlay.height($(parent.document).height());});var that=this;$deleteLinks=$('.delete',this.$ctx);$deleteLinks.live('click',function(){$(this).parent().parent().fadeOut(500,function(){$(this).remove();that.createCookie();$deleteLinks=$('.delete',that.$ctx);if($deleteLinks.length==0)
{$('.modGuideProfile').fadeOut(500);}
if(!($.browser.msie&&$.browser.version.substr(0,1)<7)){$('.scroll-pane').hide().show().jScrollPane({showArrows:true,horizontalArrowPositions:'split'});}});});that.createCookie();},createCookie:function(){var that=this;strGuids='';$('ul p',that.$ctx).each(function(){if($(this).text()!=''){strGuids+=$(this).text()+'|';}});var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));if(strGuids==''){Nx.Module.delCookie("OnlineGuideMyProfileCookie","/");}
else{Nx.Module.setCookie("OnlineGuideMyProfileCookie",strGuids,date,"/");}}});})(Nx.$);
(function($){Nx.Module.GuideQuest=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.GuideQuest.prototype=new Nx.Module();Nx.Module.GuideQuest.prototype.constructor=Nx.Module.GuideQuest;$.extend(Nx.Module.GuideQuest.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Havarie=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Havarie.prototype=new Nx.Module();Nx.Module.Havarie.prototype.constructor=Nx.Module.Havarie;$.extend(Nx.Module.Havarie.prototype,{dependencies:function(){this.require('jquery.uniform.js','plugin','onBinding');},onBinding:function(){$("input:text",this.$ctx).bind('focus',function(e){var $obj=$(e.target);var $objValue=$obj.val();if($objValue==$obj.attr('defaultValue'))
$obj.val('');$obj.bind('focusout',function(){if($obj.val().length==0)
$obj.val($obj.attr('defaultValue'));});});$("select",this.$ctx).css("width",$(this).data("origWidth")).uniform();if(!($.browser.msie&&$.browser.version.substr(0,1)<7)){$(".droplist_small",this.$ctx).mouseover(function(){$(this).data("origWidth",$(this).css("width")).css({"margin-left":"12px"});if($.browser.msie){var maxwidth=0;$("option",this).each(function(index){if($(this).attr("text").length>maxwidth)
maxwidth=$(this).attr("text").length;});if(maxwidth<22){$(this).css({"width":"160px"});}
else{$(this).css({"width":"auto"});}}});}}});})(Nx.$);
(function($){Nx.Module.InfoScreen=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.InfoScreen.prototype=new Nx.Module();Nx.Module.InfoScreen.prototype.constructor=Nx.Module.InfoScreen;$.extend(Nx.Module.InfoScreen.prototype,{dependencies:function(){this.require('jquery.fancybox-1.3.1.js','library','onBinding');},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){$screeninfo=$("#InfoScreen");$.fancybox($screeninfo.html(),{'padding':0,'autoScale':false,'transitionIn':'none','transitionOut':'none','overlayOpacity':0.9,'overlayColor':'#000','onComplete':function(){$checkbox=$(".cookie");$checkbox.change(function(){var read="false";if($(this+":checked").length==1){read="true";}
var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));var dateExp="; expires="+date.toGMTString();document.cookie="BrowserCookie="+read+dateExp;});$}});}});})(Nx.$);
(function($){Nx.Module.LanguageSelector=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.LanguageSelector.prototype=new Nx.Module();Nx.Module.LanguageSelector.prototype.constructor=Nx.Module.LanguageSelector;$.extend(Nx.Module.LanguageSelector.prototype,{dependencies:function(){},onBinding:function(){}});})(Nx.$);
(function($){Nx.Module.LayerNavigation=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.LayerNavigation.prototype=new Nx.Module();Nx.Module.LayerNavigation.prototype.constructor=Nx.Module.LayerNavigation;$.extend(Nx.Module.LayerNavigation.prototype,{dependencies:function(){},onBinding:function(){$(window).resize(this.overlay);$(window).load(this.overlay);},afterBinding:function(){$bd=$(".bd",this.$ctx);if($bd.length>0){this.flyOut();}
else{this.noFlyOut();}},noFlyOut:function(){var head=$(".hd > ul > li > a",this.$ctx);var selectedItem=$(".hd > ul > li > a.selected",this.$ctx);head.hover(function(){head.removeClass("hover");$(this).addClass("hover");},function(){head.removeClass("hover");try{}
catch(ex){}})},flyOut:function(){var head=$(".hd > ul > li > a",this.$ctx);var selectedItem=$(".hd > ul > li > a.selected",this.$ctx);var container=$(".container",this.$ctx);var overlay=$(".overlay");var overlayBorder=$(".overlayBorder");var visible=false;var timerHide;var timerShow;var that;var droplist=$(".droplistarea");this.numberItems(head,container);head.mouseover(function(){that=$(this);showNavigation.setup();});container.mouseover(function(){hideNavigation.cancel();});head.click(function(){that=$(this);showNavigation.cancel();});$(document).mouseover(function(e){var $clicked=$(e.target);if(!($clicked.parents().hasClass("container")||$clicked.hasClass("container")||$clicked.hasClass("hd")||$clicked.parents().hasClass("hd"))){showNavigation.cancel();hideNavigation.setup();}});$(document).keydown(function(e){if(e.keyCode==27){hideNavigation.setup();}});var hideNavigation={hide:function(aMessage){overlay.removeClass("op");overlayBorder.hide();container.hide();head.removeClass("hover");try{selectedItem.addClass("selected");}
catch(ex){}
visible=false;droplist.removeClass("dl-overlay");delete timerHide;},setup:function(){this.cancel();var self=this;timerHide=window.setTimeout(function(){self.hide();},200);},cancel:function(){if(typeof timerHide=="number"){window.clearTimeout(timerHide);delete timerHide;}}};var showNavigation={show:function(aMessage){if(visible){hideNavigation.cancel();}
overlay.addClass('op').css({});container.css({});overlayBorder.show();visible=true;container.hide();head.removeClass("selected");head.removeClass("hover");var id=that.attr('id').replace(/nav/g,"");$("#container"+id).show();$("#nav"+(parseInt(id))).addClass("hover");droplist.addClass("dl-overlay");delete timerShow;},setup:function(){this.cancel();var self=this;if(visible){self.show();}
else{timerShow=window.setTimeout(function(){self.show();},200);}},cancel:function(){if(typeof timerShow=="number"){window.clearTimeout(timerShow);delete timerShow;}}};},numberItems:function(head,container){container.each(function(index,domEle){$(this).attr("id",'container'+(index+1));});head.each(function(index,domEle){$(this).attr("id",'nav'+(index+1));});},overlay:function(){var overlay=$(".overlay");overlay.height(0);var h1=$(".page > .head").height();var h2=$(".page > .body").height();var h3=$(".page > .foot").height();var h4=$(".page > .switcher").height();myHeight=$(document).height();if(((h1+h2+h3+h4)<$(document).height())&&($.browser.msie&&$.browser.version=="8.0")){myHeight=myHeight-4;}
if(($.browser.msie&&$.browser.version=="9.0"))
{h1=135;}
overlay.css("height",(myHeight-h1)+"px");overlay.css("top",(h1+h4)+"px");}});})(Nx.$);
(function($){Nx.Module.MetaNavigation=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.MetaNavigation.prototype=new Nx.Module();Nx.Module.MetaNavigation.prototype.constructor=Nx.Module.MetaNavigation;$.extend(Nx.Module.MetaNavigation.prototype,{dependencies:function(){},onBinding:function(){}});})(Nx.$);
(function($){Nx.Module.MetaSearchBox=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.MetaSearchBox.prototype=new Nx.Module();Nx.Module.MetaSearchBox.prototype.constructor=Nx.Module.MetaSearchBox;$.extend(Nx.Module.MetaSearchBox.prototype,{dependencies:function(){},onBinding:function(){}});})(Nx.$);
(function($){Nx.Module.MobileSwitcher=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.MobileSwitcher.prototype=new Nx.Module();Nx.Module.MobileSwitcher.prototype.constructor=Nx.Module.MobileSwitcher;$.extend(Nx.Module.MobileSwitcher.prototype,{dependencies:function(){},onBinding:function(){$('a',this.$ctx).click(function(){document.cookie='NoMobileReload=test; expires=Thu, 01-Jan-70 00:00:01 GMT;';})}});})(Nx.$);
(function($){Nx.Module.PromotionTeaser=function($ctx,sandbox,modId){Nx.Module.PromotionTeaser.superclass.constructor.call(this,$ctx,sandbox,modId);};$.oo.extend(Nx.Module.PromotionTeaser,Nx.Module);$.extend(Nx.Module.PromotionTeaser.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.TeaserBox=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserBox.prototype=new Nx.Module();Nx.Module.TeaserBox.prototype.constructor=Nx.Module.TeaserBox;$.extend(Nx.Module.TeaserBox.prototype,{dependencies:function(){this.require('jquery.uniform.js','plugin','onBinding');},onBinding:function(){$("select",this.$ctx).css("width",$(this).data("origWidth")).uniform();if(!($.browser.msie&&$.browser.version.substr(0,1)<7)){$(".droplist",this.$ctx).mouseover(function(){$(this).data("origWidth",$(this).css("width")).css({"margin-left":"12px"});if($.browser.msie){var maxwidth=0;$("option",this).each(function(index){if($(this).attr("text").length>maxwidth)
maxwidth=$(this).attr("text").length;});if(maxwidth<34){$(this).css({"width":"225px"});}
else{$(this).css({"width":"auto"});}}});}}});})(Nx.$);
(function($){Nx.Module.TeaserConsultantContent=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserConsultantContent.prototype=new Nx.Module();Nx.Module.TeaserConsultantContent.prototype.constructor=Nx.Module.TeaserConsultantContent;$.extend(Nx.Module.TeaserConsultantContent.prototype,{onBinding:function(){var that=this;that.toggleView();$('.form .input',this.$ctx).keypress(function(event){if(event.keyCode=='13'){that.checkPlz(event);return false;}});$('.form .button',this.$ctx).bind('click',function(event){that.checkPlz(event);return false;});$('.form .input input',that.$ctx).autocomplete({source:function(request,response){$.ajax({url:Nx.Config.services.consultant,data:"op=AutoCompletePLZ&q="+request.term,dataType:"json",type:"GET",cache:true,timeout:Nx.Utils.Service.config.timeout.update,contentType:"application/json; charset=utf-8",dataFilter:function(data){return data;},success:function(data){if(data.AutoCompletePLZ.length>0){$('.error',that.$ctx).hide();}
response($.map(data.AutoCompletePLZ,function(item){return{label:item.label,value:item.value};}));}});},minLength:3,close:function(event,ui){that.checkPlz(event);}}).keypress(function(event){if(event.keyCode=='13'){$('.input input',that.$ctx).autocomplete('close');return false;}});$('.content.ext .email',that.$ctx).live('click',function(){that.fire('getForm','ConsultantForm/data/form');return true;});$('.content.ext .change',that.$ctx).live('click',function(){$('.ext',that.$ctx).removeClass('active');$('.search .input input',that.$ctx).attr('value','');var date=new Date();date.setTime(date.getTime()+(-1*24*60*60*1000));var dateExp="; expires="+date.toGMTString();document.cookie="AgentCookie"+"="+""+dateExp+"; path=/";that.toggleView();return false;});},afterBinding:function(){var that=this;if($.browser.webkit){setTimeout(function(){setHeight();},100);}
else{setHeight();}
function setHeight(){$(".wrapper .consultant-bd",that.$ctx).height($(".content",that.$ctx).height()-61);}},onConsultantSelected:function(data){Nx.GoogleAnalytics("Agentur-Box","PLZ-Suche",window.location.pathname);var that=this;$('.ext h2',that.$ctx).empty().append(data.GenderTitle);$('div.image',that.$ctx).empty();if(data.ImageUrl!=="")
{$('div.image',that.$ctx).append('<img src="'+data.ImageUrl+'" alt="'+data.Firstname+' '+data.Lastname+'">');}
$('h3',that.$ctx).empty().append(data.Firstname+' '+data.Lastname);$('span.vZip',that.$ctx).empty().append(data.ZIP);$('span.vTel',that.$ctx).empty().append(data.Phone);$('.ext',that.$ctx).addClass('active');that.toggleView();var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));var dateExp="; expires="+date.toGMTString();document.cookie="AgentCookie"+"="+data.ID+dateExp+"; path=/";},onError:function(){var that=this;$('.error',that.$ctx).fadeIn();},toggleView:function(){var that=this;$('.error',that.$ctx).hide();if($('.ext',that.$ctx).hasClass('fromCookie')){$('.ext',that.$ctx).removeClass('fromCookie').addClass('active');}
if($('.ext',that.$ctx).hasClass('active')){$('.search',that.$ctx).fadeOut(function(){$('.ext',that.$ctx).fadeIn();});}else{$('.ext',that.$ctx).fadeOut(function(){$('.search',that.$ctx).fadeIn();$('.search .input input',that.$ctx).blur();});}},checkPlz:function(event){var that=this;var strZip=$(that.$ctx).find('.input input').attr('value');if(''!==strZip&&!isNaN(parseInt(strZip))){that.fire('setPosition',event);that.fire('getConsultant',strZip);}else{$('.error',that.$ctx).fadeIn();}}});})(Nx.$);
(function($){Nx.Module.TeaserConsultantHome=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserConsultantHome.prototype=new Nx.Module();Nx.Module.TeaserConsultantHome.prototype.constructor=Nx.Module.TeaserConsultantHome;$.extend(Nx.Module.TeaserConsultantHome.prototype,{onBinding:function(){var that=this;that.toggleView();$('.form .input',this.$ctx).keypress(function(event){if(event.keyCode=='13'){that.checkPlz(event);return false;}});$('.form .button',this.$ctx).bind('click',function(event){that.checkPlz(event);return false;});$('.form .input input',that.$ctx).autocomplete({source:function(request,response){$.ajax({url:Nx.Config.services.consultant,data:"op=AutoCompletePLZ&q="+request.term,dataType:"json",type:"GET",cache:true,timeout:Nx.Utils.Service.config.timeout.update,contentType:"application/json; charset=utf-8",dataFilter:function(data){return data;},success:function(data){if(data.AutoCompletePLZ.length>0){$('.error',that.$ctx).hide();}
response($.map(data.AutoCompletePLZ,function(item){return{label:item.label,value:item.value};}));}});},minLength:3,close:function(event,ui){that.checkPlz(event);}}).keypress(function(event){if(event.keyCode=='13'){$('.input input',that.$ctx).autocomplete('close');return false;}});$('.content.ext .change',that.$ctx).live('click',function(){$('.ext',that.$ctx).removeClass('active');$('.search .input input',that.$ctx).attr('value','');var date=new Date();date.setTime(date.getTime()+(-1*24*60*60*1000));var dateExp="; expires="+date.toGMTString();document.cookie="AgentCookie"+"="+""+dateExp+"; path=/";that.toggleView();return false;});},onConsultantSelected:function(data){Nx.GoogleAnalytics("Agentur-Box","PLZ-Suche",window.location.pathname);var that=this;$('.ext h1',that.$ctx).empty().append(data.GenderTitle);$('div.image',that.$ctx).empty();if(data.ImageUrl!=="")
{$('div.image',that.$ctx).append('<img src="'+data.ImageUrl+'" alt="'+data.Firstname+' '+data.Lastname+'">');}
$('h3',that.$ctx).empty().append(data.Firstname+' '+data.Lastname);$('span.vZip',that.$ctx).empty().append(data.ZIP);$('span.vTel',that.$ctx).empty().append(data.Phone);$('.ext',that.$ctx).addClass('active');that.toggleView();var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));var dateExp="; expires="+date.toGMTString();document.cookie="AgentCookie"+"="+data.ID+dateExp+"; path=/";},onError:function(){var that=this;$('.error',that.$ctx).fadeIn();},toggleView:function(){var that=this;$('.error',that.$ctx).hide();if($('.ext',that.$ctx).hasClass('fromCookie')){$('.ext',that.$ctx).removeClass('fromCookie').addClass('active');}
if($('.ext',that.$ctx).hasClass('active')){$('.search',that.$ctx).fadeOut(function(){$('.ext',that.$ctx).fadeIn();});}
else{$('.ext',that.$ctx).fadeOut(function(){$('.search',that.$ctx).fadeIn();$('.search .input input',that.$ctx).blur();});}},checkPlz:function(event){var that=this;var strZip=$(that.$ctx).find('.input input').attr('value');if(''!==strZip&&!isNaN(parseInt(strZip))){that.fire('setPosition',event);that.fire('getConsultant',strZip);}
else{$('.error',that.$ctx).fadeIn();}}});})(Nx.$);
(function($){Nx.Module.TeaserHome=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserHome.prototype=new Nx.Module();Nx.Module.TeaserHome.prototype.constructor=Nx.Module.TeaserHome;$.extend(Nx.Module.TeaserHome.prototype,{switchTeaser:function(thnPos){thnPos++;$(".thn-wrapper",this.$ctx).find(".thn").removeClass("active");$(".thn-wrapper .thn:nth-child("+(thnPos)+")",this.$ctx).addClass("active");$(".txt-wrapper",this.$ctx).find(".txt").removeClass("active");$(".txt-wrapper .txt:nth-child("+(thnPos)+")",this.$ctx).addClass("active");$(".img-wrapper",this.$ctx).find(".img").removeClass("active");$(".img-wrapper .img:nth-child("+(thnPos)+")",this.$ctx).addClass("active");},dependencies:function(){this.require('jquery.fancybox-1.3.1.js','library','onBinding');var teaserInterval=null;},onBinding:function(){var that=this;$(".thn",this.$ctx).each(function(i){$(this).bind('mouseover',function(){that.switchTeaser(i);})});$(".modTeaserHome").bind("mouseenter",function(){clearInterval(teaserInterval);}).bind("mouseleave",function(){that.fnTeaserIntervall();});$(".flash a",that.$ctx).fancybox({'padding':0,'autoScale':false,'transitionIn':'none','transitionOut':'none','type':'swf','overlayOpacity':0.9,'overlayColor':'#000'});},fnTeaserIntervallStop:function(){clearInterval(teaserInterval);},ithn:0,fnTeaserIntervall:function(){var that=this;$(".thn",this.$ctx).each(function(i){if($(this).hasClass('active')){that.ithn=i+1;}});teaserInterval=setInterval(function(){if($(".thn-wrapper .thn.active").hasClass("last")){that.switchTeaser(0);that.ithn=1;}
else{that.switchTeaser(that.ithn);that.ithn++;}},10000);},afterBinding:function(){this.fnTeaserIntervall();}});})(Nx.$);
(function($){Nx.Module.TeaserHomeDotcom=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserHomeDotcom.prototype=new Nx.Module();Nx.Module.TeaserHomeDotcom.prototype.constructor=Nx.Module.TeaserHomeDotcom;$.extend(Nx.Module.TeaserHomeDotcom.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.TeaserHomeSlot=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserHomeSlot.prototype=new Nx.Module();Nx.Module.TeaserHomeSlot.prototype.constructor=Nx.Module.TeaserHomeSlot;$.extend(Nx.Module.TeaserHomeSlot.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.TeaserLeaflet=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.TeaserLeaflet.prototype=new Nx.Module();Nx.Module.TeaserLeaflet.prototype.constructor=Nx.Module.TeaserLeaflet;$.extend(Nx.Module.TeaserLeaflet.prototype,{onBinding:function(){var that=this;Nx.Module.TeaserLeaflet.SetHeight=that.setHeight;$('span.img',this.$ctx).live('click',function(){$(this).parent().fadeOut(500,function(){$(this).remove();that.createCookie();that.setHeight();});});that.createCookie();$mod=$('.modTeaserLeaflet');cookieName=$mod.attr("cookiename");if($mod.height()>451)
{diffHeight=$mod.height()-451;$('.bigscroll .body').height($('.bigscroll .body').height()+diffHeight+40);$('.scroll-pane').height($('.scroll-pane').height()+diffHeight+40);$('.scroll-pane').hide().show().jScrollPane({showArrows:true,horizontalArrowPositions:'split'});boxHeight=610+diffHeight;parent.jQuery.fn.colorbox.resize({innerHeight:boxHeight+40});}},afterBinding:function(){var that=this;if($.browser.webkit){setTimeout(function(){that.setHeight();},10);}
else{that.setHeight();}},setHeight:function(){var body=$(".modTeaserLeaflet .leaflet-bd");var foot=$(".modTeaserLeaflet .leaflet-hd");var head=$(".modTeaserLeaflet .leaflet-ft");var height=$(".modTeaserLeaflet .content").height()-head.height()-foot.height()+70;var remain=height%13;body.height(height+remain);},onAddMerkzettelItem:function($elm){var that=this;var name=$elm.attr('name')==''?'NO NAME':$elm.attr('name');var guid=$elm.attr('rel')==''?'NO GUID':$elm.attr('rel').toLowerCase();var href=$elm.attr('href')==''?location.href:$elm.attr('href');if($('a[rel='+guid+']',that.$ctx).length>0){}else{$('.info-text',that.$ctx).hide();$('ul',that.$ctx).append('<li><span class="txt"><a onclick="Nx.GoogleAnalytics(\'Merkzettel\', \'Klick auf Inhalt\', \''+href+'\');" href="'+href+'" rel="'+guid+'">'+name+'</a>'+'</span><span class="img" onclick="Nx.GoogleAnalytics(\'Merkzettel\', \'L&ouml;schen Inhalt\', \''+href+'\');"><img class="blank" src="/Frontend/Nationale/Images/blank.gif"></span></li>');that.createCookie();}
if($elm.attr('uselink')=="true")
{document.location=href;}
else
{return false;}},createCookie:function(){var that=this;strGuids='';$('a',that.$ctx).each(function(){if($(this).attr('rel')!=''){strGuids+=$(this).attr('rel')+',';}});var date=new Date();date.setTime(date.getTime()+(365*24*60*60*1000));if(strGuids=='')
{Nx.Module.delCookie(cookieName,"/");if($(that.$ctx).hasClass("skinTeaserLeafletInactive")){$(that.$ctx).fadeOut(500);$(".info-text",$(that.$ctx)).delay(500).fadeIn(500);}
else{$(".info-text",$(that.$ctx)).fadeIn(500);}}
else
{Nx.Module.setCookie(cookieName,strGuids,date,"/");}
that.setHeight();}});})(Nx.$);;(function($){Nx.Module.Content.DropDown=function(parent){this.onBinding=function(){var that=this;parent.onBinding();$("select",this.$ctx).css("width",$(this).data("origWidth")).uniform();if(!($.browser.msie&&$.browser.version.substr(0,1)<7)){$(".droplist",this.$ctx).mouseover(function(){$(this).data("origWidth",$(this).css("width")).css({"margin-left":"12px"});if($.browser.msie){var maxwidth=0;$("option",this).each(function(index){if($(this).attr("text").length>maxwidth)
maxwidth=$(this).attr("text").length;});if(maxwidth<34){$(this).css({"width":"225px"});}
else{$(this).css({"width":"auto"});}}});}};this.dependencies=function(){parent.dependencies();this.require('jquery.uniform.js','plugin','onBinding');};};})(Nx.$);;(function($){Nx.Module.Content.Tabs=function(parent){this.onBinding=function(){var that=this;parent.onBinding();elements=$('.tabs',this.$ctx);elements.each(function(index,domEle){var $t=$(this);if($.browser.webkit){setTimeout(function(){tabScroll($t);},10);}
else{tabScroll($t);}});};tabScroll=function($t){$t.tabs();var tabContainer=$t;var div=$(".navigation",tabContainer),left=$(".left",tabContainer),right=$(".right",tabContainer),tabsNavWrapper=$(".buttons",tabContainer),ul=$(".navigation ul",tabContainer);var divWidth=tabContainer.width()-40;var firstLi=div.find('ul li:first-child',tabContainer);var lastLi=div.find('ul li:last-child',tabContainer);var li=$("li",ul);var that;var scrollableTabs={left:function(){var linkerEckenVomDivWrapper=div.offset().left;var linkerEckenVomUL=ul.offset().left;var linkerTab=null;that.showTabs();li.each(function(index){linkerEcken=$(this).offset().left;if(linkerEcken<(linkerEckenVomDivWrapper)){linkerTab=$(this);}});try{var linkerEckenVomLinkenTab=linkerTab.offset().left;div.scrollLeft(linkerEckenVomLinkenTab-linkerEckenVomUL);right.removeClass("right_inactive");if((firstLi.offset().left+10)>(linkerEckenVomDivWrapper)){left.addClass("left_inactive");}}
catch(ex){left.addClass("left_inactive");}
that.hideTabs();},right:function(){var linkerEckenVomDivWrapper=div.offset().left;var linkerEckenVomUL=ul.offset().left;var rechterTab=null;var linkerTab=null;that.showTabs();li.each(function(index){linkerEcken=$(this).offset().left+$(this).outerWidth();if(linkerEcken>(linkerEckenVomDivWrapper+divWidth)&&rechterTab==null){rechterTab=$(this);}});try{var linkerEcken=rechterTab.offset().left;var laenge=rechterTab.outerWidth();div.scrollLeft(laenge+linkerEcken-divWidth-linkerEckenVomUL);left.removeClass("left_inactive");if((lastLi.offset().left+lastLi.outerWidth()-10)<(linkerEckenVomDivWrapper+divWidth)){right.addClass("right_inactive");}}
catch(ex){}
if(rechterTab!=null){li.each(function(index){u=linkerEckenVomUL+divWidth;p=$(this).offset().left;if(p>(linkerEckenVomDivWrapper)&&linkerTab==null){linkerTab=$(this);}});try{var linkerEcken=linkerTab.offset().left;div.scrollLeft(linkerEcken-ul.offset().left);}
catch(ex){}}
that.hideTabs();},hideTabs:function(){var linkerEckenVomDivWrapper=div.offset().left;li.each(function(index){linkerEcken=$(this).offset().left+$(this).outerWidth();if(linkerEcken>(linkerEckenVomDivWrapper+divWidth)){$(this).hide();}});},showTabs:function(){li.show();},readCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;},createCookie:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";},setup:function(){that=this;left.click(this.left);right.click(this.right);var contentAreaWidth=$(".unit.maincontent .line .unit").width();var strYear="";try{strYear=that.readCookie('medianotice').split("#")[1];}catch(err)
{}
var ulwidth=0;var index=0;var selectedIndex=0;$("li",ul).each(function(){ulwidth+=$(this).width();if($(this).text()==strYear)
selectedIndex=index;index++;});$(".medianoticereadmore").click(function(){try
{var days=360;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie='medianotice'+"="+$(this).attr("rel")+expires+"; path=/";}
catch(err){txt="There was an error on this page.\n\n";txt+="Error description: "+err.description+"\n\n";txt+="Click OK to continue.\n\n";alert(txt);}});$t.tabs('select',selectedIndex);if(ulwidth>divWidth){tabsNavWrapper.css("display","block");div.css("margin","0 20px");}
if(selectedIndex>8)
{var tempI=selectedIndex-8;var i=0;for(i=0;i<tempI;i++)
{that.right();}}
else
{that.left();}}};scrollableTabs.setup();};};})(Nx.$);;(function($){Nx.Module.Content.Teaser=function(parent){this.onBinding=function(){var that=this;parent.onBinding();$('.teaser',$(this).ctx).hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});};};})(Nx.$);;(function($){Nx.Module.GuideConfDialog.Send=function(parent){this.onBinding=function(){var that=this;parent.onBinding();$('.sendButton').click(function(){$mod.hide();$overlay.hide();$("#cboxLoadedContent iframe").contents().find(".buttonLine .buttonNext input").click();});};};})(Nx.$);;(function($){Nx.Module.GuideQuest.Det=function(parent){this.onBinding=function(){var that=this;parent.onBinding();$questions=$('fieldset input:radio',this.$ctx);$answers=$('#detailQuestion .modGuideQuest fieldset');$answerArea=$('#detailQuestion');showItem($('fieldset input:radio:checked',this.$ctx).attr("id"));$questions.click(function(){id=$(this).attr("id");showItem(id);});function showItem(id){$answers.hide();$answerArea.hide();$answer=$("#"+id+"_sub");if($answer.length!=0){$answerArea.show();$answer.show();}}}};})(Nx.$);
