<link rel="stylesheet" type="text/css" href="catalog/template/default/css/sitemap.css">
<div class="heading"><?php echo $heading_title; ?></div>
<div id="sitemap">
  <div class="a">
    <ul>
      <?php	   
	  foreach ($categories as $category) {	
		if ($category['level'] == '0') {
		  $bullet = 'disc';
		  $margin = 0;
		} elseif ($category['level'] == '1') {
		  $bullet = 'circle';
		  $margin = 40;
		} elseif ($category['level'] > '1') {
		  $bullet = 'square';
		  $margin = ($category['level'] * 4) * 10;
		}
	    
		echo '<li style="list-style-type: ' . $bullet . '; margin-left: ' . $margin . 'px;"><a href="' . $category['href'] . '">' . $category['name'] . '</a></li>' . "\n"; 
	  }
	  ?>
    </ul>
  </div>
  <div class="b">
    <ul>
      <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
        <ul>
          <li><a href="<?php echo $edit; ?>"><?php echo $text_edit; ?></a></li>
		  <li><a href="<?php echo $password; ?>"><?php echo $text_password; ?></a></li>
          <li><a href="<?php echo $address; ?>"><?php echo $text_address; ?></a></li>
          <li><a href="<?php echo $history; ?>"><?php echo $text_history; ?></a></li>
		  <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
        </ul>
      </li>
      <li><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a></li>
      <li><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></li>
      <li><a href="<?php echo $search; ?>"><?php echo $text_search; ?></a></li>
      <li><?php echo $text_information; ?>
        <ul>
          <?php foreach ($informations as $information) { ?>
          <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
          <?php } ?>
          <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
        </ul>
      </li>
    </ul>
  </div>
</div>
