jQuery.noConflict();
var running = true;
var time = 15000;

jQuery(document).ready(function() {
    jQuery("div.featuredBoxHolder").scrollable({
        speed: 3000,
        size: 2,
        clickable: false
    }).circular().autoscroll({
        autoplay: false,
        steps: 2,
        interval: time
    }).navigator(".pagination");

    var ii;
    var to = jQuery(".pagination a").length + 1;
    for (ii = 1; ii <= to; ii++) {
        jQuery(".pagination a:eq(" + (ii - 1) + ")").html(ii);
    }

    jQuery("div.play").click(function() {
        if (running == false) {
            jQuery("div.featuredBoxHolder").scrollable().play();
            running = true;
        }
    });

    jQuery("div.stop").click(function() {
        jQuery("div.featuredBoxHolder").scrollable().stop();
        running = false;
    });

    jQuery("div.pagination.*").click(function() {
        jQuery("div.featuredBoxHolder").scrollable().stop();
        running = false;
    });

});

var sec=0;
var y;
function startCount()
{
    if(sec<time){
        sec=sec+1000;
        y=setTimeout("startCount()",1000);
    }
    else if(running==true){
        jQuery("div.featuredBoxHolder").scrollable().play();
    }
}
startCount()