// Common js calls for site


// Product Slider
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

	$(document).ready(function () {
		$('#featured-slider').easyAccordion({ 
				autoStart: true, 
				slideInterval: 7500
		});		
	});

});

// Tabbed Content on homepage
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

	$(document).ready(function() {
	
		//When page loads...
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
	
		//On Click Event
		$("ul.tabs li").click(function() {
	
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
	
			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});
	
	});
	
});


// Infield labels (homepage contact form)
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

	$(function(){ $("label").inFieldLabels(); });

});

// Testimonials
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

	$(function() {
		$(".test-list").jCarouselLite({
			vertical: true,
			hoverPause:true,
			visible: 1,
			auto:3000,
			speed:800,
	        btnNext: ".next",
	        btnPrev: ".prev"

		});
	});


});

// main HP slider
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

	$(function() {
		$(".slider-list").jCarouselLite({
			visible: 1,
			hoverPause:true,
			auto:15000,
			speed:400,
	        btnNext: ".slider-next",
	        btnPrev: ".slider-prev"			
		});
	});


});
