title: Javascript switch issue with window.location-string
body: <p>i am currently working on a simple ipad webapp testpiece and got stuck in a simple switch statement that doesn´t work somehow; 
  i want to format elements according to javascripts window.location string. This might be embarassing simple to fix; but i somehow don´t get it: 
  Or is there something special about the window.location?</p>
  
  <pre><code>$(document).ready(function() {
  path_c = window.location;
  switch (path_c){
      case "http://192.168.1.37/ryba_testground/":
      $('#menu-item-22').addClass('current_page_item');
      alert(path_c);
      break;
      case "http://192.168.1.37/ryba_testground/?page_id=7":
      $('#menu-item-21').addClass('current_page_item');
      break; 
      case "http://192.168.1.37/ryba_testground/?page_id=9":
      $('#menu-item-20').addClass('current_page_item');
      break;
      case "http://192.168.1.37/ryba_testground/?page_id=11":
      $('#menu-item-19').addClass('current_page_item');
      break;
  }
  });
  </code></pre>
  
  <p>THX!</p>