ircs/sites/default/files/js/js_Z9gHXKQrQhrRpnEIWvY2UJ7M_ggrq9E9wCBDlFqHkr0.js
// process the args that were passed to the plugin fn
process the args that were passed to the plugin fn
process the args that were passed to the plugin fn
function handleArguments(cont, options, arg2) {
	if (cont.cycleStop === undefined)
		cont.cycleStop = 0;
	if (options === undefined || options === null)
		options = {};
	if (options.constructor == String) {
		switch(options) {
		case 'destroy':
		case 'stop':
			var opts = $(cont).data('cycle.opts');
			if (!opts)
				return false;
			cont.cycleStop++; 
			if (cont.cycleTimeout)
				clearTimeout(cont.cycleTimeout);
			cont.cycleTimeout = 0;
			if (opts.elements)
				$(opts.elements).stop();
			$(cont).removeData('cycle.opts');
			if (options == 'destroy')
				destroy(cont, opts);
			return false;
		case 'toggle':
			cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1;
			checkInstantResume(cont.cyclePause, arg2, cont);
			triggerPause(cont);
			return false;
		case 'pause':
			cont.cyclePause = 1;
			triggerPause(cont);
			return false;
		case 'resume':
			cont.cyclePause = 0;
			checkInstantResume(false, arg2, cont);
			triggerPause(cont);
			return false;
		case 'prev':
		case 'next':
			opts = $(cont).data('cycle.opts');
			if (!opts) {
				log('options not found, "prev/next" ignored');
				return false;
			}
			if (typeof arg2 == 'string') 
				opts.oneTimeFx = arg2;
			$.fn.cycle[options](opts);
			return false;
		default:
			options = { fx: options };
		}
		return options;
	}
	else if (options.constructor == Number) {
		var num = options;
		options = $(cont).data('cycle.opts');
		if (!options) {
			log('options not found, can not advance slide');
			return false;
		}
		if (num < 0 || num >= options.elements.length) {
			log('invalid slide index: ' + num);
			return false;
		}
		options.nextSlide = num;
		if (cont.cycleTimeout) {
			clearTimeout(cont.cycleTimeout);
			cont.cycleTimeout = 0;
		}
		if (typeof arg2 == 'string')
			options.oneTimeFx = arg2;
		go(options.elements, options, 1, num >= options.currSlide);
		return false;
	}
	return options;
	function checkInstantResume(isPaused, arg2, cont) {
		if (!isPaused && arg2 === true) { 
			var options = $(cont).data('cycle.opts');
			if (!options) {
				log('options not found, can not resume');
				return false;
			}
			if (cont.cycleTimeout) {
				clearTimeout(cont.cycleTimeout);
				cont.cycleTimeout = 0;
			}
			go(options.elements, options, 1, !options.backwards);
		}
	}
}
function handleArguments ( cont , options , arg2 ) { if ( cont . cycleStop === undefined ) cont . cycleStop = 0 ; if ( options === undefined || options === null ) options = { } ; if ( options . constructor == String ) { switch ( options ) { case 'destroy' : case 'stop' : var opts = $ ( cont ) . data ( 'cycle.opts' ) ; if ( ! opts ) return false ; cont . cycleStop ++ ; if ( cont . cycleTimeout ) clearTimeout ( cont . cycleTimeout ) ; cont . cycleTimeout = 0 ; if ( opts . elements ) $ ( opts . elements ) . stop ( ) ; $ ( cont ) . removeData ( 'cycle.opts' ) ; if ( options == 'destroy' ) destroy ( cont , opts ) ; return false ; case 'toggle' : cont . cyclePause = ( cont . cyclePause === 1 ) ? 0 : 1 ; checkInstantResume ( cont . cyclePause , arg2 , cont ) ; triggerPause ( cont ) ; return false ; case 'pause' : cont . cyclePause = 1 ; triggerPause ( cont ) ; return false ; case 'resume' : cont . cyclePause = 0 ; checkInstantResume ( false , arg2 , cont ) ; triggerPause ( cont ) ; return false ; case 'prev' : case 'next' : opts = $ ( cont ) . data ( 'cycle.opts' ) ; if ( ! opts ) { log ( 'options not found, "prev/next" ignored' ) ; return false ; } if ( typeof arg2 == 'string' ) opts . oneTimeFx = arg2 ; $ . fn . cycle [ options ] ( opts ) ; return false ; default : options = { fx : options } ; } return options ; } else if ( options . constructor == Number ) { var num = options ; options = $ ( cont ) . data ( 'cycle.opts' ) ; if ( ! options ) { log ( 'options not found, can not advance slide' ) ; return false ; } if ( num < 0 || num >= options . elements . length ) { log ( 'invalid slide index: ' + num ) ; return false ; } options . nextSlide = num ; if ( cont . cycleTimeout ) { clearTimeout ( cont . cycleTimeout ) ; cont . cycleTimeout = 0 ; } if ( typeof arg2 == 'string' ) options . oneTimeFx = arg2 ; go ( options . elements , options , 1 , num >= options . currSlide ) ; return false ; } return options ; function checkInstantResume ( isPaused , arg2 , cont ) { if ( ! isPaused && arg2 === true ) { var options = $ ( cont ) . data ( 'cycle.opts' ) ; if ( ! options ) { log ( 'options not found, can not resume' ) ; return false ; } if ( cont . cycleTimeout ) { clearTimeout ( cont . cycleTimeout ) ; cont . cycleTimeout = 0 ; } go ( options . elements , options , 1 , ! options . backwards ) ; } } }
process the args that were passed to the plugin fn
process the args that were passed to the plugin fn
// callbacks look for change // go to the requested slide // resume now!