jQuery(window).load(function(){ jQuery('#slider').flexslider({ animation: "slide", controlNav: true, pauseOnHover: false, animationLoop: true, slideshow: true, animationSpeed:"1500", slideshowSpeed:"4000", sync: "#carousel", start: function(slider){ jQuery('body').removeClass('loading'); } }); }); jQuery(window).load(function(){ jQuery('.flexslider').flexslider({ animation: "slide", animationLoop: true, slideshow:true, itemWidth: 233, itemMargin: 0, scroll: 1, min: 2, max: 5, start: function(slider){ jQuery('body').removeClass('loading'); } }); });