$(document).ready(function() {
	var httpThis = new RegExp(/(http\:\/\/.*\/)(.*)/).exec(document.location)[2];
	var httpParent = new RegExp(/(http\:\/\/.*\/)(.*)/).exec(window.parent.document.location)[2];
	if (httpThis == httpParent) {
		window.parent.document.location = "frame.php#" + httpThis;
	}
});
