(function ($) {

    $(document).ready(function(){    
     
	 	// QUICK VIEW OF THE PRODUCT LOADED IN COLORBOX
		$('.quickview-icon').live('click', function() {
			$.colorbox({ /*iframe: true,*/ width: '590px', height: '180px', href: '/berties/index/quickview/product/'+$(this).attr('data-productid')} )
			return false;
		});

		var featuredProducts = $('.featured-products-tabcon');
			if(featuredProducts.find('li').length > 4) {
				featuredProducts.jCarouselLite({
					btnNext: ".feat-right",
					btnPrev: ".feat-left",
					visible: 4,
					easing: 'easeOutSine',
					mouseWheel: true,
					scroll: 1,
					speed: 300
				});
			}

	});
    
})(jQuery);

