// JavaScript Document

function isEmpty(val)
{
	if	(
		val	===	undefined
		||
		val	==	null
		||
		val	==	''
		)
	{
		return true;
	}
}

function checkLinks()
{
	var links	=	document.getElementsByTagName('a');
	for(var x=0; x<links.length; x++)
	{
		if	(
			links[x].href.match('http')
			&&
			!links[x].href.match('wesayhowhigh')
			)
		{
			links[x].className	=	isEmpty(links[x].className) ? 'external-link' :	'external-link ' + links[x].className;
			links[x].onclick	=	function()
			{
				return newPage(this);
			};	
		}
	}
}

function newPage(obj)
{
	window.open(obj.href);
	return false;
}

window.onload	=	checkLinks;