// debe inicializarse el lavalamp en onLoad en lugar de onReady porque las fuentes no estandard que utilizan los menuitems tardan un momento en cargarese.
window.onload = function(){
	$("#menu").lavaLamp({
		fx: "easeinout",
		speed: 200,
		click: function(event, menuItem) {
			//return false;
			/*
			easein
			easeinout
			easeout
			expoin
			expoout
			expoinout
			bouncein
			bounceout
			bounceinout
			elasin
			elasout
			elasinout
			backin
			backout
			backinout
			linear
			*/
		}
	});	
};

$(document).ready(function(){
	// inicia el Formulario de Contacto
	var nombre = document.getElementById("nombre");
	nombre.onfocus = function(){
		if (this.value == "Tu nombre"){
			this.value = "";
		}
	}
	nombre.onblur = function(){
		if (this.value.trim() == ""){
			this.value = "Tu nombre";
		}
	}
	
	nombre.onchange = function(){paintFields();};
	var correo = document.getElementById("correo");
	correo.onfocus = function(){
		if (this.value == "Correo electrónico"){
			this.value = "";
		}
	}
	correo.onblur = function(){
		if (this.value.trim() == ""){
			this.value = "Correo electrónico";
		}
	}
	correo.onchange = function(){paintFields();};
	
	var mensaje = document.getElementById("mensaje");
	mensaje.onfocus = function(){
		if (this.value == "Mensaje"){
			this.value = "";
		}
	}
	mensaje.onblur = function(){
		if (this.value.trim() == ""){
			this.value = "Mensaje";
		}
	}
	mensaje.onchange = function(){paintFields();};
});

if (document.images){
  pic1= new Image(); 
  pic1.src="/img/boton_newproject_big_over_3.png";
  pic2= new Image(); 
  pic2.src="/img/btn_aceptar_over.png";
}

