function unframe()
{
	// Don't break out of edit mode
	if (top.location.href.indexOf('\/edit\/') == -1)
	{
		if (self != top)
			top.location.href = self.location.href;
	}
}

addEvent(window, 'load', unframe);