// Sets up links with the relationship 'external' to open in a new window, gotta love XHTML 1.1
function setupLinks()
{
	var siteLinks = window.document.getElementsByTagName('a');

	for (var i=0; i < siteLinks.length; i++)
	{
  		if (siteLinks[i].rel == 'external')
	   	{
			siteLinks[i].onclick    = externalSite;
			siteLinks[i].onkeypress = externalSite;
	   	}
	}
}

function externalSite()
{
	window.open(this.href, '', 'resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,statusbar=yes');
	return false;
}

// Now break out of frames
if (top.location != location)
{
	top.location.href = document.location.href;
}

window.onload = setupLinks;