$(document).ready(function() {	
			
	$('#logo').hover(function () {
		$('#back').fadeIn();	
	}, function() {
		$('#back').fadeOut();
	});
	
	var inputs = document.getElementsByTagName("input");
	var textboxs = document.getElementsByTagName("textarea");
	
	
	for(var i = 0; i < inputs.length; i++)
	{
	  var temp_val;
	  
	  
	  inputs[i].onfocus = function() 
	  {
		if (this.getAttribute('type') != 'submit' && this.getAttribute('type') != 'reset') 			
		{
			temp_val = this.value;
			
			if(this.value == "Enter email address" || this.value == "Enter name" || this.value == "Search here")
			{
				
				this.value = '';
			}
		} 
		else 
		{
			return false;
		}
	  }
	  
	  inputs[i].onblur = function()
	  {
		if (this.getAttribute('type') != 'submit' && this.getAttribute('type') != 'reset') 			
		{
			if(this.value == '')
				this.value = temp_val;
		} 
		else 
		{
			return false;
		}
	  }
	}
	
	for(var i = 0; i < textboxs.length; i++)
	{
	  var temp_val;
	  
	  
	  textboxs[i].onfocus = function() 
	  {
			temp_val = this.value;
			
			if(this.value == "What Can We Do For You?")
			{
				this.value = '';
			}
	  }
	  
	  textboxs[i].onblur = function()
	  {
		if(this.value == '')
			this.value = temp_val;
	  }
	}
	
	$("#quote-info").hide();
			
	$("#quote").click(function () {
		if($("#quote-info").is(':hidden')) {
			$("#quote-info").slideDown("slow");
		}else {
			$("#quote-info").slideUp("slow");
		}
		
		return false;
	});
	
});	
