$(document).ready(function() {

	$("ul#slides").cycle({
		fx: 'fade',
		pause: 2,
		prev: '#prev',
		next: '#next'
	});
	
	$("#slideshow").hover(function() {
    	$("ul#nav").fadeIn();
  	},
  		function() {
    	$("ul#nav").fadeOut();
  	});
	
});

jQuery(document).ready( function(){

	/* Run clearTextField function on all selected text fields */
	clearTextField( jQuery(".footer_col1 input") );
	
});

/**
 * Clears the default value on the text input field when the user clicks on it.
 * Also restores the default value if the field is left blank.
*/
function clearTextField( field ){

	field.focus( function(){
		jQuery(this).addClass('active');

		if ( this.value == this.defaultValue ){
			this.value = '';
		}
	});

	field.blur( function(){
		jQuery(this).removeClass('active');
		if( this.value == '' ){
			this.value = this.defaultValue;
		}
	});
}
