debugClass = function(){
	this.objMessage;
	this.initialised = false;
	
	debugClass.prototype.create = function (){
		objElement = document.createElement( 'div' );
		objElement.style.position = 'fixed';
		objElement.style.bottom = '0px';
		objElement.style.left = '0px';
		objElement.style.backgroundColor = '#eee';
		objElement.style.border = '1px solid #ccc';
		objElement.style.width = '300px';
		objElement.style.paddingBottom = '10px';
		objElement.style.fontSize = '.8em';
		objElement.innerHTML = "<h1>Debug Display</h1>";
		objBody = document.getElementsByTagName('body');
		objBody[0].appendChild( objElement )
		this.objMessage = objElement;
	}
	
	debugClass.prototype.displayMessage = function( strMessage ){
		if ( !this.initialised ){
			this.create();
			this.initialised = true;
		}
		objElement = document.createElement( 'div' );
		objElement.innerHTML = strMessage;		
		this.objMessage.appendChild( objElement );
	}

}

var objDebug = new debugClass();
