Element.Events.hashChanged = {
  
};

if ("onhashchange" in window) 
{
  window.onhashchange = (function() {
    window.fireEvent('hashChanged');
  });
} 
else 
{
  window.lastHash = "";
  setInterval(function () {
    if(location.hash != window.lastHash){
      window.lastHash = location.hash;
      window.fireEvent('hashChanged');
    }
 }, 200); 
}
/*
window.addEvent('hashChanged', function() {
  alert('ok ' + location.hash);
});*/
