/* Script d'affichage aléatoire des annoceurs */

var msg=new InitMsg();

function disp(txt) {
  document.getElementById("encart_part").innerHTML=txt;
  window.setTimeout("AffPart()",5000);
}

function affiche_part(sdestination, slogo, snom) {
  this.destination = sdestination;
  this.logo = slogo;
  this.nom = snom;
}

function InitMsg() {
  this.Aff=AffPart();
}

function AffPart() {
  part = new Array(4);
  part[0] = new affiche_part("/partenariats/","/partenariats/images/sds-stamp.jpg","Le Salon des Solidarités");
  part[1] = new affiche_part("/partenariats/","/partenariats/images/Logo-Recyclage-Solidaire.png","Quand préserver l'environnement soutient les actions de solidarité");
  part[2] = new affiche_part("/partenariats/","/partenariats/images/logo_soli-tv.jpg","Le média d'un monde solidaire");
  part[3] = new affiche_part("/partenariats/","/partenariats/images/ideas-logo.png","Pour donner sereinement, il faut être informé et avoir confiance");
  

  var nb = part.length;
  var affiche=Math.round(Math.random(1)*(nb-1));
  disp("<a href="+part[affiche].destination+"><img src="+part[affiche].logo+" border='0' alt='' height='100' width='120' /></a><br /><a href="+part[affiche].destination+"><b>"+part[affiche].nom+"</b></a>");
}
