toggle not working

toggle not working


Hi—and excuse me, I'm a newbie. :)
I want to toggle the CSS class of a section (I can't toggle the ID,
right?). I have, in short:
-----------------------------------------------------------------------
<style>
.gallery {background:red;}
.list {background:green;}
</style>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
        $("#thing").toggle(
     function () {
     $(#resultsview).removeClass('list');
            $(#resultsview).addClass('gallery');
     },
     function () {
     $(#resultsview).removeClass('gallery')
            $(#resultsview).addClass('list');
     });
});
</script>
<p id="thing">click
<ul id="resultsview" class="list">
    <li>blah</li>
    <li>blah</li>
</ul>
-----------------------------------------------------------------------
…and it doesn't work; what am I doing wrong?
Thank you in advance!
unxx