  <div id="menu03">
    <div id="menu01_head">:: kategórie</div>
    <div id="menu01_item">
    <?php
    	
    	foreach($sms_cats as $k => $v)
    	{
    		if($k == $cat && $action=='')
    		{
    			echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <span class='red'>$v</span><br />";
    		}
    		else 
    		{
	    		echo "<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href=\"index.php?module=smsky&amp;cat=$k&amp;i=1\" id=\"menu01_link\">$v</a><br />\n";
    		}
    	}
//    	if(session_is_registered('my_id') && in_array($_SESSION['my_id'], $admins))
//    	{
//    		echo '<br />';
//    		if(!session_is_registered('pozadia_edit'))
//    		{
//    			echo "- <a href=\"index.php?module_top=pozadia_sort&amp;action=on\" id=\"menu01_link\">zapni triedenie</a> ";
//    		}
//    		else 
//    		{
//    			echo "- <a href=\"index.php?module_top=pozadia_sort&amp;action=off\" id=\"menu01_link\">vypni triedenie</a> ";
//    		}
//    	}
    ?>

    </div>
  </div>
  
<?php
  	
if(isset($_SESSION['mobile_logged_in']))
{
//	(key_exists('cat', $_GET) && $_GET['cat']<>'') ? $cat = $_GET["cat"] : $cat = 1;
//	(key_exists('res', $_GET) && $_GET['res']<>'') ? $res = $_GET["res"] : $res = '';
//	(key_exists('action', $_GET) && $_GET['action']<>'') ? $action = $_GET["action"] : $action = '';
//
//	$query = ($action == 'new') ? 'SELECT distinct(res) FROM mobile_pozadia' : "SELECT distinct(res) FROM mobile_pozadia WHERE cat='$cat'";
//	$t_dist = $dba->GetArray($query);
//	$menu_res = array();
//	if(is_array($t_dist))
//	{
//		foreach($t_dist as $d)
//		{
//			array_push($menu_res, $d['res']);
//		}
//	}
	
  ?>
  
    <div id="menu03">
    <div id="menu01_head">:: rebríčky</div>
    <div id="menu01_item">
    	<img src='images/arrow-left.png' class='sipka' class='sipka' alt='4mobile' /> <a href="index.php?module=smsky&amp;action=new" id="menu01_link">NEW <?php echo $sms_charts; ?></a><br />
    	<img src='images/arrow-left.png' class='sipka' alt='4mobile' /> <a href="index.php?module=smsky&amp;action=top" id="menu01_link">TOP <?php echo $sms_charts; ?></a><br />
    </div>
  </div>
  
  
<?php
}
?>

<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>