(function(){function p(d){if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);d()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);d()}});document.documentElement.doScroll&&window==window.top&&function(){if(!e.ready){try{document.documentElement.doScroll("left")}catch(m){setTimeout(arguments.callee, 0);return}d()}}()}if(typeof window.onload=="function"){var g=window.onload;window.onload=function(){g();d()}}else window.onload=d}function w(){e.lib&&e.lang?e.load():setTimeout(w,0)}function r(d){var g;if(C.isLink(this))g=this;else for(g=e.lib.getTarget(d);!C.isLink(g)&&g.parentNode;)g=g.parentNode;e.lib.preventDefault(d);if(g){e.open(g);e.gallery.length&&e.lib.preventDefault(d)}}function x(d){if(e.options.enableKeys)e.lib[(d?"add":"remove")+"Event"](document,"keydown",I)}function I(d){var g;switch(e.lib.keyCode(d)){case 81:case 88:case 27:g= e.close;break;case 37:g=e.previous;break;case 39:g=e.next;break;case 32:g=typeof c=="number"?e.pause:e.play}if(g){e.lib.preventDefault(d);g()}}function M(){var d=e.getCurrent();if(d){var g=d.player=="inline"?"html":d.player;typeof e[g]!="function"&&e.error("Unknown player: "+g);var m=false;if(e.content){e.content.remove();m=true;e.revertOptions();d.options&&e.applyOptions(d.options)}C.removeChildren(e.skin.bodyEl());e.content=new e[g](d);x(false);e.skin.onLoad(e.content,m,function(){if(e.content)if(typeof e.content.ready!= "undefined")var q=setInterval(function(){if(e.content){if(e.content.ready){clearInterval(q);q=null;e.skin.onReady(y)}}else{clearInterval(q);q=null}},100);else e.skin.onReady(y)});if(e.gallery.length>1){d=e.gallery[e.current+1]||e.gallery[0];if(d.player=="img")(new Image).src=d.content;d=e.gallery[e.current-1]||e.gallery[e.gallery.length-1];if(d.player=="img")(new Image).src=d.content}}}function y(){if(e.content){e.content.append(e.skin.bodyEl(),a,e.dimensions);e.skin.onFinish(u)}}function u(){if(e.content){e.content.onLoad&& e.content.onLoad();e.options.onFinish&&e.options.onFinish();e.isPaused()||e.play();x(true)}}var B=navigator.userAgent.toLowerCase(),e={version:"3.0rc1",adapter:null,cache:[],client:{isIE:B.indexOf("msie")>-1,isIE6:B.indexOf("msie 6")>-1,isIE7:B.indexOf("msie 7")>-1,isGecko:B.indexOf("gecko")>-1&&B.indexOf("safari")==-1,isWebkit:B.indexOf("applewebkit/")>-1,isWindows:B.indexOf("windows")>-1||B.indexOf("win32")>-1,isMac:B.indexOf("macintosh")>-1||B.indexOf("mac os x")>-1,isLinux:B.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(d){return 1+Math.pow(d-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(d){if(d){Q=l({},e.options);l(e.options,d)}},revertOptions:function(){l(e.options,Q)},change:function(d){if(e.gallery){if(!e.gallery[d])if(e.options.continuous)d=d<0?e.gallery.length- 1:0;else return;e.current=d;if(typeof c=="number"){clearTimeout(c);c=null;j=f=0}e.options.onChange&&e.options.onChange();M()}},close:function(){if(b){b=false;x(false);if(e.content){e.content.remove();e.content=null}typeof c=="number"&&clearTimeout(c);c=null;j=0;e.options.onClose&&e.options.onClose();e.skin.onClose();e.revertOptions()}},contentId:function(){return a},error:function(d){if(e.debug)typeof window.console!="undefined"&&typeof console.log=="function"?console.log(d):alert(d)},getCurrent:function(){return e.current> -1?e.gallery[e.current]:null},hasNext:function(){return e.gallery.length>1&&(e.current!=e.gallery.length-1||e.options.continuous)},init:function(d){if(!E){E=true;(G=d=d||{})&&l(e.options,d);for(var g in e.options.ext)e.regex[g]=new RegExp(".("+e.options.ext[g].join("|")+")s*$","i");if(!e.path){var m=/(.+\/)shadowbox\.js/i,q;n(document.getElementsByTagName("script"),function(z){if(q=m.exec(z.src)){e.path=q[1];return false}})}if(e.options.adapter)e.adapter=e.options.adapter.toLowerCase();else{for(var A in e.libraries)if(typeof window[A]!= "undefined"){e.adapter=e.libraries[A];break}if(!e.adapter)e.adapter="base"}if(e.options.useSizzle&&!window.Sizzle)if(window.jQuery)window.Sizzle=jQuery.find;else C.include(e.path+"libraries/sizzle/sizzle.js");e.lang||C.include(e.path+"languages/shadowbox-"+e.options.language+".js");n(e.options.players,function(z){if((z=="swf"||z=="flv")&&!window.swfobject)C.include(e.path+"libraries/swfobject/swfobject.js");e[z]||C.include(e.path+"players/shadowbox-"+z+".js")});e.lib||C.include(e.path+"adapters/shadowbox-"+ e.adapter+".js");p(w)}},isActive:function(){return b},isPaused:function(){return c=="paused"},load:function(){if(!e.ready){e.ready=true;if(e.skin.options){l(e.options,e.skin.options);l(e.options,G)}e.skin.init();e.options.skipSetup||e.setup()}},next:function(){e.change(e.current+1)},open:function(d){if(C.isLink(d))d=e.inCache(d)?e.cache[d[e.expando]]:e.buildCacheObj(d);if(d.constructor==Array){e.gallery=d;e.current=0}else if(d.gallery){e.current=null;e.gallery=[];n(e.cache,function(H){if(H.gallery&& H.gallery==d.gallery){if(e.current==null&&H.content==d.content&&H.title==d.title)e.current=e.gallery.length;e.gallery.push(H)}});if(e.current==null){e.gallery.unshift(d);e.current=0}}else{e.gallery=[d];e.current=0}d=e.getCurrent();if(d.options){e.revertOptions();e.applyOptions(d.options)}for(var g,m,q,A,z,J=e.options.errors,D=0;D<e.gallery.length;++D){g=e.gallery[D]=l({},e.gallery[D]);m=false;if(q=e.regex.unsupported.exec(g.player))if(e.options.handleUnsupported=="link"){g.player="html";switch(q[1]){case "qtwmp":A= "either";z=[J.qt.url,J.qt.name,J.wmp.url,J.wmp.name];break;case "qtf4m":A="shared";z=[J.qt.url,J.qt.name,J.f4m.url,J.f4m.name];break;default:A="single";if(q[1]=="swf"||q[1]=="flv")q[1]="fla";z=[J[q[1]].url,J[q[1]].name]}q=e.lang.errors[A].replace(/\{(\d+)\}/g,function(H,P){return z[P]});g.content='<div class="sb-message">'+q+"</div>"}else m=true;else if(g.player=="inline")if(q=e.regex.inline.exec(g.content))if(A=C.get(q[1]))g.content=A.innerHTML;else e.error("Cannot find element with id "+q[1]);else e.error("Cannot find element id for inline content"); else if(g.player=="swf"||g.player=="flv")if(!swfobject.hasFlashPlayerVersion(g.options&&g.options.flashVersion||e.options.flashVersion)){g.width=310;g.height=177}if(m){e.gallery.splice(D,1);if(D<e.current)--e.current;else if(D==e.current)e.current=D>0?D-1:D;--D}}if(e.gallery.length){if(b)M();else{if(typeof e.options.onOpen=="function"&&e.options.onOpen(d)===false)return;e.skin.onOpen(d,M)}b=true}},pause:function(){if(typeof c=="number"){var d=(new Date).getTime();if(j=Math.max(0,j-(d-f))){clearTimeout(c); c="paused";e.skin.onPause&&e.skin.onPause()}}},play:function(){if(e.hasNext()){j||(j=e.options.slideshowDelay*1E3);if(j){f=(new Date).getTime();c=setTimeout(function(){j=f=0;e.next()},j);e.skin.onPlay&&e.skin.onPlay()}}},previous:function(){e.change(e.current-1)},setDimensions:function(d,g,m,q,A,z,J){var D=d=parseInt(d),H=g=parseInt(g),P=parseInt(e.options.viewportPadding)||0,R=2*P+A;if(D+R>=m)D=m-R;var V=2*P+z;if(H+V>=q)H=q-V;var T=d,U=g,v=(d-D)/d,h=(g-H)/g,k=v>0||h>0;if(J&&k&&e.options.handleOversize== "resize"){if(v>h)H=Math.round(g/d*D);else if(h>v)D=Math.round(d/g*H);U=H;T=D}e.dimensions={height:D+A,width:H+z,inner_h:D,inner_w:H,top:(m-(D+R))/2+P,left:(q-(H+V))/2+P,oversized:k,resize_h:T,resize_w:U}},setup:function(d,g){n(e.findLinks(d),function(m){e.addCache(m,g)})},teardown:function(d){n(e.findLinks(d),e.removeCache)},findLinks:function(d){if(d){var g=d.length;if(g){if(window.Sizzle)if(typeof d=="string")d=Sizzle(d);else if(g==2&&d.push&&typeof d[0]=="string"&&d[1].nodeType)d=Sizzle(d[0],d[1])}else d= [d]}else{d=[];var m;n(document.getElementsByTagName("a"),function(q){(m=q.getAttribute("rel"))&&e.regex.rel.test(m)&&d.push(q)})}return d},inCache:function(d){return typeof d[e.expando]=="number"&&e.cache[d[e.expando]]},addCache:function(d,g){if(!e.inCache(d)){d[e.expando]=e.cache.length;e.lib.addEvent(d,"click",r)}e.cache[d[e.expando]]=e.buildCacheObj(d,g)},removeCache:function(d){e.lib.removeEvent(d,"click",r);e.cache[d[e.expando]]=null;delete d[e.expando]},clearCache:function(){n(e.cache,function(d){e.removeCache(d.link)}); e.cache=[]},buildCacheObj:function(d,g){var m={link:d,title:d.getAttribute("title"),options:l({},g||{}),content:d.href};g&&n(["player","title","height","width","gallery"],function(A){if(typeof m.options[A]!="undefined"){m[A]=m.options[A];delete m.options[A]}});if(!m.player)m.player=e.getPlayer(m.content);if(d=d.getAttribute("rel")){var q=d.match(e.regex.gallery);if(q)m.gallery=escape(q[2]);n(d.split(";"),function(A){if(q=A.match(e.regex.param))if(q[1]=="options")eval("apply(obj.options,"+q[2]+")"); else m[q[1]]=q[2]})}return m},getPlayer:function(d){var g=e.regex,m=e.plugins,q=d.match(g.domain);q=q&&document.domain==q[1];if(d.indexOf("#")>-1&&q)return"inline";q=d.indexOf("?");if(q>-1)d=d.substring(0,q);if(g.img.test(d))return"img";if(g.swf.test(d))return m.fla?"swf":"unsupported-swf";if(g.flv.test(d))return m.fla?"flv":"unsupported-flv";if(g.qt.test(d))return m.qt?"qt":"unsupported-qt";if(g.wmp.test(d)){if(m.wmp)return"wmp";if(m.f4m)return"qt";if(e.client.isMac)return m.qt?"unsupported-f4m": "unsupported-qtf4m";return"unsupported-wmp"}if(g.qtwmp.test(d)){if(m.qt)return"qt";if(m.wmp)return"wmp";return e.client.isMac?"unsupported-qt":"unsupported-qtwmp"}return"iframe"}},C=e.util={animate:function(d,g,m,q,A){function z(v){v=J+v*D;if(H)C.setOpacity(d,v);else d.style[g]=v+"px"}var J=parseFloat(e.lib.getStyle(d,g));if(isNaN(J))J=0;var D=m-J;if(D==0)A&&A();else{var H=g=="opacity";if(!q||!H&&!e.options.animate||H&&!e.options.animateFade){z(1);A&&A()}else{q*=1E3;var P=(new Date).getTime(),R=e.options.ease, V=P+q,T,U=setInterval(function(){T=(new Date).getTime();if(T>=V){clearInterval(U);z(1);A&&A()}else z(R((T-P)/q))},10)}}},apply:function(d,g){for(var m in g)d[m]=g[m];return d},clearOpacity:function(d){d=d.style;if(window.ActiveXObject){if(typeof d.filter=="string"&&/alpha/i.test(d.filter))d.filter=d.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")}else d.opacity=""},each:function(d,g,m){for(var q=0,A=d.length;q<A;++q)if(g.call(m||d[q],d[q],q,d)===false)return},get:function(d){return document.getElementById(d)}, include:function(){var d={};return function(g){if(!d[g]){d[g]=true;var m=document.getElementsByTagName("head")[0],q=document.createElement("script");q.src=g;m.appendChild(q)}}}(),isLink:function(d){if(!d||!d.tagName)return false;d=d.tagName.toUpperCase();return d=="A"||d=="AREA"},removeChildren:function(d){for(;d.firstChild;)d.removeChild(d.firstChild)},setOpacity:function(d,g){d=d.style;if(window.ActiveXObject){d.zoom=1;d.filter=(d.filter||"").replace(/\s*alpha\([^\)]*\)/gi,"")+(g==1?"":" alpha(opacity="+ g*100+")")}else d.opacity=g}},l=C.apply,n=C.each,G,E=false,Q={},a="sb-content",b=false,c,f,j=0;if(navigator.plugins&&navigator.plugins.length){var i=[];n(navigator.plugins,function(d){i.push(d.name)});i=i.join();B=i.indexOf("Flip4Mac")>-1;e.plugins={fla:i.indexOf("Shockwave Flash")>-1,qt:i.indexOf("QuickTime")>-1,wmp:!B&&i.indexOf("Windows Media")>-1,f4m:B}}else{function o(d){try{var g=new ActiveXObject(d)}catch(m){}return!!g}e.plugins={fla:o("ShockwaveFlash.ShockwaveFlash"),qt:o("QuickTime.QuickTime"), wmp:o("wmplayer.ocx"),f4m:false}}window.Shadowbox=e})(); (function(){function p(){n.get("sb-container").style.top=document.documentElement.scrollTop+"px"}function w(b){if(b)n.each(E,function(c){c[0].style.visibility=c[1]||""});else{E=[];n.each(l.options.troubleElements,function(c){n.each(document.getElementsByTagName(c),function(f){E.push([f,f.style.visibility]);f.style.visibility="hidden"})})}}function r(b){var c=n.get("sb-overlay"),f=n.get("sb-container"),j=n.get("sb-wrapper");if(b){if(l.client.isIE6){p();l.lib.addEvent(window,"scroll",p)}if(l.options.showOverlay){G= true;c.style.backgroundColor=l.options.overlayColor;n.setOpacity(c,0);l.options.modal||l.lib.addEvent(c,"click",l.close);j.style.display="none"}f.style.visibility="visible";if(G){var i=parseFloat(l.options.overlayOpacity);n.animate(c,"opacity",i,l.options.fadeDuration,b)}else b()}else{l.client.isIE6&&l.lib.removeEvent(window,"scroll",p);l.lib.removeEvent(c,"click",l.close);if(G){j.style.display="none";n.animate(c,"opacity",0,l.options.fadeDuration,function(){f.style.display="";j.style.display=""; n.clearOpacity(c)})}else f.style.visibility="hidden"}}function x(b,c){if(b=n.get("sb-nav-"+b))b.style.display=c?"":"none"}function I(b,c){var f=n.get("sb-loading"),j=l.getCurrent().player;j=j=="img"||j=="html";if(b){function i(){n.clearOpacity(f);c&&c()}n.setOpacity(f,0);f.style.display="";j?n.animate(f,"opacity",1,l.options.fadeDuration,i):i()}else{function i(){f.style.display="none";n.clearOpacity(f);c&&c()}j?n.animate(f,"opacity",0,l.options.fadeDuration,i):i()}}function M(b){var c=l.getCurrent(); n.get("sb-title-inner").innerHTML=c.title||"";var f,j,i,o,d;if(l.options.displayNav){f=true;c=l.gallery.length;if(c>1)if(l.options.continuous)j=d=true;else{j=c-1>l.current;d=l.current>0}if(l.options.slideshowDelay>0&&l.hasNext()){o=!l.isPaused();i=!o}}else f=j=i=o=d=false;x("close",f);x("next",j);x("play",i);x("pause",o);x("previous",d);j="";if(l.options.displayCounter&&l.gallery.length>1){c=l.gallery.length;if(l.options.counterType=="skip"){i=0;d=c;o=parseInt(l.options.counterLimit)||0;if(o<c&&o> 2){d=Math.floor(o/2);i=l.current-d;if(i<0)i+=c;d=l.current+(o-d);if(d>c)d-=c}for(;i!=d;){if(i==c)i=0;j+='<a onclick="Shadowbox.change('+i+');"';if(i==l.current)j+=' class="sb-counter-current"';j+=">"+i++ +"</a>"}}else j=l.current+1+" "+l.lang.of+" "+c}n.get("sb-counter").innerHTML=j;b()}function y(b,c){var f=n.get("sb-wrapper"),j=n.get("sb-title"),i=n.get("sb-info"),o=n.get("sb-title-inner"),d=n.get("sb-info-inner"),g=parseInt(l.lib.getStyle(o,"height"))||0,m=parseInt(l.lib.getStyle(d,"height"))|| 0,q=function(){o.style.visibility=d.style.visibility="hidden";M(c)};if(b){n.animate(j,"height",0,0.35);n.animate(i,"height",0,0.35);n.animate(f,"paddingTop",g,0.35);n.animate(f,"paddingBottom",m,0.35,q)}else{j.style.height=i.style.height="0px";f.style.paddingTop=g+"px";f.style.paddingBottom=m+"px";q()}}function u(b){var c=n.get("sb-wrapper"),f=n.get("sb-title"),j=n.get("sb-info"),i=n.get("sb-title-inner"),o=n.get("sb-info-inner"),d=parseInt(l.lib.getStyle(i,"height"))||0,g=parseInt(l.lib.getStyle(o, "height"))||0;i.style.visibility=o.style.visibility="";if(i.innerHTML!=""){n.animate(f,"height",d,0.35);n.animate(c,"paddingTop",0,0.35)}n.animate(j,"height",g,0.35);n.animate(c,"paddingBottom",0,0.35,b)}function B(b,c,f,j){var i=n.get("sb-body"),o=n.get("sb-wrapper");b=parseInt(b);c=parseInt(c);if(f){n.animate(i,"height",b,l.options.resizeDuration);n.animate(o,"top",c,l.options.resizeDuration,j)}else{i.style.height=b+"px";o.style.top=c+"px";j&&j()}}function e(b,c,f,j){var i=n.get("sb-wrapper");b= parseInt(b);c=parseInt(c);if(f){n.animate(i,"width",b,l.options.resizeDuration);n.animate(i,"left",c,l.options.resizeDuration,j)}else{i.style.width=b+"px";i.style.left=c+"px";j&&j()}}function C(b,c,f){var j=n.get("sb-body-inner");sw=n.get("sb-wrapper");so=n.get("sb-overlay");tb=sw.offsetHeight-j.offsetHeight;lr=sw.offsetWidth-j.offsetWidth;max_h=so.offsetHeight;max_w=so.offsetWidth;l.setDimensions(b,c,max_h,max_w,tb,lr,f);return l.dimensions}var l=Shadowbox,n=l.util,G=false,E=[],Q=["sb-nav-close", "sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],a={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-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 style="clear:both"></div></div></div><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><a onclick="Shadowbox.close()">{cancel}</a></div></div></div></div>', options:{animSequence:"sync",autoDimensions:false,counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]},init:function(){var b=a.markup.replace(/\{(\w+)\}/g,function(o,d){return l.lang[d]});l.lib.append(document.body,b);if(l.client.isIE6){n.get("sb-body").style.zoom=1;var c,f,j=/url\("(.*\.png)"\)/; n.each(Q,function(o){if(c=n.get(o))if(f=l.lib.getStyle(c,"backgroundImage").match(j)){c.style.backgroundImage="none";c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+f[1]+",sizingMethod=scale);"}})}var i;l.lib.addEvent(window,"resize",function(){if(i){clearTimeout(i);i=null}if(l.isActive())i=setTimeout(function(){a.onWindowResize();var o=l.content;o&&o.onWindowResize&&o.onWindowResize()},50)})},bodyEl:function(){return n.get("sb-body-inner")},onOpen:function(b, c){w(false);var f=l.options.autoDimensions&&"height"in b?b.height:l.options.initialHeight;b=l.options.autoDimensions&&"width"in b?b.width:l.options.initialWidth;n.get("sb-container").style.display="block";f=C(f,b);B(f.inner_h,f.top,false);e(f.width,f.left,false);r(c)},onLoad:function(b,c,f){I(true);y(c,function(){if(b){if(!c)n.get("sb-wrapper").style.display="";f()}})},onReady:function(b){var c=l.content;if(c){c=C(c.height,c.width,c.resizable);a.resizeContent(c.inner_h,c.width,c.top,c.left,true,function(){u(b)})}}, onFinish:function(b){I(false,b)},onClose:function(){r();w(true)},onPlay:function(){x("play",false);x("pause",true)},onPause:function(){x("pause",false);x("play",true)},onWindowResize:function(){var b=l.content;if(b){var c=C(b.height,b.width,b.resizable);e(c.width,c.left,false);B(c.inner_h,c.top,false);var f=n.get(l.contentId());if(f)if(b.resizable&&l.options.handleOversize=="resize"){f.height=c.resize_h;f.width=c.resize_w}}},resizeContent:function(b,c,f,j,i,o){if(b=l.content){var d=C(b.height,b.width, b.resizable);switch(l.options.animSequence){case "hw":B(d.inner_h,d.top,i,function(){e(d.width,d.left,i,o)});break;case "wh":e(d.width,d.left,i,function(){B(d.inner_h,d.top,i,o)});break;default:e(d.width,d.left,i);B(d.inner_h,d.top,i,o)}}}};l.skin=a})();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(p,w){w.lib={getStyle:function(r,x){return p(r).css(x)},remove:function(r){p(r).remove()},getTarget:function(r){return r.target},getPageXY:function(r){return[r.pageX,r.pageY]},preventDefault:function(r){r.preventDefault()},keyCode:function(r){return r.keyCode},addEvent:function(r,x,I){p(r).bind(x,I)},removeEvent:function(r,x,I){p(r).unbind(x,I)},append:function(r,x){p(r).append(x)}}})(jQuery,Shadowbox); (function(p){p.fn.shadowbox=function(w){return this.each(function(){var r=p(this),x=p.extend({},w||{},p.metadata?r.metadata():p.meta?r.data():{}),I=this.className||"";x.width=parseInt((I.match(/w:(\d+)/)||[])[1])||x.width;x.height=parseInt((I.match(/h:(\d+)/)||[])[1])||x.height;Shadowbox.setup(r,x)})}})(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(p){var w=p.util;p.flv=function(r){this.obj=r;this.resizable=true;this.height=r.height?parseInt(r.height,10):300;if(p.options.showMovieControls==true)this.height+=20;this.width=r.width?parseInt(r.width,10):300};p.flv.prototype={append:function(r,x,I){this.id=x;var M=document.createElement("div");M.id=x;r.appendChild(M);r=I.resize_h;I=I.resize_w;M=p.path+"libraries/mediaplayer/player.swf";var y=p.options.flashVersion,u=p.path+"libraries/swfobject/expressInstall.swf",B=w.apply({file:this.obj.content, height:r,width:I,autostart:p.options.autoplayMovies?"true":"false",controlbar:p.options.showMovieControls?"bottom":"none",backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},p.options.flashVars);swfobject.embedSWF(M,x,I,r,y,u,B,p.options.flashParams)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox); (function(p){p.html=function(w){this.obj=w;this.height=w.height?parseInt(w.height,10):300;this.width=w.width?parseInt(w.width,10):500};p.html.prototype={append:function(w,r){this.id=r;var x=document.createElement("div");x.id=r;x.className="html";x.innerHTML=this.obj.content;w.appendChild(x)},remove:function(){var w=document.getElementById(this.id);w&&p.lib.remove(w)}}})(Shadowbox); (function(p){p.iframe=function(w){this.obj=w;var r=document.getElementById("sb-overlay");this.height=w.height?parseInt(w.height,10):r.offsetHeight;this.width=w.width?parseInt(w.width,10):r.offsetWidth};p.iframe.prototype={append:function(w,r){this.id=r;r='<iframe id="'+r+'" name="'+r+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(p.client.isIE){r+=' allowtransparency="true"';if(p.client.isIE6)r+=" src=\"javascript:false;document.write('');\""}r+= "></iframe>";w.innerHTML=r},remove:function(){var w=document.getElementById(this.id);if(w){p.lib.remove(w);p.client.isGecko&&delete window.frames[this.id]}},onLoad:function(){(p.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id]).location.href=this.obj.content}}})(Shadowbox); (function(p){function w(){u={x:0,y:0,start_x:null,start_y:null}}function r(l,n,G){if(l){w();l=["position:absolute","height:"+n+"px","width:"+G+"px","cursor:"+(p.client.isGecko?"-moz-grab":"move"),"background-color:"+(p.client.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");p.lib.append(p.skin.bodyEl(),'<div id="'+e+'" style="'+l+'"></div>');p.lib.addEvent(y.get(e),"mousedown",x)}else{if(l=y.get(e)){p.lib.removeEvent(l,"mousedown",x);p.lib.remove(l)}B=null}}function x(l){p.lib.preventDefault(l); l=p.lib.getPageXY(l);u.start_x=l[0];u.start_y=l[1];B=y.get(p.contentId());p.lib.addEvent(document,"mousemove",M);p.lib.addEvent(document,"mouseup",I);if(p.client.isGecko)y.get(e).style.cursor="-moz-grabbing"}function I(){p.lib.removeEvent(document,"mousemove",M);p.lib.removeEvent(document,"mouseup",I);if(p.client.isGecko)y.get(e).style.cursor="-moz-grab"}function M(l){var n=p.content,G=p.dimensions;l=p.lib.getPageXY(l);var E=l[0]-u.start_x;u.start_x+=E;u.x=Math.max(Math.min(0,u.x+E),G.inner_w-n.width); B.style.left=u.x+"px";l=l[1]-u.start_y;u.start_y+=l;u.y=Math.max(Math.min(0,u.y+l),G.inner_h-n.height);B.style.top=u.y+"px"}var y=p.util,u,B,e="sb-drag-layer",C;p.img=function(l){this.obj=l;this.resizable=true;this.ready=false;var n=this;C=new Image;C.onload=function(){n.height=l.height?parseInt(l.height,10):C.height;n.width=l.width?parseInt(l.width,10):C.width;n.ready=true;C.onload="";C=null};C.src=l.content};p.img.prototype={append:function(l,n,G){this.id=n;var E=document.createElement("img");E.id= n;E.src=this.obj.content;E.style.position="absolute";E.setAttribute("height",G.resize_h);E.setAttribute("width",G.resize_w);l.appendChild(E)},remove:function(){var l=y.get(this.id);l&&p.lib.remove(l);r(false);if(C){C.onload="";C=null}},onLoad:function(){var l=p.dimensions;l.oversized&&p.options.handleOversize=="drag"&&r(true,l.resize_h,l.resize_w)},onWindowResize:function(){if(B){var l=p.content,n=p.dimensions,G=parseInt(p.lib.getStyle(B,"top")),E=parseInt(p.lib.getStyle(B,"left"));if(G+l.height< n.inner_h)B.style.top=n.inner_h-l.height+"px";if(E+l.width<n.inner_w)B.style.left=n.inner_w-l.width+"px"}}}})(Shadowbox); (function(p){p.swf=function(w){this.obj=w;this.resizable=true;this.height=w.height?parseInt(w.height,10):300;this.width=w.width?parseInt(w.width,10):300};p.swf.prototype={append:function(w,r,x){this.id=r;var I=document.createElement("div");I.id=r;w.appendChild(I);swfobject.embedSWF(this.obj.content,r,x.resize_w,x.resize_h,p.options.flashVersion,p.path+"libraries/swfobject/expressInstall.swf",p.options.flashVars,p.options.flashParams)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox); (function(){function p(a,b,c,f,j,i){j=a=="previousSibling"&&!i;for(var o=0,d=f.length;o<d;o++){var g=f[o];if(g){if(j&&g.nodeType===1){g.sizcache=c;g.sizset=o}g=g[a];for(var m=false;g;){if(g.sizcache===c){m=f[g.sizset];break}if(g.nodeType===1&&!i){g.sizcache=c;g.sizset=o}if(g.nodeName===b){m=g;break}g=g[a]}f[o]=m}}}function w(a,b,c,f,j,i){j=a=="previousSibling"&&!i;for(var o=0,d=f.length;o<d;o++){var g=f[o];if(g){if(j&&g.nodeType===1){g.sizcache=c;g.sizset=o}g=g[a];for(var m=false;g;){if(g.sizcache=== c){m=f[g.sizset];break}if(g.nodeType===1){if(!i){g.sizcache=c;g.sizset=o}if(typeof b!=="string"){if(g===b){m=true;break}}else if(y.filter(b,[g]).length>0){m=g;break}}g=g[a]}f[o]=m}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,x=0,I=Object.prototype.toString,M=false,y=function(a,b,c,f){c=c||[];var j=b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return c;var i=[],o,d,g,m,q=true,A=E(b); for(r.lastIndex=0;(o=r.exec(a))!==null;){i.push(o[1]);if(o[2]){m=RegExp.rightContext;break}}if(i.length>1&&B.exec(a))if(i.length===2&&u.relative[i[0]])d=Q(i[0]+i[1],b);else for(d=u.relative[i[0]]?[b]:y(i.shift(),b);i.length;){a=i.shift();if(u.relative[a])a+=i.shift();d=Q(a,d)}else{if(!f&&i.length>1&&b.nodeType===9&&!A&&u.match.ID.test(i[0])&&!u.match.ID.test(i[i.length-1])){o=y.find(i.shift(),b,A);b=o.expr?y.filter(o.expr,o.set)[0]:o.set[0]}if(b){o=f?{expr:i.pop(),set:C(f)}:y.find(i.pop(),i.length=== 1&&(i[0]==="~"||i[0]==="+")&&b.parentNode?b.parentNode:b,A);d=o.expr?y.filter(o.expr,o.set):o.set;if(i.length>0)g=C(d);else q=false;for(;i.length;){var z=i.pop();o=z;if(u.relative[z])o=i.pop();else z="";if(o==null)o=b;u.relative[z](g,o,A)}}else g=[]}g||(g=d);if(!g)throw"Syntax error, unrecognized expression: "+(z||a);if(I.call(g)==="[object Array]")if(q)if(b&&b.nodeType===1)for(a=0;g[a]!=null;a++){if(g[a]&&(g[a]===true||g[a].nodeType===1&&G(b,g[a])))c.push(d[a])}else for(a=0;g[a]!=null;a++)g[a]&& g[a].nodeType===1&&c.push(d[a]);else c.push.apply(c,g);else C(g,c);if(m){y(m,j,c,f);y.uniqueSort(c)}return c};y.uniqueSort=function(a){if(n){M=false;a.sort(n);if(M)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}};y.matches=function(a,b){return y(a,null,null,b)};y.find=function(a,b,c){var f,j;if(!a)return[];for(var i=0,o=u.order.length;i<o;i++){var d=u.order[i];if(j=u.match[d].exec(a)){var g=RegExp.leftContext;if(g.substr(g.length-1)!=="\\"){j[1]=(j[1]||"").replace(/\\/g,"");f=u.find[d](j, b,c);if(f!=null){a=a.replace(u.match[d],"");break}}}}f||(f=b.getElementsByTagName("*"));return{set:f,expr:a}};y.filter=function(a,b,c,f){for(var j=a,i=[],o=b,d,g,m=b&&b[0]&&E(b[0]);a&&b.length;){for(var q in u.filter)if((d=u.match[q].exec(a))!=null){var A=u.filter[q],z,J;g=false;if(o==i)i=[];if(u.preFilter[q])if(d=u.preFilter[q](d,o,c,i,f,m)){if(d===true)continue}else g=z=true;if(d)for(var D=0;(J=o[D])!=null;D++)if(J){z=A(J,d,D,o);var H=f^!!z;if(c&&z!=null)if(H)g=true;else o[D]=false;else if(H){i.push(J); g=true}}if(z!==undefined){c||(o=i);a=a.replace(u.match[q],"");if(!g)return[];break}}if(a==j)if(g==null)throw"Syntax error, unrecognized expression: "+a;else break;j=a}return o};var u=y.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(a,b,c){var f=typeof b==="string",j=f&&!/\W/.test(b);f=f&&!j;if(j&&!c)b=b.toUpperCase();c=0;j=a.length;for(var i;c<j;c++)if(i=a[c]){for(;(i=i.previousSibling)&&i.nodeType!==1;);a[c]=f||i&&i.nodeName===b?i||false:i===b}f&& y.filter(b,a,true)},">":function(a,b,c){var f=typeof b==="string";if(f&&!/\W/.test(b)){b=c?b:b.toUpperCase();c=0;for(var j=a.length;c<j;c++){var i=a[c];if(i){f=i.parentNode;a[c]=f.nodeName===b?f:false}}}else{c=0;for(j=a.length;c<j;c++)if(i=a[c])a[c]=f?i.parentNode:i.parentNode===b;f&&y.filter(b,a,true)}},"":function(a,b,c){var f=x++,j=w;if(!b.match(/\W/)){var i=b=c?b:b.toUpperCase();j=p}j("parentNode",b,f,a,i,c)},"~":function(a,b,c){var f=x++,j=w;if(typeof b==="string"&&!b.match(/\W/)){var i=b=c? b:b.toUpperCase();j=p}j("previousSibling",b,f,a,i,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[];b=b.getElementsByName(a[1]);for(var f=0,j=b.length;f<j;f++)b[f].getAttribute("name")===a[1]&&c.push(b[f]);return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,f,j,i){a=" "+a[1].replace(/\\/g,"")+" "; if(i)return a;i=0;for(var o;(o=b[i])!=null;i++)if(o)if(j^(o.className&&(" "+o.className+" ").indexOf(a)>=0))c||f.push(o);else if(c)b[i]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){for(var c=0;b[c]===false;c++);return b[c]&&E(b[c])?a[1]:a[1].toUpperCase()},CHILD:function(a){if(a[1]=="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]=="even"&&"2n"||a[2]=="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=x++;return a},ATTR:function(a, b,c,f,j,i){b=a[1].replace(/\\/g,"");if(!i&&u.attrMap[b])a[1]=u.attrMap[b];if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,f,j){if(a[1]==="not")if(a[3].match(r).length>1||/^\w/.test(a[3]))a[3]=y(a[3],null,null,b);else{a=y.filter(a[3],b,c,true^j);c||f.push.apply(f,a);return false}else if(u.match.POS.test(a[0])||u.match.CHILD.test(a[0]))return true;return a},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){return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!y(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(a,b,c,f){return b===f.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(a,b,c,f){var j=b[1],i=u.filters[j];if(i)return i(a,c,b,f);else if(j==="contains")return(a.textContent||a.innerText||"").indexOf(b[3])>=0;else if(j==="not"){b=b[3];c=0;for(f=b.length;c<f;c++)if(b[c]===a)return false;return true}},CHILD:function(a,b){var c=b[1],f=a;switch(c){case "only":case "first":for(;f=f.previousSibling;)if(f.nodeType===1)return false;if(c=="first")return true;f=a;case "last":for(;f=f.nextSibling;)if(f.nodeType=== 1)return false;return true;case "nth":c=b[2];var j=b[3];if(c==1&&j==0)return true;b=b[0];var i=a.parentNode;if(i&&(i.sizcache!==b||!a.nodeIndex)){var o=0;for(f=i.firstChild;f;f=f.nextSibling)if(f.nodeType===1)f.nodeIndex=++o;i.sizcache=b}a=a.nodeIndex-j;return c==0?a==0:a%c==0&&a/c>=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(a,b){var c=b[1];a=u.attrHandle[c]?u.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c);c=a+"";var f=b[2];b=b[4];return a==null?f==="!=":f==="="?c===b:f==="*="?c.indexOf(b)>=0:f==="~="?(" "+c+" ").indexOf(b)>=0:!b?c&&a!==false:f==="!="?c!=b:f==="^="?c.indexOf(b)===0:f==="$="?c.substr(c.length-b.length)===b:f==="|="?c===b||c.substr(0,b.length+1)===b+"-":false},POS:function(a,b,c,f){var j=u.setFilters[b[2]];if(j)return j(a,c,b,f)}}},B=u.match.POS;for(var e in u.match)u.match[e]=new RegExp(u.match[e].source+ /(?![^\[]*\])(?![^\(]*\))/.source);var C=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(l){C=function(a,b){b=b||[];if(I.call(a)==="[object Array]")Array.prototype.push.apply(b,a);else if(typeof a.length==="number")for(var c=0,f=a.length;c<f;c++)b.push(a[c]);else for(c=0;a[c];c++)b.push(a[c]);return b}}var n;if(document.documentElement.compareDocumentPosition)n=function(a,b){a=a.compareDocumentPosition(b)& 4?-1:a===b?0:1;if(a===0)M=true;return a};else if("sourceIndex"in document.documentElement)n=function(a,b){a=a.sourceIndex-b.sourceIndex;if(a===0)M=true;return a};else if(document.createRange)n=function(a,b){var c=a.ownerDocument.createRange(),f=b.ownerDocument.createRange();c.selectNode(a);c.collapse(true);f.selectNode(b);f.collapse(true);a=c.compareBoundaryPoints(Range.START_TO_END,f);if(a===0)M=true;return a};(function(){var a=document.createElement("div"),b="script"+(new Date).getTime();a.innerHTML= "<a name='"+b+"'/>";var c=document.documentElement;c.insertBefore(a,c.firstChild);if(document.getElementById(b)){u.find.ID=function(f,j,i){if(typeof j.getElementById!=="undefined"&&!i)return(j=j.getElementById(f[1]))?j.id===f[1]||typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id").nodeValue===f[1]?[j]:undefined:[]};u.filter.ID=function(f,j){var i=typeof f.getAttributeNode!=="undefined"&&f.getAttributeNode("id");return f.nodeType===1&&i&&i.nodeValue===j}}c.removeChild(a)})();(function(){var a= document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)u.find.TAG=function(b,c){c=c.getElementsByTagName(b[1]);if(b[1]==="*"){b=[];for(var f=0;c[f];f++)c[f].nodeType===1&&b.push(c[f]);c=b}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(b){return b.getAttribute("href",2)}})();document.querySelectorAll&&function(){var a= y,b=document.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){y=function(f,j,i,o){j=j||document;if(!o&&j.nodeType===9&&!E(j))try{return C(j.querySelectorAll(f),i)}catch(d){}return a(f,j,i,o)};for(var c in a)y[c]=a[c]}}();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){a.lastChild.className="e";if(a.getElementsByClassName("e").length!==1){u.order.splice(1,0,"CLASS");u.find.CLASS=function(b,c,f){if(typeof c.getElementsByClassName!=="undefined"&&!f)return c.getElementsByClassName(b[1])}}}}();var G=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)},E=function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&a.ownerDocument.documentElement.nodeName!== "HTML"},Q=function(a,b){var c=[],f="",j;for(b=b.nodeType?[b]:b;j=u.match.PSEUDO.exec(a);){f+=j[0];a=a.replace(u.match.PSEUDO,"")}a=u.relative[a]?a+"*":a;j=0;for(var i=b.length;j<i;j++)y(a,b[j],c);return y.filter(f,c)};window.Sizzle=y})(); var swfobject=function(){function p(){if(H.readyState=="complete"){H.parentNode.removeChild(H);w()}}function w(){if(!T){if(v.ie&&v.win){var h=E("span");try{var k=m.getElementsByTagName("body")[0].appendChild(h);k.parentNode.removeChild(k)}catch(s){return}}T=true;if(P){clearInterval(P);P=null}h=A.length;for(k=0;k<h;k++)A[k]()}}function r(h){if(T)h();else A[A.length]=h}function x(h){if(typeof g.addEventListener!=j)g.addEventListener("load",h,false);else if(typeof m.addEventListener!=j)m.addEventListener("load", h,false);else if(typeof g.attachEvent!=j)Q(g,"onload",h);else if(typeof g.onload=="function"){var k=g.onload;g.onload=function(){k();h()}}else g.onload=h}function I(){for(var h=z.length,k=0;k<h;k++){var s=z[k].id;if(v.pv[0]>0){var t=G(s);if(t){z[k].width=t.getAttribute("width")?t.getAttribute("width"):"0";z[k].height=t.getAttribute("height")?t.getAttribute("height"):"0";if(a(z[k].swfVersion)){v.webkit&&v.webkit<312&&M(t);c(s,true)}else z[k].expressInstall&&!U&&a("6.0.65")&&(v.win||v.mac)?y(z[k]): u(t)}}else c(s,true)}}function M(h){var k=h.getElementsByTagName(i)[0];if(k){var s=E("embed"),t=k.attributes;if(t)for(var F=t.length,L=0;L<F;L++)t[L].nodeName=="DATA"?s.setAttribute("src",t[L].nodeValue):s.setAttribute(t[L].nodeName,t[L].nodeValue);if(k=k.childNodes){t=k.length;for(F=0;F<t;F++)k[F].nodeType==1&&k[F].nodeName=="PARAM"&&s.setAttribute(k[F].getAttribute("name"),k[F].getAttribute("value"))}h.parentNode.replaceChild(s,h)}}function y(h){U=true;var k=G(h.id);if(k){if(h.altContentId){var s= G(h.altContentId);if(s){R=s;V=h.altContentId}}else R=B(k);if(!/%$/.test(h.width)&&parseInt(h.width,10)<310)h.width="310";if(!/%$/.test(h.height)&&parseInt(h.height,10)<137)h.height="137";m.title=m.title.slice(0,47)+" - Flash Player Installation";s="MMredirectURL="+g.location+"&MMplayerType="+(v.ie&&v.win?"ActiveX":"PlugIn")+"&MMdoctitle="+m.title;var t=h.id;if(v.ie&&v.win&&k.readyState!=4){var F=E("div");t+="SWFObjectNew";F.setAttribute("id",t);k.parentNode.insertBefore(F,k);k.style.display="none"; Q(g,"onload",function(){k.parentNode.removeChild(k)})}e({data:h.expressInstall,id:d,width:h.width,height:h.height},{flashvars:s},t)}}function u(h){if(v.ie&&v.win&&h.readyState!=4){var k=E("div");h.parentNode.insertBefore(k,h);k.parentNode.replaceChild(B(h),k);h.style.display="none";Q(g,"onload",function(){h.parentNode.removeChild(h)})}else h.parentNode.replaceChild(B(h),h)}function B(h){var k=E("div");if(v.win&&v.ie)k.innerHTML=h.innerHTML;else if(h=h.getElementsByTagName(i)[0])if(h=h.childNodes)for(var s= h.length,t=0;t<s;t++)!(h[t].nodeType==1&&h[t].nodeName=="PARAM")&&h[t].nodeType!=8&&k.appendChild(h[t].cloneNode(true));return k}function e(h,k,s){var t,F=G(s);if(F){if(typeof h.id==j)h.id=s;if(v.ie&&v.win){var L="";for(var N in h)if(h[N]!=Object.prototype[N])if(N.toLowerCase()=="data")k.movie=h[N];else if(N.toLowerCase()=="styleclass")L+=' class="'+h[N]+'"';else if(N.toLowerCase()!="classid")L+=" "+N+'="'+h[N]+'"';N="";for(var K in k)if(k[K]!=Object.prototype[K])N+='<param name="'+K+'" value="'+ k[K]+'" />';F.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+L+">"+N+"</object>";J[J.length]=h.id;t=G(h.id)}else if(v.webkit&&v.webkit<312){K=E("embed");K.setAttribute("type",o);for(L in h)if(h[L]!=Object.prototype[L])if(L.toLowerCase()=="data")K.setAttribute("src",h[L]);else if(L.toLowerCase()=="styleclass")K.setAttribute("class",h[L]);else L.toLowerCase()!="classid"&&K.setAttribute(L,h[L]);for(var S in k)k[S]!=Object.prototype[S]&&S.toLowerCase()!="movie"&&K.setAttribute(S, k[S]);F.parentNode.replaceChild(K,F);t=K}else{K=E(i);K.setAttribute("type",o);for(var O in h)if(h[O]!=Object.prototype[O])if(O.toLowerCase()=="styleclass")K.setAttribute("class",h[O]);else O.toLowerCase()!="classid"&&K.setAttribute(O,h[O]);for(var W in k)k[W]!=Object.prototype[W]&&W.toLowerCase()!="movie"&&C(K,W,k[W]);F.parentNode.replaceChild(K,F);t=K}}return t}function C(h,k,s){var t=E("param");t.setAttribute("name",k);t.setAttribute("value",s);h.appendChild(t)}function l(h){var k=G(h);if(k&&(k.nodeName== "OBJECT"||k.nodeName=="EMBED"))if(v.ie&&v.win)k.readyState==4?n(h):g.attachEvent("onload",function(){n(h)});else k.parentNode.removeChild(k)}function n(h){if(h=G(h)){for(var k in h)if(typeof h[k]=="function")h[k]=null;h.parentNode.removeChild(h)}}function G(h){var k=null;try{k=m.getElementById(h)}catch(s){}return k}function E(h){return m.createElement(h)}function Q(h,k,s){h.attachEvent(k,s);D[D.length]=[h,k,s]}function a(h){var k=v.pv;h=h.split(".");h[0]=parseInt(h[0],10);h[1]=parseInt(h[1],10)|| 0;h[2]=parseInt(h[2],10)||0;return k[0]>h[0]||k[0]==h[0]&&k[1]>h[1]||k[0]==h[0]&&k[1]==h[1]&&k[2]>=h[2]?true:false}function b(h,k){if(!(v.ie&&v.mac)){var s=m.getElementsByTagName("head")[0],t=E("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");!(v.ie&&v.win)&&typeof m.createTextNode!=j&&t.appendChild(m.createTextNode(h+" {"+k+"}"));s.appendChild(t);if(v.ie&&v.win&&typeof m.styleSheets!=j&&m.styleSheets.length>0){s=m.styleSheets[m.styleSheets.length-1];typeof s.addRule==i&& s.addRule(h,k)}}}function c(h,k){k=k?"visible":"hidden";if(T&&G(h))G(h).style.visibility=k;else b("#"+h,"visibility:"+k)}function f(h){return/[\\\"<>\.;]/.exec(h)!=null?encodeURIComponent(h):h}var j="undefined",i="object",o="application/x-shockwave-flash",d="SWFObjectExprInst",g=window,m=document,q=navigator,A=[],z=[],J=[],D=[],H,P=null,R=null,V=null,T=false,U=false,v=function(){var h=typeof m.getElementById!=j&&typeof m.getElementsByTagName!=j&&typeof m.createElement!=j,k=[0,0,0],s=null;if(typeof q.plugins!= j&&typeof q.plugins["Shockwave Flash"]==i){if((s=q.plugins["Shockwave Flash"].description)&&!(typeof q.mimeTypes!=j&&q.mimeTypes[o]&&!q.mimeTypes[o].enabledPlugin)){s=s.replace(/^.*\s+(\S+\s+\S+$)/,"$1");k[0]=parseInt(s.replace(/^(.*)\..*$/,"$1"),10);k[1]=parseInt(s.replace(/^.*\.(.*)\s.*$/,"$1"),10);k[2]=/r/.test(s)?parseInt(s.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof g.ActiveXObject!=j){var t=null,F=false;try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(L){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); k=[6,0,21];t.AllowScriptAccess="always"}catch(N){if(k[0]==6)F=true}if(!F)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(K){}}if(!F&&t)try{if(s=t.GetVariable("$version")){s=s.split(" ")[1].split(",");k=[parseInt(s[0],10),parseInt(s[1],10),parseInt(s[2],10)]}}catch(S){}}F=q.userAgent.toLowerCase();var O=q.platform.toLowerCase();s=/webkit/.test(F)?parseFloat(F.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;t=O?/win/.test(O):/win/.test(F);F=O?/mac/.test(O):/mac/.test(F);return{w3cdom:h, pv:k,webkit:s,ie:false,win:t,mac:F}}();(function(){if(v.w3cdom){r(I);if(v.ie&&v.win)try{m.write("<script id=__ie_ondomload defer=true src=//:><\/script>");(H=G("__ie_ondomload"))&&Q(H,"onreadystatechange",p)}catch(h){}if(v.webkit&&typeof m.readyState!=j)P=setInterval(function(){/loaded|complete/.test(m.readyState)&&w()},10);typeof m.addEventListener!=j&&m.addEventListener("DOMContentLoaded",w,null);x(w)}})();(function(){v.ie&&v.win&&window.attachEvent("onunload",function(){for(var h=D.length,k=0;k< h;k++)D[k][0].detachEvent(D[k][1],D[k][2]);h=J.length;for(k=0;k<h;k++)l(J[k]);for(var s in v)v[s]=null;v=null;for(var t in swfobject)swfobject[t]=null;swfobject=null})})();return{registerObject:function(h,k,s){if(!(!v.w3cdom||!h||!k)){var t={};t.id=h;t.swfVersion=k;t.expressInstall=s?s:false;z[z.length]=t;c(h,false)}},getObjectById:function(h){var k=null;if(v.w3cdom)if(h=G(h)){var s=h.getElementsByTagName(i)[0];if(!s||s&&typeof h.SetVariable!=j)k=h;else if(typeof s.SetVariable!=j)k=s}return k},embedSWF:function(h, k,s,t,F,L,N,K,S){if(!(!v.w3cdom||!h||!k||!s||!t||!F)){s+="";t+="";if(a(F)){c(k,false);var O={};if(S&&typeof S===i)for(var W in S)if(S[W]!=Object.prototype[W])O[W]=S[W];O.data=h;O.width=s;O.height=t;var Z={};if(K&&typeof K===i)for(var $ in K)if(K[$]!=Object.prototype[$])Z[$]=K[$];if(N&&typeof N===i)for(var X in N)if(N[X]!=Object.prototype[X])if(typeof Z.flashvars!=j)Z.flashvars+="&"+X+"="+N[X];else Z.flashvars=X+"="+N[X];r(function(){e(O,Z,k);O.id==k&&c(k,true)})}else if(L&&!U&&a("6.0.65")&&(v.win|| v.mac)){U=true;c(k,false);r(function(){var Y={};Y.id=Y.altContentId=k;Y.width=s;Y.height=t;Y.expressInstall=L;y(Y)})}}},getFlashPlayerVersion:function(){return{major:v.pv[0],minor:v.pv[1],release:v.pv[2]}},hasFlashPlayerVersion:a,createSWF:function(h,k,s){if(v.w3cdom)return e(h,k,s)},removeSWF:function(h){v.w3cdom&&l(h)},createCSS:function(h,k){v.w3cdom&&b(h,k)},addDomLoadEvent:r,addLoadEvent:x,getQueryParamValue:function(h){var k=m.location.search||m.location.hash;if(h==null)return f(k);if(k){k= k.substring(1).split("&");for(var s=0;s<k.length;s++)if(k[s].substring(0,k[s].indexOf("="))==h)return f(k[s].substring(k[s].indexOf("=")+1))}return""},expressInstallCallback:function(){if(U&&R){var h=G(d);if(h){h.parentNode.replaceChild(R,h);if(V){c(V,true);if(v.ie&&v.win)R.style.display="block"}V=R=null;U=false}}}}}();Shadowbox.options.players=["flv","html","iframe","img","swf"];Shadowbox.options.useSizzle=true;