//images[id's] to get rollovers

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.onfocus = shover;
			el.onmouseout = snohover;
			//el.onblur = 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.onfocus = ehover;
			el.onmouseout = enohover;
			//el.onblur = enohover;
		}
		if (document.getElementsByTagName)
			Popper(document.getElementsByTagName('A'));
		else if (document.all.tags)
			Popper(document.all.tags('A'));
		
	}
}

function Popper(els) {
	for (var i = 0; i < els.length; i++) {
	//add event only to those <A>'s with appropriate "rel" attribute
		if (els[i].rel.indexOf("external") >= 0 ) {
			if(els[i].rel.indexOf(':') < 0) {
				els[i].onclick = function() { return PopWin(this.href,'newwindow',650,530); }
			}
			else {
				args = els[i].rel.split(':');
				els[i].onclick = function() { return PopWin(this.href,'newwindow',args[1],args[2]); }
			}
		}
	}// for
}// Popper()

