<?php

	$cat = (isset($_GET['cat']) && array_key_exists($_GET['cat'], $theme_categories)) ? $_GET['cat'] : 0;
	$typ = (isset($_GET['typ']) && array_key_exists($_GET['typ'], $theme_types)) ? $_GET['typ'] : 0;

?>

<div id="menu03">
  	<div id="menu01_head">:: kategória</div>
    <div id="menu01_item">
      <?php
      
      		foreach($theme_categories as $k => $theme_cat)
      		{
      			if($k == $cat)
      			{
      				echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <span class='red'>$theme_cat</span><br />";
      			}
      			else 
      			{
      				echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href=\"index.php?module=temy&amp;typ=$typ&amp;cat=$k\" id=\"menu01_link\">".$theme_cat."</a><br />";
      			}
  			}
      
      ?>
      <img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=temy&amp;typ=<?php if(isset($_GET['typ'])) echo $_GET['typ']; ?>" id="menu01_link">všetky</a>
    </div>
    </div>
   
    <div id="menu03">
    <div id="menu01_head">:: typ</div>
    <div id="menu01_item">
      <?php
      
      		foreach($theme_types as $k => $theme_type)
      		{
      			if($k == $typ)
      			{
      				echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <span class='red'>".$theme_type['type']."</span><br />";
      			}
      			else
      			  echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href=\"index.php?module=temy&amp;typ=$k&amp;cat=$cat\" id=\"menu01_link\">".$theme_type['type']."</a><br />";
      		}
      
      ?>
      <img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=temy&amp;cat=<?php if(isset($_GET['cat'])) echo $_GET['cat']; ?>" id="menu01_link">všetky</a><br />
    </div>
  </div>
  
  <div id="menu03">
    <div id="menu01_head">:: rebríčky</div>
    <div id="menu01_item">
    	<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=temy&amp;action=new" id="menu01_link">NEW <?php echo $temy_charts; ?></a><br />
    	<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=temy&amp;action=top" id="menu01_link">TOP <?php echo $temy_charts; ?></a><br />
    	<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=temy&amp;action=dload" id="menu01_link">TOP DLOAD<?php echo $hry_charts; ?></a>
    </div>
  </div>
  
  <div id="menu03">
    <div id="menu01_head">:: reklama</div>
    <div id="news_item">
     <script type="text/javascript"><!--
		google_ad_client = "pub-4917301309934013";
		//120x600, bola vytvorená 14.1.2008
		google_ad_slot = "2443565869";
		google_ad_width = 120;
		google_ad_height = 600;
		//--></script>
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
    </div>
  </div>