(function(b){function x(h,j){j=j==="x"?o.width():o.height();return typeof h==="string"?Math.round(h.match(/%/)?j/100*parseInt(h,10):parseInt(h,10)):h}function v(h){h=b.isFunction(h)?h.call(u):h;return f.photo||h.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function O(){for(var h in f)if(b.isFunction(f[h])&&h.substring(0,2)!=="on")f[h]=f[h].call(u);f.rel=f.rel||u.rel;f.href=f.href||u.href;f.title=f.title||u.title}function D(h){u=h;f=b(u).data(A);O();if(f.rel&&f.rel!=="nofollow"){m=
b(".cboxElement").filter(function(){return(b(this).data(A).rel||this.rel)===f.rel});y=m.index(u);if(y<0){m=m.add(u);y=m.length-1}}else{m=b(u);y=0}if(!U){V=U=z;ba=u;ba.blur();b(document).bind("keydown.cbox_close",function(j){if(j.keyCode===27){j.preventDefault();n.close()}}).bind("keydown.cbox_arrows",function(j){if(m.length>1)if(j.keyCode===37){j.preventDefault();W.click()}else if(j.keyCode===39){j.preventDefault();K.click()}});f.overlayClose&&a.css({cursor:"pointer"}).one("click",n.close);b.event.trigger(Z);
f.onOpen&&f.onOpen.call(u);a.css({opacity:f.opacity}).show();f.w=x(f.initialWidth,"x");f.h=x(f.initialHeight,"y");n.position(0);C&&o.bind("resize.cboxie6 scroll.cboxie6",function(){a.css({width:o.width(),height:o.height(),top:o.scrollTop(),left:o.scrollLeft()})}).trigger("scroll.cboxie6")}w.add(W).add(K).add(E).add(P).hide();ca.html(f.close).show();n.slideshow();n.load()}var A="colorbox",L="hover",z=true,n,J=!b.support.opacity,C=J&&!window.XMLHttpRequest,Z="cbox_open",F="cbox_load",X="cbox_complete",
Q="resize.cbox_resize",a,c,e,g,i,d,k,l,m,o,s,G,H,I,P,w,E,K,W,ca,R,S,M,N,u,ba,y,f,U,V,da={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:z,scrolling:z,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.8,preloading:z,current:"{current} / {total}",previous:"voriges Bild",next:"n\u00e4chstes Bild",close:"Schlie\u00dfen",open:false,overlayClose:z,
slideshow:false,slideshowAuto:z,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};n=b.fn.colorbox=function(h,j){var t=this;if(!t.length)if(t.selector===""){t=b("<a/>");h.open=z}else return this;t.each(function(){var r=b.extend({},b(this).data(A)?b(this).data(A):da,h);b(this).data(A,r).addClass("cboxElement");if(j)b(this).data(A).onComplete=j});h&&h.open&&D(t);return this};n.init=function(){function h(j){return b('<div id="cbox'+
j+'"/>')}o=b(window);c=b('<div id="colorbox"/>');a=h("Overlay").hide();e=h("Wrapper");g=h("Content").append(s=h("LoadedContent").css({width:0,height:0}),H=h("LoadingOverlay"),I=h("LoadingGraphic"),P=h("Title"),w=h("Current"),E=h("Slideshow"),K=h("Next"),W=h("Previous"),ca=h("Close"));e.append(b("<div/>").append(h("TopLeft"),i=h("TopCenter"),h("TopRight")),b("<div/>").append(d=h("MiddleLeft"),g,k=h("MiddleRight")),b("<div/>").append(h("BottomLeft"),l=h("BottomCenter"),h("BottomRight"))).children().children().css({"float":"left"});
G=b("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");b("body").prepend(a,c.append(e,G));if(J){c.addClass("cboxIE");C&&a.css("position","absolute")}g.children().bind("mouseover mouseout",function(){b(this).toggleClass(L)}).addClass(L);R=i.height()+l.height()+g.outerHeight(z)-g.height();S=d.width()+k.width()+g.outerWidth(z)-g.width();M=s.outerHeight(z);N=s.outerWidth(z);c.css({"padding-bottom":R,"padding-right":S}).hide();K.click(n.next);W.click(n.prev);ca.click(n.close);
g.children().removeClass(L);b(".cboxElement").live("click",function(j){if(j.button!==0&&typeof j.button!=="undefined")return z;else{D(this);return false}})};n.position=function(h,j){function t(T){i[0].style.width=l[0].style.width=g[0].style.width=T.style.width;I[0].style.height=H[0].style.height=g[0].style.height=d[0].style.height=k[0].style.height=T.style.height}var r=o.height();r=Math.max(r-f.h-M-R,0)/2+o.scrollTop();var B=Math.max(document.documentElement.clientWidth-f.w-N-S,0)/2+o.scrollLeft();
h=c.width()===f.w+N&&c.height()===f.h+M?0:h;e[0].style.width=e[0].style.height="9999px";c.dequeue().animate({width:f.w+N,height:f.h+M,top:r,left:B},{duration:h,complete:function(){t(this);V=false;e[0].style.width=f.w+N+S+"px";e[0].style.height=f.h+M+R+"px";j&&j()},step:function(){t(this)}})};n.resize=function(h){function j(){f.w=f.w||s.width();f.w=f.mw&&f.mw<f.w?f.mw:f.w;return f.w}function t(){f.h=f.h||s.height();f.h=f.mh&&f.mh<f.h?f.mh:f.h;return f.h}function r(Y){n.position(Y,function(){if(U){if(J){T&&
s.fadeIn(100);c[0].style.removeAttribute("filter")}if(f.iframe)s.append("<iframe id='cboxIframe'"+(f.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+f.href+"' "+(J?"allowtransparency='true'":"")+" />");s.show();P.show().html(f.title);if(m.length>1){w.html(f.current.replace(/\{current\}/,y+1).replace(/\{total\}/,m.length)).show();K.html(f.next).show();W.html(f.previous).show();f.slideshow&&E.show()}H.hide();I.hide();b.event.trigger(X);f.onComplete&&f.onComplete.call(u);
f.transition==="fade"&&c.fadeTo(aa,1,function(){J&&c[0].style.removeAttribute("filter")});o.bind(Q,function(){n.position(0)})}})}if(U){var B,T,aa=f.transition==="none"?0:f.speed;o.unbind(Q);if(h){s.remove();s=b('<div id="cboxLoadedContent"/>').html(h);s.hide().appendTo(G).css({width:j(),overflow:f.scrolling?"auto":"hidden"}).css({height:t()}).prependTo(g);b("#cboxPhoto").css({cssFloat:"none"});C&&b("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",
function(){this.style.visibility="inherit"});f.transition==="fade"&&c.fadeTo(aa,0,function(){r(0)})||r(aa);if(f.preloading&&m.length>1){h=y>0?m[y-1]:m[m.length-1];B=y<m.length-1?m[y+1]:m[0];B=b(B).data(A).href||B.href;h=b(h).data(A).href||h.href;v(B)&&b("<img />").attr("src",B);v(h)&&b("<img />").attr("src",h)}}else setTimeout(function(){var Y=s.wrapInner("<div style='overflow:auto'></div>").children();f.h=Y.height();s.css({height:f.h});Y.replaceWith(Y.children());n.position(aa)},1)}};n.load=function(){var h,
j,t,r=n.resize;V=z;u=m[y];f=b(u).data(A);O();b.event.trigger(F);f.onLoad&&f.onLoad.call(u);f.h=f.height?x(f.height,"y")-M-R:f.innerHeight?x(f.innerHeight,"y"):false;f.w=f.width?x(f.width,"x")-N-S:f.innerWidth?x(f.innerWidth,"x"):false;f.mw=f.w;f.mh=f.h;if(f.maxWidth){f.mw=x(f.maxWidth,"x")-N-S;f.mw=f.w&&f.w<f.mw?f.w:f.mw}if(f.maxHeight){f.mh=x(f.maxHeight,"y")-M-R;f.mh=f.h&&f.h<f.mh?f.h:f.mh}h=f.href;H.show();I.show();if(f.inline){b('<div id="cboxInlineTemp" />').hide().insertBefore(b(h)[0]).bind(F+
" cbox_cleanup",function(){b(this).replaceWith(s.children())});r(b(h))}else if(f.iframe)r(" ");else if(f.html)r(f.html);else if(v(h)){j=new Image;j.onload=function(){var B;j.onload=null;j.id="cboxPhoto";b(j).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(f.scalePhotos){t=function(){j.height-=j.height*B;j.width-=j.width*B};if(f.mw&&j.width>f.mw){B=(j.width-f.mw)/j.width;t()}if(f.mh&&j.height>f.mh){B=(j.height-f.mh)/j.height;t()}}if(f.h)j.style.marginTop=Math.max(f.h-j.height,
0)/2+"px";r(j);m.length>1&&b(j).css({cursor:"pointer"}).click(n.next);if(J)j.style.msInterpolationMode="bicubic"};j.src=h}else b("<div />").appendTo(G).load(h,function(B,T){T==="success"?r(this):r(b("<p>Request unsuccessful.</p>"))})};n.next=function(){if(!V){y=y<m.length-1?y+1:0;n.load()}};n.prev=function(){if(!V){y=y>0?y-1:m.length-1;n.load()}};n.slideshow=function(){function h(){E.text(f.slideshowStop).bind(X,function(){t=setTimeout(n.next,f.slideshowSpeed)}).bind(F,function(){clearTimeout(t)}).one("click",
function(){j();b(this).removeClass(L)});c.removeClass(r+"off").addClass(r+"on")}var j,t,r="cboxSlideshow_";E.bind("cbox_closed",function(){E.unbind();clearTimeout(t);c.removeClass(r+"off "+r+"on")});j=function(){clearTimeout(t);E.text(f.slideshowStart).unbind(X+" "+F).one("click",function(){h();t=setTimeout(n.next,f.slideshowSpeed);b(this).removeClass(L)});c.removeClass(r+"on").addClass(r+"off")};if(f.slideshow&&m.length>1)f.slideshowAuto?h():j()};n.close=function(){b.event.trigger("cbox_cleanup");
f.onCleanup&&f.onCleanup.call(u);U=false;b(document).unbind("keydown.cbox_close keydown.cbox_arrows");o.unbind(Q+" resize.cboxie6 scroll.cboxie6");a.css({cursor:"auto"}).fadeOut("fast");c.stop(z,false).fadeOut("fast",function(){b("#colorbox iframe").attr("src","about:blank");s.remove();c.css({opacity:1});try{ba.focus()}catch(h){}b.event.trigger("cbox_closed");f.onClosed&&f.onClosed.call(u)})};n.element=function(){return b(u)};n.settings=da;b(n.init)})(jQuery);(function(b){function x(a){b.fn.cycle.debug&&v(a)}function v(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function O(a,c,e){if(a.cycleStop==undefined)a.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==String){switch(c){case "destroy":case "stop":e=b(a).data("cycle.opts");if(!e)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;b(a).removeData("cycle.opts");c=="destroy"&&A(e);return false;
case "toggle":a.cyclePause=a.cyclePause===1?0:1;return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;if(e===true){c=b(a).data("cycle.opts");if(!c){v("options not found, can not resume");return false}if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}C(c.elements,c,1,1)}return false;case "prev":case "next":e=b(a).data("cycle.opts");if(!e){v('options not found, "prev/next" ignored');return false}b.fn.cycle[c](e);return false;default:c={fx:c}}return c}else if(c.constructor==
Number){var g=c;c=b(a).data("cycle.opts");if(!c){v("options not found, can not advance slide");return false}if(g<0||g>=c.elements.length){v("invalid slide index: "+g);return false}c.nextSlide=g;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof e=="string")c.oneTimeFx=e;C(c.elements,c,1,g>=c.currSlide);return false}return c}function D(a,c){if(!b.support.opacity&&c.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(e){}}function A(a){a.next&&b(a.next).unbind(a.prevNextEvent);
a.prev&&b(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)b.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function L(a,c,e,g,i){var d=b.extend({},b.fn.cycle.defaults,g||{},b.metadata?a.metadata():b.meta?a.data():{});if(d.autostop)d.countdown=d.autostopCount||e.length;var k=a[0];a.data("cycle.opts",d);d.$cont=a;d.stopCount=k.cycleStop;d.elements=e;d.before=d.before?[d.before]:[];d.after=d.after?[d.after]:[];d.after.unshift(function(){d.busy=
0});!b.support.opacity&&d.cleartype&&d.after.push(function(){D(this,d)});d.continuous&&d.after.push(function(){C(e,d,0,!d.rev)});z(d);!b.support.opacity&&d.cleartype&&!d.cleartypeNoBg&&Q(c);a.css("position")=="static"&&a.css("position","relative");d.width&&a.width(d.width);d.height&&d.height!="auto"&&a.height(d.height);if(d.startingSlide)d.startingSlide=parseInt(d.startingSlide);if(d.random){d.randomMap=[];for(k=0;k<e.length;k++)d.randomMap.push(k);d.randomMap.sort(function(){return Math.random()-
0.5});d.randomIndex=1;d.startingSlide=d.randomMap[1]}else if(d.startingSlide>=e.length)d.startingSlide=0;d.currSlide=d.startingSlide||0;var l=d.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(w){w=l?w>=l?e.length-(w-l):l-w:e.length-w;b(this).css("z-index",w)});b(e[l]).css("opacity",1).show();D(e[l],d);d.fit&&d.width&&c.width(d.width);d.fit&&d.height&&d.height!="auto"&&c.height(d.height);if(d.containerResize&&!a.innerHeight()){for(var m=k=0,o=0;o<e.length;o++){var s=b(e[o]),
G=s[0],H=s.outerWidth(),I=s.outerHeight();H||(H=G.offsetWidth||G.width||s.attr("width"));I||(I=G.offsetHeight||G.height||s.attr("height"));k=H>k?H:k;m=I>m?I:m}k>0&&m>0&&a.css({width:k+"px",height:m+"px"})}d.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(n(d)===false)return false;var P=false;g.requeueAttempts=g.requeueAttempts||0;c.each(function(){var w=b(this);this.cycleH=d.fit&&d.height?d.height:w.height()||this.offsetHeight||this.height||w.attr("height")||0;this.cycleW=
d.fit&&d.width?d.width:w.width()||this.offsetWidth||this.width||w.attr("width")||0;if(w.is("img")){w=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var E=b.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,K=this.cycleH==0&&this.cycleW==0&&!this.complete;if(b.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||w||E||K)if(i.s&&d.requeueOnImageNotLoaded&&++g.requeueAttempts<100){v(g.requeueAttempts," - img slide not loaded, requeuing slideshow: ",
this.src,this.cycleW,this.cycleH);setTimeout(function(){b(i.s,i.c).cycle(g)},d.requeueTimeout);P=true;return false}else v("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(P)return false;d.cssBefore=d.cssBefore||{};d.animIn=d.animIn||{};d.animOut=d.animOut||{};c.not(":eq("+l+")").css(d.cssBefore);d.cssFirst&&b(c[l]).css(d.cssFirst);if(d.timeout){d.timeout=parseInt(d.timeout);if(d.speed.constructor==String)d.speed=b.fx.speeds[d.speed]||parseInt(d.speed);for(d.sync||
(d.speed/=2);d.timeout-d.speed<250;)d.timeout+=d.speed}if(d.easing)d.easeIn=d.easeOut=d.easing;if(!d.speedIn)d.speedIn=d.speed;if(!d.speedOut)d.speedOut=d.speed;d.slideCount=e.length;d.currSlide=d.lastSlide=l;if(d.random){if(++d.randomIndex==e.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex]}else d.nextSlide=d.startingSlide>=e.length-1?0:d.startingSlide+1;if(!d.multiFx){k=b.fn.cycle.transitions[d.fx];if(b.isFunction(k))k(a,c,d);else if(d.fx!="custom"&&!d.multiFx){v("unknown transition: "+
d.fx,"; slideshow terminating");return false}}a=c[l];d.before.length&&d.before[0].apply(a,[a,a,d,true]);d.after.length>1&&d.after[1].apply(a,[a,a,d,true]);d.next&&b(d.next).bind(d.prevNextEvent,function(){return F(d,d.rev?-1:1)});d.prev&&b(d.prev).bind(d.prevNextEvent,function(){return F(d,d.rev?1:-1)});if(d.pager||d.pagerAnchorBuilder)X(e,d);J(d,e);return d}function z(a){a.original={before:[],after:[]};a.original.cssBefore=b.extend({},a.cssBefore);a.original.cssAfter=b.extend({},a.cssAfter);a.original.animIn=
b.extend({},a.animIn);a.original.animOut=b.extend({},a.animOut);b.each(a.before,function(){a.original.before.push(this)});b.each(a.after,function(){a.original.after.push(this)})}function n(a){var c,e,g=b.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(c=0;c<a.fxs.length;c++){var i=a.fxs[c];e=g[i];if(!e||!g.hasOwnProperty(i)||!b.isFunction(e)){v("discarding unknown transition: ",i);a.fxs.splice(c,1);c--}}if(!a.fxs.length){v("No valid transitions named; slideshow terminating.");
return false}}else if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in g){e=g[p];g.hasOwnProperty(p)&&b.isFunction(e)&&a.fxs.push(p)}}if(a.multiFx&&a.randomizeEffects){e=Math.floor(Math.random()*20)+30;for(c=0;c<e;c++){g=Math.floor(Math.random()*a.fxs.length);a.fxs.push(a.fxs.splice(g,1)[0])}x("randomized fx sequence: ",a.fxs)}return true}function J(a,c){a.addSlide=function(e,g){e=b(e);var i=e[0];a.autostopCount||a.countdown++;c[g?"unshift":"push"](i);if(a.els)a.els[g?"unshift":"push"](i);a.slideCount=
c.length;e.css("position","absolute");e[g?"prependTo":"appendTo"](a.$cont);if(g){a.currSlide++;a.nextSlide++}!b.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&Q(e);a.fit&&a.width&&e.width(a.width);a.fit&&a.height&&a.height!="auto"&&$slides.height(a.height);i.cycleH=a.fit&&a.height?a.height:e.height();i.cycleW=a.fit&&a.width?a.width:e.width();e.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder)b.fn.cycle.createPagerAnchor(c.length-1,i,b(a.pager),c,a);b.isFunction(a.onAddSlide)?a.onAddSlide(e):e.hide()}}
function C(a,c,e,g){if(e&&c.busy&&c.manualTrump){b(a).stop(true,true);c.busy=false}if(!c.busy){var i=c.$cont[0],d=a[c.currSlide],k=a[c.nextSlide];if(!(i.cycleStop!=c.stopCount||i.cycleTimeout===0&&!e))if(!e&&!i.cyclePause&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{if((e||!i.cyclePause)&&c.nextSlide!=c.currSlide){var l=c.fx;d.cycleH=d.cycleH||b(d).height();d.cycleW=d.cycleW||b(d).width();k.cycleH=k.cycleH||b(k).height();k.cycleW=k.cycleW||b(k).width();
if(c.multiFx){if(c.lastFx==undefined||++c.lastFx>=c.fxs.length)c.lastFx=0;l=c.fxs[c.lastFx];c.currFx=l}if(c.oneTimeFx){l=c.oneTimeFx;c.oneTimeFx=null}b.fn.cycle.resetState(c,l);c.before.length&&b.each(c.before,function(m,o){i.cycleStop==c.stopCount&&o.apply(k,[d,k,c,g])});l=function(){b.each(c.after,function(m,o){i.cycleStop==c.stopCount&&o.apply(k,[d,k,c,g])})};c.busy=1;if(c.fxFn)c.fxFn(d,k,c,l,g);else b.isFunction(b.fn.cycle[c.fx])?b.fn.cycle[c.fx](d,k,c,l):b.fn.cycle.custom(d,k,c,l,e&&c.fastOnEvent);
c.lastSlide=c.currSlide;if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==a.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{e=c.nextSlide+1==a.length;c.nextSlide=e?0:c.nextSlide+1;c.currSlide=e?a.length-1:c.nextSlide-1}c.pager&&c.updateActivePagerLink(c.pager,c.currSlide,c.activePagerClass)}e=0;if(c.timeout&&!c.continuous)e=Z(d,k,c,g);else if(c.continuous&&i.cyclePause)e=10;if(e>0)i.cycleTimeout=setTimeout(function(){C(a,c,0,!c.rev)},e)}}}function Z(a,c,e,g){if(e.timeoutFn){for(a=
e.timeoutFn(a,c,e,g);a-e.speed<250;)a+=e.speed;x("calculated timeout: "+a+"; speed: "+e.speed);if(a!==false)return a}return e.timeout}function F(a,c){var e=a.elements,g=a.$cont[0],i=g.cycleTimeout;if(i){clearTimeout(i);g.cycleTimeout=0}if(a.random&&c<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=e.length-2;else if(a.randomIndex==-1)a.randomIndex=e.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else{a.nextSlide=a.currSlide+c;if(a.nextSlide<
0){if(a.nowrap)return false;a.nextSlide=e.length-1}else if(a.nextSlide>=e.length){if(a.nowrap)return false;a.nextSlide=0}}b.isFunction(a.prevNextClick)&&a.prevNextClick(c>0,a.nextSlide,e[a.nextSlide]);C(e,a,1,c>=0);return false}function X(a,c){var e=b(c.pager);b.each(a,function(g,i){b.fn.cycle.createPagerAnchor(g,i,e,a,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function Q(a){function c(g){g=parseInt(g).toString(16);return g.length<2?"0"+g:g}function e(g){for(;g&&g.nodeName.toLowerCase()!=
"html";g=g.parentNode){var i=b.css(g,"background-color");if(i.indexOf("rgb")>=0){g=i.match(/\d+/g);return"#"+c(g[0])+c(g[1])+c(g[2])}if(i&&i!="transparent")return i}return"#ffffff"}a.each(function(){b(this).css("background-color",e(this))})}if(b.support==undefined)b.support={opacity:!b.browser.msie};b.fn.cycle=function(a,c){var e={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!b.isReady&&e.s){v("DOM not ready, queuing slideshow");b(function(){b(e.s,e.c).cycle(a,c)});return this}v("terminating; zero elements found by selector"+
(b.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var g=O(this,a,c);if(g!==false){g.updateActivePagerLink=g.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var i=b(this),d=g.slideExpr?b(g.slideExpr,this):i.children(),k=d.get();if(k.length<2)v("terminating; too few slides: "+k.length);else{var l=L(i,d,k,g,e);if(l!==false)if(g=l.continuous?10:Z(l.currSlide,l.nextSlide,l,!l.rev)){g+=
l.delay||0;if(g<10)g=10;x("first timeout: "+g);this.cycleTimeout=setTimeout(function(){C(k,l,0,!l.rev)},g)}}}})};b.fn.cycle.resetState=function(a,c){c=c||a.fx;a.before=[];a.after=[];a.cssBefore=b.extend({},a.original.cssBefore);a.cssAfter=b.extend({},a.original.cssAfter);a.animIn=b.extend({},a.original.animIn);a.animOut=b.extend({},a.original.animOut);a.fxFn=null;b.each(a.original.before,function(){a.before.push(this)});b.each(a.original.after,function(){a.after.push(this)});c=b.fn.cycle.transitions[c];
b.isFunction(c)&&c(a.$cont,b(a.elements),a)};b.fn.cycle.updateActivePagerLink=function(a,c,e){b(a).each(function(){b(this).find("a").removeClass(e).filter("a:eq("+c+")").addClass(e)})};b.fn.cycle.next=function(a){F(a,a.rev?-1:1)};b.fn.cycle.prev=function(a){F(a,a.rev?1:-1)};b.fn.cycle.createPagerAnchor=function(a,c,e,g,i){if(c=b.isFunction(i.pagerAnchorBuilder)?i.pagerAnchorBuilder(a,c):'<a href="#">'+(a+1)+"</a>"){var d=b(c);if(d.parents("body").length===0){var k=[];if(e.length>1){e.each(function(){var l=
d.clone(true);b(this).append(l);k.push(l[0])});d=b(k)}else d.appendTo(e)}i.pagerAnchors=i.pagerAnchors||[];i.pagerAnchors.push(d);d.bind(i.pagerEvent,function(l){l.preventDefault();i.nextSlide=a;l=i.$cont[0];var m=l.cycleTimeout;if(m){clearTimeout(m);l.cycleTimeout=0}b.isFunction(i.pagerClick)&&i.pagerClick(i.nextSlide,g[i.nextSlide]);C(g,i,1,i.currSlide<a)});!/^click/.test(i.pagerEvent)&&!i.allowPagerClickBubble&&d.bind("click.cycle",function(){return false});i.pauseOnPagerHover&&d.hover(function(){i.$cont[0].cyclePause++},
function(){i.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(a,c){var e=a.lastSlide,g=a.currSlide;return c?g>e?g-e:a.slideCount-e:g<e?e-g:e+a.slideCount-g};b.fn.cycle.commonReset=function(a,c,e,g,i,d){b(e.elements).not(a).hide();e.cssBefore.opacity=1;e.cssBefore.display="block";if(g!==false&&c.cycleW>0)e.cssBefore.width=c.cycleW;if(i!==false&&c.cycleH>0)e.cssBefore.height=c.cycleH;e.cssAfter=e.cssAfter||{};e.cssAfter.display="none";b(a).css("zIndex",e.slideCount+(d===true?1:0));b(c).css("zIndex",
e.slideCount+(d===true?0:1))};b.fn.cycle.custom=function(a,c,e,g,i){var d=b(a),k=b(c),l=e.speedIn;a=e.speedOut;var m=e.easeIn;c=e.easeOut;k.css(e.cssBefore);if(i){l=typeof i=="number"?(a=i):(a=1);m=c=null}var o=function(){k.animate(e.animIn,l,m,g)};d.animate(e.animOut,a,c,function(){e.cssAfter&&d.css(e.cssAfter);e.sync||o()});e.sync&&o()};b.fn.cycle.transitions={fade:function(a,c,e){c.not(":eq("+e.currSlide+")").css("opacity",0);e.before.push(function(g,i,d){b.fn.cycle.commonReset(g,i,d);d.cssBefore.opacity=
0});e.animIn={opacity:1};e.animOut={opacity:0};e.cssBefore={top:0,left:0}}};b.fn.cycle.ver=function(){return"2.80"};b.fn.cycle.defaults={fx:"fade",timeout:0,timeoutFn:null,continuous:0,speed:750,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click.cycle",pager:null,pagerClick:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,
cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:1,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!b.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);$(function(){$("#main_nav > li").each(function(){$(this).hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})});$("#lang").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$("#lang h3").toggle(function(){$(this).parent().addClass("click")},function(){$(this).parent().removeClass("click")});$("html").addClass("js");$("#slideshow_baby").cycle({prev:"#prev_baby",next:"#next_baby",before:function(b,x,v,O){q=O?$(x).next().andSelf():
$(x).prev().andSelf();q.has("a[rel=photo]").html(function(D,A){D=$(A).filter("a");A=$('<img height="160" width="240" />').attr({src:D.last().attr("href"),alt:D.last().attr("title")});return D.first().append(A)})}})});
var wall={default_factor:1,speed_factor:5,direction:null,starttime:null,startoffset:0,slow_load:100,fast_load:15,init:function(b){this.outernode=b.outernode||$("#photo_wall");this.innernode=b.innernode||$("#inner_photo_wall");this.btn_left=b.btn_left||$("#wall_nav a[rel=left]");this.btn_right=b.btn_right||$("#wall_nav a[rel=right]");this.uls=this.innernode.children("ul");this.cols=this.uls.length;this.colwidth=this.uls.width();this.width=this.colwidth*this.cols;this.displaywidth=this.outernode.width();
this.innernode.width(this.width);this.latest=0;this.outernode.scrollLeft(0);this.queue=[];this.factor=this.default_factor;if(this.width>this.displaywidth){this.outernode.addClass("loading");this.btn_right.bind({mouseover:function(){wall.start_move(1);return false},mouseout:function(){wall.stop_move();return false},mousedown:function(){wall.change_speed(wall.speed_factor);return false},mouseup:function(){wall.change_speed(wall.default_factor);return false},click:function(){return false}});this.btn_left.bind({mouseover:function(){wall.start_move(-1);
return false},mouseout:function(){wall.stop_move();return false},mousedown:function(){wall.change_speed(wall.speed_factor);return false},mouseup:function(){wall.change_speed(wall.default_factor);return false},click:function(){return false}})}else this.btn_right.addClass("disabled");this.btn_left.addClass("disabled")},lazyload:function(){if(wall.queue.length>0)$(wall.queue.shift()).html(wall.convert).removeClass("inqueue");else{window.clearInterval(wall.lazy_interval);wall.lazy_interval=null}},addlazy:function(b){wall.queue=
$.merge(wall.queue,$.makeArray(b));if(!wall.lazy_interval)wall.lazy_interval=window.setInterval(wall.lazyload,wall.fast_load)},convert:function(b,x){b=new Image(80,80);b.src=x;return b},start_move:function(b){this.direction=b;this.startoffset=this.outernode.scrollLeft();b>0?wall.btn_left.removeClass("disabled"):wall.btn_right.removeClass("disabled");this.starttime=new Date;if(this.interval){window.clearInterval(this.interval);this.interval=null}this.interval=window.setInterval(wall.move,10)},move:function(){var b=
parseInt(wall.startoffset+(new Date-wall.starttime)*wall.factor*wall.direction*0.25);wall.scroll(b);wall.outernode.scrollLeft(b);if(wall.direction==1&&b+wall.displaywidth>=wall.width){wall.btn_right.addClass("disabled");wall.stop_move()}else if(wall.direction==-1&&b<=0){wall.btn_left.addClass("disabled");wall.stop_move()}b=parseInt((wall.displaywidth+b)/wall.colwidth);wall.addlazy(wall.uls.slice(Math.max(0,b-6),b+2).find("a.notready").addClass("inqueue").removeClass("notready"))},scroll:function(b){b=
b||0;if(wall.direction==1){if(b+wall.displaywidth>=wall.width){wall.btn_right.addClass("disabled");wall.stop_move()}}else if(wall.direction==-1)if(b<=0){wall.btn_left.addClass("disabled");wall.stop_move()}wall.outernode.scrollLeft(b)},stop_move:function(){if(wall.interval){window.clearInterval(wall.interval);wall.interval=null}wall.factor=wall.default_factor;var b=parseInt((wall.displaywidth+wall.outernode.scrollLeft())/wall.colwidth);wall.addlazy(wall.uls.slice(Math.max(0,b-12),b+10).find("a.notready").addClass("inqueue").removeClass("notready"))},
change_speed:function(b){this.factor=b;wall.start_move(wall.direction||1)}};
