
function rollover() {
	
    if(document.getElementsByTagName) {
        var images = document.getElementsByTagName("img");
        for(var i=0; i < images.length; i++) {
            if(images[i].getAttribute("src").match("_nrml."))
            {
                images[i].onmouseover = function() {
                    this.setAttribute("src", this.getAttribute("src").replace("_nrml.", "_over."));
                }
                images[i].onmouseout = function() {
                    this.setAttribute("src", this.getAttribute("src").replace("_over.", "_nrml."));
                }
            }
        }
		
		var links = document.getElementsByTagName("a");
        for(var i=0; i < links.length; i++) {
            if(links[i].style.backgroundImage.match("btn"))	
            {
                links[i].onmouseover = function() {
                    this.style.backgroundImage = this.style.backgroundImage.replace("_nrml.", "_over.");
                }
                links[i].onmouseout = function() {
                    this.style.backgroundImage = this.style.backgroundImage.replace("_over.", "_nrml.");
                }
            }
        }
    }
}


if(window.addEventListener) {
    window.addEventListener("load", rollover, false);
}
else if(window.attachEvent) {
    window.attachEvent("onload", rollover);
}
