// JavaScript Document
function carregaEfeitos () {
	var campos = new Array("usuario","senha");
	var temp;
	var corOver = "#CCCCCC";
	var corOut = "#FFFFFF";
	for(i in campos) {
		document.getElementById(campos[i]).onmouseover = function () {
			this.style.backgroundColor = corOver;
		}
		document.getElementById(campos[i]).onmouseout = function () {
			this.style.backgroundColor = corOut;
		}
		document.getElementById(campos[i]).value = campos[i];
		document.getElementById(campos[i]).onfocus = function () {
			if(this.id == this.value) {
				this.value = "";
			}
		}
		document.getElementById(campos[i]).onblur = function () {
			if(this.value == "") {
				this.value = this.id;
			}
		}
		delete temp;
	}
}