window.onload = function (){
var myHref = document.location.href;
var myUrl = FilePass(myHref);

	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		
		for(var i=0; i < images.length; i++) {
			
				if(images[i].parentNode.nodeName=="A"){
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace(".jpg", "_on.jpg"));
					this.setAttribute("src", this.getAttribute("src").replace(".gif", "_on.gif"));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on", ""));
				}
				}
				}
			
		
	}
}

function FilePass(str){
        var FilePass = str.substring(str.lastIndexOf("/")+1,str.length);
        return FilePass;
}


