<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function(){
var change_every = 5; // The number of seconds that the slider will auto-advance in
var current = 1;
function auto_advance(){
if(current == -1) return false;
jQuery('#featured-content .slider-next').eq(current % jQuery('#featured-content .slider-next').length).trigger('click', [true]);
current++;
};
setInterval(function(){auto_advance()}, change_every * 1000);
});
</script>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function(){
var change_every = 5; // The number of seconds that the slider will auto-advance in
var current = 1;
var timeoutId;
var start = function(){
timeoutId = setInterval(function(){auto_advance()}, change_every * 1000);
}
var stop = function(){
if(timeoutId) clearTimeout(timeoutId);
}
function auto_advance(){
if(current == -1) return false;
jQuery('#featured-content .slider-next').eq(current % jQuery('#featured-content .slider-next').length).trigger('click', [true]);
current++;
};
start();
jQuery('#featured-content').mouseenter(function(){
stop();
});
jQuery('#featured-content').mouseleave(function(){
start();
});
});
</script>