function InitPage()
{
	if ((typeof(top.bann) != "undefined") && (typeof(top.bann.UpdateTrail) == "function"))
	{
		top.bann.UpdateTrail('');
	}
	else
	{
		var rootDir;
		if (this.location.protocol == "file:")
		{
			rootDir = this.location.toString();
			rootDir = rootDir.substring(0, rootDir.lastIndexOf("/site/") + 6);
		}
		else
		{
			rootDir = this.location.hostname;
			if (rootDir.indexOf("staneksoftware") != -1)
			{
				rootDir += "/sesef";
			}
			rootDir = this.location.protocol + "//" + rootDir + "/";
		}
		var goToURL = this.location.toString().substr(rootDir.length);
		top.location.replace(rootDir + "index.htm?goto=" + encodeURIComponent(goToURL));
	}
}
