(function () {
	if (!("console" in window)) {
		window.console = {};
	}

	if (!("log" in window.console)) {
		window.console["log"] = function () { };
	}

	if (!("group" in window.console)) {
		window.console["group"] = function (msg) {
			console.log("*** " + msg);
		};
	}
	if (!("groupEnd" in window.console)) {
		window.console["groupEnd"] = function () { };
	}

	var names = ["debug", "info", "warn", "error", "assert", "dir", "dirxml", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
	for (var i = 0; i < names.length; i++) {
		if (!(names[i] in window.console)) {
			window.console[names[i]] = function () { };
		}
	}
})();

