// JavaScript Document

emg_banurl = new Array;
emg_banimageUrl=new Array;

emg_banimageUrl[0] = "http://www.bretagne-quebec.com/course/ban-mparis2009.jpg";
emg_banurl[0] = "http://www.parismarathon.com";

emg_banimageUrl[1] = "http://www.bretagne-quebec.com/course/ban-mdeuxrives.jpg";
emg_banurl[1] = "http://www.couriraquebec.com/sites/marathon.html";

emg_banimageUrl[2] = "http://www.bretagne-quebec.com/course/ban-mmtstmichel.jpg";
emg_banurl[2] = "http://www.montsaintmichel-marathon.com";

emg_banimageUrl[3] = "http://www.bretagne-quebec.com/course/ban-mmtl2009.jpg";
emg_banurl[3] = "http://www.marathondemontreal.com/site.php?lang=fr";

emg_banimageUrl[4] = "http://www.bretagne-quebec.com/course/ban-mmedoc.jpg";
emg_banurl[4] = "http://www.marathondumedoc.com";

emg_banimageUrl[5] = "http://www.bretagne-quebec.com/course/ban-mrimouski.jpg";
emg_banurl[5] = "http://www.marathonderimouski.ca/accueil-fr.htm";

emg_banimageUrl[6] = "http://www.bretagne-quebec.com/course/ban-mottawa.jpg";
emg_banurl[6] = "http://www.runottawa.ca/index.php/fr/ing";

emg_banimageUrl[7] = "http://www.bretagne-quebec.com/course/ban-smrennes.jpg";
emg_banurl[7] = "http://www.trc.rennes.fr/03_course_SMI.php";

emg_banimageUrl[8] = "http://www.bretagne-quebec.com/course/ban-couriraquebec.jpg";
emg_banurl[8] = "http://www.couriraquebec.com/swf/accueil.html";

emg_banimageUrl[9] = "http://www.bretagne-quebec.com/course/ban2008-mlarochelle.gif";
emg_banurl[9] = "http://www.marathondelarochelle.com";

emg_banimageUrl[10] = "http://www.bretagne-quebec.com/course/ban-mvannes.jpg";
emg_banurl[10] = "http://www.marathon-vannes.com";

emg_banimageUrl[11] = "http://www.bretagne-quebec.com/course/ban-mnyc.jpg";
emg_banurl[11] = "http://www.ingnycmarathon.org/home/index.php";

emg_banimageUrl[12] = "http://www.bretagne-quebec.com/course/ban-mlondres.jpg";
emg_banurl[12] = "http://www.london-marathon.co.uk";

emg_banimageUrl[13] = "http://www.bretagne-quebec.com/course/ban-mvillages.jpg";
emg_banurl[13] = "http://www.marathon-des-villages.com";

emg_banimageUrl[14] = "http://www.bretagne-quebec.com/course/ban-smmtl.jpg";
emg_banurl[14] = "http://www.canadarunningseries.com/monthalf/index.htm";

emg_banimageUrl[15] = "http://www.bretagne-quebec.com/course/ban-mboston.jpg";
emg_banurl[15] = "http://www.bostonmarathon.org/BostonMarathon/Default.asp";

emg_banimageUrl[16] = "http://www.bretagne-quebec.com/course/ban-mvancouver.jpg";
emg_banurl[16] = "http://www.bmovanmarathon.ca";

emg_banimageUrl[17] = "http://www.bretagne-quebec.com/course/ban-mnantes.jpg";
emg_banurl[17] = "http://www.marathondenantes.com";

affiche = false;

function AffichePub()
   {
   if(!affiche)
      {
      numimage= Math.round(Math.random()*(emg_banurl.length-1));
      document.write ('<A HREF="#" onClick="window.open(emg_banurl[numimage],\'_blank\')"><IMG SRC="' + emg_banimageUrl[numimage] + '" BORDER=0 NAME=emg_banpub></A>')
      affiche = true;
      }
   else
      {
      if(numimage == (emg_banurl.length-1))
         numimage = 0;
      else
         numimage++;
      document.emg_banpub.src=emg_banimageUrl[numimage];
      }
   setTimeout("AffichePub()",10000);
   }

AffichePub();