<?php
/*
 **************************************************************************************************
 *    Copyright (c) 2010-2012 Just Another Video script
 *
 * 	  This file is part of Just Another Video Script.
 *    Version 1.4.3
 *    info@justanothervideoscript.com
 **************************************************************************************************
 *    Come to website for support or buying additional plugins/modules.
 *    http://justanothervideoscript.com/
 **************************************************************************************************
 *    By using this software you agree that you have read and acknowledged our End-User License
 *    Agreement available at http://justanothervideoscript.com/license and can be bound by it.
 **********************************************************************************
 */
?>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<?php 
global $sitepath,$template ;
include_once "includes/play.inc" ;
if ($haltmessage != "") {
	echo '<h1>Private Media</h1><h2>'.$haltmessage.'</h2>' ;
}
else {
?>
<input type="hidden" id="ajax" name="ajax" value="<?=$sitepath?>">
<script type="text/javascript" >
video_id = <?php echo $vidid; ?>;
</script>
<script type="text/javascript" src="<?=$sitepath?>js/play.js">
</script>
<script type="text/javascript" src="<?=$sitepath?>js/rate.js">
</script>
<script type="text/javascript">
	$(document).ready(function(){
	    displayRate('<?=$vidid?>', '<?=$pagelink?>');
	});
</script>

<div id="tags"><?=$tags?></div>
<div id="posterz" style="display:none;"><?= $poster?></div>
	<? 
		$_SESSION['session_poster'] == $poster ;
	?>
  <div id="ad12"><?=$ad12?></div>	
   <div id="main-page-col">

    <div id="main-play-right">
     <div id="ad13"><?=$ad13?></div>
      </div>

       <div id="main-play-left">
	   <h2><?=$title?></h2>
		<div id="main-player">    
		 <?=$mediaPlayer?>
             <h4><b>Description: </b><c><?=$description?></c></h4>
               
	            </div>
   		
          <div id="main-under-player-left">     			                             
           <?=$personalvideoad?>
             <div id="ad14"><?=$ad14?></div>
	         <?= $showsocial?>
		    <div id="RaTe"></div>
		    
		<div id="playlinks">
			<li><?= $flagvidlink?></li>
			<li><?= $addfavlink?></li>
			<li><?= $Jdownload?></li>
		</div>
		<div id="playuserinfo">
			<li><h4><b>From:</b> <a href="<? echo $sitepath."profile/".$poster;?>"> <c><?=$poster?></a></c></h4></li>
			<li><h4><b>Category:</b> <c><?= $category?></c></h4></li>
			<li><h4><b>Tags: </b><c><?= $taglinks?></c></h4></li>
		</div>	
			
			
			
			
<div id="download"></div>

               <div id="main-related-col"> 
		      <div id="related-col">
                  <h5>Related Videos</h5>
                    <div id="ad15"><?=$ad15?></div>
			      <div id="resultz"></div>
	                  <div id="ad16"><?=$ad16?></div>
	                    </div>
                           </div>

                   <div id="main-comment-col">                                    
                    <h2>Comments</h2>
		           <div id="commentz">
	                  </div>
		              <div id="Cstats">
	                     </div>		        
                            </div>
                             </div>
                              </div>
                               </div>

                         <? } ?>