    bg=2;
    function bgChange(){
        $('#top .image2').animate({opacity: 0.0},1000);
        setTimeout("bgChange2()",1500);
    }
    function bgChange2(){
        $('#top .image2').css({backgroundImage: $('#top .image').css("backgroundImage")});
        $('#top .image2').css('opacity',1.0);
        $('#top .image').css({backgroundImage: "url('/images/BG"+((bg<5)? ++bg:1)+".jpg')"});
        bg = (bg<5)? bg:0;
    }
    $(function(){
        //$.preload(['BG1','BG2','BG3','BG4','BG5','BG6'], {base:'images/',ext:'.jpg'});
        $('#top .image').css({backgroundImage: "url('/images/BG2.jpg')"});
        $('#top .image').css({backgroundRepeat: "no-repeat"});
        setInterval("bgChange()",7000);
    });
