
if (parent.location.href == self.location.href) {
	
	if (window.location.href.replace)
		window.location.replace('index.php?main=' + window.location.href);
	else
		// causes problems with back button, but works
		window.location.href = 'index.php?main=' + window.location.href;
	
}

