// fadebeer.js
var slides = new Array('dubbelbg','blondbg','wittebg');
var slideIndex = 0; // which slide are we viewing?
var swapTimer = 5; // time, in seconds, between image swaps

function initSwap() {
 setTimeout(doSwap,swapTimer*1000); // start the swap timer!
}

function doSwap() {
 var divBox = document.getElementById('column2');
 if (divBox != null) {
   slideIndex = ++slideIndex % slides.length;
   divBox.style.backgroundImage = 'url(img/' + slides[slideIndex] +'.jpg)';
   setTimeout(doSwap,swapTimer*1000); // do it again in swapTimer seconds!
 }
}

// start it up when the page loads!
onload = initSwap; 


