function _addEventListener(attachTo, eventType, callbackFunction, useCapture){
	if(attachTo.addEventListener){
		attachTo.addEventListener(eventType, callbackFunction, useCapture);
	}else if (attachTo.attachEvent){
		attachTo.attachEvent('on' + eventType, callbackFunction, useCapture);
	}
}


function popup(){
	window.open(this.href, '_blank', '');
	return false;
}


function setPopups(){ 
	for (i= document.links.length; i-->0;)
	    if (document.links[i].className == 'popup')
	      document.links[i].onclick= popup;
}



_addEventListener(window, 'load', function(){setPopups();}, false);
