function creerArray() 
{
    this.length = creerArray.arguments.length;
    for (var i = 0; i < this.length; i++)
      this[i+1] = creerArray.arguments[i];
}

var liens=new creerArray("http://www.47.bienvenuealaferme.org","http://www.cerfrance.fr","http://www.lot-et-garonne.chambagri.fr","http://perso.wanadoo.fr/fdcuma47/","http://www.groupama-centre-atlantique.fr","http://www.msa47.fr"); 
var surpub=false;

function dedans()
{
	surpub=true;
}

function dehors()
{
	surpub=false;
}

function clique()
{
	window.location.href=liens[pub]; 
	return false
}
 
var pubT, pub = 0;
function afficherPub(pubs,pubDelai1) 
{
   pubDelai = pubDelai1;

   if (pub == pubs.length)
     pub = 0;
   document.pubImg.src = pubs[++pub];
   if (document.getElementById("lien_part")!=null)
   {
  	 document.getElementById("lien_part").href=liens[pub];
  	 if (surpub)
  		 window.status=liens[pub];
   	pubT = setTimeout("afficherPub(pubs,pubDelai)", pubDelai1);
	}
}


function VersionNav(Netscape, Explorer) 
{
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else 
	return false;
}

