function pop(winU,winW,winH) {
	if (window.screen) {
		if (window.screen.availWidth) {
			var screenWidth  = window.screen.availWidth;
			var screenHeight = window.screen.availHeight;
		}
	}
	var left = (screenWidth - winW) / 2
	var top  = (screenHeight - winH) / 2
window.open(winU,'','left='+left+',top='+top+',screenX=0,screenY=0,width='+winW+',height='+winH+',scrollbars=yes,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0')
}

// adds tracking to 
function addTracking(els) {
	els.addEvent('click', function(e){
		if (window.location != this.href) {
			pageTracker._link(this.href);
		} else {
			e.preventDefault();
		}
		return false;
	});
}

/*
 * link opens in pop
 */
function addPopup(el) {
	el.addEvent('click', function(e) {
		pop(el.href, 900, 420);
		e.preventDefault();
		return false;
	});
}