var slider1;curIndex=0;function setPhotoVideoIndex(index){curIndex=index}function fnShowProperDiv(clID,IsVideo,ItemIndex,swfPath,streamerPath,fullScreen,nHeight,nWidth,flvFilePath,thumbnailImage,usestreamer,title,description){var objDivImage=document.getElementById(clID+"_divPhoto");var objDivVideo=document.getElementById(clID+"_divVideo");if(IsVideo=="True"){objDivImage.style.display="none";objDivVideo.style.display="block";setRequestedImage(ItemIndex);PlayVideo(swfPath,streamerPath,fullScreen,nHeight,nWidth,flvFilePath,thumbnailImage,usestreamer,clID,title,description);return false}else{objDivImage.style.display="block";objDivVideo.style.display="none";setRequestedImage(ItemIndex);return false}}function FnStartSlideShow(clID){var objDivImage=document.getElementById(clID+"_divPhoto");var objDivVideo=document.getElementById(clID+"_divVideo");objDivImage.style.display="block";objDivVideo.style.display="none";return false}function pageLoad(){slider1=$find("slideShowBehavior1");if(slider1!=null)slider1._currentIndex=(curIndex-1);}function fnOpenPopup(clientId,Source){var objDiv=document.getElementById('ifrPopup');objDiv.style.display="block";objDiv.width="1px";objDiv.height="1px";objDiv.src=Source;return false}function setDimensions(fnWidth,fnHeight){var objDiv=document.getElementById('ifrPopup');objDiv.width=fnWidth+"px";objDiv.height=fnHeight+"px";DisplayInCenter('ifrPopup','');if(fnHeight=="475"){var sDTop=new String(objDiv.style.top);sDTop=sDTop.replace("px","");if(getScrollTop()<(sDTop-60)){objDiv.style.top=(sDTop-60)+"px"}else{objDiv.style.top=getScrollTop()+"px"}objDiv.allowTransparency="true"}}function closePopUp(){document.getElementById('ifrPopup').style.display='none';document.getElementById('ifrPopup').src=""}function PlayVideo(swfPath,streamerPath,fullScreen,nHeight,nWidth,flvFilePath,thumbnailImage,usestreamer,clID,title,description){var s1=new SWFObject(swfPath,'ply',nHeight,nWidth,'9','#FFFFFF');var objDivVideo=document.getElementById(clID+"_divVideo");s1.addParam('allowscriptaccess','always');s1.addParam('wmode','transparent');s1.addVariable('file',flvFilePath);s1.addVariable('image',thumbnailImage);s1.addVariable('autostart','true');s1.addVariable('stretching','uniform');s1.addParam('title',title);s1.addParam('description',description);if(usestreamer=='true'){s1.addVariable('streamer',streamerPath);}s1.addParam('allowfullscreen',fullScreen);s1.write(objDivVideo);return false}