<!-- 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>{$lang318}</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>
            {/if}
            {if $message ne ""}
            	<div class="successMsg2" id="successMsg2" name="successMsg2" style="display:''">
					{$message}
				</div>
            {/if}
            
            <div class="accountMenu">
            	<h2>{$lang319}: </h2>
            </div>
            <center>
            <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="{$lang321}" name="{$lang322}" onClick="makeNewThumbnails({$videoarray[0].VIDEOID});">
    			</div>
			</div>
            </center>

            <form id="editvideoform" name="editvideo" method="post" enctype="multipart/form-data" action="{$baseurl}/myvideosedit.php?VIDEOID={$smarty.request.VIDEOID}">
            <div class="accountMenu">
            	<h2>{$lang323}: </h2>
            </div>
            <div class="uploadMenu2">
                {$lang324}:&nbsp;
                <input type="text" name="title" id="title" value="{$videoarray[0].title}" class="textField" size="40"/><br />
                <div style="height:5px;"></div>
                
                {$lang113}:<br />
                <textarea name="description" id="description" rows=3 cols=45>{$videoarray[0].description}</textarea><br />
                <div style="height:5px;"></div>
                
                {$lang325}:<br />
                <input type="text" name="tags" id="tags" value="{$videoarray[0].tags}" class="textField" size="40"/><br />
                <div style="height:5px;"></div>
                
                {$lang326}:&nbsp;
                <select id="category" name="category">
                <option value="0">{$lang115}</option>
                {insert name=get_video_categories assign=listvideocategories}
            	{section name=o loop=$listvideocategories}
	    		<option value="{$listvideocategories[o].CATID}" {if $videoarray[0].categories eq $listvideocategories[o].CATID}selected="selected"{/if}>{$listvideocategories[o].name}</option>
            	{/section}
                </select>
                <div style="height:5px;"></div>
                
                {$lang329}:&nbsp;
                <input type="radio" value="1" name="public" id="public" {if $videoarray[0].public eq "1"}checked{/if}> {$lang327}&nbsp;&nbsp;&nbsp;
            	<input type="radio" value="0" name="public" id="public" {if $videoarray[0].public eq "0"}checked{/if}> {$lang328}
                <div style="height:5px;"></div>
                
                {$lang330}:&nbsp;
                <input type="radio" value="1" name="allowcomments" id="allowcomments" {if $videoarray[0].allowcomments eq "1"}checked{/if}> {$lang335}&nbsp;&nbsp;&nbsp;
            	<input type="radio" value="0" name="allowcomments" id="allowcomments" {if $videoarray[0].allowcomments eq "0"}checked{/if}> {$lang336}
                <div style="height:5px;"></div>
                
                {$lang331}:&nbsp;
                <input type="radio" value="1" name="allowratings" id="allowratings" {if $videoarray[0].allowratings eq "1"}checked{/if}> {$lang335}&nbsp;&nbsp;&nbsp;
            	<input type="radio" value="0" name="allowratings" id="allowratings" {if $videoarray[0].allowratings eq "0"}checked{/if}> {$lang336}
                <div style="height:5px;"></div>
                
                {$lang332}:&nbsp;
                <input type="radio" value="1" name="allowembeds" id="allowembeds" {if $videoarray[0].allowembeds eq "1"}checked{/if}> {$lang335}&nbsp;&nbsp;&nbsp;
            	<input type="radio" value="0" name="allowembeds" id="allowembeds" {if $videoarray[0].allowembeds eq "0"}checked{/if}> {$lang336}
                <div style="height:5px;"></div>
                
                {$lang333}:&nbsp;
                <input type="radio" value="1" name="allowdownloads" id="allowdownloads" {if $videoarray[0].allowdownloads eq "1"}checked{/if}> {$lang335}&nbsp;&nbsp;&nbsp;
            	<input type="radio" value="0" name="allowdownloads" id="allowdownloads" {if $videoarray[0].allowdownloads eq "0"}checked{/if}> {$lang336}
                <div style="height:5px;"></div>
                
                {$lang334}:&nbsp;
                <input type="radio" value="1" name="mature" id="mature" {if $videoarray[0].mature eq "1"}checked{/if}> {$lang335}&nbsp;&nbsp;&nbsp;
                <input type="radio" value="0" name="mature" id="mature" {if $videoarray[0].mature eq "0"}checked{/if}> {$lang336}
                <div style="height:5px;"></div>
            </div>
            
            <div class="accountMenu">
                <input type="hidden" name="VIDEOID" value="{$smarty.request.VIDEOID}" />
				<input type="hidden" name="editvideo" value="editvideo" />
        		<INPUT class="inputBox" type=image value="editvideo" src="{$imageurl}/buttons/{$smarty.session.language}/submitbig.jpg" height="30px" style="height:30px;" border="0" name=editvideo>
            </div>
            </form>

			<!-- new row -->
			</ul><ul class="vList_vFull clearfix clear">
	        <!-- new row end -->     
	

			</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 -->