/* jquery plugings
--------------------------------------------------------------------------------------------------------------*/
jQuery.fn.log = function(msg)
{
	if (typeof msg != 'string' && typeof msg != 'number') msg = 'log';
	console.log("%s: %o", msg, this);
	return this;
};


/* Graceful Degradation of Firebug Console Object
--------------------------------------------------------------------------------------------------------------*/
if (!window.console || !console.firebug)
{
	var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
	"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
	window.console = {};
	for (var i = 0; i < names.length; ++i)
	window.console[names[i]] = function() {}
}