jQuery.fn.log = function (msg) 
{
	if (typeof console != "undefined" && console != null)
	{
		console.log("%s: %o", msg, this);
	}
	return this;
};