
// remap jQuery to $
(function($){
Cufon.replace('#phone, h1, .content #email, .content #phone, #left-column h1');



$(document).ready(function() {
   $("#top-nav li").not(':last').after(':');
   $("#top-nav li:last").css('margin-right', '0');
   $('#mycarousel').jcarousel({
        scroll: 9,
    });
	$("a[rel^='prettyPhoto']").prettyPhoto({
			theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			opacity: 0.70, /* Value between 0 and 1 */
			show_title: false, /* true/false */
			allow_resize: false

		});
		
 });


})(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);



