
	$.pbLog = 
	{
			console : null
		,	showLogs  : false
		,	build : function( args )
			{
				var args = args || {};
	
				$.pbLog.console = args.console;
				$.pbLog.showLogs = args.showLogs;

				if(args.console)
					$.pbLog.debug( { title:"pbLog", msgs : [{type:"info", msg:"Class is ingeladen" }] } );
			}
			
		,	debug : function( logs )
			{
				if(!logs || !$.pbLog.console || !$.browser.mozilla || !$.pbLog.showLogs)
					return false;
	
				$.pbLog.console.group( "pbLog" );
		
				for(msg in logs.msgs)
					$.pbLog.console[logs.msgs[msg].type](logs.title+" :: "+logs.msgs[msg].msg);
			
				$.pbLog.console.groupEnd();
			}
	};
	
	$.fn.extend
	({
			setLog : $.pbLog.build
	});
	
	var pbDebug = function() { $.pbLog.showLogs = true; }
	