/***********************************************************************************
*	Slideshow.js version 0.1                                                       *
*	(c) 2004 by W.J. Koster                                                        *
*	You may use this script on non commercial sites 	                           *
*	For info write to info@retsok.nl		                                       *
***********************************************************************************/

var iCnt = 1;
var iTimeOut = 10000;

var aFileName = new Array(
	"http://www.almerecontainers.nl/photos/img_0044.jpg",
	"http://www.almerecontainers.nl/photos/img_0003.jpg",
	"http://www.almerecontainers.nl/photos/img_0021.jpg",
	"http://www.almerecontainers.nl/photos/img_0023.jpg",
	"http://www.almerecontainers.nl/photos/img_0001.jpg",
	"http://www.almerecontainers.nl/photos/img_0025.jpg",
	"http://www.almerecontainers.nl/photos/img_0026.jpg",
	"http://www.almerecontainers.nl/photos/img_0029.jpg",
	"http://www.almerecontainers.nl/photos/img_0002.jpg",
	"http://www.almerecontainers.nl/photos/img_0031.jpg",
	"http://www.almerecontainers.nl/photos/img_0033.jpg",
	"http://www.almerecontainers.nl/photos/img_0005.jpg",
	"http://www.almerecontainers.nl/photos/img_0039.jpg",
	"http://www.almerecontainers.nl/photos/img_0043.jpg",
	"http://www.almerecontainers.nl/photos/img_0011.jpg",
	"http://www.almerecontainers.nl/photos/img_0047.jpg",
	"http://www.almerecontainers.nl/photos/img_0048.jpg",
	"http://www.almerecontainers.nl/photos/img_0014.jpg",
	"http://www.almerecontainers.nl/photos/img_0051.jpg",
	"http://www.almerecontainers.nl/photos/img_0054.jpg");

var useragent;
useragent = window.navigator.userAgent.toLowerCase();
	
function InitSlides(){
	if(document.all){
		if((useragent.indexOf('msie 8') != -1)||(useragent.indexOf('msie 7') != -1)||(useragent.indexOf('msie 6') != -1)||(useragent.indexOf('msie 5.5') != -1)){
			setTimeout('LoadSlides()',iTimeOut);
		}
	}
}

function LoadSlides(){
	if (iCnt < aFileName.length) {
	    var loadImage = new Image();
		loadImage.onload = ShowSlides;
	    loadImage.src = aFileName[iCnt];
	} else {
		iCnt = 0;
		setTimeout('LoadSlides()',iTimeOut);
	}
}

function ShowSlides(){
	imgid.filters[0].apply();
	imgid.src = aFileName[iCnt];
	imgid.filters[0].play();
    iCnt++;
	setTimeout('LoadSlides()',iTimeOut);
}

window.onload = InitSlides;
