Hi
I've made a tabbed menu using Jquery.
I'm having trouble styling active links. I'm sure it's something pretty simple but I'm pretty new to Jquery and just can't work it out.
(a:hover works fine, and I get a flash of the active colour (#00ff00) when I am actually clicking on a link).
Thanks


This is what I've got so far:
HTML
HTML Code:
<div id="wrapper">
<div id="nav">
<ul>
<li><a id="menu1"  href="#">page1</a></li>
<li><a id="menu2"  href="#">page2</a></li>
<li><a id="menu3"  href="#">page3</a></li>
<li><a id="menu4"  href="#">page4</a></li>
<li><a id="menu5"  href="#">page5</a></li>
</ul>
</div>

 <div id="content">  
 
    <div id="page1" class="tab-content">

        </div>
        
         <div id="page2" class="tab-content">
          
        </div>
        
         <div id="page3" class="tab-content">
    
        </div>
        
        <div id="page4" class="tab-content">
     
        </div>
        
        <div id="page5" class="tab-content">

        </div>
        
       
</div> 

</div> <!--#wrapper--> 
CSS
Code:
#nav li a:link, #nav li a:visited{
	display: block;
	text-decoration: none;
	color: #ffffff;
}

#nav li a:hover {
color: #ff0000;
}

#nav li a:active {
color: #00ff00;
}
JS
Code:
// JavaScript Document
  $(document).ready(function () {
                $('#page2').hide();
		$('#page3').hide();
		$('#page4').hide();
		$('#page5').hide();

            $('a#menu1').click(function () {
                $('.tab-content').hide();
		$('#page1').fadeIn('slow');
				
            });
			
		$('a#menu2').click(function () {
                $('.tab-content').hide();
		$('#page2').fadeIn('slow');
				
            });
			
		$('a#menu3').click(function () {
                $('.tab-content').hide();
		$('#page3').fadeIn('slow');
				
            });
			
		$('a#menu4').click(function () {
                $('.tab-content').hide();
		$('#page4').fadeIn('slow');
				
            });
			
		$('a#menu5').click(function () {
                $('.tab-content').hide();
		$('#page5').fadeIn('slow');
				
            });
        });