(function(){
if (typeof window.onload == 'function') {
	var oldonload = window.onload;
	window.onload = function() {
		oldonload();
		init();
	}
}
else { window.onload = init }
function pdfClick (e) {
	var targ;
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	while(targ.nodeType == 3 || (targ.nodeName && targ.nodeName.toLowerCase() != 'a')) { // we're looking for the link
		targ = targ.parentNode;
	}
	try { // if Urchin doesn't exist, don't throw an error
		urchinTracker(targ.href.match(/^([^:]*:\/+[^\/]*)?(.+)\.pdf/)[2]);
	}
	catch(e){};
}
function assignListener (el) {
	if (el.type == "application/pdf" || el.href.match(/\.pdf$/)) {
		el.type = "application/pdf";
		el.onclick = pdfClick;
	}
}
function init (e) {
	var links = document.getElementsByTagName('a');
	for (var i = links.length - 1; i >= 0; i--){
		assignListener(links[i]);
	}
}
}())