
function aaLoadVideoInContainer(aaContainerId,aaVideoPath,aaVideoBorderWidth,aaSearchComments){var aaTemp0;var aaTemp1;var aaVidP=aaVideoPath;if(aaVideoPath.substr(0,15)=="home/videos/../")aaVidP=("home/"+aaVideoPath.substring(15));aaCurrentVideoContainer=aaContainerId;if(aaGetFlashVersion().split(',').shift()>8)
aaTemp1='<table cellpadding="0" onmousedown="javascript:aaStartVideoPlayback(\''+aaContainerId+'\',\''+aaVideoPath+'\');" onmouseover="javascript:{this.rows[0].style.backgroundColor=\'#FFFF00\';}" onmouseout="javascript:{this.rows[0].style.backgroundColor=\'#FFFFFF\';}" style="cursor:pointer;overflow:hidden;border-width:0px;table-layout:fixed;width:68px;height:68px;">'+'<tr style="background-color:#FFFFFF"><td onselectstart="javascript:return(false);" style="-moz-user-select:none;-khtml-user-select:none;user-select:none;"><img border="0" src="graphics/play.gif" width="64" height="64"></td></tr></table>';else aaTemp1='<font face="Verdana" size="3">'+aaLangString("videos flashneeded")+'</font><br>';aaTemp0=aaVideoReturnPreviewHtml(aaContainerId,aaVideoPath,aaVideoBorderWidth);aaTemp0=aaTemp0+'<div id="aaVideoInfoBox" onselectstart="javascript:return(false);" style="position:absolute;top:'+((parseInt(document.getElementById(aaContainerId).style.height)-200)/2)+';left:'+((parseInt(document.getElementById(aaContainerId).style.width)-256)/2)+';width:256;height:200;filter:alpha(opacity=1);-moz-user-select:none;-khtml-user-select:none;user-select:none;">'+'<table cellpadding="0" style="border-width:2px;border-style:solid;border-color:#1B8BF4;width:100%;height:100%;">'+'<tr style="background-color:#FFFFFF"><td align="center"><br>'+aaTemp1+'<br><b>DOWNLOAD:</b><br><br><div id="aaVideoInfoBox.Div" style="font-size:8pt;font-family:\'Verdana\'">...</div><br></td></tr></table></div>';document.getElementById(aaContainerId).innerHTML=aaTemp0;aaSetObjectOpacity("aaVideoInfoBox",0.01,1);aaAnimateObject('aaVideoInfoBox',null,null,null,null,0.7,null,'aaSetObjectOpacity("aaVideoInfoBox",0.7,1);',-1,false,aaCurve700Pop,1);aaAjaxpage(aaFileNamePart(aaVideoPath,false)+'.htm',"","aaVideoPrintDownloadOptions","",aaSearchComments);}
function aaVideoReturnPreviewHtml(aaContainerId,aaVideoPath,aaVideoBorderWidth){var aaTemp0;var aaTemp1;if(aaContainerId=="aaVideoContainer"){if(aaContentDivW/4<aaContentDivH/3)return'<img border="'+aaVideoBorderWidth+'" src="'+aaFileNamePart(aaVideoPath,false)+'.jpg" width="100%" height="'+parseInt((300*aaContentDivW/4)/aaContentDivH)+'%">';else return'<img border="'+aaVideoBorderWidth+'" src="'+aaFileNamePart(aaVideoPath,false)+'.jpg" width="'+parseInt((400*aaContentDivH/3)/aaContentDivW)+'%" height="100%">';}else return'<img border="'+aaVideoBorderWidth+'" src="'+aaFileNamePart(aaVideoPath,false)+'.jpg" width="100%" height="100%">';}
function aaStartVideoPlayback(aaContainerId,aaVideoPath){document.getElementById(aaContainerId).innerHTML='<embed id="aaVideoEmbed" src="scripts/player.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="file=../'+aaVideoPath+'&autostart=true" style="width:100%;height:100%;">';}
function aaVideoPrintDownloadOptions(aaVideoDownloadOptionsHtml){try{document.getElementById("aaVideoInfoBox.Div").innerHTML=aaVideoDownloadOptionsHtml;}
catch(Exception){}}
function aaVideoCreateContainer(aaVideoContainerX,aaVideoContainerY,aaVideoContainerW,aaVideoContainerH,aaVideoContainerO,aaVideoContainerV){var aaTemp0;var aaTemp1=false;var aaTemp2;aaTemp0=document.getElementById("aaVideoContainer");if(aaTemp0==null){aaTemp1=true;aaTemp0=document.createElement("div");}
aaTemp0.id="aaVideoContainer";aaTemp0.innerHTML="";aaTemp0.align="center";aaTemp0.style.position="absolute";aaTemp0.style.borderWidth=2;aaTemp0.style.borderStyle="solid";aaTemp0.style.borderColor="black";aaTemp0.style.overflow="hidden";aaTemp0.style.visibility="hidden";if(aaTemp1)document.getElementById(aaCurrentObjectContainer).appendChild(aaTemp0);aaPositionateObject("aaVideoContainer",aaVideoContainerX,aaVideoContainerY,aaVideoContainerW,aaVideoContainerH,aaVideoContainerO,aaVideoContainerV,1);}
function aaVideoResize(){aaPositionateObject('aaVideoContainer',null,null,aaContentDivW,aaContentDivH,null,null,0);}
function aaVideoOpenFromAlbum(aaVideoPath){var aaVidP=aaVideoPath;if(aaVideoPath.substr(0,15)=="home/videos/../")aaVidP=("home/"+aaVideoPath.substring(15));alInterfaceEnabled=false;aaResetExtFunctions(aaCurrentPageContainer)
aaExtFunctions[2]="{aaVideoResize();}";alCheckSelectedAlbumLink(aaVideoPath.substring(0,aaVideoPath.lastIndexOf("/")+1));alFadeOutEveryAlbumStep=0;alFadeOutEveryAlbum();aaHideObject("alTXT");aaHideObject("alM");aaHideObject("alScrB");aaVideoCreateContainer(parseInt(document.getElementById("al"+alSelectedAlbum).style.left),parseInt(document.getElementById("al"+alSelectedAlbum).style.top),246,226,1,true);if(document.body.offsetHeight)document.getElementById("aaVideoContainer").innerHTML=aaVideoReturnPreviewHtml("aaVideoContainer",aaVideoPath,0);else document.getElementById("aaVideoContainer").innerHTML='';aaAnimateObject("aaVideoContainer",0,0,aaContentDivW,aaContentDivH,1,null,"{aaLoadVideoInContainer('aaVideoContainer','"+aaVideoPath+"',0,true);aaPositionateObject('aaVideoContainer',null,null,aaContentDivW-4,aaContentDivH-4,null,null,0);}",700,true,aaCurve700Pop,1);aaAnimateObject('al'+alSelectedAlbum,null,null,null,null,0,null,'aaHideObject(\"al\"+alSelectedAlbum);',700,false,aaCurve700Pop,2);}
function aaVideoReturnToAlbum(){alResize();aaAjaxComm(aaLastLoadedAlbum+"comments.txt","",true);document.getElementById("aaVideoContainer").innerHTML='';aaSetObjectOpacity("al"+alSelectedAlbum,1,2);aaShowObject("al"+alSelectedAlbum);aaSetObjectOpacity("al"+alSelectedAlbum,0.01,2);aaPositionateObject('aaVideoContainer',0,0,aaContentDivW,aaContentDivH,null,null,0);aaAnimateObject('aaVideoContainer',parseInt(document.getElementById("al"+alSelectedAlbum).style.left),parseInt(document.getElementById("al"+alSelectedAlbum).style.top),246,226,null,null,'{aaAnimateObject("al"+alSelectedAlbum,null,null,null,null,1,"aaShowObject(\'al\'+alSelectedAlbum);","alReturnToAlbum()",250,true,aaCurve250Linear,2);document.getElementById(aaCurrentObjectContainer).removeChild(document.getElementById("aaVideoContainer"));}',500,true,aaCurve500Linear,1);}