$(document).ready(function() { initSite(); }); function initSite() { if ($("body").attr("id") == "homeBody") { //reverseFeatured(); //only until admin has this feature initFeatured(); } } function initFeatured() { var featureScroll = null; if (!$(".featureFeedSub").is(":empty")) { $(".featureFeedWrap").prepend($(".featureThumbsWrap")); featureScroll = $(".featureFeed").scrollable({ clickable: false, loop: true, size: 1, keyboard: false, speed: 1000, items: ".featureFeedSub", circular: true }).navigator(".featureThumbsWrap").autoscroll({ autoplay: false, interval: 7500, api: true }); $(".featureThumb:first").addClass("active"); if (featureScroll != null) { featureScroll.play(); } } }