// CREATIONAL : CREATE SITES
// COPYRIGHT 2005 - 2010 : CREATIONAL : WWW.CREATIONAL.NL
LightboxOptions=Object.extend({fileImage:"/img/lb_blank.gif",fileLoadingImage:"/img/lb_loading.gif",fileBottomNavCloseImage:"/img/lb_closelabel.gif",overlayOpacity:0.85,animate:true,resizeSpeed:8,borderSize:5,borderSizeVideo:0,rollboxBorderSize:15,rollboxImageBorderSize:2,rollboxImageMargin:15,rollboxButtonWidth:50,rollboxImageIDprefix:"thumb_",labelImage:"Image",labelVideo:"Video",labelOf:"of"},window.LightboxOptions||{}); var Lightbox=Class.create(); Lightbox.prototype={imageArray:[],activeImage:undefined,videoArray:[],activeVideo:undefined,noFixed:false,rollboxHeight:0,rollboxImageWidth:0,initialize:function(){ this.updateMediaList(); this.keyboardAction=this.keyboardAction.bindAsEventListener(this); if(LightboxOptions.resizeSpeed>10){ LightboxOptions.resizeSpeed=10; } if(LightboxOptions.resizeSpeed<1){ LightboxOptions.resizeSpeed=1; } this.resizeDuration=LightboxOptions.animate?((11-LightboxOptions.resizeSpeed)*0.15):0; this.overlayDuration=LightboxOptions.animate?0.2:0; var _1=(LightboxOptions.animate?250:1)+"px"; var _2=$$("body")[0]; _2.appendChild(Builder.node("div",{id:"lightboxOverlay"})); _2.appendChild(Builder.node("div",{id:"lightbox"},[Builder.node("div",{id:"lightboxTopNav"},Builder.node("a",{id:"lightboxTopNavClose",href:"#"})),Builder.node("div",{id:"lightboxOuterContainer"},Builder.node("div",{id:"lightboxContainer"},[Builder.node("img",{id:"lightboxImage",src:LightboxOptions.fileImage}),Builder.node("div",{id:"lightboxHoverNav"},[Builder.node("a",{id:"lightboxPrevLink",href:"#"}),Builder.node("a",{id:"lightboxNextLink",href:"#"})]),Builder.node("div",{id:"lightboxLoading"},Builder.node("a",{id:"lightboxLoadingLink",href:"#"},Builder.node("img",{src:LightboxOptions.fileLoadingImage})))])),Builder.node("div",{id:"lightboxDataContainer"},Builder.node("div",{id:"lightboxData"},[Builder.node("div",{id:"lightboxDataDetails"},[Builder.node("div",{id:"lightboxNextBottom"},Builder.node("a",{id:"lightboxNextBottomLink"})),Builder.node("div",{id:"lightboxNumberDisplay"}),Builder.node("div",{id:"lightboxPrevBottom"},Builder.node("a",{id:"lightboxPrevBottomLink"})),Builder.node("div",{id:"lightboxCaption"})])]))])); _2.appendChild(Builder.node("div",{id:"lightboxRollbox"},[Builder.node("div",{id:"lightboxPrevSection"},[Builder.node("a",{id:"lightboxPrevSectionLink",href:"#"})]),Builder.node("div",{id:"lightboxNextSection"},[Builder.node("a",{id:"lightboxNextSectionLink",href:"#"})]),Builder.node("div",{id:"lightboxSectionContainer"},[Builder.node("div",{id:"lightboxSectionImages"})])])); Event.observe(window,"resize",(function(){ this.resize(); }).bind(this)); if($("lightbox").getStyle("position")!="fixed"){ this.noFixed=true; Event.observe(window,"scroll",(function(){ this.reposition(); }).bind(this)); } $("lightboxOverlay").hide().observe("click",(function(){ this.end(); }).bind(this)); $("lightbox").hide().observe("click",(function(_3){ if(_3.element().id=="lightbox"){ this.end(); } }).bind(this)); $("lightboxOuterContainer").setStyle({width:_1,height:_1}); $("lightboxPrevLink").observe("click",(function(_4){ _4.stop(); this.changeImage(this.activeImage-1); }).bindAsEventListener(this)); $("lightboxNextLink").observe("click",(function(_5){ _5.stop(); this.changeImage(this.activeImage+1); }).bindAsEventListener(this)); $("lightboxLoadingLink").observe("click",(function(_6){ _6.stop(); this.end(); }).bind(this)); $("lightboxTopNavClose").observe("click",(function(_7){ _7.stop(); this.end(); }).bind(this)); $("lightboxPrevBottomLink").observe("click",(function(_8){ _8.stop(); if(this.videoArray.length>0){ this.changeVideo(this.activeVideo-1); }else{ this.changeImage(this.activeImage-1); } }).bindAsEventListener(this)); $("lightboxNextBottomLink").observe("click",(function(_9){ _9.stop(); if(this.videoArray.length>0){ this.changeVideo(this.activeVideo+1); }else{ this.changeImage(this.activeImage+1); } }).bindAsEventListener(this)); $("lightboxRollbox").hide(); $("lightboxPrevSectionLink").observe("click",(function(_a){ _a.stop(); this.slideSection(1); }).bindAsEventListener(this)); $("lightboxNextSectionLink").observe("click",(function(_b){ _b.stop(); this.slideSection(-1); }).bindAsEventListener(this)); var th=this; (function(){ var _c="lightboxOverlay lightbox lightboxOuterContainer lightboxContainer lightboxImage lightboxHoverNav lightboxPrevLink lightboxNextLink lightboxLoading lightboxLoadingLink "+"lightboxDataContainer lightboxData lightboxDataDetails lightboxCaption lightboxNumberDisplay lightboxTopNav lightboxTopNavClose "+"lightboxRollbox lightboxPrevSection lightboxPrevSectionLink lightboxNextSection lightboxNextSectionLink lightboxSectionContainer lightboxSectionImages lightboxPrevBottom lightboxPrevBottomLink lightboxNextBottom lightboxNextBottomLink"; $w(_c).each(function(id){ th[id]=$(id); }); }).defer(); },updateMediaList:function(){ this.updateMediaList=Prototype.emptyFunction; document.observe("click",(function(_d){ var _e=_d.findElement("a[rel^=lightbox]")||_d.findElement("area[rel^=lightbox]")||_d.findElement("a[rel^=lightboxx]")||_d.findElement("area[rel^=lightboxx]"); if(_e){ _d.stop(); this.start(_e); } }).bind(this)); },start:function(_f){ var _10=document.getElementsByTagName("object"); for(i=0;i<_10.length;i++){ _10[i].style.visibility="hidden"; } var _11=document.getElementsByTagName("embed"); for(i=0;i<_11.length;i++){ _11[i].style.visibility="hidden"; } var _12=document.getElementsByTagName("select"); for(i=0;i<_12.length;i++){ _12[i].style.visibility="hidden"; } var _13=this.getPageSize(); $("lightboxOverlay").setStyle({width:_13[0]+"px",height:_13[1]+"px"}); new Effect.Appear(this.lightboxOverlay,{duration:this.overlayDuration,from:0,to:LightboxOptions.overlayOpacity}); var _14=false; if(_f.href.indexOf(".swf")>-1){ _14=true; } this.videoArray=[]; this.imageArray=[]; var _15=0; var _16=0; var _17=0; var _18=false; if((_f.rel=="lightbox")||(_f.rel=="lightboxx")){ if(_14==true){ this.videoArray.push([_f.href,_f.title]); }else{ this.imageArray.push([_f.href,_f.title]); } }else{ _18=_f.rel.sub(/lightboxx\[(.*?)\]/,function(_19){ return _19[1]; }); _18=$w(_18); if($A(window[_18[0]])&&_18[1]){ _14==true?this.videoArray=$A(window[_18[0]]):this.imageArray=$A(window[_18[0]]); _16=_18[1]; _17=_18[1]; if(_18[2]){ _17=_18[2]; } }else{ if(_14==true){ this.videoArray=$$(_f.tagName+"[href][rel=\""+_f.rel+"\"]").collect(function(_1a){ if(_1a.down("img")){ return [_1a.href,_1a.title,_1a.down("img").src]; }else{ return [_1a.href,_1a.title,null]; } }).uniq(); while(this.videoArray[_15][0]!=_f.href){ _15++; } }else{ this.imageArray=$$(_f.tagName+"[href][rel=\""+_f.rel+"\"]").collect(function(_1b){ return [_1b.href,_1b.title,_1b.down("img").src]; }).uniq(); while(this.imageArray[_15][0]!=_f.href){ _15++; } } } } if(this.imageArray.length==1||this.videoArray.length==1){ this.lightboxPrevBottom.hide(); this.lightboxNextBottom.hide(); } if(_17===0&&_f.down("img")){ _16=_f.down("img").getWidth(); _17=_f.down("img").getHeight(); } if(_f.rel.startsWith("lightboxx")){ this.rollboxHeight=1*_17+2*LightboxOptions.rollboxBorderSize+2*LightboxOptions.rollboxImageBorderSize; } if(this.rollboxHeight>0&&(this.imageArray.length>1||this.videoArray.length>1)){ this.lightboxRollbox.setStyle({height:this.rollboxHeight+"px"}); this.lightboxPrevSection.setStyle({height:this.rollboxHeight+"px"}).show(); this.lightboxNextSection.setStyle({height:this.rollboxHeight+"px"}).show(); this.lightboxPrevSectionLink.setStyle({height:this.rollboxHeight+"px"}).hide(); this.lightboxNextSectionLink.setStyle({height:this.rollboxHeight+"px"}).hide(); var _1c=Math.round(document.viewport.getWidth()-2*LightboxOptions.rollboxButtonWidth); this.lightboxSectionContainer.setStyle({height:this.rollboxHeight-2*LightboxOptions.rollboxBorderSize+"px",width:_1c+"px"}); new Effect.BlindDown(this.lightboxRollbox,{duration:2}); } var _1d=document.viewport.getScrollOffsets(); var _1e=Math.round(document.viewport.getHeight()/10); if(this.lightbox.getStyle("position")!="fixed"){ _1e=_1e+_1d[1]; } var _1f=Math.round(_1d[0]); this.lightbox.setStyle({top:_1e+"px",left:_1f+"px"}).show(); _14==true?this.changeVideo(_15):this.changeImage(_15); if(this.rollboxHeight>0&&(this.imageArray.length>1||this.videoArray.length>1)){ this.lightboxSectionImages.update(); var elm,i=0; var th=this; if(this.videoArray.length>1){ this.videoArray.each(function(s,_20){ if(s[2]!=null){ elm=Builder.node("a",{href:s[0],title:s[1],id:LightboxOptions.rollboxImageIDprefix+_20},[Builder.node("img",{src:s[2]})]); }else{ elm=Builder.node("a",{href:s[0],title:s[1],id:LightboxOptions.rollboxImageIDprefix+_20},[Builder.node("span",s[1])]); } elm=$(elm); th.lightboxSectionImages.insert(elm); elm.observe("click",(function(_21){ _21.stop(); th.changeVideo(_20); }).bindAsEventListener(th)); i++; }); }else{ this.imageArray.each(function(s,_22){ elm=Builder.node("a",{href:s[0],title:s[1],id:LightboxOptions.rollboxImageIDprefix+_22},[Builder.node("img",{src:s[2]})]); elm=$(elm); th.lightboxSectionImages.insert(elm); elm.observe("click",(function(_23){ _23.stop(); th.changeImage(_22); }).bindAsEventListener(th)); i++; }); } $(LightboxOptions.rollboxImageIDprefix+_15).className="current"; this.rollboxImageWidth=1*_16+2*LightboxOptions.rollboxImageBorderSize+LightboxOptions.rollboxImageMargin; var _24=i*this.rollboxImageWidth; this.lightboxSectionImages.setStyle({width:_24+"px"}); this.updateNavRollbox.bind(this).delay(1); } },changeImage:function(_25){ if($(LightboxOptions.rollboxImageIDprefix+this.activeImage)){ $(LightboxOptions.rollboxImageIDprefix+this.activeImage).className=""; } this.activeImage=_25; if(LightboxOptions.animate){ this.lightboxLoading.show(); } this.lightboxImage.hide(); this.lightboxHoverNav.hide(); this.lightboxPrevLink.hide(); this.lightboxNextLink.hide(); this.lightboxPrevBottomLink.hide(); this.lightboxNextBottomLink.hide(); this.lightboxTopNavClose.hide(); this.lightboxDataContainer.setStyle({opacity:0.0001}); this.lightboxNumberDisplay.hide(); var _26=new Image(); _26.onload=(function(){ this.lightboxImage.src=this.imageArray[this.activeImage][0]; $(this.lightboxOuterContainer).removeClassName("video"); this.resizeMediaContainer(_26.width,_26.height); if($(LightboxOptions.rollboxImageIDprefix+this.activeImage)){ $(LightboxOptions.rollboxImageIDprefix+this.activeImage).className="current"; this.slideThumb(); } }).bind(this); _26.src=this.imageArray[this.activeImage][0]; },changeVideo:function(_27){ if($(LightboxOptions.rollboxImageIDprefix+this.activeVideo)){ $(LightboxOptions.rollboxImageIDprefix+this.activeVideo).className=""; } this.activeVideo=_27; if(LightboxOptions.animate){ this.lightboxLoading.show(); } this.lightboxImage.hide(); this.lightboxHoverNav.hide(); this.lightboxPrevLink.hide(); this.lightboxNextLink.hide(); this.lightboxPrevBottomLink.hide(); this.lightboxNextBottomLink.hide(); this.lightboxTopNavClose.hide(); this.lightboxDataContainer.setStyle({opacity:0.0001}); this.lightboxNumberDisplay.hide(); var _28=false; var _29=425; var _2a=350; var url=this.videoArray[this.activeVideo][0]; var _2b=url; var pos=_2b.indexOf("?"); if(pos>-1){ _2b=_2b.substring(0,pos); var _28=url.toQueryParams(); if(_28["width"]){ _29=1*_28["width"]; } if(_28["height"]){ _2a=1*_28["height"]; } } $(this.lightboxOuterContainer).addClassName("video"); this.resizeMediaContainer(_29,_2a); if($(LightboxOptions.rollboxImageIDprefix+this.activeVideo)){ $(LightboxOptions.rollboxImageIDprefix+this.activeVideo).className="current"; this.slideThumb(); } },resizeMediaContainer:function(_2c,_2d){ var _2e=this.lightboxOuterContainer.getWidth(); var _2f=this.lightboxOuterContainer.getHeight(); var _30=LightboxOptions.borderSize; if(this.videoArray.length>0){ _30=LightboxOptions.borderSizeVideo; } var _31=(_2c+_30*2); var _32=(_2d+_30*2); var _33=(_31/_2e)*100; var _34=(_32/_2f)*100; var _35=_2e-_31; var _36=_2f-_32; if(_36!=0){ new Effect.Scale(this.lightboxOuterContainer,_34,{scaleX:false,duration:this.resizeDuration,queue:"front"}); } if(_35!=0){ new Effect.Scale(this.lightboxOuterContainer,_33,{scaleY:false,duration:this.resizeDuration,delay:this.resizeDuration}); } var _37=0; if((_36==0)&&(_35==0)){ _37=100; if(Prototype.Browser.IE){ _37=250; } } var _38=document.viewport.getScrollOffsets(); var _39=(document.viewport.getHeight()-this.rollboxHeight-_32)/2; if(_39<0){ _39=Math.round(document.viewport.getHeight()/10); this.lightbox.setStyle({position:"absolute",top:_39+_38[1]+"px"}); } if(this.lightbox.getStyle("position")!="fixed"){ _39=_39+_38[1]; } _39=Math.round(_39); var _3a=Math.round(_38[0]); if(this.videoArray.length>0){ (function(){ this.lightboxTopNav.setStyle({width:_31+"px"}); this.lightboxDataContainer.setStyle({width:_31+"px"}); new Effect.Move(this.lightbox,{x:_3a,y:_39,mode:"absolute"}); new Effect.Appear(this.lightbox,{duration:this.resizeDuration,queue:"end",afterFinish:(function(){ this.showVideo(); }).bind(this)}); }).bind(this).delay(_37/1000); }else{ (function(){ this.lightboxPrevLink.setStyle({height:_2d+"px"}); this.lightboxNextLink.setStyle({height:_2d+"px"}); this.lightboxTopNav.setStyle({width:_31+"px"}); this.lightboxDataContainer.setStyle({width:_31+"px"}); new Effect.Move(this.lightbox,{x:_3a,y:_39,mode:"absolute"}); this.showImage(); }).bind(this).delay(_37/1000); } },showImage:function(){ $(this.lightboxLoading).fade(); new Effect.Appear(this.lightboxImage,{duration:this.resizeDuration,queue:"end",afterFinish:(function(){ this.updateDetails(); }).bind(this)}); this.preloadNeighborImages(); },showVideo:function(){ var _3b=false; var _3c={}; _3c.wmode="opaque"; var _3d=425; var _3e=350; var url=this.videoArray[this.activeVideo][0]; var _3f=url; var pos=_3f.indexOf("?"); if(pos>-1){ _3f=_3f.substring(0,pos); _3b=url.toQueryParams(); if(_3b["width"]){ _3d=1*_3b["width"]; } if(_3b["height"]){ _3e=1*_3b["height"]; } if(_3b["cm_fullscreenbutton"]){ _3c.allowfullscreen=true; } } this.lightboxLoading.hide(); swfobject.embedSWF(_3f,this.lightboxImage.id,_3d,_3e,"8.0.0","expressInstall.swf",_3b,_3c); this.lightboxImage=$(this.lightboxImage.id); this.updateDetails(); },updateDetails:function(){ if(this.imageArray.length>0){ if(this.imageArray[this.activeImage][1]!=""){ this.lightboxCaption.update(this.imageArray[this.activeImage][1]).show(); } }else{ if(this.videoArray.length>0){ if(this.videoArray[this.activeVideo][1]!=""){ this.lightboxCaption.update(this.videoArray[this.activeVideo][1]).show(); } } } if(this.imageArray.length>1){ this.lightboxNumberDisplay.update((this.activeImage+1)+" "+LightboxOptions.labelOf+"  "+this.imageArray.length).show(); }else{ if(this.videoArray.length>1){ this.lightboxNumberDisplay.update((this.activeVideo+1)+" "+LightboxOptions.labelOf+"  "+this.videoArray.length).show(); } } new Effect.Parallel([new Effect.SlideDown(this.lightboxDataContainer,{sync:true,duration:this.resizeDuration,from:0,to:1}),new Effect.Appear(this.lightboxDataContainer,{sync:true,duration:this.resizeDuration})],{duration:this.resizeDuration,afterFinish:(function(){ var _40=this.getPageSize(); this.lightboxOverlay.setStyle({height:_40[1]+"px"}); this.updateNav(); }).bind(this)}); },updateNav:function(){ $(this.lightboxTopNavClose).show(); if(this.videoArray.length>0){ if(this.activeVideo>0){ this.lightboxPrevBottomLink.show(); } if(this.activeVideo<(this.videoArray.length-1)){ this.lightboxNextBottomLink.show(); } }else{ this.lightboxHoverNav.show(); if(this.activeImage>0){ this.lightboxPrevLink.show(); this.lightboxPrevBottomLink.show(); } if(this.activeImage<(this.imageArray.length-1)){ this.lightboxNextLink.show(); this.lightboxNextBottomLink.show(); } } this.enableKeyboardNav(); },updateNavRollbox:function(){ var _41=this.lightboxSectionImages.positionedOffset(); var _42=this.lightboxSectionImages.getWidth()-LightboxOptions.rollboxImageMargin; var _43=this.lightboxSectionContainer.getWidth(); if(_42>_43){ if(_41.left<0){ this.lightboxPrevSectionLink.setStyle({display:"block"}); }else{ this.lightboxPrevSectionLink.hide(); } if(_42>(-1*_41.left+_43)){ this.lightboxNextSectionLink.setStyle({display:"block"}); }else{ this.lightboxNextSectionLink.hide(); } var _44=_43-_42-_41.left; if(_44>0&&_41.left<0){ new Effect.Move(this.lightboxSectionImages,{x:_44,y:0,mode:"relative",duration:0}); } }else{ if(_41.left<0){ new Effect.Move(this.lightboxSectionImages,{x:0,y:0,mode:"absolute",duration:0}); } this.lightboxPrevSectionLink.hide(); this.lightboxNextSectionLink.hide(); } },enableKeyboardNav:function(){ document.observe("keydown",this.keyboardAction); },disableKeyboardNav:function(){ document.stopObserving("keydown",this.keyboardAction); },keyboardAction:function(_45){ var _46=_45.keyCode; var _47; if(_45.DOM_VK_ESCAPE){ _47=_45.DOM_VK_ESCAPE; }else{ _47=27; } var key=String.fromCharCode(_46).toLowerCase(); if(key.match(/x|o|c/)||(_46==_47)){ this.end(); }else{ if((key=="p")||(_46==37)){ if(this.activeImage!=0){ this.disableKeyboardNav(); this.changeImage(this.activeImage-1); } }else{ if((key=="n")||(_46==39)){ if(this.activeImage!=(this.imageArray.length-1)){ this.disableKeyboardNav(); this.changeImage(this.activeImage+1); } } } } },preloadNeighborImages:function(){ var _48,_49; if(this.imageArray.length>this.activeImage+1){ _48=new Image(); _48.src=this.imageArray[this.activeImage+1][0]; } if(this.activeImage>0){ _49=new Image(); _49.src=this.imageArray[this.activeImage-1][0]; } },slideSection:function(_4a){ var _4b=this.lightboxSectionImages.positionedOffset(); var _4c=this.lightboxSectionImages.getWidth()-LightboxOptions.rollboxImageMargin; var _4d=this.lightboxSectionContainer.getWidth(); var _4e=Math.floor(_4d/this.rollboxImageWidth); var _4f=_4e*this.rollboxImageWidth-(_4d-_4e*this.rollboxImageWidth)/2; if(_4a<0){ var _50=_4c+_4b.left-_4d; if(_50<0){ return; } if(_50<_4d){ _4f=_50; } _4f=-1*_4f; }else{ if(-1*_4b.left<_4f){ _4f=-1*_4b.left; } } new Effect.Move(this.lightboxSectionImages,{x:_4f,y:0,mode:"relative"}); this.updateNavRollbox.bind(this).delay(1); },slideThumb:function(){ var _51=this.lightboxSectionImages.positionedOffset(); var _52=$(LightboxOptions.rollboxImageIDprefix+this.activeImage).positionedOffset(); var _53=this.lightboxSectionContainer.getWidth(); var _54=0; if(-1*_51.left>_52.left){ _54=(-1*_51.left)-_52.left; } if(_52.left+this.rollboxImageWidth>(-1*_51.left+_53)){ _54=-1*(_52.left+_51.left-_53+this.rollboxImageWidth-LightboxOptions.rollboxImageMargin); } if(_54!=0){ new Effect.Move(this.lightboxSectionImages,{x:_54,y:0,mode:"relative"}); this.updateNavRollbox.bind(this).delay(1); } },resize:function(){ if(this.lightbox.getStyle("display")!="none"&&this.lightboxImage.getStyle("display")!="none"){ var _55=this.getPageSize(); this.lightboxOverlay.setStyle({width:_55[0]+"px",height:_55[1]+"px"}); this.reposition(); this.updateNavRollbox(); } },reposition:function(){ if(this.lightbox.getStyle("display")!="none"&&this.lightboxImage.getStyle("display")!="none"){ if(this.rollboxHeight>0&&(this.imageArray.length>1||this.videoArray.length>1)){ var _56=Math.round(document.viewport.getWidth()-2*LightboxOptions.rollboxButtonWidth); this.lightboxSectionContainer.setStyle({height:this.rollboxHeight-2*LightboxOptions.rollboxBorderSize+"px",width:_56+"px"}); } var _57=document.viewport.getScrollOffsets(); var _58=this.lightboxOuterContainer.getHeight(); var _59=(document.viewport.getHeight()-this.rollboxHeight-_58)/2; if(_59<0){ if(this.noFixed===true){ return; } _59=Math.round(document.viewport.getHeight()/10); this.lightbox.setStyle({position:"absolute",top:_59+_57[1]+"px"}); }else{ if(this.noFixed===false){ this.lightbox.setStyle({position:"fixed",top:_59+"px"}); } } if(this.lightbox.getStyle("position")!="fixed"){ _59=_59+_57[1]; } _59=Math.round(_59); var _5a=Math.round(_57[0]); new Effect.Move(this.lightbox,{x:_5a,y:_59,mode:"absolute",duration:0.5}); } },end:function(){ var tag=$(this.lightboxImage.id).tagName.toLowerCase(); if(window.swfobject&&tag=="object"){ var _5b=Builder.node("img",{id:this.lightboxImage.id,src:LightboxOptions.fileImage}); swfobject.removeSWF(this.lightboxImage.id); $(this.lightboxContainer).insert({top:_5b}); $(this.lightboxContainer).removeClassName("video"); this.lightboxImage=_5b; } this.disableKeyboardNav(); this.lightbox.hide(); new Effect.BlindUp(this.lightboxRollbox); new Effect.Fade(this.lightboxOverlay,{duration:this.overlayDuration,afterFinish:function(){ var _5c=document.getElementsByTagName("object"); for(i=0;i<_5c.length;i++){ _5c[i].style.visibility="visible"; } var _5d=document.getElementsByTagName("embed"); for(i=0;i<_5d.length;i++){ _5d[i].style.visibility="visible"; } var _5e=document.getElementsByTagName("select"); for(i=0;i<_5e.length;i++){ _5e[i].style.visibility="visible"; } }}); },getPageSize:function(){ var _5f,_60; if(window.innerHeight&&window.scrollMaxY){ _5f=window.innerWidth+window.scrollMaxX; _60=window.innerHeight+window.scrollMaxY; }else{ if(document.body.scrollHeight>document.body.offsetHeight){ _5f=document.body.scrollWidth; _60=document.body.scrollHeight; }else{ _5f=document.body.offsetWidth; _60=document.body.offsetHeight; } } var _61,_62; if(self.innerHeight){ if(document.documentElement.clientWidth){ _61=document.documentElement.clientWidth; }else{ _61=self.innerWidth; } _62=self.innerHeight; }else{ if(document.documentElement&&document.documentElement.clientHeight){ _61=document.documentElement.clientWidth; _62=document.documentElement.clientHeight; }else{ if(document.body){ _61=document.body.clientWidth; _62=document.body.clientHeight; } } } if(_60<_62){ pageHeight=_62; }else{ pageHeight=_60; } if(_5f<_61){ pageWidth=_5f; }else{ pageWidth=_61; } return [pageWidth,pageHeight]; }}; document.observe("dom:loaded",function(){ new Lightbox(); });
