function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
	elm.addEventListener(evType, fn, useCapture);
	return true;
	} else if (elm.attachEvent) {
	var r = elm.attachEvent('on' + evType, fn);
	return r;
	} else {
	elm['on' + evType] = fn;
	}
}

// Blurb Hit Space - makes the entire blurb space a hit space on pages with links

function BlurbLinks()
{
	var divs = document.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++)
	{
		if (divs[i].className.indexOf("blurb") > -1)
		{
			var h2s = divs[i].getElementsByTagName('h2');
			if (h2s.length > 0)
			{
				var h2 = h2s[0];
				var lnks = h2.getElementsByTagName('a');
				if (lnks.length > 0)
				{
					var lnkHref = lnks[0].href;
					eval("divs[i].onclick = function() { location.href = '" + lnks[0].href + "'; }");
				}
				eval("divs[i].onmouseover = function() { this.className += ' yellowArrow'; this.style.cursor = 'pointer'; }");
				eval("divs[i].onmouseout = function() { this.className = this.className.replace(' yellowArrow', ''); this.style.cursor = ''; }");
			}
		}
	}
}

// Fire Events
addEvent(window, 'load', BlurbLinks, false);
