// rollover
function rovr() {
	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", rovr, true);
}
else if(window.attachEvent) {
	window.attachEvent("onload", rovr);
}

function ro(obj,val) {
	obj.src = val;
}

// popup open
function popup(){
    void(theWin=window.open("ad/ad.html", "ad_gallery", "width=740,height=555"));
    theWin.focus();
}



