Using jQuery to hide divs; this isn't working at all for me.

Using jQuery to hide divs; this isn't working at all for me.

Well, this is my first post and my first impass with jQuery. So far I have been able to figure everything else out myself, but this has perplexed me.

I have a website that I am trying to keep minimal and I am relying on jQuery to change the content in a div that represents the content of the site.

so I have this that makes up the menu system.
  1. $(document).ready(function(){
  2.  
  3. $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
  4. $("ul.topnav li a").hover(function() { //When trigger is clicked...
  5. //Following events are applied to the subnav itself (moving subnav up and down)
  6. $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
  7.  
  8. $(this).parent().hover(function() {
  9. }, function(){
  10. $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
  11. });
  12.  
  13. //Following events are applied to the trigger (Hover events for the trigger)
  14. }).hover(function() { 
  15. $(this).addClass("subhover"); //On hover over, add class "subhover"
  16. }, function(){ //On Hover Out
  17. $(this).removeClass("subhover"); //On hover out, remove class "subhover"
  18. })(this).hover(function() {
  19. $("ul.topnav li span").addClass("subhover");
  20. });
  21. });
Then I have all the page's CSS. etc... A little father down I have a section that I have a particular div in that I want to be able to change; particularly this one. (mylogop)
  1. <div class="content">
  2.     <div id="mylogop">
  3.         FooBar Foo Bar Foo Content will be here somday
  4.         </div>
so I have this code as well to do that.
  1. <script type="text/javascript">
  2. $("#mylogos").click(function() {
  3. $("#mylogop").replaceAll(FoobarContentHere);
  4. });

  5. </script>
It's made so when I click a menu item it switches the HTML with the page appropriate material, but when I click it nothing happens. So maybe there is somthing I am missing, but I am stumped so...Please help! 

Thanks, 
A.Scales