// Copyright CDE4 2000 - Author: SLIMANI Karim - http://www.cde4.com
// OBJET OBJPUB
function OBJpub() {
 this.items = new Array();
 this.ajoute = ajoutepub;
}

// METHODE 'AJOUTE' DE OBJPUB
function ajoutepub(item) {
 this.items[this.items.length] = item;
}

// ELEMENT UNEPUB DE OBJPUB
function unepub(image, url, caption, cible) {
 this.image = image;
 this.url = url;
 this.caption = caption;
 this.cible = cible;
}

 // INITIALISE TPUB
 var Tpub = null;
 Tpub = new OBJpub();
 Tpub.ajoute( new unepub('/fra/pubs/pub_ecc-1.gif', '/fra/2_entreprises/fiches/ecc-1.htm', 'EuroConverter Calc', '') );
 Tpub.ajoute( new unepub('/fra/pubs/pub_butinage.gif', '/fra/1_educatif/fiches/butinage.htm', 'Butinage', '') );
 Tpub.ajoute( new unepub('http://www.aucland.fr/images/3/banners/aucbanner21.gif" width="460" height="50', 'http://www.aucland.fr/accdb/affgate.asp?Aff=1011814_229057790', 'www.aucland.fr', 'AUCLAND') );
// Tpub.ajoute( new unepub('http://www.hitsme.com/cgi-bin/cgiaff8058?1" width="460" height="50', 'http://www.hitsme.com/cgi-bin/cgicl8058.sh?1', 'Bannière publicitaire reseau HITSME', 'Bannière publicitaire reseau HITSME') );

 // SELECTIONNE ALEATOIREMENT UNE PUB ET LA RENVOIT (Tags <A> et <IMG> complet)
 publicite = Tpub.items[(Math.ceil(Math.random() * Tpub.items.length)) - 1];
 document.write('<a href="' + publicite.url + '" class="PUB" onMouseOver="self.status=\'' + publicite.caption + '\'; return true" onMouseOut=" self.status=\' \';" target="' + publicite.cible +'">')
 document.write('<img src="' + publicite.image + '" border=0 alt="' + publicite.caption + '"></a>');


