$(function (){
    $('#top img').each(function(){
        $(this).css({
            top: $(this).parent().offset().top,
            left: $(this).parent().offset().left
        });
    });
    $('#top img:first').fadeIn(1500);
    function change_image() {
        if ($('#top img:visible').next().length !=0) {
            $('#top img:visible').fadeOut(1500).next().fadeIn(1500);
        } else {
            $('#top img:visible').fadeOut(1500);
            $('#top img:first').fadeIn(1500);
        }
        setTimeout(change_image,5000);
    }
    setTimeout(change_image,5000);
    
});
