$(document).ready(function ()
{
  var i = 2;
  var baseImgName = '/images/site/main_photos/photo';
  var change = function() {
    $('#flashPhoto img:eq(0)').fadeOut("slow", function() {
        $('#flashPhoto img:eq(1)').prependTo($('#flashPhoto')).css('z-index', 7);
        $(this).css('z-index', 6).attr('src', baseImgName+i+'.jpg').show();
    });
    i = (i<7) ? (++i) : 1;
  }
  setInterval(change, 3000)

})

