Magento – Add “active” class to top link

Simply change link in this way:

 

<li class="<?php if (Mage::helper('core/url')->getCurrentUrl() === Mage::helper('core/url')->getHomeUrl().'faq/'):?> active<?php endif;?>">    
<a href="<?php echo $this->getUrl('faq/')?>"><?php echo  $this->__('FAQ') ?></a>
</li>