<!-- BEGIN MAIN CONTENT -->
<div id="videowatch_body">
	<div id="videowatch_top">

		<div id="videowatch">

			<link href="{$cssurl}/videos.css" rel="stylesheet" type="text/css" /> 

			<div id="search_page" class="clear">
{literal}
<style>
div.videoWatchThumbs{
width:320px;
text-align:center;
}
div.videoWatchThumbs img{
margin:2px;
}
div.videoWatchThumbs2{
float:left;
text-align:center;
margin:auto;
}
</style>
<script type="text/javascript">function vwConnect(){var vwhttp,vWDunDem=false;try{vwhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{vwhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){try{vwhttp=new XMLHttpRequest()}catch(e){vwhttp=false}}}if(!vwhttp)return null;this.connect=function(vwURL,vwMWV,vwVW,vwEND){if(!vwhttp)return false;vWDunDem=false;vwMWV=vwMWV.toUpperCase();try{if(vwMWV=="GET"){vwhttp.open(vwMWV,vwURL+"?"+vwVW,true);vwVW=""}else{vwhttp.open(vwMWV,vwURL,true);vwhttp.setRequestHeader("Method","POST "+vwURL+" HTTP/1.1");vwhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}vwhttp.onreadystatechange=function(){if(vwhttp.readyState==4&&!vWDunDem){vWDunDem=true;vwEND(vwhttp)}};vwhttp.send(vwVW)}catch(z){return false}return true};return this}function vwFetch(vwt){vwt=document.getElementById(vwt);return vwt}function makeNewThumbnails(VID){var string="|";for(i=1;i<=3;i++){var vwObject=new vwElement(vwFetch("vwthumb"+i).id);if(vwObject.checkbox().checked==true){string+=i+"|"}}var newConn=new vwConnect();newConn.connect("videoWatchThumbs.php","POST","VIDEOID="+VID+"&vWt="+string,vwGetAll)}function vwGetAll(xml){var now=new Date();for(i=1;i<=3;i++){var vwObject=new vwElement(vwFetch("vwthumb"+i).id);vwObject.img().src=vwObject.img().src+"?"+now.getTime()}}function vwSelected(vwt){id=vwt.parentNode.id;var vwObject=new vwElement(id);if(vwObject.img().border==0){vwObject.img().border=3;vwObject.checkbox().checked=true}else{vwObject.img().border=0;vwObject.checkbox().checked=false}}function vtmb(vwt){vwt.onclick=function(){vwSelected(this)};vwt.onmouseover=function(){document.body.style.cursor='pointer'};vwt.onmouseout=function(){document.body.style.cursor='default'}}function vwStartThumbsGen(){for(i=1;i<=3;i++){var vwObject=new vwElement(vwFetch("vwthumb"+i).id);vwObject.img();vtmb(vwObject.checkbox());vwObject.img().border="0";vtmb(vwObject.img())}}function vwElement(id){function vwFetchSelected(){checkbox=vwFetch(id).getElementsByTagName('input');checkbox=checkbox[0];return(checkbox)}function vwFetchIt(){img=vwFetch(id).getElementsByTagName('img');img=img[0];return(img)}this.img=vwFetchIt;this.checkbox=vwFetchSelected}window.onload=function(){vwStartThumbsGen()}</script>
{/literal}

<div id="browse">
	<div id="sideAd" >
		<span>{$lang0}</span>
        {insert name=get_advertisement value=var AID="2"}
	</div>

	<h1>{$lang454}!</h1>
	<div class="containerD containerWAdSpace">
		<div class="clear" style="height: 10px;"></div>
		<div id="result_container" class="clear">
		<ul class="vList_vFull clearfix clear">
		</ul>
        <ul class="vList_vFull clearfix clear">
        
        	<link href="{$cssurl}/account.css" rel="stylesheet" type="text/css">
            
        	{if $error ne ""}
            	<div class="errorMsg2" id="errorMsg2" name="errorMsg2" style="display:''">
					{$error}
				</div>
            
            {else}
            
            <div class="accountMenu">
            	<h2>{$lang319}: </h2>
            </div>
            <center>
            
            <div style="background-color:#FFFF99; padding:5px;">
            	<b>{$lang455}:</b> {$lang456}
            </div>
            
            <div style="padding-bottom:5px;"></div>
{literal}
<script language="JavaScript">
var countDownInterval=15;
var c_reloadwidth=200
</script>
<ilayer id="c_reload" width=&{c_reloadwidth}; ><layer id="c_reload2" width=&{c_reloadwidth}; left=0 top=0></layer></ilayer>
<script>
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all)
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById)
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){
document.c_reload.document.c_reload2.document.write('Next <a href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout("countDown()", 1000);
}
function startit(){
if (document.all||document.getElementById)
document.write('Next <a href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds')
countDown()
}
if (document.all||document.getElementById)
startit()
else
window.onload=startit
</script>
{/literal}
            <div style="padding-bottom:5px;"></div>
            
            <div id="videoWatchThumbs" class="videoWatchThumbs">
				<div id="vwthumb1" class=videoWatchThumbs2>
					<IMG src="{$thumburl}/{$videoarray[0].VIDEOID}-1.jpg?t={php}echo time();{/php}">
					<br/>
                    <input type="checkbox"/> {$lang320}
				</div>
				<div id="vwthumb2" class=videoWatchThumbs2>
					<IMG src="{$thumburl}/{$videoarray[0].VIDEOID}-2.jpg?t={php}echo time();{/php}">
					<br/>
                    <input type="checkbox"/> {$lang320}
				</div>
				<div id="vwthumb3" class=videoWatchThumbs2>
					<IMG src="{$thumburl}/{$videoarray[0].VIDEOID}-3.jpg?t={php}echo time();{/php}">
					<br/>
                    <input type="checkbox"/> {$lang320}
				</div>
    			<div class="accountMenu">
    				<input type="button" style="background-color:#0099FF; color:#FFFFFF; font-weight:bold; border:1px solid #dfdfdf;" value="Generate New Images" name="Generate" onClick="makeNewThumbnails({$videoarray[0].VIDEOID});">
    			</div>
			</div>
            </center>
            
			<div class="uploadMenu">
            	<h2>{$lang457}:</h2>

				<br />
                {$lang393}:&nbsp;
				<input readonly="readonly" value="{$baseurl}/videos/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}" id="permaSelect" style="width:300px;" />
                <div style="height:5px;"></div>
                
				{$lang394}&nbsp;		
				<input type="text" readonly="readonly" value="{if $videoarray[0].allowembeds eq '0'}Embedding disabled for this video{else}&lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;450&quot; height=&quot;375&quot; wmode=&quot;transparent&quot; src=&quot;{$baseurl}/videowatchproplayer.swf?file={$baseurl}/vdata/{$videoarray[0].VIDEOID}.flv&vid={$videoarray[0].VIDEOID}&baseurl={$baseurl}/&e=y&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;{$baseurl}/videowatchproplayer.swf?file={$baseurl}/vdata/{$videoarray[0].VIDEOID}.flv&vid={$videoarray[0].VIDEOID}&baseurl={$baseurl}/&e=y&quot;&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;/embed&gt;{/if}" id="embedSelect" style="width:300px;"/>

				<div style="height:10px;"></div>
                
                <a href="{$baseurl}/videos/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}">{$lang458}</a>


            </div>
            {/if}

			</ul>
            <ul class="vList_vFull clearfix clear"></ul>
			<div class="clear"></div>
		</div>	
	
    
<div class="clear" style="height: 15px;"></div>	
	

<!-- Paging Begin -->

</div>
<!-- Paging End -->

<div id="drpepper">
</div>

<div class="clear"></div>
</div>	

{include file="accountmenu.tpl"}

<div class="clear"></div>
</div>
</div>

	
{include file="bottom.tpl"}
	
</div>
<!-- END MAIN CONTENT -->