jQuery(function($) {
	$(document).ready(function() {
		$('.label_inline').each(function(i, v) {
			$(v).find('label').focus(function() {
				$(this).hide();
			});
			$(v).find('input, textarea').blur(function() {
				if ($(this).val() == "") {
					$(this).siblings('label').show();
				}
			});
			$(v).find('input, textarea').focus(function() {
				$(this).siblings('label').hide();
			}).each(function() {
				if ($(this).val() != "") {
					$(this).siblings('label').hide();
				}
			});
		});
		
		$(".slide").jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev"
		});
		
		$('#banner').nivoSlider({
		    effect:'sliceDown', // Specify sets like: 'fold,fade,sliceDown'
		    slices: 20, // For slice animations
		    animSpeed: 600, // Slide transition speed
		    pauseTime: 6000, // How long each slide will show
		    startSlide:0, // Set starting Slide (0 index)
		    directionNav:true, // Next & Prev navigation
		    directionNavHide:true, // Only show on hover
		    controlNav:true, // 1,2,3... navigation
		    pauseOnHover:true, // Stop animation while hovering
		    manualAdvance:false, // Force manual transitions
		    captionOpacity:0.8, // Universal caption opacity
		    prevText: 'Ant.', // Prev directionNav text
		    nextText: 'Prox.', // Next directionNav text
		    beforeChange: function(){}, // Triggers before a slide transition
		    afterChange: function(){}, // Triggers after a slide transition
		    slideshowEnd: function(){}, // Triggers after all slides have been shown
		    lastSlide: function(){}, // Triggers when last slide is shown
		    afterLoad: function(){} // Triggers when slider has loaded
		});
	});
});

