.load() with VAR not working! PLEASE HELP!

.load() with VAR not working! PLEASE HELP!


Please can someone help with this simple problem!

In this example, only the contents of a div called #business-services-info should be loaded in from the what-cms.php page, not the full page.

Can anyone explain why the .load() event is ignoring my var (ahash) as the target div location to fetch the data from?



The code:
    1. <body>
    2. <script type="text/javascript">
    3. $(window).load (function() {
    4. var ahash = new String(window.location.hash);
    5. if ("ahash:contains('#')")
    6.  {
    7.  $('#stuff').load('what-cms.php' + ahash);
    8. alert("jQuery should now load the contents of the DIV called " + ahash + ", from the page what-cms.php in to the below DIV called stuff");
    9. }
    10.  }
    11.  else {
    12.   $('#stuff').load('what-cms.php #what-info');
    13.       alert("No hash to load so defult data will be loaded");
    14.  }
    15. });
    16. </script>
    17. <div><a href="#business-services-info">my div</a></div>
    18. <div id="stuff">Loading...</div>
    19. </body>