// slideshow petro domes
<!-- HIDING THE SCRIPT FROM OTHER BROWSERS

var imgs = new afbeeldingsarray; 

var i = 1;

function afbeeldingsarray() {

        this[0] = "../../images/petro/petro1.jpg";
        this[1] = "../../images/petro/petro2.jpg";
        this[2] = "../../images/petro/petro12.jpg";
        this[3] = "../../images/petro/petro11.jpg";
        this[4] = "../../images/petro/petro5.jpg";
		this[5] = "../../images/petro/petro13.jpg";
		this[6] = "../../images/petro/petro8.jpg";
		this[7] = "../../images/petro/petro9.jpg";
		this[8] = "../../images/petro/petro10.jpg";
		this[9] = "../../images/petro/petro14.jpg";
		
				
}

function WM_preloadImages() {

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}

function slide() {

        if (i < 8) {

                i++;
        } else {
                i = 0;
        }

        document.images.slide.src = imgs[i];

        setTimeout("slide()",2500);

}
setTimeout('slide()',2500);

function start() {

        while(i < 8) {
		WM_preloadImages(imgs[i]);
        i++;
        }
        setTimeout("slide()",2500);

}
// STOP HIDING FROM OTHER BROWSERS -->	
	

