// method for debugging javascript, will work with firbug and without
// version 1.2
var blendDebugger = 
{
	header: 'BLEND DEBUGGER v1.1'+"\n"+'-------------------'+"\n",
	msg: null,
	output: true,
	
	dialogBox: function()
	{
		if(this.output)
		{
			alert(this.header+this.msg);
		}
	},
	
	consoleLog: function()
	{
		if(this.output)
		{
			console.log(this.header)
			console.log(this.msg);
		}
	},	
	
	log: function(text)
	{
		this.msg = text;
		
		if(window.console)
		{
			this.consoleLog();
		}
		else
		{
			this.dialogBox();
		}
	}
}