﻿(function(a,B,ae){var A={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,fastIframe:true,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,returnFocus:true,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,top:false,bottom:false,left:false,right:false,fixed:false,data:false},z="colorbox",Y="cbox",x=Y+"Element",I=Y+"_open",H=Y+"_load",F=Y+"_complete",D=Y+"_cleanup",E=Y+"_closed",J=Y+"_purge",O=a.browser.msie&&!a.support.opacity,P=O&&a.browser.version<7,G=Y+"_IE6",n,c,v,e,t,i,q,b,p,u,j,k,l,s,f,r,m,o,d,h,ab,M,N,S,T,C,L,X,W,w,y,K,U,Z;function g(ah,af,ag){ag=B.createElement("div");if(ah){ag.id=Y+ah}ag.style.cssText=af||"";return a(ag)}function aa(ag,af){return Math.round((/%/.test(ag)?((af==="x"?u.width():u.height())/100):1)*parseInt(ag,10))}function Q(af){return ab.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(af)}function V(af){ab=a.extend({},a.data(C,z));for(af in ab){if(a.isFunction(ab[af])&&af.substring(0,2)!=="on"){ab[af]=ab[af].call(C)}}ab.rel=ab.rel||C.rel||"nofollow";ab.href=ab.href||a(C).attr("href");ab.title=ab.title||C.title;if(typeof ab.href==="string"){ab.href=a.trim(ab.href)}}function ad(ag,af){if(af){af.call(C)}a.event.trigger(ag)}function ac(){var ak,af=Y+"Slideshow_",ah="click."+Y,ai,aj,ag;if(ab.slideshow&&p[1]){ai=function(){r.text(ab.slideshowStop).unbind(ah).bind(F,function(){if(L<p.length-1||ab.loop){ak=setTimeout(Z.next,ab.slideshowSpeed)}}).bind(H,function(){clearTimeout(ak)}).one(ah+" "+D,aj);c.removeClass(af+"off").addClass(af+"on");ak=setTimeout(Z.next,ab.slideshowSpeed)};aj=function(){clearTimeout(ak);r.text(ab.slideshowStart).unbind([F,H,D,ah].join(" ")).one(ah,ai);c.removeClass(af+"on").addClass(af+"off")};if(ab.slideshowAuto){ai()}else{aj()}}else{c.removeClass(af+"off "+af+"on")}}function R(ag){if(!y){C=ag;V();p=a(C);L=0;if(ab.rel!=="nofollow"){p=a("."+x).filter(function(){var ah=a.data(this,z).rel||this.rel;return(ah===ab.rel)});L=p.index(C);if(L===-1){p=p.add(C);L=p.length-1}}if(!W){W=w=true;c.show();if(ab.returnFocus){try{C.blur();a(C).one(E,function(){try{this.focus()}catch(ah){}})}catch(af){}}n.css({opacity:+ab.opacity,cursor:ab.overlayClose?"pointer":"auto"}).show();ab.w=aa(ab.initialWidth,"x");ab.h=aa(ab.initialHeight,"y");Z.position();if(P){u.bind("resize."+G+" scroll."+G,function(){n.css({width:u.width(),height:u.height(),top:u.scrollTop(),left:u.scrollLeft()})}).trigger("resize."+G)}ad(I,ab.onOpen);h.add(s).hide();d.html(ab.close).show()}Z.load(true)}}Z=a.fn[z]=a[z]=function(ah,ag){var af=this;ah=ah||{};if(!af[0]){if(af.selector){return af}af=a("<a/>");ah.open=true}if(ag){ah.onComplete=ag}af.each(function(){a.data(this,z,a.extend({},a.data(this,z)||A,ah));a(this).addClass(x)});if((a.isFunction(ah.open)&&ah.open.call(af))||ah.open){R(af[0])}return af};Z.init=function(){u=a(ae);c=g().attr({id:z,"class":O?Y+(P?"IE6":"IE"):""});n=g("Overlay",P?"position:absolute":"").hide();v=g("Wrapper");e=g("Content").append(d=g("Close"),s=g("Title"),j=g("LoadedContent","width:0; height:0; overflow:hidden"),l=g("LoadingOverlay").add(g("LoadingGraphic")),f=g("Current"),m=g("Next"),o=g("Previous"),r=g("Slideshow").bind(I,ac));v.append(g().append(g("TopLeft"),t=g("TopCenter"),g("TopRight")),g(false,"clear:left").append(i=g("MiddleLeft"),e,q=g("MiddleRight")),g(false,"clear:left").append(g("BottomLeft"),b=g("BottomCenter"),g("BottomRight"))).children().children().css({"float":"left"});k=g(false,"position:absolute; width:9999px; visibility:hidden; display:none");a("body").prepend(n,c.append(v,k));e.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover");M=t.height()+b.height()+e.outerHeight(true)-e.height();N=i.width()+q.width()+e.outerWidth(true)-e.width();S=j.outerHeight(true);T=j.outerWidth(true);c.css({"padding-bottom":M,"padding-right":N}).hide();m.click(function(){Z.next()});o.click(function(){Z.prev()});d.click(function(){Z.close()});h=m.add(o).add(f).add(r);e.children().removeClass("hover");n.click(function(){if(ab.overlayClose){Z.close()}});a(B).bind("keydown."+Y,function(af){var ag=af.keyCode;if(W&&ab.escKey&&ag===27){af.preventDefault();Z.close()}if(W&&ab.arrowKey&&p[1]){if(ag===37){af.preventDefault();o.click()}else{if(ag===39){af.preventDefault();m.click()}}}})};Z.remove=function(){c.add(n).remove();a("."+x).removeData(z).removeClass(x)};Z.position=function(ai,ag){var aj=0,af=0;u.unbind("resize."+Y);c.hide();if(ab.fixed&&!P){c.css({position:"fixed"})}else{aj=u.scrollTop();af=u.scrollLeft();c.css({position:"absolute"})}if(ab.right!==false){af+=Math.max(u.width()-ab.w-T-N-aa(ab.right,"x"),0)}else{if(ab.left!==false){af+=aa(ab.left,"x")}else{af+=Math.round(Math.max(u.width()-ab.w-T-N,0)/2)}}if(ab.bottom!==false){aj+=Math.max(B.documentElement.clientHeight-ab.h-S-M-aa(ab.bottom,"y"),0)}else{if(ab.top!==false){aj+=aa(ab.top,"y")}else{aj+=Math.round(Math.max(B.documentElement.clientHeight-ab.h-S-M,0)/2)}}c.show();ai=(c.width()===ab.w+T&&c.height()===ab.h+S)?0:ai||0;v[0].style.width=v[0].style.height="9999px";function ah(ak){t[0].style.width=b[0].style.width=e[0].style.width=ak.style.width;l[0].style.height=l[1].style.height=e[0].style.height=i[0].style.height=q[0].style.height=ak.style.height}c.dequeue().animate({width:ab.w+T,height:ab.h+S,top:aj,left:af},{duration:ai,complete:function(){ah(this);w=false;v[0].style.width=(ab.w+T+N)+"px";v[0].style.height=(ab.h+S+M)+"px";if(ag){ag()}setTimeout(function(){u.bind("resize."+Y,Z.position)},1)},step:function(){ah(this)}})};Z.resize=function(ag){if(W){ag=ag||{};if(ag.width){ab.w=aa(ag.width,"x")-T-N}if(ag.innerWidth){ab.w=aa(ag.innerWidth,"x")}j.css({width:ab.w});if(ag.height){ab.h=aa(ag.height,"y")-S-M}if(ag.innerHeight){ab.h=aa(ag.innerHeight,"y")}if(!ag.innerHeight&&!ag.height){var af=j.wrapInner("<div style='overflow:auto'></div>").children();ab.h=af.height();af.replaceWith(af.children())}j.css({height:ab.h});Z.position(ab.transition==="none"?0:ab.speed)}};Z.prep=function(ai){if(!W){return}var af,aj=ab.transition==="none"?0:ab.speed;j.remove();j=g("LoadedContent").append(ai);function ah(){ab.w=ab.w||j.width();ab.w=ab.mw&&ab.mw<ab.w?ab.mw:ab.w;return ab.w}function ag(){ab.h=ab.h||j.height();ab.h=ab.mh&&ab.mh<ab.h?ab.mh:ab.h;return ab.h}j.hide().appendTo(k.show()).css({width:ah(),overflow:ab.scrolling?"auto":"hidden"}).css({height:ag()}).prependTo(e);k.hide();a(X).css({"float":"none"});if(P){a("select").not(c.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(D,function(){this.style.visibility="inherit"})}af=function(){var ao,ap,am,an,ar=p.length,al,ak;if(!W){return}function aq(){if(O){c[0].style.removeAttribute("filter")}}ak=function(){clearTimeout(U);l.hide();ad(F,ab.onComplete)};if(O){if(X){j.fadeIn(100)}}s.html(ab.title).add(j).show();if(ar>1){if(typeof ab.current==="string"){f.html(ab.current.replace("{current}",L+1).replace("{total}",ar)).show()}m[(ab.loop||L<ar-1)?"show":"hide"]().html(ab.next);o[(ab.loop||L)?"show":"hide"]().html(ab.previous);ao=L?p[L-1]:p[ar-1];am=L<ar-1?p[L+1]:p[0];if(ab.slideshow){r.show()}if(ab.preloading){an=a.data(am,z).href||am.href;ap=a.data(ao,z).href||ao.href;an=a.isFunction(an)?an.call(am):an;ap=a.isFunction(ap)?ap.call(ao):ap;if(Q(an)){a("<img/>")[0].src=an}if(Q(ap)){a("<img/>")[0].src=ap}}}else{h.hide()}if(ab.iframe){al=a("<iframe/>").addClass(Y+"Iframe")[0];if(ab.fastIframe){ak()}else{a(al).one("load",ak)}al.name=Y+(+new Date());al.src=ab.href;if(!ab.scrolling){al.scrolling="no"}if(O){al.frameBorder=0;al.allowTransparency="true"}a(al).appendTo(j).one(J,function(){al.src="//about:blank"})}else{ak()}if(ab.transition==="fade"){c.fadeTo(aj,1,aq)}else{aq()}};if(ab.transition==="fade"){c.fadeTo(aj,0,function(){Z.position(0,af)})}else{Z.position(aj,af)}};Z.load=function(ag){var af,ai,ah=Z.prep;w=true;X=false;C=p[L];if(!ag){V()}ad(J);ad(H,ab.onLoad);ab.h=ab.height?aa(ab.height,"y")-S-M:ab.innerHeight&&aa(ab.innerHeight,"y");ab.w=ab.width?aa(ab.width,"x")-T-N:ab.innerWidth&&aa(ab.innerWidth,"x");ab.mw=ab.w;ab.mh=ab.h;if(ab.maxWidth){ab.mw=aa(ab.maxWidth,"x")-T-N;ab.mw=ab.w&&ab.w<ab.mw?ab.w:ab.mw}if(ab.maxHeight){ab.mh=aa(ab.maxHeight,"y")-S-M;ab.mh=ab.h&&ab.h<ab.mh?ab.h:ab.mh}af=ab.href;U=setTimeout(function(){l.show()},100);if(ab.inline){g().hide().insertBefore(a(af)[0]).one(J,function(){a(this).replaceWith(j.children())});ah(a(af))}else{if(ab.iframe){ah(" ")}else{if(ab.html){ah(ab.html)}else{if(Q(af)){a(X=new Image()).addClass(Y+"Photo").error(function(){ab.title=false;ah(g("Error").text("This image could not be loaded"))}).load(function(){var aj;X.onload=null;if(ab.scalePhotos){ai=function(){X.height-=X.height*aj;X.width-=X.width*aj};if(ab.mw&&X.width>ab.mw){aj=(X.width-ab.mw)/X.width;ai()}if(ab.mh&&X.height>ab.mh){aj=(X.height-ab.mh)/X.height;ai()}}if(ab.h){X.style.marginTop=Math.max(ab.h-X.height,0)/2+"px"}if(p[1]&&(L<p.length-1||ab.loop)){X.style.cursor="pointer";X.onclick=function(){Z.next()}}if(O){X.style.msInterpolationMode="bicubic"}setTimeout(function(){ah(X)},1)});setTimeout(function(){X.src=af},1)}else{if(af){k.load(af,ab.data,function(aj,ak,al){ah(ak==="error"?g("Error").text("Request unsuccessful: "+al.statusText):a(this).contents())})}}}}}};Z.next=function(){if(!w&&p[1]&&(L<p.length-1||ab.loop)){L=L<p.length-1?L+1:0;Z.load()}};Z.prev=function(){if(!w&&p[1]&&(L||ab.loop)){L=L?L-1:p.length-1;Z.load()}};Z.close=function(){if(W&&!y){y=true;W=false;ad(D,ab.onCleanup);u.unbind("."+Y+" ."+G);n.fadeTo(200,0);c.stop().fadeTo(300,0,function(){c.add(n).css({opacity:1,cursor:"auto"}).hide();ad(J);j.remove();setTimeout(function(){y=false;ad(E,ab.onClosed)},1)})}};Z.element=function(){return a(C)};Z.settings=A;K=function(af){if(!((af.button!==0&&typeof af.button!=="undefined")||af.ctrlKey||af.shiftKey||af.altKey)){af.preventDefault();R(this)}};if(a.fn.delegate){a(B).delegate("."+x,"click",K)}else{a("."+x).live("click",K)}a(Z.init)}(jQuery,document,this));$(document).ready(function(){$(window).resize(function(){correctPosition()});$.colorbox.init();correctPosition()});function openPDFBox(a){_gaq.push(["_trackPageview","/tracking/actionbar/pdf"]);$.colorbox({href:a,iframe:true,height:"90%",width:"90%",opacity:0.6,title:function(){return'<a href="'+a+'" target="_blank">In einem neuen Fenster öffnen</a>'}})}function openCallBox(a){_gaq.push(["_trackPageview","/tracking/actionbar/berater"]);$.colorbox({inline:true,href:"#contact_consultant_modal_"+a,height:150,width:350,opacity:0.6,})}function openCallbackBox(a){_gaq.push(["_trackPageview","/tracking/actionbar/call-back"]);$.colorbox({inline:true,href:"#callback_consultant_modal_"+a,height:500,width:600,opacity:0.6,})}var ddaccordion={ajaxloadingmsg:"",headergroup:{},contentgroup:{},preloadimages:function(a){a.each(function(){var b=new Image();b.src=this.src})},expandone:function(a,b){this.toggleone(a,b,"expand")},collapseone:function(a,b){this.toggleone(a,b,"collapse")},expandall:function(b){var a=this.headergroup[b];this.contentgroup[b].filter(":hidden").each(function(){a.eq(parseInt($(this).attr("contentindex"))).trigger("evt_accordion")})},collapseall:function(b){var a=this.headergroup[b];this.contentgroup[b].filter(":visible").each(function(){a.eq(parseInt($(this).attr("contentindex"))).trigger("evt_accordion")})},toggleone:function(c,e,d){var b=this.headergroup[c].eq(e);var a=this.contentgroup[c].eq(e);if(typeof d=="undefined"||d=="expand"&&a.is(":hidden")||d=="collapse"&&a.is(":visible")){b.trigger("evt_accordion")}},ajaxloadcontent:function(b,a,e,d){var c=b.data("ajaxinfo");function f(g){if(g){c.cacheddata=g;c.status="cached";if(a.queue("fx").length==0){a.hide().html(g);c.status="complete";d()}}if(c.status!="complete"){setTimeout(function(){f(c.cacheddata)},100)}}if(c.status=="none"){a.html(this.ajaxloadingmsg);a.slideDown(e.animatespeed);c.status="loading";$.ajax({url:c.url,error:function(g){f("Error fetching content. Server Response: "+g.responseText)},success:function(g){g=(g=="")?" ":g;f(g)}})}else{if(c.status=="loading"){f(c.cacheddata)}}},expandit:function(b,a,d,g,e,f){var c=b.data("ajaxinfo");if(c){if(c.status=="none"||c.status=="loading"){this.ajaxloadcontent(b,a,d,function(){ddaccordion.expandit(b,a,d,g,e)})}else{if(c.status=="cached"){a.html(c.cacheddata);c.cacheddata=null;c.status="complete"}}}this.transformHeader(b,d,"expand");a.slideDown(f?0:d.animatespeed,function(){d.onopenclose(b.get(0),parseInt(b.attr("headerindex")),a.css("display"),g);if(d.postreveal=="gotourl"&&e){var h=(b.is("a"))?b.get(0):b.find("a:eq(0)").get(0);if(h){setTimeout(function(){location=h.href},200)}}})},collapseit:function(b,a,c,d){if(!d){this.transformHeader(b,c,"collapse");a.slideUp(c.animatespeed,function(){c.onopenclose(b.get(0),parseInt(b.attr("headerindex")),a.css("display"),d)})}else{var e=(b.is("a"))?b.get(0):b.find("a:eq(0)").get(0);location=e.href}},transformHeader:function(a,b,c){a.addClass((c=="expand")?b.cssclass.expand:b.cssclass.collapse).removeClass((c=="expand")?b.cssclass.collapse:b.cssclass.expand);if(b.htmlsetting.location=="src"){a=(a.is("img"))?a:a.find("img").eq(0);a.attr("src",(c=="expand")?b.htmlsetting.expand:b.htmlsetting.collapse)}else{if(b.htmlsetting.location=="prefix"){a.find(".accordprefix").html((c=="expand")?b.htmlsetting.expand:b.htmlsetting.collapse)}else{if(b.htmlsetting.location=="suffix"){a.find(".accordsuffix").html((c=="expand")?b.htmlsetting.expand:b.htmlsetting.collapse)}}}},urlparamselect:function(a){var b=window.location.search.match(new RegExp(a+"=((\\d+)(,(\\d+))*)","i"));if(b!=null){b=RegExp.$1.split(",")}return b},getCookie:function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(a,b){document.cookie=a+"="+b+"; path=/"},init:function(a){document.write('<style type="text/css">\n');document.write("."+a.contentclass+"{display: none}\n");document.write("a.hiddenajaxlink{display: none}\n");document.write("</style>");jQuery(document).ready(function(b){ddaccordion.urlparamselect(a.headerclass);var g=ddaccordion.getCookie(a.headerclass);ddaccordion.headergroup[a.headerclass]=b("."+a.headerclass);ddaccordion.contentgroup[a.headerclass]=b("."+a.contentclass);var c=ddaccordion.headergroup[a.headerclass];var d=ddaccordion.contentgroup[a.headerclass];a.cssclass={collapse:a.toggleclass[0],expand:a.toggleclass[1]};a.revealtype=a.revealtype||"click";a.revealtype=a.revealtype.replace(/mouseover/i,"mouseenter");if(a.revealtype=="clickgo"){a.postreveal="gotourl";a.revealtype="click"}if(typeof a.togglehtml=="undefined"){a.htmlsetting={location:"none"}}else{a.htmlsetting={location:a.togglehtml[0],collapse:a.togglehtml[1],expand:a.togglehtml[2]}}a.oninit=(typeof a.oninit=="undefined")?function(){}:a.oninit;a.onopenclose=(typeof a.onopenclose=="undefined")?function(){}:a.onopenclose;var f={};var e=ddaccordion.urlparamselect(a.headerclass)||((a.persiststate&&g!=null)?g:a.defaultexpanded);if(typeof e=="string"){e=e.replace(/c/ig,"").split(",")}if(e.length==1&&e[0]=="-1"){e=[]}if(a.collapseprev&&e.length>1){e=[e.pop()]}if(a.onemustopen&&e.length==0){e=[0]}c.each(function(k){var h=b(this);if(/(prefix)|(suffix)/i.test(a.htmlsetting.location)&&h.html()!=""){b('<span class="accordprefix"></span>').prependTo(this);b('<span class="accordsuffix"></span>').appendTo(this)}h.attr("headerindex",k+"h");d.eq(k).attr("contentindex",k+"c");var j=d.eq(k);var i=j.find("a.hiddenajaxlink:eq(0)");if(i.length==1){h.data("ajaxinfo",{url:i.attr("href"),cacheddata:null,status:"none"})}var l=(typeof e[0]=="number")?k:k+"";if(jQuery.inArray(l,e)!=-1){ddaccordion.expandit(h,j,a,false,false,!a.animatedefault);f={$header:h,$content:j}}else{j.hide();a.onopenclose(h.get(0),parseInt(h.attr("headerindex")),j.css("display"),false);ddaccordion.transformHeader(h,a,"collapse")}});c.bind("evt_accordion",function(i,j){var h=d.eq(parseInt(b(this).attr("headerindex")));if(h.css("display")=="none"){ddaccordion.expandit(b(this),h,a,true,j);if(a.collapseprev&&f.$header&&b(this).get(0)!=f.$header.get(0)){ddaccordion.collapseit(f.$header,f.$content,a,false)}f={$header:b(this),$content:h}}else{if(!a.onemustopen||a.onemustopen&&f.$header&&b(this).get(0)!=f.$header.get(0)){ddaccordion.collapseit(b(this),h,a,true)}}});c.bind(a.revealtype,function(){if(a.revealtype=="mouseenter"){clearTimeout(a.revealdelay);var h=parseInt(b(this).attr("headerindex"));a.revealdelay=setTimeout(function(){ddaccordion.expandone(a.headerclass,h)},a.mouseoverdelay||0)}else{b(this).trigger("evt_accordion",[true]);return false}});c.bind("mouseleave",function(){clearTimeout(a.revealdelay)});a.oninit(c.get(),e);b(window).bind("unload",function(){c.unbind();var h=[];d.filter(":visible").each(function(i){h.push(b(this).attr("contentindex"))});if(a.persiststate==true&&c.length>0){h=(h.length==0)?"-1c":h;ddaccordion.setCookie(a.headerclass,h)}})})}};ddaccordion.preloadimages(jQuery(ddaccordion.ajaxloadingmsg).filter("img"));function correctPosition(){if($(window).height()-900<0){var a=parseInt($("#logo").css("top"));$("#logo").css("top",(parseInt($("#logo").css("top"))-a));$("#top_menu").css("top",(parseInt($("#top_menu").css("top"))-a));$("#content_window_extender").css("top",(parseInt($("#content_window_extender").css("top"))-a));$("#bottom_menu_unterseite").css("top",(parseInt($("#bottom_menu_unterseite").css("top"))-a))}else{if(parseInt($("#logo").css("top"))==0){var a=parseInt($("#logo").css("top"))+138;$("#logo").css("top",(parseInt($("#logo").css("top"))+a));$("#top_menu").css("top",(parseInt($("#top_menu").css("top"))+a));$("#content_window_extender").css("top",(parseInt($("#content_window_extender").css("top"))+a));$("#bottom_menu_unterseite").css("top",(parseInt($("#bottom_menu_unterseite").css("top"))+a))}}};
