var IE=document.all ? true : false;
var NS=document.layers ? true : false;
var Mouse=new Object;
var Drag={OffX:0, OffY:0, Layer:false};
var Layers=new Array();

function fermerCalque()
{
	document.getElementById('divActus').style.display="none";
}

var monTexteActu = new Layer("<table id=\"tableLay\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\" style=\"display:block;\"><tr><td>"+monTexte+"</td></tr></table>");


/******************************** Fin des modifications ************************/
/******************************** Pas touche au code ci-dessous :-)*************/
/*if(NS)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=function(NSEvent){
	if(IE){
		Mouse.X=event.x + document.body.scrollLeft;
		Mouse.Y=event.y + document.body.scrollTop;
	}
	else if(NS){
		Mouse.X=NSEvent.pageX;
		Mouse.Y=NSEvent.pageY;
	}
	if(Drag.Layer)Drag.Layer.Move(Mouse.X - Drag.OffX, Mouse.Y - Drag.OffY);
}*/

function Layer(tag){
	this.Index=Layers.length;
/*	this.Move=function(left, top){
		eval('Layers[' + this.Index + '].Object' + this.Style + '.left=' + left);
		eval('Layers[' + this.Index + '].Object' + this.Style + '.top=' + top);
	}*/
	if(IE){
		document.write('<div id=lay' + this.Index + ' style="position:absolute; z-index:999999; top:300px; left:640px;>' + tag + '</div>');
//document.write('<div id=lay' + this.Index + ' style="position:absolute; z-index=999999; top=380px; left=180px;">' + tag + '</div>');
		this.Object=document.all['lay' + this.Index];
		this.Style='.style';
		this.Object.Index=this.Index;
	}
	else if(NS){
		document.write('<div id="lay"' + this.Index + ' style="position:absolute; z-index:999999; top:300px; left:640px">' + tag + '</div>');
		this.Object=document.layers['lay'+ this.Index];
		this.Style='';
		this.Object.Index=this.Index;
		this.Object.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
	}
	this.Object.onmousedown=function(NSEvent){
		if(IE){
			Drag.OffX=event.offsetX;
			Drag.OffY=event.offsetY;
		}
		else if(NS){
			Drag.OffX=NSEvent.x;
			Drag.OffY=NSEvent.y;
		}
		Drag.Layer=Layers[this.Index];
		return false;
	}
	this.Object.onmousemove=function(){return false;}
	this.Object.onmouseup=function(){Drag.Layer=false;}
	Layers[this.Index]=this;
}