window.SV = window.SV || {}; // setup namespace
jQuery.noConflict();
jQuery(function() {
  // setup home page and category landing page carousels
  jQuery('.homepage #featured ul, .landing #featured ul, .product-list #featured ul').css("visibility", "visible");
  jQuery('.homepage #featured, .landing #featured, .product-list #featured').each(function() { 

    var btnPrev = jQuery('<a />').addClass('sv-carousel-prev')
              .attr('href', '#')
              .appendTo(this);
              
    var btnNext = jQuery('<a />').addClass('sv-carousel-next')
              .attr('href', '#')
              .appendTo(this);
              
    jQuery('.sv-carousel', this).jCarouselLite({
      visible: 4,
      btnNext: btnNext,
      btnPrev: btnPrev
    })
    
    jQuery('a.sv-carousel-prev, a.sv-carousel-next', this).height(jQuery('.sv-carousel li:first', this).height());
  });
});

