Toggle text link to change parameter

Toggle text link to change parameter

Hi All,
Trying to have plain text that you can click (div of newslink) which toggles the right parameter of other element (div of rightSidebar).   Set rightSidebar initially with css:  #rightSidebar {right:200%}

Here's what I have for script, but still not working - suggestions?:

<script type="text/javascript">
$j(document).ready(function(){
$j('#newslink').toggle(
                   function()
                   {
                      $j('#rightSidebar').animate({right:'0%'},1000);
                   },
                   function()
                   {
                       $j('#rightSidebar').animate({right:'200%'},400);
});
});
});
</script>

Thanks,  Bill