(function(R,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?M: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 y=="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(z)if(typeof c.player.ready!="undefined")var a=setInterval(function(){if(z){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(z){c.player.append(c.skin.body,c.dimensions);c.skin.onShow(Qa)}}function Qa(){if(z){c.player.onLoad&&c.player.onLoad();c.options.onFinish(c.getCurrent());c.isPaused()||c.play();ia(true)}}function ba(){return(new Date).getTime()}function H(a,e){for(var f in e)a[f]=e[f];return a}function A(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.pageY]}function ja(a){a.preventDefault()}function Oa(a){return a.keyCode}function M(a,e,f){jQuery(a).bind(e,
f)}function S(a,e,f){jQuery(a).unbind(e,f)}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);R.addEventListener("load",c.load,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",W);R.attachEvent("onload",c.load);var a=false;try{a=R.frameElement===null}catch(e){}document.documentElement.doScroll&&
a&&xa()}}function ya(a){c.open(this);c.gallery.length&&ja(a)}function Ta(){w={x:0,y:0,startX:null,startY:null}}function za(){var a=c.dimensions;H(I.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>');I=t(Aa);za();M(I,"mousedown",Ba)}function Va(){if(I){S(I,
"mousedown",Ba);ka(I);I=null}N=null}function Ba(a){ja(a);a=wa(a);w.startX=a[0];w.startY=a[1];N=t(c.player.id);M(document,"mousemove",Ca);M(document,"mouseup",Da);if(c.isGecko)I.style.cursor="-moz-grabbing"}function Ca(a){var e=c.player,f=c.dimensions;a=wa(a);var i=a[0]-w.startX;w.startX+=i;w.x=Math.max(Math.min(0,w.x+i),f.innerWidth-e.width);a=a[1]-w.startY;w.startY+=a;w.y=Math.max(Math.min(0,w.y+a),f.innerHeight-e.height);H(N.style,{left:w.x+"px",top:w.y+"px"})}function Da(){S(document,"mousemove",
Ca);S(document,"mouseup",Da);if(c.isGecko)I.style.cursor="-moz-grab"}function B(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 C=parseFloat(c.getStyle(a,e))||0,s=f-C;if(s==0)l&&l();else{i*=1E3;var o=ba(),U=c.ease,D=o+i,x,X=setInterval(function(){x=ba();if(x>=D){clearInterval(X);X=null;m(a,f);l&&l()}else m(a,C+U((x-o)/i)*s)},10)}}}function Ea(){E.style.height=c.getWindowSize("Height")+
"px";E.style.width=c.getWindowSize("Width")+"px"}function na(){E.style.top=document.documentElement.scrollTop+"px";E.style.left=document.documentElement.scrollLeft+"px"}function Fa(a){if(a)A(oa,function(e,f){f[0].style.visibility=f[1]||""});else{oa=[];A(c.options.troubleElements,function(e){A(document.getElementsByTagName(e),function(f){oa.push([f,f.style.visibility]);f.style.visibility="hidden"})})}}function J(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?B(f,"opacity",1,c.options.fadeDuration,a):a()}else{a=function(){f.style.display="none";c.clearOpacity(f);e&&e()};i?B(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;J("close",f);J("next",i);J("play",l);J("pause",p);J("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!=""&&B(e,"marginTop",0,0.35);B(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;B(l,"marginTop",f,a);B(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;B(O,"top",e,f);B(l,"height",a,f,i)}function $(a,e,f,i){f=f?c.options.resizeDuration:0;B(O,"left",e,f);B(O,"width",a,f,i)}function pa(a,e){var f=t("sb-body-inner");a=parseInt(a);e=parseInt(e);var i=O.offsetHeight-f.offsetHeight;f=O.offsetWidth-f.offsetWidth;var l=parseInt(c.options.viewportPadding)||20;return c.setDimensions(a,e,K.offsetHeight,K.offsetWidth,i,f,l)}var c={version:"3.0"},u=navigator.userAgent.toLowerCase();
if(u.indexOf("windows")>-1||u.indexOf("win32")>-1)c.isWindows=true;else if(u.indexOf("macintosh")>-1||u.indexOf("mac os x")>-1)c.isMac=true;else if(u.indexOf("linux")>-1)c.isLinux=true;c.isIE=u.indexOf("msie")>-1;c.isIE6=u.indexOf("msie 6")>-1;c.isIE7=u.indexOf("msie 7")>-1;c.isGecko=u.indexOf("gecko")>-1&&u.indexOf("safari")==-1;c.isWebKit=u.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,z=false,
Ha=false,Ia={},L=0,fa,y;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 z};
c.isPaused=function(){return y=="pause"};c.applyOptions=function(a){Ia=H({},c.options);H(c.options,a)};c.revertOptions=function(){H(c.options,Ia)};c.init=function(a){if(!Ha){Ha=true;c.skin.options&&H(c.options,c.skin.options);a&&H(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(!z){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){z=true;c.skin.onOpen(a,ua)}}}}};c.close=function(){if(z){z=false;if(c.player){c.player.remove();c.player=null}if(typeof y=="number"){clearTimeout(y);y=null}L=0;ia(false);c.options.onClose(c.getCurrent());c.skin.onClose();c.revertOptions()}};c.play=function(){if(c.hasNext()){L||(L=c.options.slideshowDelay*1E3);if(L){fa=ba();y=setTimeout(function(){L=fa=0;c.next()},L);c.skin.onPlay&&c.skin.onPlay()}}};c.pause=function(){if(typeof y==
"number")if(L=Math.max(0,L-(ba()-fa))){clearTimeout(y);y="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 y=="number"){clearTimeout(y);y=null;L=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 C=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 D=(C-a)/C,x=(s-e)/s,X=D>0||x>0;if(X)if(D>x)e=Math.round(s/C*a);else if(x>D)a=Math.round(C/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"){A(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}}A(e,function(p,m){e[p]=H({},m)});return[e,f]};c.makeObject=function(a,e){var f={content:a.href,title:a.getAttribute("title")||"",link:a};if(e){e=H({},e);A(["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]);A(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)};jQuery.fn.shadowbox=function(a){return this.each(function(){var e=jQuery(this),f=jQuery.extend({},a||{},jQuery.metadata?e.metadata():jQuery.meta?e.data():
{}),i=this.className||"";f.width=parseInt((i.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((i.match(/h:(\d+)/)||[])[1])||f.height;Shadowbox.setup(e,f)})};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=[];A(navigator.plugins,function(a,e){V.push(e.name)});V=V.join(",");u=V.indexOf("Flip4Mac")>-1;c.plugins={fla:V.indexOf("Shockwave Flash")>-1,qt:V.indexOf("QuickTime")>-1,wmp:!u&&V.indexOf("Windows Media")>-1,f4m:u}}else{u=function(a){var e;try{e=new ActiveXObject(a)}catch(f){}return!!e};c.plugins={fla:u("ShockwaveFlash.ShockwaveFlash"),qt:u("QuickTime.QuickTime"),wmp:u("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;A(document.getElementsByTagName("a"),function(p,m){(l=m.getAttribute("rel"))&&cb.test(l)&&e.push(m)})}return e};c.setup=function(a,e){A(c.select(a),function(f,i){c.addCache(i,e)})};c.teardown=function(a){A(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;M(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,C=true;[0,0].sort(function(){C=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,P=true,Y=qa(d),Q=b;(i.exec(""),q=i.exec(Q))!==null;){Q=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:x(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=x(n);else P=false;for(;j.length;){var F=j.pop();q=F;if(o.relative[F])q=j.pop();else F="";if(q==null)q=d;o.relative[F](r,q,Y)}}else r=[]}r||(r=n);if(!r)throw"Syntax error, unrecognized expression: "+(F||b);if(p.call(r)==="[object Array]")if(P)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 x(r,g);if(aa){s(aa,k,g,h);s.uniqueSort(g)}return g};s.uniqueSort=function(b){if(T){m=C;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 P in o.filter)if((n=o.match[P].exec(b))!=null){var Y=o.filter[P],Q,F;r=false;if(q===j)j=[];if(o.preFilter[P])if(n=o.preFilter[P](n,q,g,j,h,aa)){if(n===true)continue}else r=Q=true;if(n)for(var ga=0;(F=q[ga])!=null;ga++)if(F){Q=Y(F,n,ga,q);var Ka=h^!!Q;if(g&&Q!=null)if(Ka)r=true;else q[ga]=
false;else if(Ka){j.push(F);r=true}}if(Q!==ha){g||(q=j);b=b.replace(o.match[P],"");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 D in o.match){o.match[D]=new RegExp(o.match[D].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[D]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[D].source)}var x=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){x=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 x(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:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};
var G,Aa="sb-drag-proxy",w,I,N;c.img=function(a,e){this.obj=a;this.id=e;this.ready=false;var f=this;G=new Image;G.onload=function(){f.height=a.height?parseInt(a.height,10):G.height;f.width=a.width?parseInt(a.width,10):G.width;f.ready=true;G=G.onload=null};G.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(G)G=G.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(N){e=parseInt(c.getStyle(N,"top"));
var f=parseInt(c.getStyle(N,"left"));if(e+this.height<a.innerHeight)N.style.top=a.innerHeight-this.height+"px";if(f+this.width<a.innerWidth)N.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"],E,K,O,sa=true,v={};v.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>';
v.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"]};v.init=function(){c.appendHTML(document.body,ta(v.markup,c.lang));v.body=t("sb-body-inner");E=t("sb-container");K=t("sb-overlay");O=t("sb-wrapper");if(!ea)E.style.position="absolute";if(!da){var a,e,f=
/url\("(.*\.png)"\)/;A(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;M(R,"resize",function(){if(i){clearTimeout(i);i=null}if(z)i=setTimeout(v.onWindowResize,10)})};v.onOpen=function(a,e){sa=false;E.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){K.style.backgroundColor=c.options.overlayColor;c.setOpacity(K,0);c.options.modal||M(K,"click",c.close);ra=true}if(!ea){na();M(R,"scroll",na)}Fa();E.style.visibility="visible";ra?B(K,"opacity",c.options.overlayOpacity,c.options.fadeDuration,e):e()};v.onLoad=function(a,e){for(Ga(true);v.body.firstChild;)ka(v.body.firstChild);Ya(a,function(){if(z){if(!a)O.style.visibility="visible";Wa(e)}})};v.onReady=function(a){if(z){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)}}};v.onShow=function(a){Ga(false,a);sa=true};v.onClose=function(){ea||S(R,"scroll",na);S(K,"click",c.close);O.style.visibility="hidden";var a=function(){E.style.visibility="hidden";E.style.display="none";Fa(true)};ra?B(K,"opacity",0,c.options.fadeDuration,
a):a()};v.onPlay=function(){J("play",false);J("pause",true)};v.onPause=function(){J("pause",false);J("play",true)};v.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=v;R.Shadowbox=c})(window);

