jQuery.fn.clear = function() {
	return this.focus(function() {
		$(this).addClass('inputHover');
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		$(this).removeClass('inputHover');
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	}); 
};


$(document).ready(function(){   
	$('#slideshow').cycle({
		timeout: 4000,
    	speed: 1000,
    	pause: 1
	})
	
	$("textarea").autoResize();
	
	$("input").clear();
	$("textarea").clear();
	
	$("#slideshow img").simpletooltip();
});
