//switch statement to change the image of the tab to an active tab for the selected page
switch($title){
case "Home Page":
$home = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$about = "style=\"\"";
$menu = "style=\"\"";
$contact = "style=\"\"";
break;
case "About Us":
$home = "style=\"\"";
$about = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$menu = "style=\"\"";
$contact = "style=\"\"";
break;
case "Menu - Pizza":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Menu - Pastas":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Menu - Salads & Light Meals":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Menu - Breads":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Menu - Gelati":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Menu - Softdrinks":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
$contact = "style=\"\"";
break;
case "Contact Us":
$home = "style=\"\"";
$about = "style =\"\"";
$menu = "style=\"\"";
$contact = "style=\"background:url(images/tab_active.gif); color:#CE2727\"";
break;
}
?>
Menu
include("includes/menu_panel.inc");
?>