/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
*/

//set image paths
src = ["./img/01.jpg", "./img/02.jpg", "./img/03.jpg", "./img/04.jpg", "./img/05.jpg", "./img/06.jpg", "./img/07.jpg", "./img/08.jpg", "./img/09.jpg", "./img/10.jpg", "./img/11.jpg", "./img/12.jpg", "./img/13.jpg"]


//set corresponding urls
url = ["http://www.aalsmeer.nl", "http://www.amsterdam.nl", "http://www.aalsmeer.nl", "http://www.appm.nl", "http://www.duravermeer.nl", "http://www.dutchgreen.nl", "http://www.ey.nl", "http://www.uithoorn.nl", "http://www.haarlemmermeer.nl", "http://www.rabobank.nl", "http://www.schenkmakelaars.nl", "http://www.vwvastgoed.nl", "http://www.greenbalanz.youre-on.tv" ]

//set duration for each image
duration = 1.5;

//Please do not edit below
ads=[]; ct=0;

function switchAd() 
{
	var n=(ct+1)%src.length;
	if (ads[n] && (ads[n].complete || ads[n].complete==null)) 
	{
		document["Ad_Image"].src = ads[ct=n].src;
	}
	ads[n=(ct+1)%src.length] = new Image;
	ads[n].src = src[n];
	setTimeout("switchAd()",duration*1000);
}

function doLink()
{
	location.href = url[ct];
} 
onload = function() 
{
	if (document.images)
		switchAd();
}
