function breakOutFromJail()
{
	if (top.location != location)
		top.location.href = window.location.href;
}

function fixLinksForRetards()
{
	var as = document.links;

	for (var i = 0; i < as.length; i++)
	{
		if (as[i].href && (as[i].rel.indexOf('new') != -1))
			as[i].target = '_blank';
	}
}

function init()
{
	breakOutFromJail();
	fixLinksForRetards();
}

window.onload = init;
