var _c = _h = 0;
$(function(){
	$('.hotad  li').hover(function(){
	    _c = $(this).index();
	    clearInterval(_h);
	    play();
	    change(_c);        
	},function(){});
    $(".hotad img").hover(function(){clearInterval(_h)}, function(){play()});
    play();
});
function play(){
    _h = setInterval("auto()", 8000);
}
function change(i){
    $('.hotad li').removeClass("on").eq(i).addClass("on").blur();
    $(".hotad img").hide().eq(i).fadeIn('slow');
}
function auto(){    
    _c = _c > 3 ? 0 : _c + 1;
    change(_c);
}
