//Opens privacy policy
function newWin(URL) {
	window.open(URL,"","height=500,width=500,toolbar=0,menubar=0,location=0,menu=0,scrollbars=1,resizable=1");
}
//track pdf downloads in google analytics
// Define the addLoadEvent Function
function addLoadEvent(func){
var oldonload = window.onload;
if(typeof window.onload != 'function'){
window.onload = func;
}else {
window.onload = function(){
oldonload();
func();
}
}
}

// Define the fixLinks function
function fixLinks(){
	links = document.getElementsByTagName("a");
	for(var i=0; i < document.links.length;i++){
	currentLink = links[i];
		var href = currentLink.getAttribute("href");
if(href){
// we only want to perform adjustments if the link
// has actually has an href attribute

/* We set the filetype to the last three characters
of the link. We assume that file extensions always
have a length of three
*/
fileType = String(href).substring(String(href).length - 3);

if(fileType == "pdf"){
	currentLink.className += " typePDF";
	currentLink.onclick = function(e){
if(!e)e=window.event;
	urchinTracker (this.href);
	window.open(this.href);
return false;
}
}
}
}
}
// end of function

// Add the fixlinks function to the onLoad event
addLoadEvent(fixLinks)