function showMovie(B){if($("lightboximg")){$("lightboximg").remove()}var A=document.createElement("object");A.setAttribute("width","640");A.setAttribute("height","500");A.setAttribute("id","lightboximg");A.setAttribute("autoplay","true");A.setAttribute("classid","clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B");A.setAttribute("codebase","http://www.apple.com/qtactivex/qtplugin.cab ");A.setAttribute("pluginspage","http://www.apple.com/quicktime/download/");var C=document.createElement("param");C.setAttribute("name","src");C.setAttribute("value",B);A.appendChild(C);var D=document.createElement("embed");D.setAttribute("width","640");D.setAttribute("height","500");D.setAttribute("pluginspage","http://www.apple.com/quicktime/");D.setAttribute("autoplay","true");D.setAttribute("controller","true");D.setAttribute("qtsrc",B);D.setAttribute("src",B);A.appendChild(D);$("lightboxcontainer").style.width=640+"px";$("lightboxcontainer").style.height=480+40+"px";$("lightboxcontainer").appendChild(A);$("lightboxloading").style.display="none";$("lightboxcontainer").style.display="block";showShield()}function showImage(A){if($("lightboximg")){$("lightboximg").remove()}$("lightboxcontainer").style.display="none";$("lightboxloading").style.display="block";showShield();image=new Asset.image(A,{id:"lightboximg",onload:function(){$("lightboxloading").style.display="none";$("lightboxcontainer").style.display="block";$("lightboxcontainer").style.width=image.width+"px";$("lightboxcontainer").style.height=image.height+30+"px";image.injectInside("lightboxcontainer")}})}function showShield(){$("shield").style.display="block";$("shield").effect("opacity",{duration:200}).start(0,0.5);var B=getPageSize();var A=getPageScroll();var C=A[1]+(B[3]/15);$("lightbox").style.top=C+"px";$("lightbox").style.display="block";$("lightbox").effect("opacity",{duration:200}).start(0,1)}function hideShield(){$("shield").effect("opacity",{duration:200,onComplete:function(){$("shield").style.display="none";if($("lightboximg")){$("lightboximg").remove()}}}).start(0.5,0);$("lightbox").effect("opacity",{duration:200}).start(1,0)}function getPageScroll(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}arrayPageScroll=new Array("",A);return arrayPageScroll}function getPageSize(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize};
