<script>
var theInterval;
function slideSwitch() {
$(".cover-slider .next").trigger("click");
}
function startSlide() {
theInterval = setInterval(slideSwitch, 3000);
}
function stopSlide() {
clearInterval(theInterval);
}
$(function() {
var $slider = $(".cover-slider");
var $sliderItem = $slider.find("li");
if ($sliderItem.length > 1) {
startSlide();
$sliderItem.hover(
function() {
stopSlide();
},
function() {
startSlide();
}
);
}
});
</script>