(function(){var i=Shadowbox,g=i.util,e={hide:0,show:0},q=false,d=[],h=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],l={markup:'<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><a id="sb-nav-close" title="schliessen" onclick="Shadowbox.close()"></a><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><a onclick="Shadowbox.close()">{cancel}</a></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div><div style="clear:both"></div></div></div></div></div>',options:{animSequence:"sync",autoDimensions:false,counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]},init:function(){var t=l.markup.replace(/\{(\w+)\}/g,function(x,y){});i.lib.append(document.body,t);if(i.client.isIE6){g.get("sb-body").style.zoom=1;var v,s,u=/url\("(.*\.png)"\)/;g.each(h,function(x){v=g.get(x);if(v){s=i.lib.getStyle(v,"backgroundImage").match(u);if(s){v.style.backgroundImage="none";v.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+s[1]+",sizingMethod=scale);"}}})}var w;i.lib.addEvent(window,"resize",function(){if(w){clearTimeout(w);w=null}if(i.isActive()){w=setTimeout(function(){l.onWindowResize();var x=i.content;if(x&&x.onWindowResize){x.onWindowResize()}},50)}})},bodyEl:function(){return g.get("sb-body-inner")},onOpen:function(v,s){o(false);var u=i.options.autoDimensions&&"height" in v?v.height:i.options.initialHeight,t=i.options.autoDimensions&&"width" in v?v.width:i.options.initialWidth;g.get("sb-container").style.display="block";var x=p(u,t);b(x.inner_h,x.top,false);k(x.width,x.left,false);f(s)},onLoad:function(t,u,s){j(true);n(u,function(){if(!t){return}if(!u){g.get("sb-wrapper").style.display=""}s()})},onReady:function(s){var u=i.content;if(!u){return}var t=p(u.height,u.width,u.resizable);l.resizeContent(t.inner_h,t.width,t.top,t.left,true,function(){c(s)})},onFinish:function(s){j(false,s)},onClose:function(){f();o(true)},onPlay:function(){m("play",false);m("pause",true)},onPause:function(){m("pause",false);m("play",true)},onWindowResize:function(){var u=i.content;if(!u){return}var t=p(u.height,u.width,u.resizable);k(t.width,t.left,false);b(t.inner_h,t.top,false);var s=g.get(i.contentId());if(s){if(u.resizable&&i.options.handleOversize=="resize"){s.height=t.resize_h;s.width=t.resize_w}}},resizeContent:function(t,u,x,w,v,s){var z=i.content;if(!z){return}var y=p(z.height,z.width,z.resizable);switch(i.options.animSequence){case"hw":b(y.inner_h,y.top,v,function(){k(y.width,y.left,v,s)});break;case"wh":k(y.width,y.left,v,function(){b(y.inner_h,y.top,v,s)});break;default:k(y.width,y.left,v);b(y.inner_h,y.top,v,s)}}};function r(){g.get("sb-container").style.top=document.documentElement.scrollTop+"px"}function o(s){if(s){g.each(d,function(t){t[0].style.visibility=t[1]||""})}else{d=[];g.each(i.options.troubleElements,function(t){g.each(document.getElementsByTagName(t),function(u){d.push([u,u.style.visibility]);u.style.visibility="hidden"})})}}function f(s){var t=g.get("sb-overlay"),u=g.get("sb-container"),w=g.get("sb-wrapper");if(s){if(i.client.isIE6){r();i.lib.addEvent(window,"scroll",r)}if(i.options.showOverlay){q=true;t.style.backgroundColor=i.options.overlayColor;g.setOpacity(t,0);if(!i.options.modal){i.lib.addEvent(t,"click",i.close)}w.style.display="none"}u.style.visibility="visible";if(q){var v=parseFloat(i.options.overlayOpacity);g.animate(t,"opacity",v,i.options.fadeDuration,s)}else{s()}}else{if(i.client.isIE6){i.lib.removeEvent(window,"scroll",r)}i.lib.removeEvent(t,"click",i.close);if(q){w.style.display="none";g.animate(t,"opacity",0,i.options.fadeDuration,function(){u.style.display="";w.style.display="";g.clearOpacity(t)})}else{u.style.visibility="hidden"}}}function m(u,s){var t=g.get("sb-nav-"+u);if(t){t.style.display=s?"":"none"}}function j(t,s){var v=g.get("sb-loading"),x=i.getCurrent().player,w=(x=="img"||x=="html");if(t){function u(){g.clearOpacity(v);if(s){s()}}g.setOpacity(v,0);v.style.display="";if(w){g.animate(v,"opacity",1,i.options.fadeDuration,u)}else{u()}}else{function u(){v.style.display="none";g.clearOpacity(v);if(s){s()}}if(w){g.animate(v,"opacity",0,i.options.fadeDuration,u)}else{u()}}}function a(v){var A=i.getCurrent();g.get("sb-title-inner").innerHTML=A.title||"";var D,u,y,E,t;if(i.options.displayNav){D=true;var C=i.gallery.length;if(C>1){if(i.options.continuous){u=t=true}else{u=(C-1)>i.current;t=i.current>0}}if(i.options.slideshowDelay>0&&i.hasNext()){E=!i.isPaused();y=!E}}else{D=u=y=E=t=false}m("close",D);m("next",u);m("play",y);m("pause",E);m("previous",t);var s="";if(i.options.displayCounter&&i.gallery.length>1){var C=i.gallery.length;if(i.options.counterType=="skip"){var z=0,x=C,w=parseInt(i.options.counterLimit)||0;if(w<C&&w>2){var B=Math.floor(w/2);z=i.current-B;if(z<0){z+=C}x=i.current+(w-B);if(x>C){x-=C}}while(z!=x){if(z==C){z=0}s+='<a onclick="Shadowbox.change('+z+');"';if(z==i.current){s+=' class="sb-counter-current"'}s+=">"+(z++)+"</a>"}}else{var s=(i.current+1)+"  "+C}}g.get("sb-counter").innerHTML=s;v()}function n(v,u){var z=g.get("sb-wrapper"),C=g.get("sb-title"),w=g.get("sb-info"),s=g.get("sb-title-inner"),A=g.get("sb-info-inner"),B=parseInt(i.lib.getStyle(s,"height"))||0,y=parseInt(i.lib.getStyle(A,"height"))||0;var x=function(){s.style.visibility=A.style.visibility="hidden";a(u)};if(!e.hide){e.hide=B;e.show=B-parseInt(i.lib.getStyle(g.get("sb-nav-close"),"height"),10)}if(v){g.animate(g.get("sb-nav-close"),"top",e.hide,0.35);g.animate(C,"height",0,0.35);g.animate(w,"height",0,0.35);g.animate(z,"paddingTop",B,0.35);g.animate(z,"paddingBottom",y,0.35,x)}else{g.get("sb-nav-close").style.top=e.hide+"px";C.style.height=w.style.height="0px";z.style.paddingTop=B+"px";z.style.paddingBottom=y+"px";x()}}function c(v){var u=g.get("sb-wrapper"),x=g.get("sb-title"),w=g.get("sb-info"),A=g.get("sb-title-inner"),z=g.get("sb-info-inner"),y=parseInt(i.lib.getStyle(A,"height"))||0,s=parseInt(i.lib.getStyle(z,"height"))||0;A.style.visibility=z.style.visibility="";g.animate(g.get("sb-nav-close"),"top",e.show,0.35);if(A.innerHTML!=""){g.animate(x,"height",y,0.35);g.animate(u,"paddingTop",0,0.35)}g.animate(w,"height",s,0.35);g.animate(u,"paddingBottom",0,0.35,v)}function b(v,A,z,u){var B=g.get("sb-body"),y=g.get("sb-wrapper"),x=parseInt(v),w=parseInt(A);if(z){g.animate(B,"height",x,i.options.resizeDuration);g.animate(y,"top",w,i.options.resizeDuration,u)}else{B.style.height=x+"px";y.style.top=w+"px";if(u){u()}}}function k(y,A,z,t){var x=g.get("sb-wrapper"),v=parseInt(y),u=parseInt(A);if(z){g.animate(x,"width",v,i.options.resizeDuration);g.animate(x,"left",u,i.options.resizeDuration,t)}else{x.style.width=v+"px";x.style.left=u+"px";if(t){t()}}}function p(B,u,t){var w=g.get("sb-body-inner"),A=g.get("sb-wrapper"),v=g.get("sb-overlay"),x=A.offsetHeight-w.offsetHeight,y=A.offsetWidth-w.offsetWidth,z=v.offsetHeight,s=v.offsetWidth;i.setDimensions(B,u,z,s,x,y,t);return i.dimensions}i.skin=l})();