function initHM(){
  setInterval(verifyHistory, 100);
  if(location.hash == "") window.lastHash = location.hash;
  else verifyHistory();
}
function verifyHistory(){
  if(window.lastHash != location.hash){
    if(location.hash == "")
      loadContent("");
    else{
		var isAccount = location.toString().substring(0, location.toString().indexOf('account.html#load|login.html'));
		if(isAccount != ""){
			loadContent("account.html");
		}
      var substr1 = location.hash.substring(0, location.hash.indexOf('|'));
      var substr2 = location.hash.substring(location.hash.indexOf('|')+1);
      switch(substr1){
        case "#load":
          loadContent(substr2);
          break;
        default :
          //alert ("new hash! : "+h);
          //window.lastHash = h;
      }
    }
  }
}
