$(document).ready(function() {

	// Footer 'ticker'
	$("#brandTicker").jCarouselLite({
		speed: 4000,
		visible: 5,
		scroll: 5,
		circular: true,
		easing: "linear",
		auto: 3000
	});
		// Side Bar slider
	$("#slideshow").jCarouselLite({
		speed: 600,
		visible: 1,
		circular: true,
		easing: "linear",
		auto: 4000
	});

	// User Comments ticker
	$("#userComments").jCarouselLite({
		speed: 850,
		visible: 10,
		circular: true,
		easing: "swing",
		auto: 5000,
		vertical: true
	}).append('<div id="scrollerFade-top"></div>').append('<div id="scrollerFade-bottom"></div>')

	// VHH User Comments ticker
	$("#vhhUserComments").jCarouselLite({
		speed: 850,
		visible: 5,
		circular: true,
		easing: "swing",
		auto: 5000,
		vertical: true
	}).append('<div id="scrollerFade-top"></div>').append('<div id="scrollerFade-bottom"></div>')

	// Flag optional form fields
	$(".optional").each(function() {
		$(this).val('(optional)');
	});

	$(".optional").focus(function() {
		$(this).addClass("focused");
		if (this.value == '(optional)') { this.value = ''; }
	});
	$(".optional").blur(function() {
		if (this.value == '') {
			this.value = '(optional)';
			$(this).removeClass("focused");
		}
	});
	
	
});
