	if (top == self) {
		var href = location.href;
		var separator = '/';
		if (href.lastIndexOf('\\') != -1)
			separator = '\\';
		if (href.indexOf(separator+'pages') != -1) {
			if (href.indexOf(separator+'pages') != -1)
				sp = href.split(separator+'pages')
			top.location.href = sp[0]+separator+'index.html?page='+escape(location.href);
		}
		if (href.indexOf(separator+'human') != -1) {
			if (href.indexOf(separator+'human') != -1)
				sp = href.split(separator+'human')
			top.location.href = sp[0]+separator+'human'+separator+'index.html?page='+escape(location.href);
		}
	}
	
	if (window.addEventListener) {
		window.addEventListener("load",f_onload,false);
	} else if (window.attachEvent) {
		window.attachEvent("onload",f_onload);
	} else {
		window.onload = function() {f_onload();}
	}

	if (window.addEventListener) {
		window.addEventListener("unload",f_onunload,false);
	} else if (window.attachEvent) {
		window.attachEvent("onunload",f_onunload);
	} else {
		window.onunload = function() {f_onunload();}
	}

	function f_onload() {
		if (top != self) {
			parent.f_onresize_();
			parent.pageChange();
			top.setHistory(location.href);
		}
	}
	
	function f_onunload() {
		if (top != self) {
			top.saveScroll();
		}
	}
	
