function InformationPanel( )
{
	this.show = function( )
	{
		this.panel.style.display = "block";
	};
	
	this.hide = function( )
	{
		this.panel.style.display = "none";
	};
	
	this.clear = function( )
	{
		while ( this.panel.childNodes.length > 0 )
		{
			this.panel.removeChild( this.panel.lastChild );
		}
	};
	
	this.addText = function( text, newline )
	{
		if ( newline != false )
		{
			this.panel.appendChild( document.createElement( 'br' ) );
		}
		
		this.panel.appendChild( document.createTextNode( text ) );
	};

	this.panel = document.createElement( 'div' );
	
	this.panel.style.position = "absolute";
	this.panel.style.top = 1000;
	
	if ( document && document.body )
	{
		document.body.appendChild( this.panel );
	}
}
