$(document).ready(function(){	
	
	$(".email").click(function(){
		$("#emailform").slideToggle("medium");
		return false;
	});
	
	$("li a").mouseover(function(){
		$(this).animate({paddingLeft:"25px",fontWeight:"bold"},200)
	}).mouseout(function(){
		$(this).animate({paddingLeft:"15px"},200)
	});

	var name = document.getElementById("name");
	name.onfocus = function() {
		if(this.style.color = "#a0a0a0") {
			this.style.color = "#000000";
		}
		if(this.value == "Name") {
			this.value = "";
		}
	};
	name.onblur = function() {
		if(this.style.color = "#000000") {
			this.style.color = "#a0a0a0";
		}
		if(this.value == "") {
			this.value = "Name";
		}
	};
	
	var email = document.getElementById("email");
	email.onfocus = function() {
		if(this.style.color = "#a0a0a0") {
			this.style.color = "#000000";
		}
		if(this.value == "Email") {
			this.value = "";
		}
	};
	email.onblur = function() {
		if(this.style.color = "#000000") {
			this.style.color = "#a0a0a0";
		}
		if(this.value == "") {
			this.value = "Email";
		}
	};
	
	var subject = document.getElementById("subject");
	subject.onfocus = function() {
		if(this.style.color = "#a0a0a0") {
			this.style.color = "#000000";
		}
		if(this.value == "Subject") {
			this.value = "";
		}
	};
	subject.onblur = function() {
		if(this.style.color = "#000000") {
			this.style.color = "#a0a0a0";
		}
		if(this.value == "") {
			this.value = "Subject";
		}
	};
	
	var message = document.getElementById("message");
	message.onfocus = function() {
		if(this.style.color = "#a0a0a0") {
			this.style.color = "#000000";
		}
		if(this.value == "Message") {
			this.value = "";
		}
	};
	message.onblur = function() {
		if(this.style.color = "#000000") {
			this.style.color = "#a0a0a0";
		}
		if(this.value == "") {
			this.value = "Message";
		}
	};		
	
});