
// remap jQuery to $
(function($){

// for We Care About slides
$('#slider1').s3Slider({				timeOut: 3000			}); 
			
$('#features').jshowoff({ speed:8000, links: false, controls: false });			     				    

// Twitter Feed - jQuery Tweet
$(".tweet").tweet({
	username: "gogreenster",
	join_text: "auto",
	avatar_size: 32,
	count: 1,
	auto_join_text_default: "We said:", 
	auto_join_text_ed: "We",
	auto_join_text_ing: "We were",
	auto_join_text_reply: "We were replied to",
	auto_join_text_url: "We were checking out",
	loading_text: "loading tweets..."
});

// Colorbox PopUps
// $(".colorbox").colorbox();

})(this.jQuery);


// usage: log('inside coolFunc',this,arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};



// catch all document.write() calls
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);



