var x=0;
var numDivs = 12;
var depth = 12;

function showDiv(){
  x++;
  var selector = "#splashImageDiv"  + x;
  depth++;
  getImage(selector);
  if(x==numDivs){
    x=0;
  }
  window.setTimeout('showDiv()',6000);
}

function getImage(selector) {
    depth++;
    $(selector).css('z-index', depth);
    $(selector).css('opacity', 0);
    $(selector).css({ opacity: 0 }).stop().animate({ opacity: '1' }, 1000);
}

$(document).ready(function(){
    $(window).load(function(){
        $("#loader").remove();
        window.setTimeout(
        'showDiv()',100
        )
    })
});


