$(document).ready(function(){
									
	// Removes SEO text in navItems
	$(".clearText").html("");
	$(".clearText").removeClass("clearText");
	
	// Clears input fields on Focus
	$(".clearField").bind("blur", function() {
		if ($(this).val()=="") {
			$(this).val($(this).attr("title"));
		};
	});
	$(".clearField").bind("focus", function() {
		if ($(this).val()==$(this).attr("title")) {
			$(this).val("");
		};
	});


	// FEATURED SLIDER
	$("div.sliderControls a").css({"display":"block"});
	$("div#sliderContainer ul li").css({"display":"none"});
	$("div#sliderContainer ul li:first").css({"display":"block"}).addClass("active first");
	$("div#sliderContainer ul li:last").addClass("last");
	var activeProduct;
	var sliderSpeed = 600;
	var slideWidth = 260;
	
	$("div.sliderControls a#sliderNext").click(function(){
		activeProduct = $("div#sliderContainer ul li.active");
		if (activeProduct.hasClass("last")) {
			nextProduct = $("div#sliderContainer ul li.first");
		} else {
			nextProduct = activeProduct.next();
		}
		activeProduct
			.css({"left":0,"zIndex":1})
			.animate({"left":-slideWidth},sliderSpeed,function() { activeProduct.css({ "display":"none" }); })
			.removeClass("active");
		nextProduct
			.css({"left":slideWidth,"display":"block","zIndex":99})
			.animate({"left":0},sliderSpeed,function() {
				nextProduct.addClass("active");
		})
	});
	
	$("div.sliderControls a#sliderPrev").click(function(){
		activeProduct = $("div#sliderContainer ul li.active");
		if (activeProduct.hasClass("first")) {
			nextProduct = $("div#sliderContainer ul li.last");
		} else {
			nextProduct = activeProduct.prev();
		}
		activeProduct
			.css({"left":0,"zIndex":1})
			.animate({"left":slideWidth},sliderSpeed,function() { activeProduct.css({ "display":"none" }); })
			.removeClass("active");
		nextProduct
			.css({"left":-slideWidth,"display":"block","zIndex":99})
			.animate({"left":0},sliderSpeed,function() {
				nextProduct.addClass("active");
		})
	});


	
});
