function detect()
{
	page = window.location.href;
	page = page.substring(page.lastIndexOf('://') + 3, page.length);
	page = page.substring(page.indexOf('/') + 1, page.length);
	if (top.location.href == window.location.href) {
		top.location.href = '/index.php?page=' + page;
	}
}


