// JavaScript Document
/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/

//set image paths
src = [
	   "img/oferta/rasobenF25.jpg",
	   "img/oferta/isovent.jpg",
	   "img/oferta/fresce.jpg",
	   "img/oferta/logix.jpg",
	   "img/oferta/velatura.jpg",
	   "img/oferta/isosandwich.jpg",
	   "img/oferta/prelavaggio.jpg",
	   "img/oferta/rasobenM30.jpg",
	   "img/oferta/termosistem.jpg",
	   "img/oferta/murobello.jpg",
	   "img/oferta/stucaturi.jpg",
	   "img/oferta/ferrol.jpg"
	   ]

//set corresponding urls
url = [
	   "rasobenF25.html",
	   "isovent_top.html",
	   "fresce.html",
	   "logix.html",
	   "velatura.html",
	   "isosandwich_top.html",
	   "prelavaggio.html",
	   "rasobenM30.html",
	   "termosistem.html",
	   "murobello.html",
	   "stucaturi.html",
	   "ferrol.html"
	   ]

//set duration for each image
duration = 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();
}




