File: /home/panama/public_html_old/header.php
<?
$homelink="menulink";
if($_SERVER['PHP_SELF']=="/" or (strstr($_SERVER['PHP_SELF'],'index.php')))
$homelink = "menuselected";
$aboutlink="menulink";
if(strstr($_SERVER['PHP_SELF'],'about_us.php'))
$aboutlink = "menuselected";
$servicelink="menulink";
if((strstr($_SERVER['PHP_SELF'],'visa_services.php')) or (strstr($_SERVER['PHP_SELF'],'maritime_services.php')))
$servicelink = "menuselected";
$newslink="menulink";
if((strstr($_SERVER['PHP_SELF'],'news.php')) or (strstr($_SERVER['PHP_SELF'],'news_detail.php')))
$newslink = "menuselected";
$eventlink="menulink";
if((strstr($_SERVER['PHP_SELF'],'events.php')) or (strstr($_SERVER['PHP_SELF'],'event_detail.php')))
$eventlink = "menuselected";
$contactlink="menulink";
if(strstr($_SERVER['PHP_SELF'],'contact_us.php'))
$contactlink = "menuselected";
?>
<div class="header">
<div id="headerwrapper">
<div class="logo"><a href="index.php" title="Embassy Of Panama"><img src="images/logo_embassy.png" width="547" height="154" alt="Embassy Of Panama"/></a></div>
<div class="nav">
<ul class="menu" id="menu">
<li><a href="index.php" title="Home" class="<?=$homelink?>">Home</a></li>
<li><a href="about_us.php" title="About Us" class="<?=$aboutlink?>">About Us</a>
<!-- <ul>
<li class="topline"><a href="ambassador.php">Ambassador</a></li>
<li><a href="vice_council.php">Vice Council</a></li>
</ul>-->
</li>
<li><a href="#" class="<?=$servicelink?>">Services</a>
<ul>
<li class="topline"><a href="visa_services.php">Visa Services</a></li>
<li><a href="maritime_services.php">Maritime Services</a></li>
</ul>
</li>
<li><a href="news.php" title="News" class="<?=$newslink?>">News</a></li>
<li><a href="events.php" title="Events" class="<?=$eventlink?>">Events</a></li>
<li><a href="contact_us.php" title="Contact Us" class="<?=$contactlink?>">Contact Us</a></li>
</ul>
<script type="text/javascript">
var menu=new menu.dd("menu");
menu.init("menu","menuhover");
</script>
</div>
</div>
<div class="clearfix"></div>
</div>