function eventWin() {
	if (!document.getElementsByTagName) return false;
	var eventwin = document.getElementsByTagName('a') 
		for (i=0; i < eventwin.length; i++) {
			if (eventwin[i].className == "eventwin") {
				eventwin[i].onclick = function() {
					popUp(this.getAttribute("href"), "eventwin", "width=400, height=300, scrollbars=yes, resizable=yes");
					return false;
			}
		}
	}
}


function addishPix() {
	var pixLink = document.getElementsByTagName('a');
	for (i=0; i<pixLink.length; i++) {
		if (pixLink[i].className == "additional") {
			pixLink[i].onclick = function() {
				popUp(this.getAttribute('href'), "addishPix", "width=550, height=650, scrollbars=yes, resizable=yes");
				return false;
			}
		}
	}
}

// the  generic pop up
function popUp(winURL, linkclass, settings) {
	window.open(winURL, linkclass, settings);
}

addLoadEvent(eventWin);
addLoadEvent(addishPix);
