function MakeArray(n)
{	this.length= n;
	for (var i=1; i<=n; i++) {
		this[i]= 0;}
	return this;}
function data_(fichier, id, forme, titre, temp, url)
{	this.id=id;
	this.fichier=fichier;
	this.url=url;
	this.forme=forme;
	this.titre=titre;
	this.temp=temp;}
var dataPUB = new MakeArray(),bandeau_encours,bandeau_encours1,bandeau_encours2,bandeau_encours3;
function switchBandeau() 
{	var numBandeau, alea, tAleA, nombrePage, count=0;
		if(isNaN(bandeau_encours)){tAlea = new Date();bandeau_encours =0;}
		numBandeau = bandeau_encours;
		while(dataPUB[numBandeau].forme!=0 && count<nb_pub)
		{	count++;
			numBandeau++;
			if(numBandeau == nb_pub){numBandeau=0;}
		}
		document.images['lebandeau'].src = dataPUB[numBandeau].fichier;
		document.links[0].href = dataPUB[numBandeau].url;
		tAleA = dataPUB[numBandeau].temp;
		numBandeau++;
		if(numBandeau==nb_pub)	numBandeau=0;
		bandeau_encours = numBandeau;
		self.setTimeout ('switchBandeau();', tAleA);
	}
function switchBandeau1() 
{	var numBandeau, alea, tAleA, nombrePage, count=nb_pub;
		if(isNaN(bandeau_encours1)){tAlea = new Date();bandeau_encours1 =(Math.ceil (tAlea.getTime()*Math.random()) % nb_pub2);}
		numBandeau = bandeau_encours1;
		while(dataPUB[numBandeau].forme!=1 && count<nb_pub2*10)
		{	count++;
			numBandeau++;
			if(numBandeau == nb_pub2){numBandeau=nb_pub;}
		}
		document.images['lebandeau1'].src = dataPUB[numBandeau].fichier;
		document.links[3].href = dataPUB[numBandeau].url;
		tAleA = dataPUB[numBandeau].temp;
		numBandeau++;
		if(numBandeau==nb_pub2)	numBandeau=nb_pub;
		bandeau_encours1 = numBandeau;
		self.setTimeout ('switchBandeau1();', tAleA);
	}
function switchBandeau2() 
{	var numBandeau, alea, tAleA, nombrePage, count=nb_pub;
		if(isNaN(bandeau_encours2)){tAlea = new Date();bandeau_encours2 =(Math.ceil (tAlea.getTime()*Math.random()) % nb_pub2);}
		numBandeau = bandeau_encours2;
		while(dataPUB[numBandeau].forme!=2 && count<nb_pub2*10)
		{	count++;
			numBandeau++;
			if(numBandeau == nb_pub2){numBandeau=nb_pub;}
		}
		document.images['lebandeau2'].src = dataPUB[numBandeau].fichier;
		document.links[4].href = dataPUB[numBandeau].url;
		tAleA = dataPUB[numBandeau].temp;
		numBandeau++;
		if(numBandeau==nb_pub2)	numBandeau=nb_pub;
		bandeau_encours2 = numBandeau;
		self.setTimeout ('switchBandeau2();', tAleA);
	}
function switchBandeau3() 
{	var numBandeau, alea, tAleA, nombrePage, count=nb_pub;
		if(isNaN(bandeau_encours3)){tAlea = new Date();bandeau_encours3 =(Math.ceil (tAlea.getTime()*Math.random()) % nb_pub2);}
		numBandeau = bandeau_encours3;
		while(dataPUB[numBandeau].forme!=3 && count<nb_pub2*10)
		{	count++;
			numBandeau++;
			if(numBandeau == nb_pub2){numBandeau=nb_pub;}
		}
		document.images['lebandeau3'].src = dataPUB[numBandeau].fichier;
		document.links[5].href = dataPUB[numBandeau].url;
		tAleA = dataPUB[numBandeau].temp;
		numBandeau++;
		if(numBandeau==nb_pub2)	numBandeau=nb_pub;
		bandeau_encours3 = numBandeau;
		self.setTimeout ('switchBandeau3();', tAleA);
	}
dataPUB[0]=new data_('/pub/21.gif',21,0,'http://www.i-valo.com/410_luminairespoureclairageindustriel,conformesalanormeeuropeenneen60598.aspx',25000,'/dyn/comptage_bandeau.asp?id=21&url=http://www.i-valo.com/410_luminairespoureclairageindustriel,conformesalanormeeuropeenneen60598.aspx');
dataPUB[1]=new data_('/pub/20.gif',20,0,'http://www.smalley.com/contact_us/europe_french.asp ',20000,'/dyn/comptage_bandeau.asp?id=20&url=http://www.smalley.com/contact_us/europe_french.asp ');
dataPUB[2]=new data_('/pub/19.gif',19,0,'http://www.siibusinessproducts.com/eu/francais/index.html',8000,'/dyn/comptage_bandeau.asp?id=19&url=http://www.siibusinessproducts.com/eu/francais/index.html');
dataPUB[3]=new data_('/pub/17.gif',17,0,'http://www.delahaye-industries.fr/1024/m_pages/mproduits.php',20000,'/dyn/comptage_bandeau.asp?id=17&url=http://www.delahaye-industries.fr/1024/m_pages/mproduits.php');
nb_pub=4;
dataPUB[4]=new data_('/pub/vig/12.gif',12,2,'http://www.karcher.fr/fr/Produits/Systemes_de_nettoyage_industriel.htm',20000,'/dyn/comptage_bandeau2.asp?id=12&url=http://www.karcher.fr/fr/Produits/Systemes_de_nettoyage_industriel.htm');
dataPUB[5]=new data_('/pub/vig/18.gif',18,1,'http://www.expair.fr/adncms/index.php',15000,'/dyn/comptage_bandeau2.asp?id=18&url=http://www.expair.fr/adncms/index.php');
dataPUB[6]=new data_('/pub/vig/22.gif',22,3,'http://www.watco.fr',30000,'/dyn/comptage_bandeau2.asp?id=22&url=http://www.watco.fr');
nb_pub2=7;
