[jQuery] background position

[jQuery] background position


Hi, I was messing around with jonathna snook;s article
http://snook.ca/archives/javascript/jquery-bg-image-animations/
I'm trying to set an active state once user clicks on link
this is what I have now works, i tried getting the selected state by
adding a click function.
$(document).ready(function() {
$('ul#nav li a')
.css( {backgroundPosition: "0 0"} )
        .mouseover(function(){
            $(this).stop().animate({backgroundPosition:"(0 -120px)"}, {duration:
500})
        })
        .mouseout(function(){
            $(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:
500})
        })
});
If anyone has nay pointers it would e rgeatly appreciated
thanks