function CreerBoite(X,Y,largeur,hauteur,colF,colT,delai) {
		this.X=X;this.Y=Y;
		this.largeur=largeur;
		this.hauteur=hauteur;
		this.colF=colF;
		this.colT=colT;
		this.delai=delai;
		this.nb=0;
		this.Add=AddNews;
		this.Aff=AffNews;}


function AddNews(titre,texte) {	
	//alert(titre);
	//alert(texte);
	var news=new Object;
	news.titre=titre;
	news.texte=texte;
	this[this.nb]=news;
	this.nb++;}


function AffNews() {
var Z="";

with (this) {
if (document.all) {
Z="<DIV style='position:absolute;top:"+Y+";left:"+X+";width:"+largeur+";height:"+hauteur+";background-color:"+colF+";clip:rect("+0+" "+(largeur)+" "+(hauteur)+" "+0+")'>";
Z+="<DIV id='laboite' style='position:absolute;top:"+hauteur+";left:0'>";
Z+="<FONT color='"+colT+"' face='arial' size='-1'>";
for (var i=0;i<this.nb;i++){
Z+="<DIV style='height:"+hauteur+"'>";
Z+="<CENTER><B>"+this[i].titre+"</B></CENTER>";
Z+=this[i].texte+"</DIV>";
}
Z+="</FONT></DIV></DIV>";
}
if (document.layers) {
Z="<LAYER id='layer0' top="+Y+" left="+X+" width="+largeur+" height="+hauteur+" bgcolor="+colF+" visibility=hide>";
Z+="<LAYER id='laboite' top=0 left=0>";
Z+="<FONT color='"+colT+"' face='arial' size='-1'>";
for (var i=0;i<this.nb;i++){
Z+="<LAYER height="+hauteur+" top="+((i+1)*hauteur)+">";
Z+="<CENTER><B>"+this[i].titre+"</B></CENTER>";
Z+=this[i].texte+"</LAYER>";
}
Z+="</FONT></LAYER>";
}
}
document.write(Z);
if (document.layers) { with(document.layers["layer0"]) {
clip.top=0;clip.left=0;clip.width=this.largeur;clip.height=this.hauteur;visibility="show"}
}
AnimNews();
}


var boite=new CreerBoite(20,300,168,190,'#FFFCCC', 'green',1000);
boite.Add("<BR>Bientôt, toutes l'agriculture de la Vienne","<CENTER> <a href=Reperes/Index.htm>La Ferme Vienne</a></CENTER>");
boite.Add("<BR>Pâques est passé et le webmaster n'a toujours pas de chocolat !"," <CENTER>__________</CENTER>");
boite.Add("<BR>Toutes les infos économiques, sociales et juridiques sur : ","<CENTER> <a href=InfosPratiques/Index.htm>Infos pratiques</a></CENTER>");

function AnimNews() {
if (document.all) {
  var top=document.all["laboite"].style.posTop;
  if (top<(-1)*boite.hauteur*boite.nb) {top=boite.hauteur-2}
  document.all["laboite"].style.posTop=top-2;
}
if (document.layers) {
  var top=document.layers["layer0"].document.layers["laboite"].top;
  if (top<(-1)*boite.hauteur*(boite.nb+1)) {top=0}
  document.layers["layer0"].document.layers["laboite"].top=top-2;
}
var delay=50; top=top-2;
if (((top/boite.hauteur)-Math.round(top/boite.hauteur))==0) {delay=boite.delai}
setTimeout('AnimNews()',delay);
}
