$(document).ready(function(){
	$('ul#nav li').each(function(){
		$(this).hover(function(){
			$(this).addClass('hover');
		}, function(){
			$(this).removeClass('hover');
		});
	});
	
	$('#dropdown').click(function(){
		$('#login_drop').slideToggle('slow');
	});

	
	$('ul#nav li').click(function(){
		window.location = $(this).find('a').attr('href');
	});
	
	// Watermark for our input textbox. Removes the default value
			// and changes the font color to the standard font color for the input field.
		 $('input[type="text"]').css({'color' : '#9b9b9b'});	
	     $('input[type="text"]').focus(function() {  
	         if (this.value == this.defaultValue){  
				 $(this).css({'color' : '#000', 'borderColor' : '#4ea79b'});
	             this.value = '';  
	         }  
	         if(this.value != this.defaultValue){  
	             this.select();  
	         }  
	     });  
	     $('input[type="text"]').blur(function() {  
	         if (this.value == ''){  
				 $(this).css({'color' : '#9b9b9b', 'borderColor' : '#7b7b7b'});
	             this.value = (this.defaultValue ? this.defaultValue : '');  
	         }  
	     });
	     
	     $('input[type="password"]').css({'color' : '#9b9b9b'});	
	     $('input[type="password"]').focus(function() {  
	         if (this.value == this.defaultValue){  
				 $(this).css({'color' : '#000', 'borderColor' : '#4ea79b'});
	             this.value = '';  
	         }  
	         if(this.value != this.defaultValue){  
	             this.select();  
	         }  
	     });  
	     $('input[type="password"]').blur(function() {  
	         if (this.value == ''){  
				 $(this).css({'color' : '#9b9b9b', 'borderColor' : '#7b7b7b'});
	             this.value = (this.defaultValue ? this.defaultValue : '');  
	         }  
	     });
	
});