jQuery(document).ready(function($) {
                                
    jQuery.fn.cycleMe = function() {
        
        var thumbs = $('#home .leftCycle');
        
        $('#home .rightCycle').cycle({
          speed: 1000,
          before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
              var cThumb = thumbs.find('.cycleBTN-active');
              if(cThumb.length < 1) { cThumb = thumbs.find('.cycleBTN:last'); }
              var nThumb = cThumb.next('.cycleBTN');
              if(nThumb.length < 1) { nThumb = thumbs.find('.cycleBTN:first'); }
              cThumb.removeClass('cycleBTN-active');
              nThumb.addClass('cycleBTN-active');
          }
      });
        
    }
    
    $().cycleMe();
    
});
