var CustomTextInputs = {
	init: function() {
		var inputs = document.getElementsByTagName("input");
		for(a = 0; a < inputs.length; a++) {
			if(inputs[a].type == "text" || inputs[a].type == "password") {
				inputs[a].onfocus = function() { this.className = this.className.replace(/_hovered/, ''); this.className += '_hovered';}
				inputs[a].onblur  = function() { this.className = this.className.replace(/_hovered/, ''); };
			}
		}
		
		var inputs = document.getElementsByTagName("textarea");
		for(a = 0; a < inputs.length; a++) {
			inputs[a].onfocus = function() { this.className = this.className.replace(/_hovered/, ''); this.className += '_hovered';}
			inputs[a].onblur  = function() { this.className = this.className.replace(/_hovered/, ''); };
		}		
	}
}