﻿
jQuery(document).ready(function () {

 

  jQuery("a#next").click(function () {

    if (jQuery("a#RotatingSpotPause").is(":visible"))
      jQuery("a#RotatingSpotResume").hide();
    else
      jQuery("a#RotatingSpotPause").hide();
    jQuery('#RotatingSpotImages').cycle('next');
    return false;
  });

  jQuery("a#prev").click(function () {
    if (jQuery("a#RotatingSpotPause").is(":visible"))
      jQuery("a#RotatingSpotResume").hide();
    else
      jQuery("a#RotatingSpotPause").hide();
    jQuery('#RotatingSpotImages').cycle('prev');
    return false;
  });


  if (jQuery("a#RotatingSpotPause").length > 0) {
    jQuery("a#RotatingSpotResume").hide();
    jQuery("a#RotatingSpotPause").click(function () {
      jQuery(this).hide();
      jQuery("a#RotatingSpotResume").show();
      jQuery('#RotatingSpotImages').cycle('pause');
  
      return false;
    });

    jQuery("a#RotatingSpotResume").click(function () {
      jQuery(this).hide();
      jQuery("a#RotatingSpotPause").show();
      jQuery('#RotatingSpotImages').cycle('resume');

      return false;
    });
  }




});
