var Shadowbox=function(){var ua=navigator.userAgent.toLowerCase(),S={version:"3.0b",adapter:null,current:-1,gallery:[],cache:[],content:null,dimensions:null,plugins:null,path:"",options:{adapter:null,animate:true,animateFade:true,autoplayMovies:true,autoDimensions:false,continuous:false,counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,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"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf","wm","wmv"],qtwmp:["avi","mpg","mpeg"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","pl","php","php3","php4","php5","phtml","rb","rhtml","shtml","txt","vbs"]},fadeDuration:0.35,flashParams:{bgcolor:"#000000",allowFullScreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",initialHeight:160,initialWidth:320,language:"en",modal:false,onChange:null,onClose:null,onFinish:null,onOpen:null,overlayColor:"#000",overlayOpacity:0.8,players:["img"],resizeDuration:0.35,showOverlay:true,showMovieControls:true,skipSetup:false,slideshowDelay:0,useSizzle:true,viewportPadding:20},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},regex:{domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/},libraries:{Prototype:"prototype",jQuery:"jquery",MooTools:"mootools",YAHOO:"yui",dojo:"dojo",Ext:"ext"},applyOptions:function(_1){if(_1){_2=_3({},S.options);_3(S.options,_1);}},buildCacheObj:function(_4,_5){var _6=_4.href,_7={el:_4,title:_4.getAttribute("title"),options:_3({},_5||{}),content:_6};_8(["player","title","height","width","gallery"],function(o){if(typeof _7.options[o]!="undefined"){_7[o]=_7.options[o];delete _7.options[o];}});if(!_7.player){_7.player=_37(_6);}var _9=_4.getAttribute("rel");if(_9){var m=_9.match(S.regex.gallery);if(m){_7.gallery=escape(m[2]);}_8(_9.split(";"),function(p){m=p.match(S.regex.param);if(m){if(m[1]=="options"){eval("apply(obj.options,"+m[2]+")");}else{_7[m[1]]=m[2];}}});}return _7;},change:function(n){if(!S.gallery){return;}if(!S.gallery[n]){if(!S.options.continuous){return;}else{n=n<0?S.gallery.length-1:0;}}S.current=n;if(typeof _a=="number"){clearTimeout(_a);_a=null;_b=_c=0;}if(S.options.onChange){S.options.onChange();}_d();},clearCache:function(){_8(S.cache,function(_e){if(_e.el){S.lib.removeEvent(_e.el,"click",_f);}});S.cache=[];},close:function(){if(!_10){return;}_10=false;_11(false);if(S.content){S.content.remove();S.content=null;}if(typeof _a=="number"){clearTimeout(_a);}_a=null;_b=0;if(S.options.onClose){S.options.onClose();}S.skin.onClose();S.revertOptions();_8(_12,function(c){c[0].style.visibility=c[1];});},contentId:function(){return _13;},getCounter:function(){var len=S.gallery.length;if(S.options.counterType=="skip"){var c=[],i=0,end=len,_14=parseInt(S.options.counterLimit)||0;if(_14<len&&_14>2){var h=Math.floor(_14/2);i=S.current-h;if(i<0){i+=len;}end=S.current+(_14-h);if(end>len){end-=len;}}while(i!=end){if(i==len){i=0;}c.push(i++);}}else{var c=(S.current+1)+" "+S.lang.of+" "+len;}return c;},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(_15){if(_16){return;}_16=true;_15=_15||{};_17=_15;if(_15){_3(S.options,_15);}for(var e in S.options.ext){S.regex[e]=new RegExp(".("+S.options.ext[e].join("|")+")s*$","i");}if(!S.path){var _18=/(.+)shadowbox\.js/i,_19;_8(document.getElementsByTagName("script"),function(s){if((_19=_18.exec(s.src))!=null){S.path=_19[1];return false;}});}if(S.options.adapter){S.adapter=S.options.adapter;}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){U.include(S.path+"libraries/sizzle/sizzle.js");}if(!S.lang){U.include(S.path+"languages/shadowbox-"+S.options.language+".js");}_8(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");}},isActive:function(){return _10;},isPaused:function(){return _a=="paused";},load:function(){if(S.skin.options){_3(S.options,S.skin.options);_3(S.options,_17);}var _1a=S.skin.markup.replace(/\{(\w+)\}/g,function(m,p){return S.lang[p];});S.lib.append(document.body,_1a);if(S.skin.init){S.skin.init();}var id;S.lib.addEvent(window,"resize",function(){if(id){clearTimeout(id);id=null;}if(_10){id=setTimeout(function(){if(S.skin.onWindowResize){S.skin.onWindowResize();}var c=S.content;if(c&&c.onWindowResize){c.onWindowResize();}},50);}});if(!S.options.skipSetup){S.setup();}},next:function(){S.change(S.current+1);},open:function(obj){if(U.isLink(obj)){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=[];_8(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 g,r,m,s,a,oe=S.options.errors,msg,el;for(var i=0;i<S.gallery.length;++i){g=S.gallery[i]=_3({},S.gallery[i]);r=false;if(g.player=="unsupported"){r=true;}else{if(m=S.regex.unsupported.exec(g.player)){if(S.options.handleUnsupported=="link"){g.player="html";switch(m[1]){case"qtwmp":s="either";a=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case"qtf4m":s="shared";a=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:s="single";if(m[1]=="swf"||m[1]=="flv"){m[1]="fla";}a=[oe[m[1]].url,oe[m[1]].name];}msg=S.lang.errors[s].replace(/\{(\d+)\}/g,function(m,n){return a[n];});g.content='<div class="sb-message">'+msg+"</div>";}else{r=true;}}else{if(g.player=="inline"){m=S.regex.inline.exec(g.content);if(m){var el=U.get(m[1]);if(el){g.content=el.innerHTML;}else{throw"Cannot find element with id "+m[1];}}else{throw"Cannot find element id for inline content";}}else{if(g.player=="swf"||g.player=="flv"){var _1b=(g.options&&g.options.flashVersion)||S.options.flashVersion;if(!swfobject.hasFlashPlayerVersion(_1b)){g.width=310;g.height=177;}}}}}if(r){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(!_10){if(typeof S.options.onOpen=="function"&&S.options.onOpen(obj)===false){return;}_12=[];_8(["select","canvas"],function(tag){_8(document.getElementsByTagName(tag),function(el){_12.push([el,el.style.visibility||"visible"]);el.style.visibility="hidden";});});var h=S.options.autoDimensions&&"height" in obj?obj.height:S.options.initialHeight;var w=S.options.autoDimensions&&"width" in obj?obj.width:S.options.initialWidth;S.skin.onOpen(h,w,_d);}else{_d();}_10=true;}},pause:function(){if(typeof _a!="number"){return;}var _1c=new Date().getTime();_b=Math.max(0,_b-(_1c-_c));if(_b){clearTimeout(_a);_a="paused";if(S.skin.onPause){S.skin.onPause();}}},play:function(){if(!S.hasNext()){return;}if(!_b){_b=S.options.slideshowDelay*1000;}if(_b){_c=new Date().getTime();_a=setTimeout(function(){_b=_c=0;S.next();},_b);if(S.skin.onPlay){S.skin.onPlay();}}},previous:function(){S.change(S.current-1);},revertOptions:function(){_3(S.options,_2);},setDimensions:function(_1d,_1e,_1f,_20,tb,lr,_21){var h=_1d=parseInt(_1d),w=_1e=parseInt(_1e),pad=parseInt(S.options.viewportPadding)||0;var _22=2*pad+tb;if(h+_22>=_1f){h=_1f-_22;}var _23=2*pad+lr;if(w+_23>=_20){w=_20-_23;}var _24=_1d,_25=_1e,_26=(_1d-h)/_1d,_27=(_1e-w)/_1e,_28=(_26>0||_27>0);if(_21&&_28&&S.options.handleOversize=="resize"){if(_26>_27){w=Math.round((_1e/_1d)*h);}else{if(_27>_26){h=Math.round((_1d/_1e)*w);}}_25=w;_24=h;}S.dimensions={height:h+tb,width:w+lr,inner_h:h,inner_w:w,top:(_1f-(h+_22))/2+pad,left:(_20-(w+_23))/2+pad,oversized:_28,resize_h:_24,resize_w:_25};return S.dimensions;},setup:function(_29,_2a){if(!_29){var _29=[],rel;_8(document.getElementsByTagName("a"),function(a){rel=a.getAttribute("rel");if(rel&&S.regex.rel.test(rel)){_29.push(a);}});}else{var len=_29.length;if(len){if(window.Sizzle){if(typeof _29=="string"){_29=Sizzle(_29);}else{if(len==2&&_29.push&&typeof _29[0]=="string"&&_29[1].nodeType){_29=Sizzle(_29[0],_29[1]);}}}}else{_29=[_29];}}_8(_29,function(_2b){if(typeof _2b.shadowboxCacheKey=="undefined"){_2b.shadowboxCacheKey=S.cache.length;S.lib.addEvent(_2b,"click",_f);}S.cache[_2b.shadowboxCacheKey]=S.buildCacheObj(_2b,_2a);});}},U=S.util={animate:function(el,p,to,d,cb){var _2c=parseFloat(S.lib.getStyle(el,p));if(isNaN(_2c)){_2c=0;}var _2d=to-_2c;if(_2d==0){if(cb){cb();}return;}var op=p=="opacity";function fn(_2e){var to=_2c+_2e*_2d;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 _2f=new Date().getTime(),end=_2f+d,_30,_31=setInterval(function(){_30=new Date().getTime();if(_30>=end){clearInterval(_31);fn(1);if(cb){cb();}}else{fn(S.options.ease((_30-_2f)/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,_32){for(var i=0,len=obj.length;i<len;++i){if(fn.call(_32||obj[i],obj[i],i,obj)===false){return;}}},get:function(id){return document.getElementById(id);},include:function(){var _33={};return function(_34){if(_33[_34]){return;}_33[_34]=true;document.write('<script type="text/javascript" src="'+_34+'"><\/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;}}},_3=U.apply,_8=U.each,_17,_16=false,_2={},_13="sb-content",_10=false,_a,_c,_b=0,_12=[];if(navigator.plugins&&navigator.plugins.length){var _35=[];_8(navigator.plugins,function(p){_35.push(p.name);});_35=_35.join();var _36=function(n){return _35.indexOf(n)>-1;};var f4m=_36("Flip4Mac");S.plugins={fla:_36("Shockwave Flash"),qt:_36("QuickTime"),wmp:!f4m&&_36("Windows Media"),f4m:f4m};}else{function _36(n){try{var axo=new ActiveXObject(n);}catch(e){}return !!axo;}S.plugins={fla:_36("ShockwaveFlash.ShockwaveFlash"),qt:_36("QuickTime.QuickTime"),wmp:_36("wmplayer.ocx"),f4m:false};}function _37(url){var re=S.regex,p=S.plugins,m=url.match(re.domain),d=m&&document.domain==m[1];if(url.indexOf("#")>-1&&d){return"inline";}var q=url.indexOf("?");if(q>-1){url=url.substring(0,q);}if(re.img.test(url)){return"img";}if(re.swf.test(url)){return p.fla?"swf":"unsupported-swf";}if(re.flv.test(url)){return p.fla?"flv":"unsupported-flv";}if(re.qt.test(url)){return p.qt?"qt":"unsupported-qt";}if(re.wmp.test(url)){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(re.qtwmp.test(url)){if(p.qt){return"qt";}if(p.wmp){return"wmp";}return S.client.isMac?"unsupported-qt":"unsupported-qtwmp";}if(!d||re.iframe.test(url)){return"iframe";}return"unsupported";}function _f(e){var _38;if(U.isLink(this)){_38=this;}else{_38=S.lib.getTarget(e);while(!U.isLink(_38)&&_38.parentNode){_38=_38.parentNode;}}if(_38){var key=_38.shadowboxCacheKey;if(typeof key!="undefined"&&typeof S.cache[key]!="undefined"){_38=S.cache[key];}S.open(_38);if(S.gallery.length){S.lib.preventDefault(e);}}}function _11(on){if(!S.options.enableKeys){return;}S.lib[(on?"add":"remove")+"Event"](document,"keydown",_39);}function _39(e){var _3a=S.lib.keyCode(e);S.lib.preventDefault(e);switch(_3a){case 81:case 88:case 27:S.close();break;case 37:S.previous();break;case 39:S.next();break;case 32:S[(typeof _a=="number"?"pause":"play")]();}}function _d(){var obj=S.getCurrent();if(!obj){return;}var p=obj.player=="inline"?"html":obj.player;if(typeof S[p]!="function"){throw"Unknown player: "+p;}var _3b=false;if(S.content){S.content.remove();_3b=true;S.revertOptions();if(obj.options){S.applyOptions(obj.options);}}U.removeChildren(S.skin.bodyEl());S.content=new S[p](obj);_11(false);S.skin.onLoad(S.content,_3b,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(_3c);}}else{clearInterval(id);id=null;}},100);}else{S.skin.onReady(_3c);}});if(S.gallery.length>1){var _3d=S.gallery[S.current+1]||S.gallery[0];if(_3d.player=="img"){var a=new Image();a.src=_3d.content;}var _3e=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(_3e.player=="img"){var b=new Image();b.src=_3e.content;}}}function _3c(){if(!S.content){return;}S.content.append(S.skin.bodyEl(),_13,S.dimensions);S.skin.onFinish(_3f);}function _3f(){if(!S.content){return;}if(S.content.onLoad){S.content.onLoad();}if(S.options.onFinish){S.options.onFinish();}if(!S.isPaused()){S.play();}_11(true);}return S;}();Shadowbox.skin=function(){var j=Shadowbox,f=j.util,m=false,n=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"];function l(){f.get("sb-container").style.top=document.documentElement.scrollTop+"px";}function k(p){var q=f.get("sb-overlay"),r=f.get("sb-container"),t=f.get("sb-wrapper");if(p){if(j.client.isIE6){l();j.lib.addEvent(window,"scroll",l);}if(j.options.showOverlay){m=true;q.style.backgroundColor=j.options.overlayColor;f.setOpacity(q,0);if(!j.options.modal){j.lib.addEvent(q,"click",j.close);}t.style.display="none";}r.style.visibility="visible";if(m){var s=parseFloat(j.options.overlayOpacity);f.animate(q,"opacity",s,j.options.fadeDuration,p);}else{p();}}else{if(j.client.isIE6){j.lib.removeEvent(window,"scroll",l);}j.lib.removeEvent(q,"click",j.close);if(m){t.style.display="none";f.animate(q,"opacity",0,j.options.fadeDuration,function(){r.style.display="";t.style.display="";f.clearOpacity(q);});}else{r.style.visibility="hidden";}}}function i(r,p){var q=f.get("sb-nav-"+r);if(q){q.style.display=p?"":"none";}}function g(s,r){var u=f.get("sb-loading"),v=j.getCurrent().player,q=(v=="img"||v=="html");if(s){function t(){f.clearOpacity(u);if(r){r();}}f.setOpacity(u,0);u.style.display="";if(q){f.animate(u,"opacity",1,j.options.fadeDuration,t);}else{t();}}else{function t(){u.style.display="none";f.clearOpacity(u);if(r){r();}}if(q){f.animate(u,"opacity",0,j.options.fadeDuration,t);}else{t();}}}function d(t){var v=j.getCurrent();f.get("sb-title-inner").innerHTML=v.title||"";var x,s,u,y,q;if(j.options.displayNav){x=true;var w=j.gallery.length;if(w>1){if(j.options.continuous){s=q=true;}else{s=(w-1)>j.current;q=j.current>0;}}if(j.options.slideshowDelay>0&&j.hasNext()){y=!j.isPaused();u=!y;}}else{x=s=u=y=q=false;}i("close",x);i("next",s);i("play",u);i("pause",y);i("previous",q);var x="";if(j.options.displayCounter&&j.gallery.length>1){var r=j.getCounter();if(typeof r=="string"){x=r;}else{f.each(r,function(p){x+='<a onclick="Shadowbox.change('+p+');"';if(p==j.current){x+=' class="sb-counter-current"';}x+=">"+(p+1)+"</a>";});}}f.get("sb-counter").innerHTML=x;t();}function b(p,r){p=false;var w=f.get("sb-wrapper"),z=f.get("sb-title"),s=f.get("sb-info"),q=f.get("sb-title-inner"),x=f.get("sb-info-inner"),y=parseInt(j.lib.getStyle(q,"height"))||0,v=parseInt(j.lib.getStyle(x,"height"))||0;function u(){q.style.visibility=x.style.visibility="hidden";d(r);}if(p){f.animate(z,"height",0,0.35);f.animate(s,"height",0,0.35,u);}else{z.style.height=s.style.height="0px";u();}}function h(r){var q=f.get("sb-wrapper"),u=f.get("sb-title"),s=f.get("sb-info"),x=f.get("sb-title-inner"),w=f.get("sb-info-inner"),v=parseInt(j.lib.getStyle(x,"height"))||0,p=parseInt(j.lib.getStyle(w,"height"))||0;x.style.visibility=w.style.visibility="";if(x.innerHTML!=""){f.animate(u,"height",v,0);}f.animate(s,"height",p,0,r);}function e(x,w,v,p){var y=f.get("sb-body"),u=f.get("sb-wrapper"),r=parseInt(x),q=parseInt(w);if(v){f.animate(y,"height",r,j.options.resizeDuration);f.animate(u,"top",q,j.options.resizeDuration,p);}else{y.style.height=r+"px";u.style.top=q+"px";if(p){p();}}}function c(v,x,u,p){var t=f.get("sb-wrapper"),r=parseInt(v),q=parseInt(x);if(u){f.animate(t,"width",r,j.options.resizeDuration);f.animate(t,"left",q,j.options.resizeDuration,p);}else{t.style.width=r+"px";t.style.left=q+"px";if(p){p();}}}function a(p){var r=j.content;if(!r){return;}var q=o(r.height,r.width,r.resizable);switch(j.options.animSequence){case"hw":e(q.inner_h,q.top,true,function(){c(q.width,q.left,true,p);});break;case"wh":c(q.width,q.left,true,function(){e(q.inner_h,q.top,true,p);});break;default:c(q.width,q.left,true);e(q.inner_h,q.top,true,p);}}function o(r,q,p){var s=f.get("sb-body-inner");sw=f.get("sb-wrapper"),so=f.get("sb-overlay"),tb=sw.offsetHeight-s.offsetHeight,lr=sw.offsetWidth-s.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;return j.setDimensions(r,q,max_h,max_w,tb,lr,p);}return{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-body"><div id="sb-body-inner"></div><div id="sb-loading"><a onclick="Shadowbox.close()">{cancel}</a></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()">Sluiten</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></div>',options:{animSequence:"sync"},init:function(){if(j.client.isIE6){f.get("sb-body").style.zoom=1;var r,p,q=/url\("(.*\.png)"\)/;f.each(n,function(s){r=f.get(s);if(r){p=j.lib.getStyle(r,"backgroundImage").match(q);if(p){r.style.backgroundImage="none";r.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+p[1]+",sizingMethod=scale);";}}});}},bodyEl:function(){return f.get("sb-body-inner");},onOpen:function(r,q,p){f.get("sb-container").style.display="block";var s=o(r,q);e(s.inner_h,s.top,false);c(s.width,s.left,false);k(p);},onLoad:function(q,r,p){g(true);b(r,function(){if(!q){return;}if(!r){f.get("sb-wrapper").style.display="";}p();});},onReady:function(p){a(function(){h(p);});},onFinish:function(p){g(false,p);},onClose:function(){k(false);},onPlay:function(){i("play",false);i("pause",true);},onPause:function(){i("pause",false);i("play",true);},onWindowResize:function(){var r=j.content;if(!r){return;}var q=o(r.height,r.width,r.resizable);c(q.width,q.left,false);e(q.inner_h,q.top,false);var p=f.get(j.contentId());if(p){if(r.resizable&&j.options.handleOversize=="resize"){p.height=q.resize_h;p.width=q.resize_w;}}}};}();
