<script language="JavaScript">
<!-- //
menu1 = "<span class=text><b><?php echo $sas_lang['startcenter'] ?></b></span>" ;
menu2 = "<span class=text><b><?php echo $sas_lang['pagemanager'] ?></b></span>" ;
menu3 = "<span class=text><b><?php echo $sas_lang['filemanager'] ?></b></span>" ;
menu4 = "<span class=text><b><?php echo $sas_lang['modulemanager'] ?></b></span>" ;
menu5 = "<span class=text><b><?php echo $sas_lang['configuration'] ?></b></span>" ;
menu6 = "<span class=text><b><?php echo $sas_lang['stats'] ?></b></span>" ;
menu7 = "<span class=text><b><?php echo $sas_lang['tools'] ?></b></span>" ;
blank = " " ;

function displayText(text)
{
	if (document.all) 
	{
	document.all['menutext'].innerHTML = eval(text);
	} 
	else 
	{
	document.getElementById("menutext").innerHTML = eval(text);  
	}
}
// -->
</script>
<?php
if (!defined('IN_SAS'))
{
	die("Hacking attempt");
}
$query = "SELECT name FROM $table_users WHERE id = '$_SESSION[userid]'";
$result = mysql_query($query) or die_script(mysql_error());
$user_loggedin = mysql_result($result, 0);
unset ($query);
unset ($result);
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" 
		bordercolor=\"#111111\" width=\"100%\" height=\"45\" bgcolor=\"#13528c\">
		<tr>
		<td align=\"center\" width=\"185\" align=\"left\">
		<img border=\"0\" src=\"graphics/logo.gif\" alt=\"Site@School logo\" title=\"Site@School logo\"></td>
		<td width=\"50\" align=\"center\"><font size=\"1\" color=\"FFFFFF\">
		<b>&nbsp;version<br>&nbsp;" . $sas_config['sas_version'] . "." . $sas_config['sas_patch_version'] . "&nbsp;</b></td>
		<td><center><font size=\"4\" color=\"FFFFFF\"><b>$sitename</b></center></td>
		<td class=\"text\" align=\"right\"><font size=\"2\" color=\"FFFFFF\">" . $sas_lang['username'] . " : 
		<b>$user_loggedin &nbsp;&nbsp;</b></font></td>
		</tr>
		</table>";

print "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" bgcolor=\"#FFF0F0\">
		<tr>
		<td>
		<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"FFFFFF\">";

if ($highvisibility == 1)
{
	print "<tr height=\"40\">
		<td width=\"2%\" align=\"left\">&nbsp;</td>
		<td width=\"80%\"><span class=text>
		<a href=index.php><font color=#000000>" . $sas_lang['startcenter'] . "</font></a> :: 
		<a href=index.php?option=pagemanager><font color=#000000>" . $sas_lang['pagemanager'] . "</font></a> ::
		<a href=index.php?option=filemanager><font color=#000000>" . $sas_lang['filemanager'] . "</font></a> ::
		<a href=index.php?option=modulemanager><font color=#000000>" . $sas_lang['modulemanager'] . "</font></a> ::
		<a href=index.php?option=configuration><font color=#000000>" . $sas_lang['configuration'] . "</font></a> ::
		<a href=index.php?option=option=stats&suboption=remote><font color=#000000>" . $sas_lang['stats'] . "</font></a> ::
		<a href=index.php?option=tools><font color=#000000>" . $sas_lang['tools'] . "</font></a></span></td>";
}
else
{
	print "<tr height=\"40\">
		<td width=\"30\" align=\"left\">&nbsp;</td>
		<td width=\"300\"><a href=index.php onMouseOver=\"displayText('menu1')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/startcenter.gif\" border=\"0\" alt=\"" . $sas_lang['startcenter'] . "\" title=\"" . $sas_lang['startcenter'] . "\"></a>
		<a href=index.php?option=pagemanager onMouseOver=\"displayText('menu2')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/pagemanager.gif\" border=\"0\" alt=\"" . $sas_lang['pagemanager'] . "\" title=\"" . $sas_lang['pagemanager'] . "\"></a>
		<a href=index.php?option=filemanager onMouseOver=\"displayText('menu3')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/filemanager.gif\" border=\"0\" alt=\"" . $sas_lang['filemanager'] . "\" title=\"" . $sas_lang['filemanager'] . "\"></a>
		<a href=index.php?option=modulemanager onMouseOver=\"displayText('menu4')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/modules.gif\" border=\"0\" alt=\"" . $sas_lang['modulemanager'] . "\" title=\"" . $sas_lang['modulemanager'] . "\"></a>
		<a href=index.php?option=configuration onMouseOver=\"displayText('menu5')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/configuration.gif\" border=\"0\" alt=\"" . $sas_lang['configuration'] . "\" title=\"" . $sas_lang['configuration'] . "\"></a>
		<a href=index.php?option=stats&suboption=remote onMouseOver=\"displayText('menu6')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/graph.gif\" border=\"0\" alt=\"" . $sas_lang['stats'] . "\" title=\"" . $sas_lang['stats'] . "\"></a>
		<a href=index.php?option=tools onMouseOver=\"displayText('menu7')\" onMouseOut=\"displayText('blank')\">
		<img src=\"graphics/tools1.gif\" border=\"0\" alt=\"" . $sas_lang['tools'] . "\" title=\"" . $sas_lang['tools'] . "\"></a></td>";
}

print "
		<td width=\"10\">&nbsp;&nbsp;</td>
		<td>
		<script language=\"JavaScript1.2\">
			if (document.layers)
			{
			document.write('<ilayer name=\"nscontainer\" width=\"100%\" height=\"100\">')
			document.write('<layer name=\"menutext\" width=\"100%\" height=\"100\">')
			document.write('</layer></ilayer>')
			}
			else 
			{
			document.write('<DIV ID=\"menutext\"></DIV>') 
			}
		</script>
		</td>";

print "<td class=\"text\">&nbsp;</td>
		<td align=\"right\"><span class=link><a href=\"" . $sas_config['url'] . "index.php\">" . $sas_lang['public_area'] .
"<a> / <a href=\"index.php?option=logout\">" . $sas_lang['logout'] . "</a></span></td>
		<td width=\"30\" align=\"right\">&nbsp;</td></tr>
		</table>
		</td>
		</tr>
		</table>";
?>
