// Attention a ne pas mettre ce code dans une fonction !!
// le nombre suivant correspond au nombre de pubs total
	var nombre_pubs = 3;

// on demande un nombre alleatoire a l'ordinateur
	var nombre_alleatoire = Math.random();
	var numero = Math.round( ( nombre_pubs - 1 ) * nombre_alleatoire ) + 1;

	pubs = new Array;

// suivent maintenant les pubs disponibles
	pubs[1] = '<a href="http://www.madconcept.ch" target="_blank"><img src="scripts/pub/images/mad.gif" border="1"></a>';
	pubs[2] = '<a href="http://www.lan.ch" target="_blank"><img src="scripts/pub/images/lan.gif" border="1"></a>';
	pubs[3] = '<a href="http://www.sporttoto.ch" target="_blank"><img src="scripts/pub/images/sport-toto.gif" border="1"></a>';

	var pub = pubs[numero];