if (typeof(console)=='undefined') {
	var console = {
		info: function (t) {this.softDebug(t);},
		warn: function (t) {this.softDebug(t);},
		info: function (t) {this.softDebug(t);},
		log: function (t) {this.softDebug(t);},
		error: function (t) {this.softDebug(t);},
		debug: function (t) {this.softDebug(t);},
		softDebug: function (t) {
			if ($('debug')!=null) {
				try {
					//$('debug').innerHTML = $('debug').innerHTML + t + '<br>\n';
				} catch (e) {}
			}
		}
	}
}
