$arrMenu["02"] = "./";
$arrMenu["03"] = "sortiment.php";
$arrMenu["04"] = "prenumerera.php";
$arrMenu["05"] = "kontakt.php";
$thisScriptName = substr($_SERVER['SCRIPT_NAME'],1);
if (strrpos($thisScriptName,"/")) {
$thisScriptName = substr($_SERVER['SCRIPT_NAME'],strrpos($thisScriptName,"/")+2);
}
if ($topmenuactive<>"") {
$thisScriptName = $topmenuactive;
}
foreach ($arrMenu as $menuImg => $menuUrl) {
if ($thisScriptName==$menuUrl) {
$menuImg = $menuImg."-down";
print " ";
} else {
print " ";
}
}
?> |