(function($) { 
  $(function() {
    prettyPrint();
  });
})(jQuery);;
/**
 * @file
 * Set the adaptive image cookie based on the window size
 *
 * @author David Pascoe-Deslauriers <dpascoed@coldfrontlabs.ca>
 * @copyright 2011 Coldfront Labs Inc.
 * @license Copyright (c) 2011 All rights reserved
 */

/**
 * Set the cookie with the width value
 *
 * @todo use session storage or something else other than a cookie
 */
function snowstorm_set_width_cookie() {
 (function ($) {
   var size = Math.max( $(window).width(), $(window).height() );
   if (size >= 1382) {
     size = 1382;
   }
   else if (size < 1382 && size >= 992) {
     size = 992;
   }
   else if (size < 992 && size >= 768) {
     size = 768;
   }
   else {
     size = 480;
   }
   document.cookie='snowstorm_core_adaptive='+size+'; path=/';
 }(jQuery));
}


// Call the cookie set function right away
snowstorm_set_width_cookie();
;

