var $root = "/49anos/wp-content/themes/asa-49anos/",
	$js_root = $root + "js/";
	$js_plug = $js_root + "plugins/";

Modernizr.load([{
	load: 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js',
	complete: function(){
		if(!window.jQuery) Modernizr.load($js_root +'jquery.min.js');
	}
},{
	load: [
		$js_plug +'jq.browser.js'
		, $js_plug +'jq.css3.finalize.js'
		, $js_plug +'jq.mousewheel.min.js'
		, $js_plug +'jq.rscroll.js'
		, $js_plug +'jq.val.form.js'
		, $js_plug +'jq.flash.js'
		, $js_plug +'jq.colorbox-min.js'
		, $js_root +'init.js'
	]
}]);

window.log = function(){
	log.history = log.history || [];  
	log.history.push(arguments);
	arguments.callee = arguments.callee.caller;  
	if(this.console) console.log( Array.prototype.slice.call(arguments) );
};

(function(b){
	function c(){}
	for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)
		b[a]=b[a]||c
})(window.console=window.console||{});

(function(d){
	var write = d.write;
	d.write = function(q){
		log('document.write(): ',arguments);
		if (/docwriteregexwhitelist/.test(q)) write.apply(d,arguments); 
	};
})(document)

