jQuery(window).load(function() {
    jQuery("#features").jCarouselLite({
        auto: 5000,
		speed: 1000,
		easing: "easeinout",
		circular: true,
		scroll: 1,
		btnNext: ".btn_next",
	    btnPrev: ".btn_prev"
    });
	
	// Sharpening Prices
	jQuery("#tabs").tabs();
	
	jQuery('.sharpeningPrices tr:nth-child(2n)').addClass("even");
	jQuery('.sharpeningPrices tbody tr').hover(function(){
		jQuery(this).css({
			background: "#8A0A0A",
			color: "#fff"
		});
	}, function() {
		if(jQuery(this).hasClass('even')) {
			jQuery(this).css({
				background: "#fff",
				color: "#2F2F2F"
			});
		} else {
			jQuery(this).css({
				background: "#dcdcdc",
				color: "#2F2F2F"
			});
		}
	});
	
	// Show Schedule
	jQuery('.showSchedule tr:nth-child(2n)').addClass("even");
	jQuery('.showSchedule tbody tr').hover(function(){
		jQuery(this).css({
			background: "#8A0A0A",
			color: "#fff"
		});
		jQuery(this).find('a').css("color", "#fff");
	}, function() {
		if(jQuery(this).hasClass('even')) {
			jQuery(this).css({
				background: "#fff",
				color: "#2F2F2F"
			});
		} else {
			jQuery(this).css({
				background: "#dcdcdc",
				color: "#2F2F2F"
			});
		}
		jQuery(this).find('a').css("color", "#2F2F2F");
	});
	
	// Product List
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = 0;
			thisHeight = jQuery(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}
	equalHeight(jQuery('.products-grid .item'));
});

