/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var boots = new Array('boot1', 'boot2', 'boot3');
var images = new Array('image1', 'image2', 'image3', 'image4', 'image5', 'image6', 'image7');
var i = 0;
var k = 0;

function bootFade()  {
  Effect.Fade(boots[i], {duration:2, from:1.0, to:0.0});
  i++;
  if(i == 3) i = 0;
  Effect.Appear(boots[i], {duration:2, from:0.0, to:1.0});
}

function imageFade()  {
  Effect.Fade(images[k], {duration:1, from:1.0, to:0.0});
  k++;
  if(k == 7) k = 0;
  Effect.Appear(images[k], {duration:1, from:0.0, to:1.0});
}

new PeriodicalExecuter(bootFade, 4);
new PeriodicalExecuter(imageFade, 8);
