function blankLink() {
	if (!document.getElementById) return;
	var aAs = document.getElementsByTagName('a');
	for (var i = 0; i < aAs.length; i++) {
		if(aAs[i].className.match('windowOpenLink')) {
			aAs[i].href='javascript:windowOpen("' + aAs[i].href + '")';
//			aAs[i].onclick = function() {windowOpen(this.href);};
//			aAs[i].onkeypress = function() {windowOpen(this.href);};
		}
		if(aAs[i].className.match('modalWindowLink')) {
			aAs[i].href='javascript:disp("' + aAs[i].href + '")';
//			aAs[i].onclick = function() {disp(this.href);};
//			aAs[i].onkeypress = function() {disp(this.href);};
		}
	}
}
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
				images[i].onclick = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
				images[i].onkeypress = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

function loadImages() {
	setInterval('changeImage()',5000);
}


if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
	window.addEventListener("load", blankLink, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
	window.attachEvent("onload", blankLink);
}

