
jQuery(document).ready(function() {

$('.homeHeroRotate .slides').cycle({

fx: 'fade',

timeout: 9000,

speed: 500,

before: function () {

$('.heroImage').html($('.slideHeading', this).html());

$('.heroContent').html($('.slideContent', this).html());


},

pager: '.slidesBtns .btnGroup',

pagerAnchorBuilder: function(idx, slide) {

idxNUM = idx + 1;

return '<div id="slideBtn' + idxNUM + '" class="slideBtnOff">' + idxNUM + '</div>';

}

});



$('.homeHeroRotate .btnGroup .slideBtnOff').click(function(){

$('.homeHeroRotate .slides').cycle('pause');

});

});



$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {

$(pager).find('div').removeClass('slideBtnOn')

.filter('div:eq(' + currSlideIndex + ')').addClass('slideBtnOn');

};


