if (top == self) 
{
	var temp = self.location.href;
	var clipStart = temp.lastIndexOf("/")+1;
	location.replace("index.html?" + temp.substring(clipStart,temp.length));
}

