// Utility function to log diagnostic information to the console.
//  usage: log('inside coolFunc',this,arguments);
//  cref. 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) );
  }
};

// slideshow & lightboxen
$(document).ready(function () {
    $("#slideshow").cycle();
    
    $('#quotes').cycle({ 
        fx:     'scrollUp', 
        cleartypeNoBg: true,
        timeout: 6000, 
        delay: -2000
    });
    
    $("a.lightbox.gallery").fancybox({
      titlePosition: 'over',
      margin: 5,
      padding: 5
    });
    
    $("a.lightbox.inline").fancybox({
      titlePosition: 'inside',
      hideOnContentClick: true,
      overlayOpacity: 0.6,
      titleShow: false
    });
});


