<table width="160" border="0" cellpadding="0" cellspacing="0" bgcolor="<?php echo $menu_parm[2] ?>">
<tr height=\"10\"><td colspan="5"></td></tr>
<?php

#############################################################################
#                              Site@School
# menu3.php: last changed 29/06/2006  , version: 2.4.02
# by Fred Stuurman  (fc.stuurman@hccnet.nl)
# LICENSE INFORMATION: see LICENCE.txt in starnet directory
#$Id: menu3.php,v 1.1 2006/10/03 11:13:16 fstuurman Exp $
#############################################################################
if (!defined('IN_SAS'))
{
	die("Hacking attempt");
}

$query1 = "SELECT id, name, module FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
$result1 = mysql_query($query1) or die_script($query1, mysql_error());
while ($sectionmenu = mysql_fetch_array($result1))
{
	if ($sectionmenu[0] == $page)
	{
		print "<tr><td colspan=\"5\"></td></tr>
				 <tr bgcolor=\"$menu_parm[5]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[5]'\"><td>&nbsp;</td>
				 <td align=\"center\"><img src=\"$cmsdir/themes/$themelocation/orange.gif\" alt=\"\"></td>
				 <td>&nbsp;</td>
				 <td class=\"mainmenu\" nowrap=\"nowrap\">
				 <span STYLE=\"font-family: $menu_parm[6]; font-size : $menu_parm[7]; color: $menu_parm[8]\">$sectionmenu[1]</td>
				 <td>&nbsp;</td>
				 </tr>";
	}
	elseif (substr($sectionmenu[2], 0, 5) == "http:")
	{
		print "<tr height=\"5\"><td colspan=\"5\"></td></tr>
				 <tr bgcolor=\"$menu_parm[5]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[5]'\">
				 <td>&nbsp;</td><td align=\"center\"><img src=\"$cmsdir/themes/$themelocation/point_menu.gif\" alt=\"\"></td>
				 <td>&nbsp;</td>
				 <td width=\"100\" class=\"mainmenu\" nowrap=\"nowrap\"><a href=\"$sectionmenu[2]\" target=\"_blank\">
				 <span STYLE=\"font-family: $menu_parm[6]; font-size : $menu_parm[7]; color: $menu_parm[8]\">$sectionmenu[1]</a></td>
				 <td>&nbsp;</td>
				 </tr>";
	}
	elseif (substr($sectionmenu[2], 0, 5) == "file:")
	{
		$link = substr($sectionmenu[2], 7);
		print "<tr height=\"5\"><td colspan=\"5\"></td></tr>
				 <tr bgcolor=\"$menu_parm[5]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[5]'\"><td>&nbsp;</td><td align=\"center\"><img src=\"$cmsdir/themes/$themelocation/point_menu.gif\" alt=\"\"></td>
				 <td>&nbsp;</td>
				 <td width=\"100\" class=\"mainmenu\" nowrap=\"nowrap\"><a href=\"$link\" target=\"_blank\">
				 <span STYLE=\"font-family: $menu_parm[6]; font-size : $menu_parm[7]; color: $menu_parm[8]\">$sectionmenu[1]</a></td>
				 <td>&nbsp;</td>
				 </tr>";
	}
	else
	{
		print "<tr height=\"5\"><td colspan=\"5\"></td></tr>
				 <tr bgcolor=\"$menu_parm[3]\" onMouseOver=\"this.bgColor='$menu_parm[4]'\" onMouseOut=\"this.bgColor='$menu_parm[3]'\">
				 <td>&nbsp;</td><td align=\"center\"><img src=\"$cmsdir/themes/$themelocation/point_menu.gif\" alt=\"\"></td>
				 <td>&nbsp;</td>
				 <td class=\"mainmenu\" nowrap=\"nowrap\"><a href=\"index.php?page=$sectionmenu[0]&section=$section\">
				 <span STYLE=\"font-family: $menu_parm[6]; font-size : $menu_parm[7]; color: $menu_parm[8]\">$sectionmenu[1]</a></td>
				 <td>&nbsp;</td>
				 </tr>";
	}
}
?>
<tr height="5"><td colspan="5"></td></tr>
</table>
