<?php
  /**
   * Header
   *
   * @package Digital Downloads Pro
   * @author wojoscripts.com
   * @copyright 2010
   * @version $Id: header.php, v2.00 2011-07-10 10:12:05 gewa Exp $
   */
  
  if (!defined("_VALID_PHP"))
      die('. دسترسی مستقیم به این محل مجاز نمی باشد');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $content->getMeta();?>
<script language="javascript" type="text/javascript">
var SITEURL = "<?php echo SITEURL; ?>";
</script>
<link href="<?php echo SITEURL; ?>/assets/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo SITEURL; ?>/assets/jquery.js"></script>
<script type="text/javascript" src="<?php echo SITEURL; ?>/assets/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="<?php echo SITEURL; ?>/assets/global.js"></script>
<script type="text/javascript" src="<?php echo SITEURL; ?>/assets/front-global.js"></script>
<script type="text/javascript" src="<?php echo SITEURL; ?>/assets/tooltip.js"></script>
<link href="<?php echo SITEURL; ?>/assets/redmond/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SITEURL;?>/assets/pirobox/css_pirobox/style_2/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo SITEURL;?>/assets/pirobox/js/pirobox_extended_min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	  $('input[type="checkbox"]').ezMark();
	  $('input[type="radio"]').ezMark();
	  $().piroBox_ext({
	  piro_speed : 700,
		  bg_alpha : 0.5,
		  piro_scroll : true
	  });
  
});
$(function(){
	$("#menu ul li:has(ul)").find("span:first").addClass("down");
	$("#menu ul li ul li:has(ul)").find("span:first").removeClass("down");
	$("#menu ul li ul li:has(ul)").find("a:first").addClass("fly");
});
$(function(){
  $('#errid').click();
});
</script>
</head>
<body>
<?php if(isset($_GET['msg'])):?>
<a href="getmsg.php?msg=<?php echo $_GET['msg'];?>" rel="content-300-80" class="pirobox" title="Error" id="errid"></a>
<?php endif;?>
<div class="wrapper">
<div id="header">
  <div class="wrap">
    <div class="topmenu"><?php $content->getMenu();?></div>
	
<div class="usermenu">
	<?php echo $user->username;?> ، خـوش آمـدیـد 
	&bull; <?php if($user->is_Admin()):?>
	<a href="<?php echo SITEURL; ?>/admin/">کنتـرل پنـل مدیریـت</a>
	&bull; <?php endif;?><?php if(!$user->logged_in):?><a href="<?php echo SITEURL; ?>/login.php">ورود</a>
	&bull; <a href="<?php echo SITEURL; ?>/register.php">ثـبـت نـام</a>
	&bull; <?php else:?> <a href="<?php echo SITEURL; ?>/account.php">حسـاب کاربری مـن</a>
	&bull; <?php endif;?><?php if($user->logged_in):?> <a href="<?php echo SITEURL; ?>/logout.php">خـــروج</a>
	&bull; <?php endif;?><a href="<?php echo SITEURL; ?>/checkout.php">پـرداخـت</a>
	&bull; سبـد خـریــد 
	&raquo; ( <span class="cart-status"><?php $content->getCartCounter();?></span> )
</div>
	
    <div class="clear"></div>
    <div class="logo"><a href="index.php"><?php echo ($core->logo) ? '<img src="'.SITEURL.'/uploads/'.$core->logo.'" alt="'.$core->company.'" />': $core->company;?></a></div>
<div class="ajax-search">
    <form action="<?php echo SITEURL;?>/search.php" method="post">
    <input name="keywords" type="text" id="inputString" onkeyup="lookup(this.value);" size="50" onclick="disAutoComplete(this);" />
    </form>
    <div id="suggestions"></div>
</div>
    <div class="clear"></div>
    <div id="menu"> <span class="home"><a href="<?php echo SITEURL; ?>/index.php"><img src="<?php echo SITEURL; ?>/images/home.png" class="tooltip" title="خـانـه" alt="" /></a></span>
      <?php $catmenu = $content->getCatList(); $content->getCategories($catmenu,0);?>
      <div class="clear"></div>
    </div>
  </div>
</div>
<div id="content">
    <div class="wrap">