function traceur ()
{
	this.div = null;
	
	
	this.creerBloc = function (  )
	{
		if( traceur.est_actif == false )
			return false;
		
		this.div = document.createElement("div");
		
		this.div.style.display 			= "block";
		this.div.style.position 		= "absolute";
		this.div.style.top 				= "20px";
		this.div.style.left 			= "900px";
		this.div.style.height 			= "850px";
		this.div.style.width 			= "350px";
		this.div.style.borderWidth		= "1px";
		this.div.style.borderColor		= "#000000";
		this.div.style.borderStyle		= "solid";
		this.div.style.backgroundColor	= "#FFFFFF";
		this.div.style.overflow			= "auto";
		this.div.style.textAlign		= "left";
		this.div.style.zIndex			= "995";
		
		if( document.body )
			document.body.appendChild( this.div );
	}
	
	this.trace = function ( message )
	{
		if( traceur.est_actif == false )
			return false;
		
		if( this.div == null )
			this.creerBloc();
		
		var d = new Date();
		this.div.innerHTML += d.getHours()+":"+d.getMinutes()+":"+d.getSeconds()+":"+d.getMilliseconds()+"&nbsp;->&nbsp;"+message+"";
	}
}


traceur.est_actif 	= false;
traceur.instance 	= null;
traceur.inst = function ()
{
	if( traceur.instance == null )
	{
		traceur.instance = new traceur();
	}
	
	return traceur.instance;
}

