// Begin Lazy Loading. Lazy Loading allows us to load JS files and CSS only when the page requires them,
// saving bandwidth and decreasing load times.

$(document).ready(function(){
  // get the class for the page we are on
  var thisPage = $("body").attr("class");
  
  // every page will need the jQuery core files
  $.requireJs('/assets/javascript/jquery.ui/ui/ui.core.js');
  $.requireJs('/assets/javascript/jquery.ui/ui/effects.core.js');

 $.requireJs('/assets/javascript/jquery.ui/ui/ui.tabs.js');
    $.requireCss('/assets/css/tabs.css');
  
  // every page will need the input helper functions
  $.requireJs('/assets/javascript/jquery.InputHelper.js');
  

  
  // if we want a fancybox images on our site
  if($("a.fancybox")) {
    $.requireJs('/assets/javascript/fancybox/jquery.fancybox-1.0.0.js');
  
      $.requireCss('/assets/javascript/fancybox/fancy.css');
  }
  
 
   
     $.requireJs('/assets/javascript/jquery-accordion/jquery.accordion.js');
  

  
  // we always want to load progressive enhancements at the end of the load queue
  $.requireJs('/assets/javascript/progressive-enhancement.js');

  
});