$(document).ready(function() {

	// Adds the self clearing CSS rules to the Notification Form since it's driven by a plugin.
	
	$('#wpcf7-f1-p2-o1').addClass("clear");
	
	
	// Using this handy input text value cahnge snippet from Lots of Code:
	// http://www.lotsofcode.com/javascript-and-ajax/input-text-value-change-on-click.htm
	
	$('.wpcf7-form-control-wrap input').click(
	function() {
	if (this.value == this.defaultValue) {
	this.value = '';
	}
	});
	
	$('.wpcf7-form-control-wrap input').blur(
	function() {
	if (this.value == '') {
	this.value = this.defaultValue;
	}
	});
	
	
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:9000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8 //Universal caption opacity
	});

	
});

