jQuery(function() {
		  
   jQuery('#stateDropdown').change(function() {
												 
	        var selected = jQuery(this).val();
   		  
  			jQuery('#states div').hide();
			
			window.location.hash = jQuery(this).attr("value");

			jQuery('.' + selected).show();
			
			
			
});
		   

    var newHash      = "";
    
    jQuery(window).bind('hashchange', function(){
    
        newHash = window.location.hash.substring(1);
        
        if (newHash) {
			
			  	jQuery('#states div').hide();
				
			    jQuery('.' + newHash).show();
				
				jQuery("#stateDropdown option[selected]").removeAttr("selected");
			
				jQuery("#stateDropdown option[value='" + newHash + "']").attr("selected", "selected");
          
        };
        
    });
    
    jQuery(window).trigger('hashchange');

});