$res = mysql_query("SELECT * FROM NewsKat WHERE NewsKatActive=1 ORDER BY NewsKatOrder");
while ($row = mysql_fetch_array($res))
{
if ($sprach=="de")
$katname = $row['NewsKatName'];
else
$katname = $row['NewsKatName2'];
if ($_GET['cat']==$row['NewsKatID'])
$page_item = "current_page_item";
else
$page_item = "page_item";
$menu_li = $menu_li .'
'.$katname.'';
$res_ks = mysql_query("SELECT * FROM News WHERE NewsLang='$katname' AND NewsActive=1 ORDER BY NewsOrder");
if (mysql_num_rows($res_ks)>0)
{
$menu_li = $menu_li. '
';
while ($row_ks = mysql_fetch_array($res_ks))
{
$count++;
if ($sprach=="de")
$NewsName = $row_ks['NewsName'];
else
$NewsName = $row_ks['NewsName2'];
$menu_li = $menu_li. '