$(document).ready(function(){

        $('#slideShow').nivoSlider({
			pauseTime: 10000,
			directionNav: false,
			controlNav: false
		});

	var inputs = $("input[type='text'],textarea");
	$.each(inputs,function(i,e) {
		var placeholder = $(e).attr("placeholder");
			$(e).val(placeholder);	
			$(e).blur(function() {
				resetInput($(this));
			});
			$(e).focus(function() {
				if($(this).val() == placeholder) {
					$(this).val("");
				}
			});
		});

	function resetInput(elem) {
		if($(elem).val() == "") {
				var placeholder = $(elem).attr("placeholder");
				$(elem).val(placeholder);
			}
	}

});

