if (window.location.pathname != '/') {
  window.location.replace("/#" + window.location.pathname.replace(/\/(index\.html)?$/, ''));
} else {
  var params = { bgcolor: "#000000", allowscriptaccess: true };
  var attributes = { id: "site", name: "site" };
  swfobject.embedSWF("siteLoader.swf", "wrapper", "100%", "790", "9.0.0", null, null, params, attributes);
}
