function addEvent(elm,listener,fn){
	try{
		elm.addEventListener(listener,fn,false);
	}catch(e){
		elm.attachEvent("on"+listener,fn);
	}
}

addEvent(window,"load",function(){
var currentPath = location.href;
var fil=currentPath.substring(currentPath.lastIndexOf ('/',currentPath.length) +1,currentPath.length);
var filHash = fil.substring(fil.lastIndexOf('#'), fil.length);
var topPath = "http://www.amc-tokyo.com/";
var topFil = "index.html";
if(currentPath) {
	if(fil.indexOf(topFil) == -1){
		location.href = topPath;
		}
	}
});