$(window).load(function(){
	// nivo slider
	//// home
	$(".slider.home").nivoSlider({
		effect: "fade", // random, fold, fade, sliceDown(Left), sliceUp(Left,Down,DownLeft)
		slices: 15,
		animSpeed: 750, // slide transition speed
		pauseTime: 7000,
		startSlide: 0, // set starting slide (0 index)
		directionNav: true, // next & prev
		directionNavHide: true, // only show on hover
		controlNav: true, // 1,2,3...
		controlNavThumbs: false, // use thumbnails for control nav
		controlNavThumbsFromRel: false, // use image rel for thumbs
		controlNavThumbsSearch: ".jpg", // replace this with...
		controlNavThumbsReplace: "_sm.png", // ...this in thumb img src
		keyboardNav: true, // use left & right arrows
		pauseOnHover: true, // stop animation while hovering
		manualAdvance: false, // force manual transitions
		captionOpacity: 0.8, // universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} // triggers after all slides have been shown
	});
	//// convert to 1-based control nav
	$(".nivo-control").each(function(){
		var nav = $(this).text();
		$(this).text(parseInt(nav)+1);
	});
});

