var zclub = new Object();
zclub.randImg = {
   id : 'rand-img',
   ix : 1,
   max : 10,
   run : function() {
      var elem = document.getElementById(this.id);
      
      if (elem) {
         if (++this.ix > this.max) this.ix = 1;
         elem.style.backgroundImage = 'url(img/dive' + this.ix.toString() + '.jpg)';
         elem = null;
         window.setTimeout('zclub.randImg.run()', 10000);
      }
   },
   runTimer : function() { window.setTimeout('zclub.randImg.run()', 10000); }
};

ztmc.addOnWindowLoad(zclub.randImg.runTimer);