(function($) {
  $(document).ready(function() {
    
    // Handles Soluction Cycle
    var solutionList = $('.solution-list').cycle({
      fx: 'fade',
      speed: 400,
      timeout: 5000,
      fit: 1,
      slideResize: true,
      containerResize: false,
      width: '100%',
      activePagerClass: 'active',
      pager: '.solution-nav',
      pagerAnchorBuilder: function(idx, slide) {
        return '.solution-nav li:eq(' + idx + ') span';
      }
    });
    
    // Handles Touch Gestures in the Solution Cycle
    $('#solution-presentation').swipe({
      allowPageScroll: 'vertical',
      swipeLeft: solutionSwipeLeft,
      swipeRight: solutionSwipeRight
    });
    
    function solutionSwipeLeft(event, direction) {
      $(solutionList).cycle('next');
    }
    
    function solutionSwipeRight(event, direction) {
      $(solutionList).cycle('prev');
    }
    
    // Handles Login form
    
  });
})(jQuery);

