(function(x,La){function eb(){for(var a=b.errorInfo,c=b.plugins,d,g,h,l,m=0;m<b.gallery.length;++m){d=b.gallery[m];g=false;h=null;switch(d.player){case "flv":case "swf":c.fla||(h="fla");break;case "qt":c.qt||(h="qt");break;case "wmp":if(b.isMac)if(c.qt&&c.f4m)d.player="qt";else h="qtf4m";else c.wmp||(h="wmp");break;case "qtwmp":if(c.qt)d.player="qt";else if(c.wmp)d.player="wmp";else h="qtwmp";break}if(h)if(b.options.handleUnsupported=="link"){switch(h){case "qtf4m":l="shared";h=[a.qt.url,a.qt.name,
a.f4m.url,a.f4m.name];break;case "qtwmp":l="either";h=[a.qt.url,a.qt.name,a.wmp.url,a.wmp.name];break;default:l="single";h=[a[h].url,a[h].name]}d.player="html";d.content='<div class="sb-message">'+Ma(b.lang.errors[l],h)+"</div>"}else g=true;else if(d.player=="inline")if(l=fb.exec(d.content))if(l=o(l[1]))d.content=l.innerHTML;else g=true;else g=true;else if(d.player=="swf"||d.player=="flv"){l=d.options&&d.options.flashVersion||b.options.flashVersion;if(b.flash&&!b.flash.hasFlashPlayerVersion(l)){d.width=
310;d.height=177}}if(g){b.gallery.splice(m,1);if(m<b.current)--b.current;else if(m==b.current)b.current=m>0?m-1:m;--m}}}function Da(a){if(b.options.enableKeys)(a?W:aa)(document,"keydown",gb)}function gb(a){if(!(a.metaKey||a.shiftKey||a.altKey||a.ctrlKey)){var c;switch(hb(a)){case 81:case 88:case 27:c=b.close;break;case 37:c=b.previous;break;case 39:c=b.next;break;case 32:c=typeof B=="number"?b.pause:b.play;break}if(c){Ea(a);c()}}}function Na(a){Da(false);var c=b.getCurrent(),d=c.player=="inline"?
"html":c.player;if(typeof b[d]!="function")throw"unknown player "+d;if(a){b.player.remove();b.revertOptions();b.applyOptions(c.options||{})}b.player=new b[d](c,b.playerId);if(b.gallery.length>1){c=b.gallery[b.current+1]||b.gallery[0];if(c.player=="img")(new Image).src=c.content;c=b.gallery[b.current-1]||b.gallery[b.gallery.length-1];if(c.player=="img")(new Image).src=c.content}b.skin.onLoad(a,ib)}function ib(){if(C)if(typeof b.player.ready!="undefined")var a=setInterval(function(){if(C){if(b.player.ready){clearInterval(a);
a=null;b.skin.onReady(Oa)}}else{clearInterval(a);a=null}},10);else b.skin.onReady(Oa)}function Oa(){if(C){b.player.append(b.skin.body,b.dimensions);b.skin.onShow(jb)}}function jb(){if(C){b.player.onLoad&&b.player.onLoad();b.options.onFinish(b.getCurrent());b.isPaused()||b.play();Da(true)}}function la(){return(new Date).getTime()}function N(a,c){for(var d in c)a[d]=c[d];return a}function D(a,c){for(var d=0,g=a.length,h=a[0];d<g&&c.call(h,d,h)!==false;h=a[++d]);}function Ma(a,c){return a.replace(/\{(\w+?)\}/g,
function(d,g){return c[g]})}function ra(){}function o(a){return document.getElementById(a)}function ea(a){a.parentNode.removeChild(a)}function kb(){var a=document.body,c=document.createElement("div");sa=typeof c.style.opacity==="string";c.style.position="fixed";c.style.margin=0;c.style.top="20px";a.appendChild(c,a.firstChild);ta=c.offsetTop==20;a.removeChild(c)}function Pa(a){return[a.pageX,a.pageY]}function Ea(a){a.preventDefault()}function hb(a){return a.keyCode}function W(a,c,d){jQuery(a).bind(c,
d)}function aa(a,c,d){jQuery(a).unbind(c,d)}function Qa(){if(!Fa){try{document.documentElement.doScroll("left")}catch(a){setTimeout(Qa,1);return}b.load()}}function lb(){if(document.readyState==="complete")return b.load();if(document.addEventListener){document.addEventListener("DOMContentLoaded",fa,false);x.addEventListener("load",b.load,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",fa);x.attachEvent("onload",b.load);var a=false;try{a=x.frameElement===null}catch(c){}document.documentElement.doScroll&&
a&&Qa()}}function Ra(a){b.open(this);b.gallery.length&&Ea(a)}function mb(){z={x:0,y:0,startX:null,startY:null}}function Sa(){var a=b.dimensions;N(O.style,{height:a.innerHeight+"px",width:a.innerWidth+"px"})}function nb(){mb();var a=["position:absolute","cursor:"+(b.isGecko?"-moz-grab":"move"),"background-color:"+(b.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");b.appendHTML(b.skin.body,'<div id="'+Ta+'" style="'+a+'"></div>');O=o(Ta);Sa();W(O,"mousedown",Ua)}function ob(){if(O){aa(O,
"mousedown",Ua);ea(O);O=null}X=null}function Ua(a){Ea(a);a=Pa(a);z.startX=a[0];z.startY=a[1];X=o(b.player.id);W(document,"mousemove",Va);W(document,"mouseup",Wa);if(b.isGecko)O.style.cursor="-moz-grabbing"}function Va(a){var c=b.player,d=b.dimensions;a=Pa(a);var g=a[0]-z.startX;z.startX+=g;z.x=Math.max(Math.min(0,z.x+g),d.innerWidth-c.width);a=a[1]-z.startY;z.startY+=a;z.y=Math.max(Math.min(0,z.y+a),d.innerHeight-c.height);N(X.style,{left:z.x+"px",top:z.y+"px"})}function Wa(){aa(document,"mousemove",
Va);aa(document,"mouseup",Wa);if(b.isGecko)O.style.cursor="-moz-grab"}function E(a,c,d,g,h){var l=c=="opacity",m=l?b.setOpacity:function(y,G){y.style[c]=""+G+"px"};if(g==0||!l&&!b.options.animate||l&&!b.options.animateFade){m(a,d);h&&h()}else{var H=parseFloat(b.getStyle(a,c))||0,P=d-H;if(P==0)h&&h();else{g*=1E3;var I=la(),Q=b.ease,ba=I+g,J,Y=setInterval(function(){J=la();if(J>=ba){clearInterval(Y);Y=null;m(a,d);h&&h()}else m(a,H+Q((J-I)/g)*P)},10)}}}function Xa(){K.style.height=b.getWindowSize("Height")+
"px";K.style.width=b.getWindowSize("Width")+"px"}function Ga(){K.style.top=document.documentElement.scrollTop+"px";K.style.left=document.documentElement.scrollLeft+"px"}function Ya(a){if(a)D(Ha,function(c,d){d[0].style.visibility=d[1]||""});else{Ha=[];D(b.options.troubleElements,function(c){D(document.getElementsByTagName(c),function(d){Ha.push([d,d.style.visibility]);d.style.visibility="hidden"})})}}function R(a,c){if(a=o("sb-nav-"+a))a.style.display=c?"":"none"}function Za(a,c){var d=o("sb-loading"),
g=b.getCurrent().player;g=g=="img"||g=="html";if(a){b.setOpacity(d,0);d.style.display="block";a=function(){b.clearOpacity(d);c&&c()};g?E(d,"opacity",1,b.options.fadeDuration,a):a()}else{a=function(){d.style.display="none";b.clearOpacity(d);c&&c()};g?E(d,"opacity",0,b.options.fadeDuration,a):a()}}function pb(a){var c=b.getCurrent();o("sb-title-inner").innerHTML=c.title||"";var d,g,h,l,m;if(b.options.displayNav){d=true;c=b.gallery.length;if(c>1)if(b.options.continuous)g=m=true;else{g=c-1>b.current;
m=b.current>0}if(b.options.slideshowDelay>0&&b.hasNext()){l=!b.isPaused();h=!l}}else d=g=h=l=m=false;R("close",d);R("next",g);R("play",h);R("pause",l);R("previous",m);g="";if(b.options.displayCounter&&b.gallery.length>1){c=b.gallery.length;if(b.options.counterType=="skip"){h=0;m=c;l=parseInt(b.options.counterLimit)||0;if(l<c&&l>2){m=Math.floor(l/2);h=b.current-m;if(h<0)h+=c;m=b.current+(l-m);if(m>c)m-=c}for(;h!=m;){if(h==c)h=0;g+='<a onclick="Shadowbox.change('+h+');"';if(h==b.current)g+=' class="sb-counter-current"';
g+=">"+h++ +"</a>"}}else g=[b.current+1,b.lang.of,c].join(" ")}o("sb-counter").innerHTML=g;a()}function qb(a){var c=o("sb-title-inner"),d=o("sb-info-inner");c.style.visibility=d.style.visibility="";c.innerHTML!=""&&E(c,"marginTop",0,0.35);E(d,"marginTop",0,0.35,a)}function rb(a,c){var d=o("sb-title"),g=o("sb-info");d=d.offsetHeight;g=g.offsetHeight;var h=o("sb-title-inner"),l=o("sb-info-inner");a=a?0.35:0;E(h,"marginTop",d,a);E(l,"marginTop",g*-1,a,function(){h.style.visibility=l.style.visibility=
"hidden";c()})}function ma(a,c,d,g){var h=o("sb-wrapper-inner");d=d?b.options.resizeDuration:0;E(Z,"top",c,d);E(h,"height",a,d,g)}function na(a,c,d,g){d=d?b.options.resizeDuration:0;E(Z,"left",c,d);E(Z,"width",a,d,g)}function Ia(a,c){var d=o("sb-body-inner");a=parseInt(a);c=parseInt(c);var g=Z.offsetHeight-d.offsetHeight;d=Z.offsetWidth-d.offsetWidth;var h=parseInt(b.options.viewportPadding)||20;return b.setDimensions(a,c,S.offsetHeight,S.offsetWidth,g,d,h)}var b={version:"3.0"},u=navigator.userAgent.toLowerCase();
if(u.indexOf("windows")>-1||u.indexOf("win32")>-1)b.isWindows=true;else if(u.indexOf("macintosh")>-1||u.indexOf("mac os x")>-1)b.isMac=true;else if(u.indexOf("linux")>-1)b.isLinux=true;b.isIE=u.indexOf("msie")>-1;b.isIE6=u.indexOf("msie 6")>-1;b.isIE7=u.indexOf("msie 7")>-1;b.isGecko=u.indexOf("gecko")>-1&&u.indexOf("safari")==-1;b.isWebKit=u.indexOf("applewebkit/")>-1;var fb=/#(.+)$/,sb=/^(light|shadow)box\[(.*?)\]/i,tb=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,ub=/[0-9a-z]+$/i,vb=/(.+\/)shadowbox\.js/i,C=false,
$a=false,ab={},T=0,ua,B;b.playerId="sb-player";b.current=-1;b.dimensions=null;b.ease=function(a){return 1+Math.pow(a-1,3)};b.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"}};b.gallery=[];b.path=null;b.player=null;b.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:ra,onClose:ra,onFinish:ra,onOpen:ra,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};b.getCurrent=function(){return b.current>-1?b.gallery[b.current]:null};b.hasNext=function(){return b.gallery.length>1&&(b.current!=b.gallery.length-1||b.options.continuous)};b.isOpen=function(){return C};
b.isPaused=function(){return B=="pause"};b.applyOptions=function(a){ab=N({},b.options);N(b.options,a)};b.revertOptions=function(){N(b.options,ab)};b.init=function(a){if(!$a){$a=true;b.skin.options&&N(b.options,b.skin.options);a&&N(b.options,a);if(!b.path)for(var c=document.getElementsByTagName("script"),d=0,g=c.length;d<g;++d)if(a=vb.exec(c[d].src)){b.path=a[1];break}lb()}};b.open=function(a){if(!C){a=b.makeGallery(a);b.gallery=a[0];b.current=a[1];a=b.getCurrent();if(a!=null){b.applyOptions(a.options||
{});eb();if(b.gallery.length){a=b.getCurrent();if(b.options.onOpen(a)!==false){C=true;b.skin.onOpen(a,Na)}}}}};b.close=function(){if(C){C=false;if(b.player){b.player.remove();b.player=null}if(typeof B=="number"){clearTimeout(B);B=null}T=0;Da(false);b.options.onClose(b.getCurrent());b.skin.onClose();b.revertOptions()}};b.play=function(){if(b.hasNext()){T||(T=b.options.slideshowDelay*1E3);if(T){ua=la();B=setTimeout(function(){T=ua=0;b.next()},T);b.skin.onPlay&&b.skin.onPlay()}}};b.pause=function(){if(typeof B==
"number")if(T=Math.max(0,T-(la()-ua))){clearTimeout(B);B="pause";b.skin.onPause&&b.skin.onPause()}};b.change=function(a){if(!(a in b.gallery))if(b.options.continuous){a=a<0?b.gallery.length+a:0;if(!(a in b.gallery))return}else return;b.current=a;if(typeof B=="number"){clearTimeout(B);B=null;T=ua=0}b.options.onChange(b.getCurrent());Na(true)};b.next=function(){b.change(b.current+1)};b.previous=function(){b.change(b.current-1)};b.setDimensions=function(a,c,d,g,h,l,m){var H=a,P=c,I=2*m+h;if(a+I>d)a=
d-I;var Q=2*m+l;if(c+Q>g)c=g-Q;var ba=(H-a)/H,J=(P-c)/P,Y=ba>0||J>0;if(Y)if(ba>J)c=Math.round(P/H*a);else if(J>ba)a=Math.round(H/P*c);b.dimensions={height:a+h,width:c+l,innerHeight:a,innerWidth:c,top:Math.floor((d-(a+I))/2+m),left:Math.floor((g-(c+Q))/2+m),oversized:Y};return b.dimensions};b.makeGallery=function(a){var c=[],d=-1;if(typeof a=="string")a=[a];if(typeof a.length=="number"){D(a,function(l,m){c[l]=m.content?m:{content:m}});d=0}else{if(a.tagName){var g=b.getCache(a);a=g?g:b.makeObject(a)}if(a.gallery){c=
[];for(var h in b.cache){g=b.cache[h];if(g.gallery&&g.gallery==a.gallery){if(d==-1&&g.content==a.content)d=c.length;c.push(g)}}if(d==-1){c.unshift(a);d=0}}else{c=[a];d=0}}D(c,function(l,m){c[l]=N({},m)});return[c,d]};b.makeObject=function(a,c){var d={content:a.href,title:a.getAttribute("title")||"",link:a};if(c){c=N({},c);D(["player","title","height","width","gallery"],function(h,l){if(typeof c[l]!="undefined"){d[l]=c[l];delete c[l]}});d.options=c}else d.options={};if(!d.player)d.player=b.getPlayer(d.content);
if(a=a.getAttribute("rel")){var g=a.match(sb);if(g)d.gallery=escape(g[2]);D(a.split(";"),function(h,l){if(g=l.match(tb))d[g[1]]=g[2]})}return d};b.getPlayer=function(a){if(a.indexOf("#")>-1&&a.indexOf(document.location.href)==0)return"inline";var c=a.indexOf("?");if(c>-1)a=a.substring(0,c);var d;if(a=a.match(ub))d=a[0];if(d){if(b.img&&b.img.ext.indexOf(d)>-1)return"img";if(b.swf&&b.swf.ext.indexOf(d)>-1)return"swf";if(b.flv&&b.flv.ext.indexOf(d)>-1)return"flv";if(b.qt&&b.qt.ext.indexOf(d)>-1)return b.wmp&&
b.wmp.ext.indexOf(d)>-1?"qtwmp":"qt";if(b.wmp&&b.wmp.ext.indexOf(d)>-1)return"wmp"}return"iframe"};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,c){var d=this.length>>>0;c=c||0;if(c<0)c+=d;for(;c<d;++c)if(c in this&&this[c]===a)return c;return-1};var sa=true,ta=true;b.getStyle=function(){var a=/opacity=([^)]*)/,c=document.defaultView&&document.defaultView.getComputedStyle;return function(d,g){var h;if(!sa&&g=="opacity"&&d.currentStyle){h=a.test(d.currentStyle.filter||"")?parseFloat(RegExp.$1)/
100+"":"";return h===""?"1":h}if(c){if(d=c(d,null))h=d[g];if(g=="opacity"&&h=="")h="1"}else h=d.currentStyle[g];return h}}();b.appendHTML=function(a,c){if(a.insertAdjacentHTML)a.insertAdjacentHTML("BeforeEnd",c);else if(a.lastChild){var d=a.ownerDocument.createRange();d.setStartAfter(a.lastChild);c=d.createContextualFragment(c);a.appendChild(c)}else a.innerHTML=c};b.getWindowSize=function(a){if(document.compatMode==="CSS1Compat")return document.documentElement["client"+a];return document.body["client"+
a]};b.setOpacity=function(a,c){a=a.style;if(sa)a.opacity=c==1?"":c;else{a.zoom=1;if(c==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="+c*100+")"}};b.clearOpacity=function(a){b.setOpacity(a,1)};jQuery.fn.shadowbox=function(a){return this.each(function(){var c=jQuery(this),d=jQuery.extend({},a||{},jQuery.metadata?c.metadata():jQuery.meta?c.data():
{}),g=this.className||"";d.width=parseInt((g.match(/w:(\d+)/)||[])[1])||d.width;d.height=parseInt((g.match(/h:(\d+)/)||[])[1])||d.height;Shadowbox.setup(c,d)})};var Fa=false,fa;if(document.addEventListener)fa=function(){document.removeEventListener("DOMContentLoaded",fa,false);b.load()};else if(document.attachEvent)fa=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",fa);b.load()}};b.load=function(){if(!Fa){if(!document.body)return setTimeout(b.load,13);Fa=
true;kb();b.options.skipSetup||b.setup();b.skin.init()}};b.plugins={};if(navigator.plugins&&navigator.plugins.length){var ca=[];D(navigator.plugins,function(a,c){ca.push(c.name)});ca=ca.join(",");u=ca.indexOf("Flip4Mac")>-1;b.plugins={fla:ca.indexOf("Shockwave Flash")>-1,qt:ca.indexOf("QuickTime")>-1,wmp:!u&&ca.indexOf("Windows Media")>-1,f4m:u}}else{u=function(a){var c;try{c=new ActiveXObject(a)}catch(d){}return!!c};b.plugins={fla:u("ShockwaveFlash.ShockwaveFlash"),qt:u("QuickTime.QuickTime"),wmp:u("wmplayer.ocx"),
f4m:false}}var wb=/^(light|shadow)box/i,xb=1;b.cache={};b.select=function(a){var c=[];if(a){var d=a.length;if(d)if(typeof a=="string"){if(b.find)c=b.find(a)}else if(d==2&&typeof a[0]=="string"&&a[1].nodeType){if(b.find)c=b.find(a[0],a[1])}else for(var g=0;g<d;++g)c[g]=a[g];else c.push(a)}else{var h;D(document.getElementsByTagName("a"),function(l,m){(h=m.getAttribute("rel"))&&wb.test(h)&&c.push(m)})}return c};b.setup=function(a,c){D(b.select(a),function(d,g){b.addCache(g,c)})};b.teardown=function(a){D(b.select(a),
function(c,d){b.removeCache(d)})};b.addCache=function(a,c){var d=a.shadowboxCacheKey;if(d==La){d=xb++;a.shadowboxCacheKey=d;W(a,"click",Ra)}b.cache[d]=b.makeObject(a,c)};b.removeCache=function(a){aa(a,"click",Ra);delete b.cache[a.shadowboxCacheKey];a.shadowboxCacheKey=null};b.getCache=function(a){a=a.shadowboxCacheKey;return a in b.cache&&b.cache[a]};b.clearCache=function(){for(var a in b.cache)b.removeCache(b.cache[a].link);b.cache={}};b.flash=function(){var a=function(){function c(){if(oa.readyState==
"complete"){oa.parentNode.removeChild(oa);d()}}function d(){if(!va){if(k.ie&&k.win){var e=G("span");try{var f=q.getElementsByTagName("body")[0].appendChild(e);f.parentNode.removeChild(f)}catch(i){return}}va=true;if(wa){clearInterval(wa);wa=null}e=xa.length;for(f=0;f<e;f++)xa[f]()}}function g(e){if(va)e();else xa[xa.length]=e}function h(e){if(typeof A.addEventListener!=v)A.addEventListener("load",e,false);else if(typeof q.addEventListener!=v)q.addEventListener("load",e,false);else if(typeof A.attachEvent!=
v)ya(A,"onload",e);else if(typeof A.onload=="function"){var f=A.onload;A.onload=function(){f();e()}}else A.onload=e}function l(){for(var e=U.length,f=0;f<e;f++){var i=U[f].id;if(k.pv[0]>0){var j=y(i);if(j){U[f].width=j.getAttribute("width")?j.getAttribute("width"):"0";U[f].height=j.getAttribute("height")?j.getAttribute("height"):"0";if(pa(U[f].swfVersion)){k.webkit&&k.webkit<312&&m(j);da(i,true)}else U[f].expressInstall&&!ga&&pa("6.0.65")&&(k.win||k.mac)?H(U[f]):P(j)}}else da(i,true)}}function m(e){var f=
e.getElementsByTagName(V)[0];if(f){var i=G("embed"),j=f.attributes;if(j)for(var n=j.length,r=0;r<n;r++)j[r].nodeName=="DATA"?i.setAttribute("src",j[r].nodeValue):i.setAttribute(j[r].nodeName,j[r].nodeValue);if(f=f.childNodes){j=f.length;for(n=0;n<j;n++)f[n].nodeType==1&&f[n].nodeName=="PARAM"&&i.setAttribute(f[n].getAttribute("name"),f[n].getAttribute("value"))}e.parentNode.replaceChild(i,e)}}function H(e){ga=true;var f=y(e.id);if(f){if(e.altContentId){var i=y(e.altContentId);if(i){ha=i;za=e.altContentId}}else ha=
I(f);if(!/%$/.test(e.width)&&parseInt(e.width,10)<310)e.width="310";if(!/%$/.test(e.height)&&parseInt(e.height,10)<137)e.height="137";q.title=q.title.slice(0,47)+" - Flash Player Installation";i="MMredirectURL="+A.location+"&MMplayerType="+(k.ie&&k.win?"ActiveX":"PlugIn")+"&MMdoctitle="+q.title;var j=e.id;if(k.ie&&k.win&&f.readyState!=4){var n=G("div");j+="SWFObjectNew";n.setAttribute("id",j);f.parentNode.insertBefore(n,f);f.style.display="none";ya(A,"onload",function(){f.parentNode.removeChild(f)})}Q({data:e.expressInstall,
id:bb,width:e.width,height:e.height},{flashvars:i},j)}}function P(e){if(k.ie&&k.win&&e.readyState!=4){var f=G("div");e.parentNode.insertBefore(f,e);f.parentNode.replaceChild(I(e),f);e.style.display="none";ya(A,"onload",function(){e.parentNode.removeChild(e)})}else e.parentNode.replaceChild(I(e),e)}function I(e){var f=G("div");if(k.win&&k.ie)f.innerHTML=e.innerHTML;else if(e=e.getElementsByTagName(V)[0])if(e=e.childNodes)for(var i=e.length,j=0;j<i;j++)!(e[j].nodeType==1&&e[j].nodeName=="PARAM")&&e[j].nodeType!=
8&&f.appendChild(e[j].cloneNode(true));return f}function Q(e,f,i){var j,n=y(i);if(n){if(typeof e.id==v)e.id=i;if(k.ie&&k.win){var r="";for(var s in e)if(e[s]!=Object.prototype[s])if(s.toLowerCase()=="data")f.movie=e[s];else if(s.toLowerCase()=="styleclass")r+=' class="'+e[s]+'"';else if(s.toLowerCase()!="classid")r+=" "+s+'="'+e[s]+'"';s="";for(var p in f)if(f[p]!=Object.prototype[p])s+='<param name="'+p+'" value="'+f[p]+'" />';n.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
r+">"+s+"</object>";Aa[Aa.length]=e.id;j=y(e.id)}else if(k.webkit&&k.webkit<312){p=G("embed");p.setAttribute("type",Ba);for(r in e)if(e[r]!=Object.prototype[r])if(r.toLowerCase()=="data")p.setAttribute("src",e[r]);else if(r.toLowerCase()=="styleclass")p.setAttribute("class",e[r]);else r.toLowerCase()!="classid"&&p.setAttribute(r,e[r]);for(var F in f)f[F]!=Object.prototype[F]&&F.toLowerCase()!="movie"&&p.setAttribute(F,f[F]);n.parentNode.replaceChild(p,n);j=p}else{p=G(V);p.setAttribute("type",Ba);
for(var t in e)if(e[t]!=Object.prototype[t])if(t.toLowerCase()=="styleclass")p.setAttribute("class",e[t]);else t.toLowerCase()!="classid"&&p.setAttribute(t,e[t]);for(var L in f)f[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"&&ba(p,L,f[L]);n.parentNode.replaceChild(p,n);j=p}}return j}function ba(e,f,i){var j=G("param");j.setAttribute("name",f);j.setAttribute("value",i);e.appendChild(j)}function J(e){var f=y(e);if(f&&(f.nodeName=="OBJECT"||f.nodeName=="EMBED"))if(k.ie&&k.win)f.readyState==4?Y(e):
A.attachEvent("onload",function(){Y(e)});else f.parentNode.removeChild(f)}function Y(e){if(e=y(e)){for(var f in e)if(typeof e[f]=="function")e[f]=null;e.parentNode.removeChild(e)}}function y(e){var f=null;try{f=q.getElementById(e)}catch(i){}return f}function G(e){return q.createElement(e)}function ya(e,f,i){e.attachEvent(f,i);ia[ia.length]=[e,f,i]}function pa(e){var f=k.pv;e=e.split(".");e[0]=parseInt(e[0],10);e[1]=parseInt(e[1],10)||0;e[2]=parseInt(e[2],10)||0;return f[0]>e[0]||f[0]==e[0]&&f[1]>
e[1]||f[0]==e[0]&&f[1]==e[1]&&f[2]>=e[2]?true:false}function cb(e,f){if(!(k.ie&&k.mac)){var i=q.getElementsByTagName("head")[0],j=G("style");j.setAttribute("type","text/css");j.setAttribute("media","screen");!(k.ie&&k.win)&&typeof q.createTextNode!=v&&j.appendChild(q.createTextNode(e+" {"+f+"}"));i.appendChild(j);if(k.ie&&k.win&&typeof q.styleSheets!=v&&q.styleSheets.length>0){i=q.styleSheets[q.styleSheets.length-1];typeof i.addRule==V&&i.addRule(e,f)}}}function da(e,f){f=f?"visible":"hidden";if(va&&
y(e))y(e).style.visibility=f;else cb("#"+e,"visibility:"+f)}function db(e){return/[\\\"<>\.;]/.exec(e)!=null?encodeURIComponent(e):e}var v="undefined",V="object",Ba="application/x-shockwave-flash",bb="SWFObjectExprInst",A=x,q=document,$=navigator,xa=[],U=[],Aa=[],ia=[],oa,wa=null,ha=null,za=null,va=false,ga=false,k=function(){var e=typeof q.getElementById!=v&&typeof q.getElementsByTagName!=v&&typeof q.createElement!=v,f=[0,0,0],i=null;if(typeof $.plugins!=v&&typeof $.plugins["Shockwave Flash"]==V){if((i=
$.plugins["Shockwave Flash"].description)&&!(typeof $.mimeTypes!=v&&$.mimeTypes[Ba]&&!$.mimeTypes[Ba].enabledPlugin)){i=i.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/r/.test(i)?parseInt(i.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof A.ActiveXObject!=v){var j=null,n=false;try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(r){try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=[6,
0,21];j.AllowScriptAccess="always"}catch(s){if(f[0]==6)n=true}if(!n)try{j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(p){}}if(!n&&j)try{if(i=j.GetVariable("$version")){i=i.split(" ")[1].split(",");f=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]}}catch(F){}}n=$.userAgent.toLowerCase();var t=$.platform.toLowerCase();i=/webkit/.test(n)?parseFloat(n.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;j=t?/win/.test(t):/win/.test(n);n=t?/mac/.test(t):/mac/.test(n);return{w3cdom:e,
pv:f,webkit:i,ie:false,win:j,mac:n}}();(function(){if(k.w3cdom){g(l);if(k.ie&&k.win)try{q.write("<script id=__ie_ondomload defer=true src=//:><\/script>");(oa=y("__ie_ondomload"))&&ya(oa,"onreadystatechange",c)}catch(e){}if(k.webkit&&typeof q.readyState!=v)wa=setInterval(function(){/loaded|complete/.test(q.readyState)&&d()},10);typeof q.addEventListener!=v&&q.addEventListener("DOMContentLoaded",d,null);h(d)}})();(function(){k.ie&&k.win&&x.attachEvent("onunload",function(){for(var e=ia.length,f=0;f<
e;f++)ia[f][0].detachEvent(ia[f][1],ia[f][2]);e=Aa.length;for(f=0;f<e;f++)J(Aa[f]);for(var i in k)k[i]=null;k=null;for(var j in a)a[j]=null;a=null})})();return{registerObject:function(e,f,i){if(!(!k.w3cdom||!e||!f)){var j={};j.id=e;j.swfVersion=f;j.expressInstall=i?i:false;U[U.length]=j;da(e,false)}},getObjectById:function(e){var f=null;if(k.w3cdom)if(e=y(e)){var i=e.getElementsByTagName(V)[0];if(!i||i&&typeof e.SetVariable!=v)f=e;else if(typeof i.SetVariable!=v)f=i}return f},embedSWF:function(e,
f,i,j,n,r,s,p,F){if(!(!k.w3cdom||!e||!f||!i||!j||!n)){i+="";j+="";if(pa(n)){da(f,false);var t={};if(F&&typeof F===V)for(var L in F)if(F[L]!=Object.prototype[L])t[L]=F[L];t.data=e;t.width=i;t.height=j;var qa={};if(p&&typeof p===V)for(var Ca in p)if(p[Ca]!=Object.prototype[Ca])qa[Ca]=p[Ca];if(s&&typeof s===V)for(var ja in s)if(s[ja]!=Object.prototype[ja])if(typeof qa.flashvars!=v)qa.flashvars+="&"+ja+"="+s[ja];else qa.flashvars=ja+"="+s[ja];g(function(){Q(t,qa,f);t.id==f&&da(f,true)})}else if(r&&!ga&&
pa("6.0.65")&&(k.win||k.mac)){ga=true;da(f,false);g(function(){var ka={};ka.id=ka.altContentId=f;ka.width=i;ka.height=j;ka.expressInstall=r;H(ka)})}}},getFlashPlayerVersion:function(){return{major:k.pv[0],minor:k.pv[1],release:k.pv[2]}},hasFlashPlayerVersion:pa,createSWF:function(e,f,i){return k.w3cdom?Q(e,f,i):La},removeSWF:function(e){k.w3cdom&&J(e)},createCSS:function(e,f){k.w3cdom&&cb(e,f)},addDomLoadEvent:g,addLoadEvent:h,getQueryParamValue:function(e){var f=q.location.search||q.location.hash;
if(e==null)return db(f);if(f){f=f.substring(1).split("&");for(var i=0;i<f.length;i++)if(f[i].substring(0,f[i].indexOf("="))==e)return db(f[i].substring(f[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(ga&&ha){var e=y(bb);if(e){e.parentNode.replaceChild(ha,e);if(za){da(za,true);if(k.ie&&k.win)ha.style.display="block"}za=ha=null;ga=false}}}}}();return a}();b.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 M,Ta="sb-drag-proxy",z,O,X;b.img=function(a,c){this.obj=a;this.id=c;this.ready=false;var d=this;M=new Image;M.onload=function(){d.height=a.height?parseInt(a.height,
10):M.height;d.width=a.width?parseInt(a.width,10):M.width;d.ready=true;M=M.onload=null};M.src=a.content};b.img.ext=["bmp","gif","jpg","jpeg","png"];b.img.prototype={append:function(a,c){var d=document.createElement("img");d.id=this.id;d.src=this.obj.content;d.style.position="absolute";var g;if(c.oversized&&b.options.handleOversize=="resize"){g=c.innerHeight;c=c.innerWidth}else{g=this.height;c=this.width}d.setAttribute("height",g);d.setAttribute("width",c);a.appendChild(d)},remove:function(){var a=
o(this.id);a&&ea(a);ob();if(M)M=M.onload=null},onLoad:function(){b.dimensions.oversized&&b.options.handleOversize=="drag"&&nb()},onWindowResize:function(){var a=b.dimensions;switch(b.options.handleOversize){case "resize":var c=o(this.id);c.height=a.innerHeight;c.width=a.innerWidth;break;case "drag":if(X){c=parseInt(b.getStyle(X,"top"));var d=parseInt(b.getStyle(X,"left"));if(c+this.height<a.innerHeight)X.style.top=a.innerHeight-this.height+"px";if(d+this.width<a.innerWidth)X.style.left=a.innerWidth-
this.width+"px";Sa()}break}}};b.iframe=function(a,c){this.obj=a;this.id=c;c=o("sb-overlay");this.height=a.height?parseInt(a.height,10):c.offsetHeight;this.width=a.width?parseInt(a.width,10):c.offsetWidth};b.iframe.prototype={append:function(a){var c='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(b.isIE){c+=' allowtransparency="true"';if(b.isIE6)c+=
" src=\"javascript:false;document.write('');\""}c+="></iframe>";a.innerHTML=c},remove:function(){var a=o(this.id);if(a){ea(a);b.isGecko&&delete x.frames[this.id]}},onLoad:function(){(b.isIE?o(this.id).contentWindow:x.frames[this.id]).location.href=this.obj.content}};b.swf=function(a,c){this.obj=a;this.id=c;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):300};b.swf.ext=["swf"];b.swf.prototype={append:function(a,c){var d=document.createElement("div");d.id=this.id;
a.appendChild(d);b.flash.embedSWF(this.obj.content,this.id,c.innerWidth,c.innerHeight,b.options.flashVersion,b.path+"expressInstall.swf",b.options.flashVars,b.options.flashParams)},remove:function(){b.flash.expressInstallCallback();b.flash.removeSWF(this.id)},onWindowResize:function(){var a=b.dimensions,c=o(this.id);c.height=a.innerHeight;c.width=a.innerWidth}};b.qt=function(a,c){this.obj=a;this.id=c;this.height=a.height?parseInt(a.height,10):300;if(b.options.showMovieControls)this.height+=16;this.width=
a.width?parseInt(a.width,10):300};b.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];b.qt.prototype={append:function(a){var c=b.options,d=String(c.autoplayMovies),g=String(c.showMovieControls);c="<object";var h={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(b.isIE){h.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";h.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{h.type="video/quicktime";h.data=this.obj.content}for(var l in h)c+=
" "+l+'="'+h[l]+'"';c+=">";d={src:this.obj.content,scale:"aspect",controller:g,autoplay:d};for(var m in d)c+='<param name="'+m+'" value="'+d[m]+'">';c+="</object>";a.innerHTML=c},remove:function(){try{document[this.id].Stop()}catch(a){}var c=o(this.id);c&&ea(c)}};var yb=b.isIE?70:45;b.wmp=function(a,c){this.obj=a;this.id=c;this.height=a.height?parseInt(a.height,10):300;if(b.options.showMovieControls)this.height+=yb;this.width=a.width?parseInt(a.width,10):300};b.wmp.ext=["asf","avi","mpg","mpeg","wm",
"wmv"];b.wmp.prototype={append:function(a){var c=b.options,d='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',g={autostart:c.autoplayMovies?1:0};if(b.isIE){d+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';g.url=this.obj.content;g.uimode=c.showMovieControls?"full":"none"}else{d+=' type="video/x-ms-wmv"';d+=' data="'+this.obj.content+'"';g.showcontrols=c.showMovieControls?1:0}d+=">";for(var h in g)d+='<param name="'+h+'" value="'+g[h]+'">';d+="</object>";
a.innerHTML=d},remove:function(){if(b.isIE)try{x[this.id].controls.stop();x[this.id].URL="movie"+la()+".wmv";x[this.id]=function(){}}catch(a){}var c=o(this.id);c&&setTimeout(function(){ea(c)},10)}};var Ja=false,Ha=[],zb=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],K,S,Z,Ka=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(){b.appendHTML(document.body,Ma(w.markup,b.lang));w.body=o("sb-body-inner");K=o("sb-container");S=o("sb-overlay");Z=o("sb-wrapper");if(!ta)K.style.position="absolute";if(!sa){var a,c,d=
/url\("(.*\.png)"\)/;D(zb,function(h,l){if(a=o(l))if(c=b.getStyle(a,"backgroundImage").match(d)){a.style.backgroundImage="none";a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+c[1]+",sizingMethod=scale);"}})}var g;W(x,"resize",function(){if(g){clearTimeout(g);g=null}if(C)g=setTimeout(w.onWindowResize,10)})};w.onOpen=function(a,c){Ka=false;K.style.display="block";Xa();a=Ia(b.options.initialHeight,b.options.initialWidth);ma(a.innerHeight,a.top);na(a.width,a.left);
if(b.options.showOverlay){S.style.backgroundColor=b.options.overlayColor;b.setOpacity(S,0);b.options.modal||W(S,"click",b.close);Ja=true}if(!ta){Ga();W(x,"scroll",Ga)}Ya();K.style.visibility="visible";Ja?E(S,"opacity",b.options.overlayOpacity,b.options.fadeDuration,c):c()};w.onLoad=function(a,c){for(Za(true);w.body.firstChild;)ea(w.body.firstChild);rb(a,function(){if(C){if(!a)Z.style.visibility="visible";pb(c)}})};w.onReady=function(a){if(C){var c=b.player,d=Ia(c.height,c.width),g=function(){qb(a)};
switch(b.options.animSequence){case "hw":ma(d.innerHeight,d.top,true,function(){na(d.width,d.left,true,g)});break;case "wh":na(d.width,d.left,true,function(){ma(d.innerHeight,d.top,true,g)});break;default:na(d.width,d.left,true);ma(d.innerHeight,d.top,true,g)}}};w.onShow=function(a){Za(false,a);Ka=true};w.onClose=function(){ta||aa(x,"scroll",Ga);aa(S,"click",b.close);Z.style.visibility="hidden";var a=function(){K.style.visibility="hidden";K.style.display="none";Ya(true)};Ja?E(S,"opacity",0,b.options.fadeDuration,
a):a()};w.onPlay=function(){R("play",false);R("pause",true)};w.onPause=function(){R("pause",false);R("play",true)};w.onWindowResize=function(){if(Ka){Xa();var a=b.player,c=Ia(a.height,a.width);na(c.width,c.left);ma(c.innerHeight,c.top);a.onWindowResize&&a.onWindowResize()}};b.skin=w;x.Shadowbox=b})(window);
