Примерно так:
$(document).ready(function(){
$("#photos").hover(
function () {
var interval = setInterval("slideShow",300);
}
},
function () {
clearInterval(interval);
}
)
);
function slideShow() {
var current = $('#photos .show');
var next = current.next().length ? current.next() : current.siblings().first();
current.hide().removeClass('show');
next.fadeIn(0).addClass('show');
}