// External links
//
function externalLinks()
	{
	var as, i;
	as = document.getElementsByTagName('a');
	for (i=0; i<as.length; ++i)
		{
		if (as[i].hostname != window.location.hostname && as[i].protocol.toLowerCase().substr(0,4) == "http")
			{
			as[i].onclick = function ()
				{
				window.open(this.href);
				return false;
				}
			}
		}
	}

if (window.addEventListener) // DOM Level 2 API
	window.addEventListener("load", externalLinks, 0);
else if (window.attachEvent) // IE workaround
	window.attachEvent("onload", externalLinks);

