$(document).ready(function() {
	 
	 if ($.browser.msie && $.browser.version <= 7 ) {
	 
	 }
	 
	 else {
			 
		$("#header li").hover(function() {
		
			
			
				 $(this).find('small').css('color', '#dedede').css('font-size', '12px');
						 
				 $(this).find('a').css('color', '#fff');
			
			if(this.id != "current") {
					
				 $(this).animate({ backgroundColor: "#0098FD"}, 200);
				 $(this).find('small').animate({
					height:"18"
					
					}, 400);
				 }
			}
			
		 ,function() {  
				
				if(this.id != "current") {
					$(this).find('small').css('color', '#fff');
					$(this).find('a').css('color', '#333');
					
					$(this).find('small').animate({
						height:"0"
					
					}, 100);
					$(this).animate({ backgroundColor: "#ffffff" }, 100);
				}
			});  
	 
	}
	
		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 = '';
				}
			} 
			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;
		  }
		}

});