(function(D,ha){function La(){for(var a=c.errorInfo,e=c.plugins,f,i,l,p,m=0;m<c.gallery.length;++m){f=c.gallery[m];i=false;l=null;switch(f.player){case "flv":case "swf":e.fla||(l="fla");break;case "qt":e.qt||(l="qt");break;case "wmp":if(c.isMac)if(e.qt&&e.f4m)f.player="qt";else l="qtf4m";else e.wmp||(l="wmp");break;case "qtwmp":if(e.qt)f.player="qt";else if(e.wmp)f.player="wmp";else l="qtwmp";break;}if(l)if(c.options.handleUnsupported=="link"){switch(l){case "qtf4m":p="shared";l=[a.qt.url,a.qt.name,
a.f4m.url,a.f4m.name];break;case "qtwmp":p="either";l=[a.qt.url,a.qt.name,a.wmp.url,a.wmp.name];break;default:p="single";l=[a[l].url,a[l].name]}f.player="html";f.content='<div class="sb-message">'+ta(c.lang.errors[p],l)+"</div>"}else i=true;else if(f.player=="inline")if(p=Ma.exec(f.content))if(p=t(p[1]))f.content=p.innerHTML;else i=true;else i=true;else if(f.player=="swf"||f.player=="flv"){p=f.options&&f.options.flashVersion||c.options.flashVersion;if(c.flash&&!c.flash.hasFlashPlayerVersion(p)){f.width=
310;f.height=177}}if(i){c.gallery.splice(m,1);if(m<c.current)--c.current;else if(m==c.current)c.current=m>0?m-1:m;--m}}}function ia(a){if(c.options.enableKeys)(a?u:S)(document,"keydown",Na)}function Na(a){if(!(a.metaKey||a.shiftKey||a.altKey||a.ctrlKey)){var e;switch(Oa(a)){case 81:case 88:case 27:e=c.close;break;case 37:e=c.previous;break;case 39:e=c.next;break;case 32:e=typeof z=="number"?c.pause:c.play;break}if(e){ja(a);e()}}}function ua(a){ia(false);var e=c.getCurrent(),f=e.player=="inline"?"html":
e.player;if(typeof c[f]!="function")throw"unknown player "+f;if(a){c.player.remove();c.revertOptions();c.applyOptions(e.options||{})}c.player=new c[f](e,c.playerId);if(c.gallery.length>1){e=c.gallery[c.current+1]||c.gallery[0];if(e.player=="img")(new Image).src=e.content;e=c.gallery[c.current-1]||c.gallery[c.gallery.length-1];if(e.player=="img")(new Image).src=e.content}c.skin.onLoad(a,Pa)}function Pa(){if(A)if(typeof c.player.ready!="undefined")var a=setInterval(function(){if(A){if(c.player.ready){clearInterval(a);
a=null;c.skin.onReady(va)}}else{clearInterval(a);a=null}},10);else c.skin.onReady(va)}function va(){if(A){c.player.append(c.skin.body,c.dimensions);c.skin.onShow(Qa)}}function Qa(){if(A){c.player.onLoad&&c.player.onLoad();c.options.onFinish(c.getCurrent());c.isPaused()||c.play();ia(true)}}function ba(){return(new Date).getTime()}function J(a,e){for(var f in e)a[f]=e[f];return a}function B(a,e){for(var f=0,i=a.length,l=a[0];f<i&&e.call(l,f,l)!==false;l=a[++f]);}function ta(a,e){return a.replace(/\{(\w+?)\}/g,
function(f,i){return e[i]})}function ca(){}function t(a){return document.getElementById(a)}function ka(a){a.parentNode.removeChild(a)}function Ra(){var a=document.body,e=document.createElement("div");da=typeof e.style.opacity==="string";e.style.position="fixed";e.style.margin=0;e.style.top="20px";a.appendChild(e,a.firstChild);ea=e.offsetTop==20;a.removeChild(e)}function wa(a){return[a.pageX||a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),a.pageY||a.clientY+(document.documentElement.scrollTop||
document.body.scrollTop)]}function ja(a){a.preventDefault()}function Oa(a){return a.which?a.which:a.keyCode}function u(a,e,f){if(a.addEventListener)a.addEventListener(e,f,false);else if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==D&&!a.frameElement)a=D;if(!f.__guid)f.__guid=u.guid++;if(!a.events)a.events={};var i=a.events[e];if(!i){i=a.events[e]={};if(a["on"+e])i[0]=a["on"+e]}i[f.__guid]=f;a["on"+e]=u.handleEvent}}function S(a,e,f){if(a.removeEventListener)a.removeEventListener(e,f,false);
else a.events&&a.events[e]&&delete a.events[e][f.__guid]}function xa(){if(!la){try{document.documentElement.doScroll("left")}catch(a){setTimeout(xa,1);return}c.load()}}function Sa(){if(document.readyState==="complete")return c.load();if(document.addEventListener){document.addEventListener("DOMContentLoaded",W,false);D.addEventListener("load",c.load,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",W);D.attachEvent("onload",c.load);var a=false;try{a=D.frameElement===null}catch(e){}document.documentElement.doScroll&&
a&&xa()}}function ya(a){c.open(this);c.gallery.length&&ja(a)}function Ta(){x={x:0,y:0,startX:null,startY:null}}function za(){var a=c.dimensions;J(K.style,{height:a.innerHeight+"px",width:a.innerWidth+"px"})}function Ua(){Ta();var a=["position:absolute","cursor:"+(c.isGecko?"-moz-grab":"move"),"background-color:"+(c.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");c.appendHTML(c.skin.body,'<div id="'+Aa+'" style="'+a+'"></div>');K=t(Aa);za();u(K,"mousedown",Ba)}function Va(){if(K){S(K,
"mousedown",Ba);ka(K);K=null}O=null}function Ba(a){ja(a);a=wa(a);x.startX=a[0];x.startY=a[1];O=t(c.player.id);u(document,"mousemove",Ca);u(document,"mouseup",Da);if(c.isGecko)K.style.cursor="-moz-grabbing"}function Ca(a){var e=c.player,f=c.dimensions;a=wa(a);var i=a[0]-x.startX;x.startX+=i;x.x=Math.max(Math.min(0,x.x+i),f.innerWidth-e.width);a=a[1]-x.startY;x.startY+=a;x.y=Math.max(Math.min(0,x.y+a),f.innerHeight-e.height);J(O.style,{left:x.x+"px",top:x.y+"px"})}function Da(){S(document,"mousemove",
Ca);S(document,"mouseup",Da);if(c.isGecko)K.style.cursor="-moz-grab"}function C(a,e,f,i,l){var p=e=="opacity",m=p?c.setOpacity:function(T,ma){T.style[e]=""+ma+"px"};if(i==0||!p&&!c.options.animate||p&&!c.options.animateFade){m(a,f);l&&l()}else{var E=parseFloat(c.getStyle(a,e))||0,s=f-E;if(s==0)l&&l();else{i*=1E3;var o=ba(),U=c.ease,F=o+i,y,X=setInterval(function(){y=ba();if(y>=F){clearInterval(X);X=null;m(a,f);l&&l()}else m(a,E+U((y-o)/i)*s)},10)}}}function Ea(){G.style.height=c.getWindowSize("Height")+
"px";G.style.width=c.getWindowSize("Width")+"px"}function na(){G.style.top=document.documentElement.scrollTop+"px";G.style.left=document.documentElement.scrollLeft+"px"}function Fa(a){if(a)B(oa,function(e,f){f[0].style.visibility=f[1]||""});else{oa=[];B(c.options.troubleElements,function(e){B(document.getElementsByTagName(e),function(f){oa.push([f,f.style.visibility]);f.style.visibility="hidden"})})}}function L(a,e){if(a=t("sb-nav-"+a))a.style.display=e?"":"none"}function Ga(a,e){var f=t("sb-loading"),
i=c.getCurrent().player;i=i=="img"||i=="html";if(a){c.setOpacity(f,0);f.style.display="block";a=function(){c.clearOpacity(f);e&&e()};i?C(f,"opacity",1,c.options.fadeDuration,a):a()}else{a=function(){f.style.display="none";c.clearOpacity(f);e&&e()};i?C(f,"opacity",0,c.options.fadeDuration,a):a()}}function Wa(a){var e=c.getCurrent();t("sb-title-inner").innerHTML=e.title||"";var f,i,l,p,m;if(c.options.displayNav){f=true;e=c.gallery.length;if(e>1)if(c.options.continuous)i=m=true;else{i=e-1>c.current;
m=c.current>0}if(c.options.slideshowDelay>0&&c.hasNext()){p=!c.isPaused();l=!p}}else f=i=l=p=m=false;L("close",f);L("next",i);L("play",l);L("pause",p);L("previous",m);i="";if(c.options.displayCounter&&c.gallery.length>1){e=c.gallery.length;if(c.options.counterType=="skip"){l=0;m=e;p=parseInt(c.options.counterLimit)||0;if(p<e&&p>2){m=Math.floor(p/2);l=c.current-m;if(l<0)l+=e;m=c.current+(p-m);if(m>e)m-=e}for(;l!=m;){if(l==e)l=0;i+='<a onclick="Shadowbox.change('+l+');"';if(l==c.current)i+=' class="sb-counter-current"';
i+=">"+l++ +"</a>"}}else i=[c.current+1,c.lang.of,e].join(" ")}t("sb-counter").innerHTML=i;a()}function Xa(a){var e=t("sb-title-inner"),f=t("sb-info-inner");e.style.visibility=f.style.visibility="";e.innerHTML!=""&&C(e,"marginTop",0,0.35);C(f,"marginTop",0,0.35,a)}function Ya(a,e){var f=t("sb-title"),i=t("sb-info");f=f.offsetHeight;i=i.offsetHeight;var l=t("sb-title-inner"),p=t("sb-info-inner");a=a?0.35:0;C(l,"marginTop",f,a);C(p,"marginTop",i*-1,a,function(){l.style.visibility=p.style.visibility=
"hidden";e()})}function Z(a,e,f,i){var l=t("sb-wrapper-inner");f=f?c.options.resizeDuration:0;C(P,"top",e,f);C(l,"height",a,f,i)}function $(a,e,f,i){f=f?c.options.resizeDuration:0;C(P,"left",e,f);C(P,"width",a,f,i)}function pa(a,e){var f=t("sb-body-inner");a=parseInt(a);e=parseInt(e);var i=P.offsetHeight-f.offsetHeight;f=P.offsetWidth-f.offsetWidth;var l=parseInt(c.options.viewportPadding)||20;return c.setDimensions(a,e,M.offsetHeight,M.offsetWidth,i,f,l)}var c={version:"3.0"},v=navigator.userAgent.toLowerCase();
if(v.indexOf("windows")>-1||v.indexOf("win32")>-1)c.isWindows=true;else if(v.indexOf("macintosh")>-1||v.indexOf("mac os x")>-1)c.isMac=true;else if(v.indexOf("linux")>-1)c.isLinux=true;c.isIE=v.indexOf("msie")>-1;c.isIE6=v.indexOf("msie 6")>-1;c.isIE7=v.indexOf("msie 7")>-1;c.isGecko=v.indexOf("gecko")>-1&&v.indexOf("safari")==-1;c.isWebKit=v.indexOf("applewebkit/")>-1;var Ma=/#(.+)$/,Za=/^(light|shadow)box\[(.*?)\]/i,$a=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,ab=/[0-9a-z]+$/i,bb=/(.+\/)shadowbox\.js/i,A=false,
Ha=false,Ia={},N=0,fa,z;c.playerId="sb-player";c.current=-1;c.dimensions=null;c.ease=function(a){return 1+Math.pow(a-1,3)};c.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};c.gallery=[];c.path=null;c.player=null;c.options={animate:true,animateFade:true,
autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:ca,onClose:ca,onFinish:ca,onOpen:ca,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};c.getCurrent=function(){return c.current>-1?c.gallery[c.current]:null};c.hasNext=function(){return c.gallery.length>1&&(c.current!=c.gallery.length-1||c.options.continuous)};c.isOpen=function(){return A};
c.isPaused=function(){return z=="pause"};c.applyOptions=function(a){Ia=J({},c.options);J(c.options,a)};c.revertOptions=function(){J(c.options,Ia)};c.init=function(a){if(!Ha){Ha=true;c.skin.options&&J(c.options,c.skin.options);a&&J(c.options,a);if(!c.path)for(var e=document.getElementsByTagName("script"),f=0,i=e.length;f<i;++f)if(a=bb.exec(e[f].src)){c.path=a[1];break}Sa()}};c.open=function(a){if(!A){a=c.makeGallery(a);c.gallery=a[0];c.current=a[1];a=c.getCurrent();if(a!=null){c.applyOptions(a.options||
{});La();if(c.gallery.length){a=c.getCurrent();if(c.options.onOpen(a)!==false){A=true;c.skin.onOpen(a,ua)}}}}};c.close=function(){if(A){A=false;if(c.player){c.player.remove();c.player=null}if(typeof z=="number"){clearTimeout(z);z=null}N=0;ia(false);c.options.onClose(c.getCurrent());c.skin.onClose();c.revertOptions()}};c.play=function(){if(c.hasNext()){N||(N=c.options.slideshowDelay*1E3);if(N){fa=ba();z=setTimeout(function(){N=fa=0;c.next()},N);c.skin.onPlay&&c.skin.onPlay()}}};c.pause=function(){if(typeof z==
"number")if(N=Math.max(0,N-(ba()-fa))){clearTimeout(z);z="pause";c.skin.onPause&&c.skin.onPause()}};c.change=function(a){if(!(a in c.gallery))if(c.options.continuous){a=a<0?c.gallery.length+a:0;if(!(a in c.gallery))return}else return;c.current=a;if(typeof z=="number"){clearTimeout(z);z=null;N=fa=0}c.options.onChange(c.getCurrent());ua(true)};c.next=function(){c.change(c.current+1)};c.previous=function(){c.change(c.current-1)};c.setDimensions=function(a,e,f,i,l,p,m){var E=a,s=e,o=2*m+l;if(a+o>f)a=
f-o;var U=2*m+p;if(e+U>i)e=i-U;var F=(E-a)/E,y=(s-e)/s,X=F>0||y>0;if(X)if(F>y)e=Math.round(s/E*a);else if(y>F)a=Math.round(E/s*e);c.dimensions={height:a+l,width:e+p,innerHeight:a,innerWidth:e,top:Math.floor((f-(a+o))/2+m),left:Math.floor((i-(e+U))/2+m),oversized:X};return c.dimensions};c.makeGallery=function(a){var e=[],f=-1;if(typeof a=="string")a=[a];if(typeof a.length=="number"){B(a,function(p,m){e[p]=m.content?m:{content:m}});f=0}else{if(a.tagName){var i=c.getCache(a);a=i?i:c.makeObject(a)}if(a.gallery){e=
[];for(var l in c.cache){i=c.cache[l];if(i.gallery&&i.gallery==a.gallery){if(f==-1&&i.content==a.content)f=e.length;e.push(i)}}if(f==-1){e.unshift(a);f=0}}else{e=[a];f=0}}B(e,function(p,m){e[p]=J({},m)});return[e,f]};c.makeObject=function(a,e){var f={content:a.href,title:a.getAttribute("title")||"",link:a};if(e){e=J({},e);B(["player","title","height","width","gallery"],function(l,p){if(typeof e[p]!="undefined"){f[p]=e[p];delete e[p]}});f.options=e}else f.options={};if(!f.player)f.player=c.getPlayer(f.content);
if(a=a.getAttribute("rel")){var i=a.match(Za);if(i)f.gallery=escape(i[2]);B(a.split(";"),function(l,p){if(i=p.match($a))f[i[1]]=i[2]})}return f};c.getPlayer=function(a){if(a.indexOf("#")>-1&&a.indexOf(document.location.href)==0)return"inline";var e=a.indexOf("?");if(e>-1)a=a.substring(0,e);var f;if(a=a.match(ab))f=a[0];if(f){if(c.img&&c.img.ext.indexOf(f)>-1)return"img";if(c.swf&&c.swf.ext.indexOf(f)>-1)return"swf";if(c.flv&&c.flv.ext.indexOf(f)>-1)return"flv";if(c.qt&&c.qt.ext.indexOf(f)>-1)return c.wmp&&
c.wmp.ext.indexOf(f)>-1?"qtwmp":"qt";if(c.wmp&&c.wmp.ext.indexOf(f)>-1)return"wmp"}return"iframe"};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,e){var f=this.length>>>0;e=e||0;if(e<0)e+=f;for(;e<f;++e)if(e in this&&this[e]===a)return e;return-1};var da=true,ea=true;c.getStyle=function(){var a=/opacity=([^)]*)/,e=document.defaultView&&document.defaultView.getComputedStyle;return function(f,i){var l;if(!da&&i=="opacity"&&f.currentStyle){l=a.test(f.currentStyle.filter||"")?parseFloat(RegExp.$1)/
100+"":"";return l===""?"1":l}if(e){if(f=e(f,null))l=f[i];if(i=="opacity"&&l=="")l="1"}else l=f.currentStyle[i];return l}}();c.appendHTML=function(a,e){if(a.insertAdjacentHTML)a.insertAdjacentHTML("BeforeEnd",e);else if(a.lastChild){var f=a.ownerDocument.createRange();f.setStartAfter(a.lastChild);e=f.createContextualFragment(e);a.appendChild(e)}else a.innerHTML=e};c.getWindowSize=function(a){if(document.compatMode==="CSS1Compat")return document.documentElement["client"+a];return document.body["client"+
a]};c.setOpacity=function(a,e){a=a.style;if(da)a.opacity=e==1?"":e;else{a.zoom=1;if(e==1){if(typeof a.filter=="string"&&/alpha/i.test(a.filter))a.filter=a.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}else a.filter=(a.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+e*100+")"}};c.clearOpacity=function(a){c.setOpacity(a,1)};u.guid=1;u.handleEvent=function(a){var e=true;a=a||u.fixEvent(((this.ownerDocument||this.document||this).parentWindow||D).event);var f=this.events[a.type];
for(var i in f){this.__handleEvent=f[i];if(this.__handleEvent(a)===false)e=false}return e};u.preventDefault=function(){this.returnValue=false};u.stopPropagation=function(){this.cancelBubble=true};u.fixEvent=function(a){a.preventDefault=u.preventDefault;a.stopPropagation=u.stopPropagation;return a};var la=false,W;if(document.addEventListener)W=function(){document.removeEventListener("DOMContentLoaded",W,false);c.load()};else if(document.attachEvent)W=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",
W);c.load()}};c.load=function(){if(!la){if(!document.body)return setTimeout(c.load,13);la=true;Ra();c.options.skipSetup||c.setup();c.skin.init()}};c.plugins={};if(navigator.plugins&&navigator.plugins.length){var V=[];B(navigator.plugins,function(a,e){V.push(e.name)});V=V.join(",");v=V.indexOf("Flip4Mac")>-1;c.plugins={fla:V.indexOf("Shockwave Flash")>-1,qt:V.indexOf("QuickTime")>-1,wmp:!v&&V.indexOf("Windows Media")>-1,f4m:v}}else{v=function(a){var e;try{e=new ActiveXObject(a)}catch(f){}return!!e};
c.plugins={fla:v("ShockwaveFlash.ShockwaveFlash"),qt:v("QuickTime.QuickTime"),wmp:v("wmplayer.ocx"),f4m:false}}var cb=/^(light|shadow)box/i,db=1;c.cache={};c.select=function(a){var e=[];if(a){var f=a.length;if(f)if(typeof a=="string"){if(c.find)e=c.find(a)}else if(f==2&&typeof a[0]=="string"&&a[1].nodeType){if(c.find)e=c.find(a[0],a[1])}else for(var i=0;i<f;++i)e[i]=a[i];else e.push(a)}else{var l;B(document.getElementsByTagName("a"),function(p,m){(l=m.getAttribute("rel"))&&cb.test(l)&&e.push(m)})}return e};
c.setup=function(a,e){B(c.select(a),function(f,i){c.addCache(i,e)})};c.teardown=function(a){B(c.select(a),function(e,f){c.removeCache(f)})};c.addCache=function(a,e){var f=a.shadowboxCacheKey;if(f==ha){f=db++;a.shadowboxCacheKey=f;u(a,"click",ya)}c.cache[f]=c.makeObject(a,e)};c.removeCache=function(a){S(a,"click",ya);delete c.cache[a.shadowboxCacheKey];a.shadowboxCacheKey=null};c.getCache=function(a){a=a.shadowboxCacheKey;return a in c.cache&&c.cache[a]};c.clearCache=function(){for(var a in c.cache)c.removeCache(c.cache[a].link);
c.cache={}};c.find=function(){function a(b){for(var d="",g,h=0;b[h];h++){g=b[h];if(g.nodeType===3||g.nodeType===4)d+=g.nodeValue;else if(g.nodeType!==8)d+=a(g.childNodes)}return d}function e(b,d,g,h,k,j){k=0;for(var q=h.length;k<q;k++){var n=h[k];if(n){n=n[b];for(var r=false;n;){if(n.sizcache===g){r=h[n.sizset];break}if(n.nodeType===1&&!j){n.sizcache=g;n.sizset=k}if(n.nodeName.toLowerCase()===d){r=n;break}n=n[b]}h[k]=r}}}function f(b,d,g,h,k,j){k=0;for(var q=h.length;k<q;k++){var n=h[k];if(n){n=n[b];
for(var r=false;n;){if(n.sizcache===g){r=h[n.sizset];break}if(n.nodeType===1){if(!j){n.sizcache=g;n.sizset=k}if(typeof d!=="string"){if(n===d){r=true;break}}else if(s.filter(d,[n]).length>0){r=n;break}}n=n[b]}h[k]=r}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,l=0,p=Object.prototype.toString,m=false,E=true;[0,0].sort(function(){E=false;return 0});var s=function(b,d,g,h){g=g||[];var k=d=d||document;if(d.nodeType!==
1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return g;for(var j=[],q,n,r,aa,Q=true,Y=qa(d),R=b;(i.exec(""),q=i.exec(R))!==null;){R=q[3];j.push(q[1]);if(q[2]){aa=q[3];break}}if(j.length>1&&U.exec(b))if(j.length===2&&o.relative[j[0]])n=Ja(j[0]+j[1],d);else for(n=o.relative[j[0]]?[d]:s(j.shift(),d);j.length;){b=j.shift();if(o.relative[b])b+=j.shift();n=Ja(b,n)}else{if(!h&&j.length>1&&d.nodeType===9&&!Y&&o.match.ID.test(j[0])&&!o.match.ID.test(j[j.length-1])){q=s.find(j.shift(),d,Y);d=q.expr?
s.filter(q.expr,q.set)[0]:q.set[0]}if(d){q=h?{expr:j.pop(),set:y(h)}:s.find(j.pop(),j.length===1&&(j[0]==="~"||j[0]==="+")&&d.parentNode?d.parentNode:d,Y);n=q.expr?s.filter(q.expr,q.set):q.set;if(j.length>0)r=y(n);else Q=false;for(;j.length;){var H=j.pop();q=H;if(o.relative[H])q=j.pop();else H="";if(q==null)q=d;o.relative[H](r,q,Y)}}else r=[]}r||(r=n);if(!r)throw"Syntax error, unrecognized expression: "+(H||b);if(p.call(r)==="[object Array]")if(Q)if(d&&d.nodeType===1)for(b=0;r[b]!=null;b++){if(r[b]&&
(r[b]===true||r[b].nodeType===1&&ma(d,r[b])))g.push(n[b])}else for(b=0;r[b]!=null;b++)r[b]&&r[b].nodeType===1&&g.push(n[b]);else g.push.apply(g,r);else y(r,g);if(aa){s(aa,k,g,h);s.uniqueSort(g)}return g};s.uniqueSort=function(b){if(T){m=E;b.sort(T);if(m)for(var d=1;d<b.length;d++)b[d]===b[d-1]&&b.splice(d--,1)}return b};s.matches=function(b,d){return s(b,null,null,d)};s.find=function(b,d,g){var h,k;if(!b)return[];for(var j=0,q=o.order.length;j<q;j++){var n=o.order[j];if(k=o.leftMatch[n].exec(b)){var r=
k[1];k.splice(1,1);if(r.substr(r.length-1)!=="\\"){k[1]=(k[1]||"").replace(/\\/g,"");h=o.find[n](k,d,g);if(h!=null){b=b.replace(o.match[n],"");break}}}}h||(h=d.getElementsByTagName("*"));return{set:h,expr:b}};s.filter=function(b,d,g,h){for(var k=b,j=[],q=d,n,r,aa=d&&d[0]&&qa(d[0]);b&&d.length;){for(var Q in o.filter)if((n=o.match[Q].exec(b))!=null){var Y=o.filter[Q],R,H;r=false;if(q===j)j=[];if(o.preFilter[Q])if(n=o.preFilter[Q](n,q,g,j,h,aa)){if(n===true)continue}else r=R=true;if(n)for(var ga=0;(H=
q[ga])!=null;ga++)if(H){R=Y(H,n,ga,q);var Ka=h^!!R;if(g&&R!=null)if(Ka)r=true;else q[ga]=false;else if(Ka){j.push(H);r=true}}if(R!==ha){g||(q=j);b=b.replace(o.match[Q],"");if(!r)return[];break}}if(b===k)if(r==null)throw"Syntax error, unrecognized expression: "+b;else break;k=b}return q};var o=s.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(b){return b.getAttribute("href")}},relative:{"+":function(b,d){var g=typeof d==="string",h=g&&!/\W/.test(d);g=g&&!h;if(h)d=d.toLowerCase();h=0;for(var k=b.length,
j;h<k;h++)if(j=b[h]){for(;(j=j.previousSibling)&&j.nodeType!==1;);b[h]=g||j&&j.nodeName.toLowerCase()===d?j||false:j===d}g&&s.filter(d,b,true)},">":function(b,d){var g=typeof d==="string";if(g&&!/\W/.test(d)){d=d.toLowerCase();for(var h=0,k=b.length;h<k;h++){var j=b[h];if(j){g=j.parentNode;b[h]=g.nodeName.toLowerCase()===d?g:false}}}else{h=0;for(k=b.length;h<k;h++)if(j=b[h])b[h]=g?j.parentNode:j.parentNode===d;g&&s.filter(d,b,true)}},"":function(b,d,g){var h=l++,k=f;if(typeof d==="string"&&!/\W/.test(d)){var j=
d=d.toLowerCase();k=e}k("parentNode",d,h,b,j,g)},"~":function(b,d,g){var h=l++,k=f;if(typeof d==="string"&&!/\W/.test(d)){var j=d=d.toLowerCase();k=e}k("previousSibling",d,h,b,j,g)}},find:{ID:function(b,d,g){if(typeof d.getElementById!=="undefined"&&!g)return(b=d.getElementById(b[1]))?[b]:[]},NAME:function(b,d){if(typeof d.getElementsByName!=="undefined"){var g=[];d=d.getElementsByName(b[1]);for(var h=0,k=d.length;h<k;h++)d[h].getAttribute("name")===b[1]&&g.push(d[h]);return g.length===0?null:g}},
TAG:function(b,d){return d.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,d,g,h,k,j){b=" "+b[1].replace(/\\/g,"")+" ";if(j)return b;j=0;for(var q;(q=d[j])!=null;j++)if(q)if(k^(q.className&&(" "+q.className+" ").replace(/[\t\n]/g," ").indexOf(b)>=0))g||h.push(q);else if(g)d[j]=false;return false},ID:function(b){return b[1].replace(/\\/g,"")},TAG:function(b){return b[1].toLowerCase()},CHILD:function(b){if(b[1]==="nth"){var d=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(b[2]==="even"&&"2n"||b[2]==="odd"&&
"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=d[1]+(d[2]||1)-0;b[3]=d[3]-0}b[0]=l++;return b},ATTR:function(b,d,g,h,k,j){d=b[1].replace(/\\/g,"");if(!j&&o.attrMap[d])b[1]=o.attrMap[d];if(b[2]==="~=")b[4]=" "+b[4]+" ";return b},PSEUDO:function(b,d,g,h,k){if(b[1]==="not")if((i.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=s(b[3],null,null,d);else{b=s.filter(b[3],d,g,true^k);g||h.push.apply(h,b);return false}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return true;return b},POS:function(b){b.unshift(true);
return b}},filters:{enabled:function(b){return b.disabled===false&&b.type!=="hidden"},disabled:function(b){return b.disabled===true},checked:function(b){return b.checked===true},selected:function(b){return b.selected===true},parent:function(b){return!!b.firstChild},empty:function(b){return!b.firstChild},has:function(b,d,g){return!!s(g[3],b).length},header:function(b){return/h\d/i.test(b.nodeName)},text:function(b){return"text"===b.type},radio:function(b){return"radio"===b.type},checkbox:function(b){return"checkbox"===
b.type},file:function(b){return"file"===b.type},password:function(b){return"password"===b.type},submit:function(b){return"submit"===b.type},image:function(b){return"image"===b.type},reset:function(b){return"reset"===b.type},button:function(b){return"button"===b.type||b.nodeName.toLowerCase()==="button"},input:function(b){return/input|select|textarea|button/i.test(b.nodeName)}},setFilters:{first:function(b,d){return d===0},last:function(b,d,g,h){return d===h.length-1},even:function(b,d){return d%2===
0},odd:function(b,d){return d%2===1},lt:function(b,d,g){return d<g[3]-0},gt:function(b,d,g){return d>g[3]-0},nth:function(b,d,g){return g[3]-0===d},eq:function(b,d,g){return g[3]-0===d}},filter:{PSEUDO:function(b,d,g,h){var k=d[1],j=o.filters[k];if(j)return j(b,g,d,h);else if(k==="contains")return(b.textContent||b.innerText||a([b])||"").indexOf(d[3])>=0;else if(k==="not"){d=d[3];g=0;for(h=d.length;g<h;g++)if(d[g]===b)return false;return true}else throw"Syntax error, unrecognized expression: "+k;},
CHILD:function(b,d){var g=d[1],h=b;switch(g){case "only":case "first":for(;h=h.previousSibling;)if(h.nodeType===1)return false;if(g==="first")return true;h=b;case "last":for(;h=h.nextSibling;)if(h.nodeType===1)return false;return true;case "nth":g=d[2];var k=d[3];if(g===1&&k===0)return true;d=d[0];var j=b.parentNode;if(j&&(j.sizcache!==d||!b.nodeIndex)){var q=0;for(h=j.firstChild;h;h=h.nextSibling)if(h.nodeType===1)h.nodeIndex=++q;j.sizcache=d}b=b.nodeIndex-k;return g===0?b===0:b%g===0&&b/g>=0}},
ID:function(b,d){return b.nodeType===1&&b.getAttribute("id")===d},TAG:function(b,d){return d==="*"&&b.nodeType===1||b.nodeName.toLowerCase()===d},CLASS:function(b,d){return(" "+(b.className||b.getAttribute("class"))+" ").indexOf(d)>-1},ATTR:function(b,d){var g=d[1];b=o.attrHandle[g]?o.attrHandle[g](b):b[g]!=null?b[g]:b.getAttribute(g);g=b+"";var h=d[2];d=d[4];return b==null?h==="!=":h==="="?g===d:h==="*="?g.indexOf(d)>=0:h==="~="?(" "+g+" ").indexOf(d)>=0:!d?g&&b!==false:h==="!="?g!==d:h==="^="?g.indexOf(d)===
0:h==="$="?g.substr(g.length-d.length)===d:h==="|="?g===d||g.substr(0,d.length+1)===d+"-":false},POS:function(b,d,g,h){var k=o.setFilters[d[2]];if(k)return k(b,g,d,h)}}},U=o.match.POS;for(var F in o.match){o.match[F]=new RegExp(o.match[F].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[F]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[F].source)}var y=function(b,d){b=Array.prototype.slice.call(b,0);if(d){d.push.apply(d,b);return d}return b};try{Array.prototype.slice.call(document.documentElement.childNodes,
0)}catch(X){y=function(b,d){d=d||[];if(p.call(b)==="[object Array]")Array.prototype.push.apply(d,b);else if(typeof b.length==="number")for(var g=0,h=b.length;g<h;g++)d.push(b[g]);else for(g=0;b[g];g++)d.push(b[g]);return d}}var T;if(document.documentElement.compareDocumentPosition)T=function(b,d){if(!b.compareDocumentPosition||!d.compareDocumentPosition){if(b==d)m=true;return b.compareDocumentPosition?-1:1}b=b.compareDocumentPosition(d)&4?-1:b===d?0:1;if(b===0)m=true;return b};else if("sourceIndex"in
document.documentElement)T=function(b,d){if(!b.sourceIndex||!d.sourceIndex){if(b==d)m=true;return b.sourceIndex?-1:1}b=b.sourceIndex-d.sourceIndex;if(b===0)m=true;return b};else if(document.createRange)T=function(b,d){if(!b.ownerDocument||!d.ownerDocument){if(b==d)m=true;return b.ownerDocument?-1:1}var g=b.ownerDocument.createRange(),h=d.ownerDocument.createRange();g.setStart(b,0);g.setEnd(b,0);h.setStart(d,0);h.setEnd(d,0);b=g.compareBoundaryPoints(Range.START_TO_END,h);if(b===0)m=true;return b};
(function(){var b=document.createElement("div"),d="script"+(new Date).getTime();b.innerHTML="<a name='"+d+"'/>";var g=document.documentElement;g.insertBefore(b,g.firstChild);if(document.getElementById(d)){o.find.ID=function(h,k,j){if(typeof k.getElementById!=="undefined"&&!j)return(k=k.getElementById(h[1]))?k.id===h[1]||typeof k.getAttributeNode!=="undefined"&&k.getAttributeNode("id").nodeValue===h[1]?[k]:ha:[]};o.filter.ID=function(h,k){var j=typeof h.getAttributeNode!=="undefined"&&h.getAttributeNode("id");
return h.nodeType===1&&j&&j.nodeValue===k}}g.removeChild(b);g=b=null})();(function(){var b=document.createElement("div");b.appendChild(document.createComment(""));if(b.getElementsByTagName("*").length>0)o.find.TAG=function(d,g){g=g.getElementsByTagName(d[1]);if(d[1]==="*"){d=[];for(var h=0;g[h];h++)g[h].nodeType===1&&d.push(g[h]);g=d}return g};b.innerHTML="<a href='#'></a>";if(b.firstChild&&typeof b.firstChild.getAttribute!=="undefined"&&b.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(d){return d.getAttribute("href",
2)};b=null})();document.querySelectorAll&&function(){var b=s,d=document.createElement("div");d.innerHTML="<p class='TEST'></p>";if(!(d.querySelectorAll&&d.querySelectorAll(".TEST").length===0)){s=function(h,k,j,q){k=k||document;if(!q&&k.nodeType===9&&!qa(k))try{return y(k.querySelectorAll(h),j)}catch(n){}return b(h,k,j,q)};for(var g in b)s[g]=b[g];d=null}}();(function(){var b=document.createElement("div");b.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!b.getElementsByClassName||
b.getElementsByClassName("e").length===0)){b.lastChild.className="e";if(b.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(d,g,h){if(typeof g.getElementsByClassName!=="undefined"&&!h)return g.getElementsByClassName(d[1])};b=null}}})();var ma=document.compareDocumentPosition?function(b,d){return b.compareDocumentPosition(d)&16}:function(b,d){return b!==d&&(b.contains?b.contains(d):true)},qa=function(b){return(b=(b?b.ownerDocument||b:0).documentElement)?b.nodeName!==
"HTML":false},Ja=function(b,d){var g=[],h="",k;for(d=d.nodeType?[d]:d;k=o.match.PSEUDO.exec(b);){h+=k[0];b=b.replace(o.match.PSEUDO,"")}b=o.relative[b]?b+"*":b;k=0;for(var j=d.length;k<j;k++)s(b,d[k],g);return s.filter(h,g)};return s}();c.lang={code:"de",of:"von",loading:"ladend",cancel:"Abbrechen",next:"N\u00e4chste",previous:"Vorige",play:"Abspielen",pause:"Pause",close:"Schlie\u00dfen",errors:{single:'Um den Inhalt anzeigen zu k\u00f6nnen muss die Browser-Erweiterung <a href="{0}">{1}</a> installiert werden.',
shared:'Um den Inhalt anzeigen zu k\u00f6nnen m\u00fcssen die beiden Browser-Erweiterungen <a href="{0}">{1}</a> und <a href="{2}">{3}</a> installiert werden.',either:'Um den Inhalt anzeigen zu k\u00f6nnen muss eine der beiden Browser-Erweiterungen <a href="{0}">{1}</a> oder <a href="{2}">{3}</a> installiert werden.'}};var I,Aa="sb-drag-proxy",x,K,O;c.img=function(a,e){this.obj=a;this.id=e;this.ready=false;var f=this;I=new Image;I.onload=function(){f.height=a.height?parseInt(a.height,10):I.height;
f.width=a.width?parseInt(a.width,10):I.width;f.ready=true;I=I.onload=null};I.src=a.content};c.img.ext=["bmp","gif","jpg","jpeg","png"];c.img.prototype={append:function(a,e){var f=document.createElement("img");f.id=this.id;f.src=this.obj.content;f.style.position="absolute";var i;if(e.oversized&&c.options.handleOversize=="resize"){i=e.innerHeight;e=e.innerWidth}else{i=this.height;e=this.width}f.setAttribute("height",i);f.setAttribute("width",e);a.appendChild(f)},remove:function(){var a=t(this.id);a&&
ka(a);Va();if(I)I=I.onload=null},onLoad:function(){c.dimensions.oversized&&c.options.handleOversize=="drag"&&Ua()},onWindowResize:function(){var a=c.dimensions;switch(c.options.handleOversize){case "resize":var e=t(this.id);e.height=a.innerHeight;e.width=a.innerWidth;break;case "drag":if(O){e=parseInt(c.getStyle(O,"top"));var f=parseInt(c.getStyle(O,"left"));if(e+this.height<a.innerHeight)O.style.top=a.innerHeight-this.height+"px";if(f+this.width<a.innerWidth)O.style.left=a.innerWidth-this.width+
"px";za()}break}}};var ra=false,oa=[],eb=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],G,M,P,sa=true,w={};w.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><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><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></div></div></div>';
w.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};w.init=function(){c.appendHTML(document.body,ta(w.markup,c.lang));w.body=t("sb-body-inner");G=t("sb-container");M=t("sb-overlay");P=t("sb-wrapper");if(!ea)G.style.position="absolute";if(!da){var a,e,f=
/url\("(.*\.png)"\)/;B(eb,function(l,p){if(a=t(p))if(e=c.getStyle(a,"backgroundImage").match(f)){a.style.backgroundImage="none";a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+e[1]+",sizingMethod=scale);"}})}var i;u(D,"resize",function(){if(i){clearTimeout(i);i=null}if(A)i=setTimeout(w.onWindowResize,10)})};w.onOpen=function(a,e){sa=false;G.style.display="block";Ea();a=pa(c.options.initialHeight,c.options.initialWidth);Z(a.innerHeight,a.top);$(a.width,a.left);
if(c.options.showOverlay){M.style.backgroundColor=c.options.overlayColor;c.setOpacity(M,0);c.options.modal||u(M,"click",c.close);ra=true}if(!ea){na();u(D,"scroll",na)}Fa();G.style.visibility="visible";ra?C(M,"opacity",c.options.overlayOpacity,c.options.fadeDuration,e):e()};w.onLoad=function(a,e){for(Ga(true);w.body.firstChild;)ka(w.body.firstChild);Ya(a,function(){if(A){if(!a)P.style.visibility="visible";Wa(e)}})};w.onReady=function(a){if(A){var e=c.player,f=pa(e.height,e.width),i=function(){Xa(a)};
switch(c.options.animSequence){case "hw":Z(f.innerHeight,f.top,true,function(){$(f.width,f.left,true,i)});break;case "wh":$(f.width,f.left,true,function(){Z(f.innerHeight,f.top,true,i)});break;default:$(f.width,f.left,true);Z(f.innerHeight,f.top,true,i)}}};w.onShow=function(a){Ga(false,a);sa=true};w.onClose=function(){ea||S(D,"scroll",na);S(M,"click",c.close);P.style.visibility="hidden";var a=function(){G.style.visibility="hidden";G.style.display="none";Fa(true)};ra?C(M,"opacity",0,c.options.fadeDuration,
a):a()};w.onPlay=function(){L("play",false);L("pause",true)};w.onPause=function(){L("pause",false);L("play",true)};w.onWindowResize=function(){if(sa){Ea();var a=c.player,e=pa(a.height,a.width);$(e.width,e.left);Z(e.innerHeight,e.top);a.onWindowResize&&a.onWindowResize()}};c.skin=w;D.Shadowbox=c})(window);
