// input field clearing/resetting helper

jQuery(document).ready(function() {

    jQuery('.clear-field').each(function() {

    	// cache original text
    	this.original_value = this.value;
    	
    	// clearing event
    	jQuery(this).bind("focus", function(e) {
    		if (e.target.value == e.target.original_value) {
    			e.target.value = "";
    		}
    	});
    	
    	// resetting event
    	jQuery(this).bind("blur", function(e) {
    		if (e.target.value == "") {
    			e.target.value = e.target.original_value;
    		}
    	});
    
    });
 
 });
 
// homepage slideshow
 
jQuery(document).ready(function(){

	jQuery('.home-slideshow').cycle({
		fx: 'fade',
		delay: -2000,
		speed: 1800,
		next: '.home-slideshow',
	    pause: 1,
		timeout: 5000

	});

});