(function(){var ua=navigator.userAgent.toLowerCase(),S={version:"3.0b",adapter:null,cache:[],client:{isIE:ua.indexOf("msie")>-1,isIE6:ua.indexOf("msie 6")>-1,isIE7:ua.indexOf("msie 7")>-1,isGecko:ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1,isWebkit:ua.indexOf("applewebkit/")>-1,isWindows:ua.indexOf("windows")>-1||ua.indexOf("win32")>-1,isMac:ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1,isLinux:ua.indexOf("linux")>-1},content:null,current:-1,dimensions:null,gallery:[],expando:"shadowboxCacheKey",libraries:{Prototype:"prototype",jQuery:"jquery",MooTools:"mootools",YAHOO:"yui",dojo:"dojo",Ext:"ext"},options:{adapter:null,animate:true,animateFade:true,autoplayMovies:true,continuous:false,ease:function(x){return 1+Math.pow(x-1,3)},enableKeys:true,errors:{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"}},ext:{img:["png","jpg","jpeg","gif","bmp"],swf:["swf"],flv:["flv","m4v"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf","wm","wmv"],qtwmp:["avi","mpg","mpeg"]},flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",language:"en",onChange:null,onClose:null,onFinish:null,onOpen:null,players:["img"],showMovieControls:true,skipSetup:false,slideshowDelay:0,useSizzle:true,viewportPadding:20},path:"",plugins:null,ready:false,regex:{domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/},applyOptions:function(opts){if(opts){default_options=apply({},S.options);apply(S.options,opts)}},revertOptions:function(){apply(S.options,default_options)},change:function(index){if(!S.gallery){return}if(!S.gallery[index]){if(!S.options.continuous){return}else{index=index<0?S.gallery.length-1:0}}S.current=index;if(typeof slide_timer=="number"){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0}if(S.options.onChange){S.options.onChange()}loadContent()},close:function(){if(!active){return}active=false;listenKeys(false);if(S.content){S.content.remove();S.content=null}if(typeof slide_timer=="number"){clearTimeout(slide_timer)}slide_timer=null;slide_delay=0;if(S.options.onClose){S.options.onClose()}S.skin.onClose();S.revertOptions()},contentId:function(){return content_id},error:function(msg){if(!S.debug){return}if(typeof window.console!="undefined"&&typeof console.log=="function"){console.log(msg)}else{alert(msg)}},getCurrent:function(){return S.current>-1?S.gallery[S.current]:null},hasNext:function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)},init:function(opts){if(initialized){return}initialized=true;opts=opts||{};init_options=opts;if(opts){apply(S.options,opts)}for(var e in S.options.ext){S.regex[e]=new RegExp(".("+S.options.ext[e].join("|")+")s*$","i")}if(!S.path){var pathre=/(.+\/)shadowbox\.js/i,path;each(document.getElementsByTagName("script"),function(s){path=pathre.exec(s.src);if(path){S.path=path[1];return false}})}if(S.options.adapter){S.adapter=S.options.adapter.toLowerCase()}else{for(var lib in S.libraries){if(typeof window[lib]!="undefined"){S.adapter=S.libraries[lib];break}}if(!S.adapter){S.adapter="base"}}if(S.options.useSizzle&&!window.Sizzle){if(window.jQuery){window.Sizzle=jQuery.find}else{U.include(S.path+"libraries/sizzle/sizzle.js")}}if(!S.lang){U.include(S.path+"languages/shadowbox-"+S.options.language+".js")}each(S.options.players,function(p){if((p=="swf"||p=="flv")&&!window.swfobject){U.include(S.path+"libraries/swfobject/swfobject.js")}if(!S[p]){U.include(S.path+"players/shadowbox-"+p+".js")}});if(!S.lib){U.include(S.path+"adapters/shadowbox-"+S.adapter+".js")}waitDom(waitLibs)},isActive:function(){return active},isPaused:function(){return slide_timer=="paused"},load:function(){if(S.ready){return}S.ready=true;if(S.skin.options){apply(S.options,S.skin.options);apply(S.options,init_options)}S.skin.init();if(!S.options.skipSetup){S.setup()}},next:function(){S.change(S.current+1)},open:function(obj){if(U.isLink(obj)){if(S.inCache(obj)){obj=S.cache[obj[S.expando]]}else{obj=S.buildCacheObj(obj)}}if(obj.constructor==Array){S.gallery=obj;S.current=0}else{if(!obj.gallery){S.gallery=[obj];S.current=0}else{S.current=null;S.gallery=[];each(S.cache,function(c){if(c.gallery&&c.gallery==obj.gallery){if(S.current==null&&c.content==obj.content&&c.title==obj.title){S.current=S.gallery.length}S.gallery.push(c)}});if(S.current==null){S.gallery.unshift(obj);S.current=0}}}obj=S.getCurrent();if(obj.options){S.revertOptions();S.applyOptions(obj.options)}var item,remove,m,format,replace,oe=S.options.errors,msg,el;for(var i=0;i<S.gallery.length;++i){item=S.gallery[i]=apply({},S.gallery[i]);remove=false;if(m=S.regex.unsupported.exec(item.player)){if(S.options.handleUnsupported=="link"){item.player="html";switch(m[1]){case"qtwmp":format="either";replace=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case"qtf4m":format="shared";replace=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:format="single";if(m[1]=="swf"||m[1]=="flv"){m[1]="fla"}replace=[oe[m[1]].url,oe[m[1]].name]}msg=S.lang.errors[format].replace(/\{(\d+)\}/g,function(m,n){return replace[n]});item.content='<div class="sb-message">'+msg+"</div>"}else{remove=true}}else{if(item.player=="inline"){m=S.regex.inline.exec(item.content);if(m){var el=U.get(m[1]);if(el){item.content=el.innerHTML}else{S.error("Cannot find element with id "+m[1])}}else{S.error("Cannot find element id for inline content")}}else{if(item.player=="swf"||item.player=="flv"){var version=(item.options&&item.options.flashVersion)||S.options.flashVersion;if(!swfobject.hasFlashPlayerVersion(version)){item.width=310;item.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}if(S.gallery.length){if(!active){if(typeof S.options.onOpen=="function"&&S.options.onOpen(obj)===false){return}S.skin.onOpen(obj,loadContent)}else{loadContent()}active=true}},pause:function(){if(typeof slide_timer!="number"){return}var time=new Date().getTime();slide_delay=Math.max(0,slide_delay-(time-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer="paused";if(S.skin.onPause){S.skin.onPause()}}},play:function(){if(!S.hasNext()){return}if(!slide_delay){slide_delay=S.options.slideshowDelay*1000}if(slide_delay){slide_start=new Date().getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;S.next()},slide_delay);if(S.skin.onPlay){S.skin.onPlay()}}},previous:function(){S.change(S.current-1)},setDimensions:function(height,width,max_h,max_w,tb,lr,resizable){var h=height=parseInt(height),w=width=parseInt(width),pad=parseInt(S.options.viewportPadding)||0;var extra_h=2*pad+tb;if(h+extra_h>=max_h){h=max_h-extra_h}var extra_w=2*pad+lr;if(w+extra_w>=max_w){w=max_w-extra_w}var resize_h=height,resize_w=width,change_h=(height-h)/height,change_w=(width-w)/width,oversized=(change_h>0||change_w>0);if(resizable&&oversized&&S.options.handleOversize=="resize"){if(change_h>change_w){w=Math.round((width/height)*h)}else{if(change_w>change_h){h=Math.round((height/width)*w)}}resize_w=w;resize_h=h}S.dimensions={height:h+tb,width:w+lr,inner_h:h,inner_w:w,top:(max_h-(h+extra_h))/2+pad,left:(max_w-(w+extra_w))/2+pad,oversized:oversized,resize_h:resize_h,resize_w:resize_w}},setup:function(links,opts){each(S.findLinks(links),function(link){S.addCache(link,opts)})},teardown:function(links){each(S.findLinks(links),S.removeCache)},findLinks:function(links){if(!links){var links=[],rel;each(document.getElementsByTagName("a"),function(a){rel=a.getAttribute("rel");if(rel&&S.regex.rel.test(rel)){links.push(a)}})}else{var len=links.length;if(len){if(window.Sizzle){if(typeof links=="string"){links=Sizzle(links)}else{if(len==2&&links.push&&typeof links[0]=="string"&&links[1].nodeType){links=Sizzle(links[0],links[1])}}}}else{links=[links]}}return links},inCache:function(link){return typeof link[S.expando]=="number"&&S.cache[link[S.expando]]},addCache:function(link,opts){if(!S.inCache(link)){link[S.expando]=S.cache.length;S.lib.addEvent(link,"click",handleClick)}S.cache[link[S.expando]]=S.buildCacheObj(link,opts)},removeCache:function(link){S.lib.removeEvent(link,"click",handleClick);S.cache[link[S.expando]]=null;delete link[S.expando]},clearCache:function(){each(S.cache,function(obj){S.removeCache(obj.link)});S.cache=[]},buildCacheObj:function(link,opts){var obj={link:link,title:link.getAttribute("title"),options:apply({},opts||{}),content:link.href};if(opts){each(["player","title","height","width","gallery"],function(option){if(typeof obj.options[option]!="undefined"){obj[option]=obj.options[option];delete obj.options[option]}})}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(S.regex.gallery);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(parameter){match=parameter.match(S.regex.param);if(match){if(match[1]=="options"){eval("apply(obj.options,"+match[2]+")")}else{obj[match[1]]=match[2]}}})}return obj},getPlayer:function(content){var r=S.regex,p=S.plugins,m=content.match(r.domain),same_domain=m&&document.domain==m[1];if(content.indexOf("#")>-1&&same_domain){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}if(r.img.test(content)){return"img"}if(r.swf.test(content)){return p.fla?"swf":"unsupported-swf"}if(r.flv.test(content)){return p.fla?"flv":"unsupported-flv"}if(r.qt.test(content)){return p.qt?"qt":"unsupported-qt"}if(r.wmp.test(content)){if(p.wmp){return"wmp"}if(p.f4m){return"qt"}if(S.client.isMac){return p.qt?"unsupported-f4m":"unsupported-qtf4m"}return"unsupported-wmp"}if(r.qtwmp.test(content)){if(p.qt){return"qt"}if(p.wmp){return"wmp"}return S.client.isMac?"unsupported-qt":"unsupported-qtwmp"}return"iframe"}},U=S.util={animate:function(el,p,to,d,cb){var from=parseFloat(S.lib.getStyle(el,p));if(isNaN(from)){from=0}var delta=to-from;if(delta==0){if(cb){cb()}return}var op=p=="opacity";function fn(ease){var to=from+ease*delta;if(op){U.setOpacity(el,to)}else{el.style[p]=to+"px"}}if(!d||(!op&&!S.options.animate)||(op&&!S.options.animateFade)){fn(1);if(cb){cb()}return}d*=1000;var begin=new Date().getTime(),ease=S.options.ease,end=begin+d,time,timer=setInterval(function(){time=new Date().getTime();if(time>=end){clearInterval(timer);fn(1);if(cb){cb()}}else{fn(ease((time-begin)/d))}},10)},apply:function(o,e){for(var p in e){o[p]=e[p]}return o},clearOpacity:function(el){var s=el.style;if(window.ActiveXObject){if(typeof s.filter=="string"&&(/alpha/i).test(s.filter)){s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")}}else{s.opacity=""}},each:function(obj,fn,scope){for(var i=0,len=obj.length;i<len;++i){if(fn.call(scope||obj[i],obj[i],i,obj)===false){return}}},get:function(id){return document.getElementById(id)},include:function(){var includes={};return function(file){if(includes[file]){return}includes[file]=true;var head=document.getElementsByTagName("head")[0],script=document.createElement("script");script.src=file;head.appendChild(script)}}(),isLink:function(obj){if(!obj||!obj.tagName){return false}var up=obj.tagName.toUpperCase();return up=="A"||up=="AREA"},removeChildren:function(el){while(el.firstChild){el.removeChild(el.firstChild)}},setOpacity:function(el,o){var s=el.style;if(window.ActiveXObject){s.zoom=1;s.filter=(s.filter||"").replace(/\s*alpha\([^\)]*\)/gi,"")+(o==1?"":" alpha(opacity="+(o*100)+")")}else{s.opacity=o}}},apply=U.apply,each=U.each,init_options,initialized=false,default_options={},content_id="sb-content",active=false,slide_timer,slide_start,slide_delay=0;if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(p){names.push(p.name)});names=names.join();var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{function detectPlugin(n){try{var axo=new ActiveXObject(n)}catch(e){}return !!axo}S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}function waitDom(cb){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);cb()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);cb()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(S.ready){return}try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}cb()})()}}}if(typeof window.onload=="function"){var oldonload=window.onload;window.onload=function(){oldonload();cb()}}else{window.onload=cb}}function waitLibs(){setTimeout(function(){if(S.lib&&S.lang){S.load()}else{setTimeout(arguments.callee,0)}},0)}function handleClick(e){var link;if(U.isLink(this)){link=this}else{link=S.lib.getTarget(e);while(!U.isLink(link)&&link.parentNode){link=link.parentNode}}S.lib.preventDefault(e);if(link){S.open(link);if(S.gallery.length){S.lib.preventDefault(e)}}}function listenKeys(on){if(!S.options.enableKeys){return}S.lib[(on?"add":"remove")+"Event"](document,"keydown",handleKey)}function handleKey(e){var code=S.lib.keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slide_timer=="number"?S.pause:S.play}if(handler){S.lib.preventDefault(e);handler()}}function loadContent(){var obj=S.getCurrent();if(!obj){return}var p=obj.player=="inline"?"html":obj.player;if(typeof S[p]!="function"){S.error("Unknown player: "+p)}var change=false;if(S.content){S.content.remove();change=true;S.revertOptions();if(obj.options){S.applyOptions(obj.options)}}U.removeChildren(S.skin.bodyEl());S.content=new S[p](obj);listenKeys(false);S.skin.onLoad(S.content,change,function(){if(!S.content){return}if(typeof S.content.ready!="undefined"){var id=setInterval(function(){if(S.content){if(S.content.ready){clearInterval(id);id=null;S.skin.onReady(contentReady)}}else{clearInterval(id);id=null}},100)}else{S.skin.onReady(contentReady)}});if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}}function contentReady(){if(!S.content){return}S.content.append(S.skin.bodyEl(),content_id,S.dimensions);S.skin.onFinish(finishContent)}function finishContent(){if(!S.content){return}if(S.content.onLoad){S.content.onLoad()}if(S.options.onFinish){S.options.onFinish()}if(!S.isPaused()){S.play()}listenKeys(true)}window.Shadowbox=S})();(function(){var B=Shadowbox,C=B.util,r=false,G=[],v=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],t={markup:'<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a></div><div style="clear:both"></div><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><a onclick="Shadowbox.close()">{cancel}</a></div></div><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div></div><div style="clear:both"></div></div></div></div>',options:{animSequence:"sync",autoDimensions:false,counterLimit:10,counterType:"default",displayCounter:false,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#CCC",overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]},init:function(){var d=t.markup.replace(/\{(\w+)\}/g,function(g,f){return B.lang[f]});B.lib.append(document.body,d);if(B.client.isIE6){C.get("sb-body").style.zoom=1;var b,e,c=/url\("(.*\.png)"\)/;C.each(v,function(f){b=C.get(f);if(b){e=B.lib.getStyle(b,"backgroundImage").match(c);if(e){b.style.backgroundImage="none";b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+e[1]+",sizingMethod=scale);"}}})}var a;B.lib.addEvent(window,"resize",function(){if(a){clearTimeout(a);a=null}if(B.isActive()){a=setTimeout(function(){t.onWindowResize();var f=B.content;if(f&&f.onWindowResize){f.onWindowResize()}},50)}})},bodyEl:function(){return C.get("sb-body-inner")},onOpen:function(b,e){D(false);var c=B.options.autoDimensions&&"height" in b?b.height:B.options.initialHeight,d=B.options.autoDimensions&&"width" in b?b.width:B.options.initialWidth;C.get("sb-container").style.display="block";var a=s(c,d);E(a.inner_h,a.top,false);A(a.width,a.left,false);z(e)},onLoad:function(b,a,c){x(true);y(a,function(){if(!b){return}if(!a){C.get("sb-wrapper").style.display=""}c()})},onReady:function(c){var a=B.content;if(!a){return}var b=s(a.height,a.width,a.resizable);t.resizeContent(b.inner_h,b.width,b.top,b.left,true,function(){w(c)})},onFinish:function(a){x(false,a)},onClose:function(){z();D(true)},onPlay:function(){F("play",false);F("pause",true)},onPause:function(){F("pause",false);F("play",true)},onWindowResize:function(){var a=B.content;if(!a){return}var b=s(a.height,a.width,a.resizable);A(b.width,b.left,false);E(b.inner_h,b.top,false);var c=C.get(B.contentId());if(c){if(a.resizable&&B.options.handleOversize=="resize"){c.height=b.resize_h;c.width=b.resize_w}}},resizeContent:function(f,e,b,c,d,g){var h=B.content;if(!h){return}var a=s(h.height,h.width,h.resizable);switch(B.options.animSequence){case"hw":E(a.inner_h,a.top,d,function(){A(a.width,a.left,d,g)});break;case"wh":A(a.width,a.left,d,function(){E(a.inner_h,a.top,d,g)});break;default:A(a.width,a.left,d);E(a.inner_h,a.top,d,g)}}};function u(){C.get("sb-container").style.top=document.documentElement.scrollTop+"px"}function D(a){if(a){C.each(G,function(b){b[0].style.visibility=b[1]||""})}else{G=[];C.each(B.options.troubleElements,function(b){C.each(document.getElementsByTagName(b),function(c){G.push([c,c.style.visibility]);c.style.visibility="hidden"})})}}function z(e){var d=C.get("sb-overlay"),c=C.get("sb-container"),a=C.get("sb-wrapper");if(e){if(B.client.isIE6){u();B.lib.addEvent(window,"scroll",u)}if(B.options.showOverlay){r=true;d.style.backgroundColor=B.options.overlayColor;C.setOpacity(d,0);if(!B.options.modal){B.lib.addEvent(d,"click",B.close)}a.style.display="none"}c.style.visibility="visible";if(r){var b=parseFloat(B.options.overlayOpacity);C.animate(d,"opacity",b,B.options.fadeDuration,e)}else{e()}}else{if(B.client.isIE6){B.lib.removeEvent(window,"scroll",u)}B.lib.removeEvent(d,"click",B.close);if(r){a.style.display="none";C.animate(d,"opacity",0,B.options.fadeDuration,function(){c.style.display="";a.style.display="";C.clearOpacity(d)})}else{c.style.visibility="hidden"}}}function F(a,c){var b=C.get("sb-nav-"+a);if(b){b.style.display=c?"":"none"}}function x(e,f){var c=C.get("sb-loading"),a=B.getCurrent().player,b=(a=="img"||a=="html");if(e){function d(){C.clearOpacity(c);if(f){f()}}C.setOpacity(c,0);c.style.display="";if(b){C.animate(c,"opacity",1,B.options.fadeDuration,d)}else{d()}}else{function d(){c.style.display="none";C.clearOpacity(c);if(f){f()}}if(b){C.animate(c,"opacity",0,B.options.fadeDuration,d)}else{d()}}}function H(k){var f=B.getCurrent();C.get("sb-title-inner").innerHTML=f.title||"";var c,l,h,b,m;if(B.options.displayNav){c=true;var d=B.gallery.length;if(d>1){if(B.options.continuous){l=m=true}else{l=(d-1)>B.current;m=B.current>0}}if(B.options.slideshowDelay>0&&B.hasNext()){b=!B.isPaused();h=!b}}else{c=l=h=b=m=false}F("close",c);F("next",l);F("play",h);F("pause",b);F("previous",m);var a="";if(B.options.displayCounter&&B.gallery.length>1){var d=B.gallery.length;if(B.options.counterType=="skip"){var g=0,i=d,j=parseInt(B.options.counterLimit)||0;if(j<d&&j>2){var e=Math.floor(j/2);g=B.current-e;if(g<0){g+=d}i=B.current+(j-e);if(i>d){i-=d}}while(g!=i){if(g==d){g=0}a+='<a onclick="Shadowbox.change('+g+');"';if(g==B.current){a+=' class="sb-counter-current"'}a+=">"+(g++)+"</a>"}}else{var a=(B.current+1)+" "+B.lang.of+" "+d}}C.get("sb-counter").innerHTML=a;k()}function y(i,j){var e=C.get("sb-wrapper"),b=C.get("sb-title"),h=C.get("sb-info"),a=C.get("sb-title-inner"),d=C.get("sb-info-inner"),c=parseInt(B.lib.getStyle(a,"height"))||0,f=parseInt(B.lib.getStyle(d,"height"))||0;var g=function(){a.style.visibility=d.style.visibility="hidden";H(j)};if(i){C.animate(b,"height",0,0.35);C.animate(h,"height",0,0.35);C.animate(e,"paddingTop",c,0.35);C.animate(e,"paddingBottom",f,0.35,g)}else{b.style.height=h.style.height="0px";e.style.paddingTop=c+"px";e.style.paddingBottom=f+"px";g()}}function w(d){var e=C.get("sb-wrapper"),b=C.get("sb-title"),c=C.get("sb-info"),g=C.get("sb-title-inner"),h=C.get("sb-info-inner"),a=parseInt(B.lib.getStyle(g,"height"))||0,f=parseInt(B.lib.getStyle(h,"height"))||0;g.style.visibility=h.style.visibility="";if(g.innerHTML!=""){C.animate(b,"height",a,0.35);C.animate(e,"paddingTop",0,0.35)}C.animate(c,"height",f,0.35);C.animate(e,"paddingBottom",0,0.35,d)}function E(e,g,h,f){var b=C.get("sb-body"),a=C.get("sb-wrapper"),c=parseInt(e),d=parseInt(g);if(h){C.animate(b,"height",c,B.options.resizeDuration);C.animate(a,"top",d,B.options.resizeDuration,f)}else{b.style.height=c+"px";a.style.top=d+"px";if(f){f()}}}function A(a,f,g,e){var b=C.get("sb-wrapper"),c=parseInt(a),d=parseInt(f);if(g){C.animate(b,"width",c,B.options.resizeDuration);C.animate(b,"left",d,B.options.resizeDuration,e)}else{b.style.width=c+"px";b.style.left=d+"px";if(e){e()}}}function s(d,a,b){var c=C.get("sb-body-inner");sw=C.get("sb-wrapper"),so=C.get("sb-overlay"),tb=sw.offsetHeight-c.offsetHeight,lr=sw.offsetWidth-c.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;B.setDimensions(d,a,max_h,max_w,tb,lr,b);return B.dimensions}B.skin=t})();if(typeof jQuery=="undefined"){throw"Unable to load Shadowbox adapter, jQuery not found"}if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox adapter, Shadowbox not found"}(function(c,d){d.lib={getStyle:function(a,b){return c(a).css(b)},remove:function(a){c(a).remove()},getTarget:function(a){return a.target},getPageXY:function(a){return[a.pageX,a.pageY]},preventDefault:function(a){a.preventDefault()},keyCode:function(a){return a.keyCode},addEvent:function(a,f,b){c(a).bind(f,b)},removeEvent:function(a,f,b){c(a).unbind(f,b)},append:function(a,b){c(a).append(b)}}})(jQuery,Shadowbox);(function(b){b.fn.shadowbox=function(a){return this.each(function(){var g=b(this);var f=b.extend({},a||{},b.metadata?g.metadata():b.meta?g.data():{});var h=this.className||"";f.width=parseInt((h.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((h.match(/h:(\d+)/)||[])[1])||f.height;Shadowbox.setup(g,f)})}})(jQuery);if(typeof Shadowbox=="undefined"){throw"Unable to load Shadowbox language file, Shadowbox not found."}Shadowbox.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.'}};(function(c){var d=c.util;c.swf=function(a){this.obj=a;this.resizable=true;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):300};c.swf.prototype={append:function(o,u,b){this.id=u;var q=document.createElement("div");q.id=u;o.appendChild(q);var p=b.resize_h,a=b.resize_w,t=this.obj.content,h=c.options.flashVersion,v=c.path+"libraries/swfobject/expressInstall.swf",s=c.options.flashVars,r=c.options.flashParams;swfobject.embedSWF(t,u,a,p,h,v,s,r)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox);(function(){var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,y=0,C=Object.prototype.toString,t=false;var E=function(n,l,I,h){I=I||[];var J=l=l||document;if(l.nodeType!==1&&l.nodeType!==9){return[]}if(!n||typeof n!=="string"){return I}var q=[],o,b,g,i,a,m,p=true,f=s(l);r.lastIndex=0;while((o=r.exec(n))!==null){q.push(o[1]);if(o[2]){m=RegExp.rightContext;break}}if(q.length>1&&x.exec(n)){if(q.length===2&&B.relative[q[0]]){b=A(q[0]+q[1],l)}else{b=B.relative[q[0]]?[l]:E(q.shift(),l);while(q.length){n=q.shift();if(B.relative[n]){n+=q.shift()}b=A(n,b)}}}else{if(!h&&q.length>1&&l.nodeType===9&&!f&&B.match.ID.test(q[0])&&!B.match.ID.test(q[q.length-1])){var d=E.find(q.shift(),l,f);l=d.expr?E.filter(d.expr,d.set)[0]:d.set[0]}if(l){var d=h?{expr:q.pop(),set:F(h)}:E.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&l.parentNode?l.parentNode:l,f);b=d.expr?E.filter(d.expr,d.set):d.set;if(q.length>0){g=F(b)}else{p=false}while(q.length){var j=q.pop(),c=j;if(!B.relative[j]){j=""}else{c=q.pop()}if(c==null){c=l}B.relative[j](g,c,f)}}else{g=q=[]}}if(!g){g=b}if(!g){throw"Syntax error, unrecognized expression: "+(j||n)}if(C.call(g)==="[object Array]"){if(!p){I.push.apply(I,g)}else{if(l&&l.nodeType===1){for(var k=0;g[k]!=null;k++){if(g[k]&&(g[k]===true||g[k].nodeType===1&&z(l,g[k]))){I.push(b[k])}}}else{for(var k=0;g[k]!=null;k++){if(g[k]&&g[k].nodeType===1){I.push(b[k])}}}}}else{F(g,I)}if(m){E(m,J,I,h);E.uniqueSort(I)}return I};E.uniqueSort=function(a){if(D){t=false;a.sort(D);if(t){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}}};E.matches=function(b,a){return E(b,null,null,a)};E.find=function(d,b,c){var f,h;if(!d){return[]}for(var i=0,j=B.order.length;i<j;i++){var g=B.order[i],h;if((h=B.match[g].exec(d))){var a=RegExp.leftContext;if(a.substr(a.length-1)!=="\\"){h[1]=(h[1]||"").replace(/\\/g,"");f=B.find[g](h,b,c);if(f!=null){d=d.replace(B.match[g],"");break}}}}if(!f){f=b.getElementsByTagName("*")}return{set:f,expr:d}};E.filter=function(f,h,b,o){var q=f,n=[],j=h,l,g,k=h&&h[0]&&s(h[0]);while(f&&h.length){for(var i in B.filter){if((l=B.match[i].exec(f))!=null){var a=B.filter[i],p,c;g=false;if(j==n){n=[]}if(B.preFilter[i]){l=B.preFilter[i](l,j,b,n,o,k);if(!l){g=p=true}else{if(l===true){continue}}}if(l){for(var m=0;(c=j[m])!=null;m++){if(c){p=a(c,l,m,j);var d=o^!!p;if(b&&p!=null){if(d){g=true}else{j[m]=false}}else{if(d){n.push(c);g=true}}}}}if(p!==undefined){if(!b){j=n}f=f.replace(B.match[i],"");if(!g){return[]}break}}}if(f==q){if(g==null){throw"Syntax error, unrecognized expression: "+f}else{break}}q=f}return j};var B=E.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\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(d,b,f){var h=typeof b==="string",c=h&&!/\W/.test(b),g=h&&!c;if(c&&!f){b=b.toUpperCase()}for(var i=0,j=d.length,a;i<j;i++){if((a=d[i])){while((a=a.previousSibling)&&a.nodeType!==1){}d[i]=g||a&&a.nodeName===b?a||false:a===b}}if(g){E.filter(b,d,true)}},">":function(b,h,a){var d=typeof h==="string";if(d&&!/\W/.test(h)){h=a?h:h.toUpperCase();for(var g=0,i=b.length;g<i;g++){var c=b[g];if(c){var f=c.parentNode;b[g]=f.nodeName===h?f:false}}}else{for(var g=0,i=b.length;g<i;g++){var c=b[g];if(c){b[g]=d?c.parentNode:c.parentNode===h}}if(d){E.filter(h,b,true)}}},"":function(c,f,a){var d=y++,g=e;if(!f.match(/\W/)){var b=f=a?f:f.toUpperCase();g=u}g("parentNode",f,d,c,b,a)},"~":function(c,f,a){var d=y++,g=e;if(typeof f==="string"&&!f.match(/\W/)){var b=f=a?f:f.toUpperCase();g=u}g("previousSibling",f,d,c,b,a)}},find:{ID:function(c,b,a){if(typeof b.getElementById!=="undefined"&&!a){var d=b.getElementById(c[1]);return d?[d]:[]}},NAME:function(f,b,a){if(typeof b.getElementsByName!=="undefined"){var g=[],c=b.getElementsByName(f[1]);for(var d=0,h=c.length;d<h;d++){if(c[d].getAttribute("name")===f[1]){g.push(c[d])}}return g.length===0?null:g}},TAG:function(b,a){return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(f,h,g,i,b,a){f=" "+f[1].replace(/\\/g,"")+" ";if(a){return f}for(var d=0,c;(c=h[d])!=null;d++){if(c){if(b^(c.className&&(" "+c.className+" ").indexOf(f)>=0)){if(!g){i.push(c)}}else{if(g){h[d]=false}}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(b,c){for(var a=0;c[a]===false;a++){}return c[a]&&s(c[a])?b[1]:b[1].toUpperCase()},CHILD:function(b){if(b[1]=="nth"){var a=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(b[2]=="even"&&"2n"||b[2]=="odd"&&"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=(a[1]+(a[2]||1))-0;b[3]=a[3]-0}b[0]=y++;return b},ATTR:function(c,g,f,h,b,a){var d=c[1].replace(/\\/g,"");if(!a&&B.attrMap[d]){c[1]=B.attrMap[d]}if(c[2]==="~="){c[4]=" "+c[4]+" "}return c},PSEUDO:function(b,f,d,g,a){if(b[1]==="not"){if(b[3].match(r).length>1||/^\w/.test(b[3])){b[3]=E(b[3],null,null,f)}else{var c=E.filter(b[3],f,d,true^a);if(!d){g.push.apply(g,c)}return false}}else{if(B.match.POS.test(b[0])||B.match.CHILD.test(b[0])){return true}}return b},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!E(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(b,c,d,a){return c===a.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0==b},eq:function(a,b,c){return c[3]-0==b}},filter:{PSEUDO:function(b,g,f,a){var h=g[1],d=B.filters[h];if(d){return d(b,f,g,a)}else{if(h==="contains"){return(b.textContent||b.innerText||"").indexOf(g[3])>=0}else{if(h==="not"){var c=g[3];for(var f=0,i=c.length;f<i;f++){if(c[f]===b){return false}}return true}}}},CHILD:function(b,j){var g=j[1],a=b;switch(g){case"only":case"first":while(a=a.previousSibling){if(a.nodeType===1){return false}}if(g=="first"){return true}a=b;case"last":while(a=a.nextSibling){if(a.nodeType===1){return false}}return true;case"nth":var k=j[2],c=j[3];if(k==1&&c==0){return true}var h=j[0],d=b.parentNode;if(d&&(d.sizcache!==h||!b.nodeIndex)){var i=0;for(a=d.firstChild;a;a=a.nextSibling){if(a.nodeType===1){a.nodeIndex=++i}}d.sizcache=h}var f=b.nodeIndex-c;if(k==0){return f==0}else{return(f%k==0&&f/k>=0)}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(b,d){var f=d[1],h=B.attrHandle[f]?B.attrHandle[f](b):b[f]!=null?b[f]:b.getAttribute(f),a=h+"",c=d[2],g=d[4];return h==null?c==="!=":c==="="?a===g:c==="*="?a.indexOf(g)>=0:c==="~="?(" "+a+" ").indexOf(g)>=0:!g?a&&h!==false:c==="!="?a!=g:c==="^="?a.indexOf(g)===0:c==="$="?a.substr(a.length-g.length)===g:c==="|="?a===g||a.substr(0,g.length+1)===g+"-":false},POS:function(b,f,d,a){var g=f[2],c=B.setFilters[g];if(c){return c(b,d,f,a)}}}};var x=B.match.POS;for(var v in B.match){B.match[v]=new RegExp(B.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var F=function(a,b){a=Array.prototype.slice.call(a);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(w){F=function(a,b){var d=b||[];if(C.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length==="number"){for(var c=0,f=a.length;c<f;c++){d.push(a[c])}}else{for(var c=0;a[c];c++){d.push(a[c])}}}return d}}var D;if(document.documentElement.compareDocumentPosition){D=function(b,c){var a=b.compareDocumentPosition(c)&4?-1:b===c?0:1;if(a===0){t=true}return a}}else{if("sourceIndex" in document.documentElement){D=function(b,c){var a=b.sourceIndex-c.sourceIndex;if(a===0){t=true}return a}}else{if(document.createRange){D=function(b,d){var c=b.ownerDocument.createRange(),f=d.ownerDocument.createRange();c.selectNode(b);c.collapse(true);f.selectNode(d);f.collapse(true);var a=c.compareBoundaryPoints(Range.START_TO_END,f);if(a===0){t=true}return a}}}}(function(){var b=document.createElement("div"),a="script"+(new Date).getTime();b.innerHTML="<a name='"+a+"'/>";var c=document.documentElement;c.insertBefore(b,c.firstChild);if(!!document.getElementById(a)){B.find.ID=function(g,f,d){if(typeof f.getElementById!=="undefined"&&!d){var h=f.getElementById(g[1]);return h?h.id===g[1]||typeof h.getAttributeNode!=="undefined"&&h.getAttributeNode("id").nodeValue===g[1]?[h]:undefined:[]}};B.filter.ID=function(d,g){var f=typeof d.getAttributeNode!=="undefined"&&d.getAttributeNode("id");return d.nodeType===1&&f&&f.nodeValue===g}}c.removeChild(b)})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0){B.find.TAG=function(g,b){var c=b.getElementsByTagName(g[1]);if(g[1]==="*"){var d=[];for(var f=0;c[f];f++){if(c[f].nodeType===1){d.push(c[f])}}c=d}return c}}a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"){B.attrHandle.href=function(b){return b.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var c=E,a=document.createElement("div");a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0){return}E=function(f,g,i,h){g=g||document;if(!h&&g.nodeType===9&&!s(g)){try{return F(g.querySelectorAll(f),i)}catch(d){}}return c(f,g,i,h)};for(var b in c){E[b]=c[b]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName("e").length===0){return}a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}B.order.splice(1,0,"CLASS");B.find.CLASS=function(d,c,b){if(typeof c.getElementsByClassName!=="undefined"&&!b){return c.getElementsByClassName(d[1])}}})()}function u(a,h,i,b,g,d){var f=a=="previousSibling"&&!d;for(var k=0,l=b.length;k<l;k++){var c=b[k];if(c){if(f&&c.nodeType===1){c.sizcache=i;c.sizset=k}c=c[a];var j=false;while(c){if(c.sizcache===i){j=b[c.sizset];break}if(c.nodeType===1&&!d){c.sizcache=i;c.sizset=k}if(c.nodeName===h){j=c;break}c=c[a]}b[k]=j}}}function e(a,h,i,b,g,d){var f=a=="previousSibling"&&!d;for(var k=0,l=b.length;k<l;k++){var c=b[k];if(c){if(f&&c.nodeType===1){c.sizcache=i;c.sizset=k}c=c[a];var j=false;while(c){if(c.sizcache===i){j=b[c.sizset];break}if(c.nodeType===1){if(!d){c.sizcache=i;c.sizset=k}if(typeof h!=="string"){if(c===h){j=true;break}}else{if(E.filter(h,[c]).length>0){j=c;break}}}c=c[a]}b[k]=j}}}var z=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var s=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&a.ownerDocument.documentElement.nodeName!=="HTML"};var A=function(i,a){var f=[],d="",c,g=a.nodeType?[a]:a;while((c=B.match.PSEUDO.exec(i))){d+=c[0];i=i.replace(B.match.PSEUDO,"")}i=B.relative[i]?i+"*":i;for(var b=0,h=g.length;b<h;b++){E(i,g[b],f)}return E.filter(d,f)};window.Sizzle=E})();var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();Shadowbox.options.players=["swf"];Shadowbox.options.useSizzle=true;
