//ROLLOVER
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."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

//POPUP
	function wpop(popupURL,wNAME,wSIZE){
		var name = navigator.appName;
			if (name == "Microsoft Internet Explorer"){
		// open the popup window Internet Explorer
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=no,resizable=no');
		}
		else {
		// open the popup window Netscape
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=yes,menubar=no,scrollbars=no,resizable=no');
		}
	}

	function wpop2(popupURL,wNAME,wSIZE){
		var name = navigator.appName;
			if (name == "Microsoft Internet Explorer"){
		// open the popup window Internet Explorer
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=no');
		}
		else {
		// open the popup window Netscape
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=yes,menubar=no,scrollbars=yes,resizable=no');
		}
	}
	function wpop3(popupURL,wNAME,wSIZE){
		var name = navigator.appName;
			if (name == "Microsoft Internet Explorer"){
		// open the popup window Internet Explorer
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=no,menubar=no,scrollbars=no,resizable=yes');
		}
		else {
		// open the popup window Netscape
		var popup = window.open(popupURL,wNAME,wSIZE+',toolbar=no,location=0,directories=0,status=yes,menubar=no,scrollbars=no,resizable=yes');
		}
	}

