
try{
	if (typeof(console.firebug)=='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) {}
				}
			}
		}
	}
}catch(err){
	
	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) {}
			}
		}
	}
	//console.debug('Safari overrid object');
};


