/**
 * This file contains overrides of Views Slideshow functions in order to switch classes
 * on the pause/play function.
 */
(function ($) {

  Drupal.viewsSlideshowCycle.pause = function (options) {
    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).parent().parent().find('.views-slideshow-controls-text-pause').addClass('paused').removeClass('playing');
    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('pause');
  }

  Drupal.viewsSlideshowCycle.play = function (options) {
    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).parent().parent().find('.views-slideshow-controls-text-pause').removeClass('paused').addClass('playing');
    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('resume');
  }

})(jQuery);
;

