$(function(){

  // Bind the event.
  $(window).bind( 'hashchange', function(){
    // Alerts every time the hash changes!
	if(API.redirectOnHashChange) {
    	API.view( '/' + location.hash.replace('#',''));
		API.redirectOnHashChange = true;
	}
  })

});
