// back/forward only works in FF, not IE for now.
// figure out how to get IE to keep stuff in its history

function getHash() {
  	var v = currentHash.substr(1);
  	if (v.length==0) return;
    var movie = document.embeds.Fractal || document.all.Fractal;
    movie.navigateTo(v);
}
function addHistory(stuff, msg) {
  location.hash = stuff;
  currentHash = location.hash;
  document.title = "Fractal: "+msg;
}
var currentHash = location.hash;
setInterval(checkHash, 100);
function checkHash() {
  if (location.hash != currentHash) {
  	currentHash = location.hash;
  	getHash();
  }
}
