//images[id's] to get rollovers
var arRoll;

function initPage() {
	if (document.images) {
	
		addRollovers(arRoll);

		el = getObj('search');
		if (el) {
			shover = function() { this.src = getRollSrc(this.src,"gif",1); }
			snohover = function() { this.src = getRollSrc(this.src,"gif",0); }
			el.onmouseover = shover;
			el.onmouseout = snohover;
		}
		el = getObj('enewsgo');
		if (el) { 
			ehover = function() { this.src = getRollSrc(this.src,"gif",1); }
			enohover = function() { this.src = getRollSrc(this.src,"gif",0); }
			el.onmouseover = ehover;
			el.onmouseout = enohover;
		}
	}
}

function Popper(els) {
	for (var i = 0; i < els.length; i++) {
	//add event only to those <A>'s with appropriate targets
		if (els[i].target == 'photo') {
			els[i].onclick = function() { return PopWin(this.href, this.target, 650,530); }
		}
		else if (els[i].target == 'games') {
			els[i].onclick = function() { return PopWin(this.href, this.target, 650,570); }
		}
		else if (els[i].target == 'emailfriend') {
			els[i].onclick = function() { return PopWin(this.href, this.target, 620, 450); }
		}
		else ;
	}// for
}// Popper()

