ejs_banurl = new Array;
ejs_banimageUrl=new Array;

ejs_banimageUrl[0] = "news/a1.jpg";
ejs_banurl[0] = "construction.php";

ejs_banimageUrl[1] = "news/a2.jpg";
ejs_banurl[1] = "construction.php";

ejs_banimageUrl[2] = "news/a3.jpg";
ejs_banurl[2] = "construction.php";

ejs_banimageUrl[3] = "news/a3b.jpg";
ejs_banurl[3] = "construction.php";

ejs_banimageUrl[4] = "news/a4.jpg";
ejs_banurl[4] = "construction.php";

ejs_banimageUrl[5] = "news/a5.jpg";
ejs_banurl[5] = "construction.php";

ejs_banimageUrl[6] = "news/a6.jpg";
ejs_banurl[6] = "construction.php";

affiche = false;

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

AffichePub();

