<?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.
 **********************************************************************************
 */
include_once 'includes/profile.inc';
$exists = checkMemberExists();
?>
<input type="hidden" name="ajax" id="ajax" value="<?=$sitepath?>">
<script type="text/javascript" src="<?=$sitepath?>js/profile.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	doMedia('<?=$_GET['user']?>','1');
 });
</script>

<?
if ($exists!='')
{
	echo $exists;
}
else
{
	$action = $_GET['act'];
	if (($action == 'sm')&&(canMessage()=='')&&(!isset($_POST['submit'])))
	{
?>
<div class="main-col">
<form method="post" action="">
<input type="hidden" name="to" value="<?=$toID?>"/>
<input type="hidden" name="from" value="<?=$fromID?>"/>
<input type="hidden" name="type" value="sendmessage"/>
	<h3>(sending to <?=$userandavatar?>)</h3>
	<h3>Enter your message in the box below and click 'send'</h3>
	<p><div id="message"><textarea name="msgbody" rows=6 cols=65></textarea></div></p>
	<p><input class="biggerbutton" type="submit" name="submit" value=" send "/></p>
</form>
</div>
<?
	}
	else
	{
?>


<div id="main-page-col">
<!-- s:LEFT COL -->
<div id="profile-left">
	<h2>Profile Info</h2>
	<!-- s:PROFILE BOX -->
		<?=profileBox()?>
	<!-- e:PROFILE BOX -->

</div>
<!-- e:LEFT COL -->
		<!-- s:MID COL -->
		
		<div id="profile-right">
			<!-- s:TABS -->
			<?=profileTabs()?>
			<!-- e:TABS -->
			<!-- s:TAB CONTENT -->
			<div id="tabC" name="tabC"> </div>
			<!-- e:TAB CONTENT -->
		</div>
		<!-- e:MID COL -->
</div>
<?
	}
}
?>
