$(document).ready(function(){
  $('.galleryLoad img').each(function(){
    
    theRoute=$(this).attr('src').replace('/thumb','')
    $('.gallery').append('<img class="galleryImage" src="'+theRoute+'" alt="" />')
  })
  $('.galleryImage:first').fadeIn(function(){
    setTimeout('fadeGallery()',1000)
       
  })

})


function fadeGallery()
{
  $('.galleryImage:visible').fadeOut().nextOrFirst('.galleryImage').fadeIn()
   setTimeout('fadeGallery()',5000)
}
