﻿function ini() {
	if ( document.getElementsByTagName ) {
		ro();
		fb();
	}
}

function ro() {
	var images = document.getElementsByTagName("img");
	var arr = new Array();
	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."));
			}
		}
	}
}

function fb() {
	var anchors = document.getElementsByTagName("a");
	for ( var i=0; i < anchors.length; i++ ) {
		anchors[i].onfocus = function() {
			this.blur();
		}
	}
}

if ( window.addEventListener ) {
	window.addEventListener("load", ini, false);
}
else if ( window.attachEvent ) {
	window.attachEvent( "onload", ini );
}
