<?php include("includes/head.tpl"); ?>
<div id="wrapper">

<div id="container">

<div id="header">
  <?php if ($logo) { ?>
  <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div>
  <?php } ?>
  <?php if (count($languages) > 1) { ?>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
    <div id="language"><?php echo $text_language; ?><br />
      <?php foreach ($languages as $language) { ?>
      &nbsp;<img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>').submit(); $(this).parent().parent().submit();" />
      <?php } ?>
      <input type="hidden" name="language_code" value="" />
      <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
    </div>
  </form>
  <?php } ?>
  <?php if (count($currencies) > 1) { ?>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
    <div id="currency">
	<table><tr><td>
	<?php echo $text_currency; ?></td>
    <td> <?php if ($currencies) { ?>
        <form action="<?php echo str_replace('&', '&amp;', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
          <select style="font-family:calibri;margin-top:-20px;" name="currency_code" onChange="$('input[name=\'currency_code\']').attr('value', $('#currencies option:selected').val()
).submit(); $(this).parent().parent().submit();">
           <?php foreach ($currencies as $currency) { ?>
            	<?php if ($currency['code']) { ?>
            	<?php if ($currency['code'] == $currency_code) { ?>
                    	<option class="option" selected value="<?php echo $currency['code']; ?>"><?php echo $currency['code']; ?><?php //$_COOKIE["CCCOUNTRY"]; ?></option>
            	<?php }else{  ?>
                    	<option class="option" value="<?php echo $currency['code']; ?>"><?php echo $currency['code']; ?></option>
				<?php } ?>
            <?php } }?>
          </select>
          <div style="display: inline;">
            <!--<input type="hidden" name="currency_code" value="" />  Comment by Maneeram after implement the "Select and Option" -->
            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          </div>
        </form>
        <?php } ?> </td></tr></table> 
      <input type="hidden" name="currency_code" value="" />
      <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
    </div>
  </form>
  <?php } ?>
 <!-- <div id="cart">
    <div class="heading">
      <h4><?php echo $text_cart; ?></h4>
      <a><span id="cart_total"><?php echo $text_items; ?></span></a></div>
    <div class="content"></div>
  </div>
  <div id="search">
    <div class="button-search"></div>
    <?php if ($filter_name) { ?>
    <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
    <?php } else { ?>
    <input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
    <?php } ?>
  </div> -->
  <div id="welcome">
    <?php if (!$logged) { ?>
    <?php echo $text_welcome; ?>
    <?php } else { ?>
    <?php echo $text_logged; ?>
    <?php } ?>
  </div> 
  <div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
</div>

<div id="menu">
  <ul>
  <li><a href="">PENDANTS &nbsp;&nbsp;| </a></li>
  <li><a href=""> NECKLACES &nbsp;&nbsp;|</a></li>
  <li><a href="">EARRINGS &nbsp;&nbsp;|</a></li>
  <li><a href="">RINGS &nbsp;&nbsp; |</a></li>
  <li><a href="">BRACELETS &nbsp;&nbsp;|</a></li>
  <li><a href="">STUDS &nbsp;&nbsp;|</a></li>
  <li><a href="">WEDDING &nbsp;&nbsp;|</a></li>
  <li><a href="">COLLECTIONS &nbsp;&nbsp;|</a></li>
  <li><a href="">GIFTS &nbsp;&nbsp;|</a></li>
  <li><a href="">BLOG</a></li>

  </ul>
</div>


<div class="clear"></div>
</div>

<div id="notification"></div>
