	<!-- stylesheets -->
  	<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
  	<link rel="stylesheet" href="css/slide.css" type="text/css" media="screen" />
	
  	<!-- PNG FIX for IE6 -->
  	<!-- http://24ways.org/2007/supersleight-transparent-png-in-ie6 -->
	<!--[if lte IE 6]>
		<script type="text/javascript" src="js/pngfix/supersleight-min.js"></script>
	<![endif]-->
	 
    <!-- jQuery - the core -->
	<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<!-- Sliding effect -->
	<script src="js/slide.js" type="text/javascript"></script>

</head>

<body>
<!-- Panel -->
<div id="toppanel">
	<div id="panel">
		<div class="content clearfix">
			<div class="left">
				<h1>Welcome to ExtremShare.Net</h1>
				<h2>Acount Panel</h2>		
				<p class="grey">If you have a acount , please login!</p>
				<p class="grey">You dont have a acount , please register!</p>
                <p class="grey"><b>Thank you!</b></p>
			</div>
			<div class="left">
				<!-- Login Form -->
<?php
include("logare/bazadb.php");
include("logare/loginslide.php");
include("config.php");
echo $logged_in; 
?>
			</div>
			<div class="left right">			
				<!-- Register Form -->
				<form action="register.php" method="post">
					<h1>Not a member yet? Sign Up!</h1>				
					<label class="grey" for="signup">Username:</label>
					<input class="field" type="text" name="signup" id="signup" value="" size="23" />
					<label class="grey" for="email">Email:</label>
					<input class="field" type="text" name="email" id="email" size="23" />
					<label>A password will be e-mailed to you.</label>
					<input type="submit" name="submit" value="Register" class="bt_register" />
				</form>
			</div>
		</div>
</div> <!-- /login -->	

	<!-- The tab on top -->	
	<div class="tab">
		<ul class="login">
			<li class="left">&nbsp;</li>
            
<?php
if(isset($_SESSION['nume'])) {
      	$username = ''.$_SESSION['nume'].'';
  $getuser = mysql_query("SELECT * from utilizatori WHERE nume='$username'");
  $getuser3=mysql_fetch_array($getuser);
  if(strlen($getuser3[nume])>1)
  {        
print "<li>Hello <a href='panel.php'>".$_SESSION['nume']."</a>!</li>";
}}else{
echo "<li>Hello Guest!</li>";
}
?>
        	<li class="sep">|</li>
			<li id="toggle">
<?php
if(isset($_SESSION['nume'])) {
      	$username = ''.$_SESSION['nume'].'';
 $getuser = mysql_query("SELECT * from utilizatori WHERE nume='$username'");
  $getuser3=mysql_fetch_array($getuser);
  if(strlen($getuser3[nume])>1)
  {        
print "<li><a id='close' class='close' href='logare/logout.php'>Log Out</a></li><a id='close' style='display: none;' class='close' href='#'>Close Panel</a>";
}}else{
echo "<li><a id='open' class='open' href='#'>Log In | Register</a></li>";
}
?>     

<a id='close' style='display: none;' class='close' href='#'>Close Panel</a></li>                   	
			
			<li class="right">&nbsp;</li>
		</ul> 
	</div> <!-- / top -->
	
</div> <!--panel -->  