var imageName = new Array(
  "images/booth_Junebug_small.jpg",
  "images/booth_ProphesyII_small.jpg",
  "images/booth_LiquidEmpire_small.jpg",
  "images/booth_2001ABassOdyssey_small.jpg",
  "images/booth_Demotekracy2_small.jpg",
  "images/booth_FutureFlowCK4YA1_small.jpg",
  "images/booth_RaggaSaga1_small.jpg",
  "images/booth_StrictlyJunggleIII_small.jpg",
  "images/booth_StrictlyJunggleIII2_small.jpg",
  "images/booth_StrictlyJunggleIII3_small.jpg",
  "images/booth_OneLove_small.jpg",
  "images/booth_EMFC2002_1_small.jpg",
  "images/booth_EMFC2002_2_small.jpg",
  "images/booth_SurvivalOfTheIllest_small.gif",
  "images/booth_Junebug3_1_small.jpg",
  "images/booth_Junebug4_1_small.jpg",
  "images/booth_EMFC2003_1_small.jpg",
  "images/booth_EMFC2003_2_small.jpg",
  "images/booth_EMFC2003_3_small.jpg",
  "images/booth_EMFC2003_4_small.jpg",
  "images/booth_DesertMoonRising_small.jpg",
  "images/booth_VivifyII_1_small.gif",
  "images/booth_Dreamscapes2005_small.jpg",
  "images/booth_Earthdance2005_1_small.jpg",
  "images/booth_HipHopConvergence_small.jpg",
  "images/booth_BreakingTheIce_small.jpg"
)
var image = new Array(imageName.length)
var imageCached = new Array(imageName.length)
for (var i=0; i<imageCached.length; i++) imageCached[i] = false

function nextImage(arg) {
  if (document.images) {
    var i = Math.floor(Math.random() * image.length) % image.length
    if (imageCached[i] == false) {
      image[i] = new Image(220)
      image[i].src = imageName[i]
      imageCached[i] = true
    }
    document.images[arg].src = imageName[i]
  }
}

var firstImage = true
function loopBoothPhotos() {
  if (firstImage) firstImage = false
  else nextImage("boothPhoto")
  setTimeout("loopBoothPhotos()", 5000)
}