$(document).ready(
	function() {

		//
		// BEGIN dressing up search fields
		$("#keywords").attr("value", "Search Firespring...");
				
		if ($("#keywords").attr("value") == null) {
			$("#keywords").attr("value", "Search Firespring...");
		}
		
		$("#keywords").focus(function() {
			if ($("#keywords").attr("value") == "Search Firespring...") {
				$("#keywords").attr("value", "");
			}
		});
		
		$("#keywords").blur(function() {
			if ($("#keywords").attr("value") == null || $("#keywords").attr("value") == "") {
				$("#keywords").attr("value", "Search Firespring...");
			}
		});
		// END dressing up search fields
		//
		
		// BEGIN homepage spotlight slideshow
		$("#spotlights").anythingSlider({
			easing: "easeInOutExpo",		// Anything other than "linear" or "swing" requires the easing plugin
			autoPlay: true,				// This turns off the entire FUNCTIONALY, not just if it starts running or not.
			delay: 10000,					// How long between slide transitions in AutoPlay mode
			startStopped: false,			// If autoPlay is on, this can force it to start stopped
			animationTime: 600,				// How long the slide transition takes
			hashTags: false,				// Should links change the hashtag in the URL?
			buildNavigation: false,			// If true, builds and list of anchor links to link to each slide
			pauseOnHover: true,				// If true, and autoPlay is enabled, the show will pause on hover
			startText: "Go",				// Start text
			stopText: "Stop"				// Stop text
		});
		// END homepage spotlight slideshow

		// Replace default required field label
		$("em.required_field_label").html(" *");
		
		// lightbox
		$('a.lightbox').lightBox({
			overlayOpacity: 0.75,
			imageLoading: 'http://cdn.firespring.com/designs/firespring_corp/graphics/jquery_lightbox/lightbox-ico-loading.gif',
			imageBtnClose: 'http://cdn.firespring.com/designs/firespring_corp/graphics/jquery_lightbox/lightbox-btn-close.gif',
			imageBtnPrev: 'http://cdn.firespring.com/designs/firespring_corp/graphics/jquery_lightbox/lightbox-btn-prev.gif',
			imageBtnNext: 'http://cdn.firespring.com/designs/firespring_corp/graphics/jquery_lightbox/lightbox-btn-next.gif',
			containerResizeSpeed: 350
		});

	}
);
