/**
 * Create an instance of ActivityMediaViewer
 * @classDescription	Class for the media viewer of the activity page
 * @return {VCMImageViewer} Returns a new ActivityMediaViewer object
 * @constructor
 */
function VCMImageViewer(){
}

VCMImageViewer.prototype = {
	/**
	 * jQuery Cycle reference
	 * @type {jQuery.cycle}
	 */
	_cycle: null,
	
	/**
	 * Initialize the viewer
	 */
	init: function(){
		console.log('VCMImageViewer.init()');
		this._cycle = $('#activityMediaViewer').cycle({
			fx: 'fade',
			pause: 1,
			timeout: 7000,
			pager: null,
			startingSlide: 0,
			pagerAnchorBuilder: null
		});
	},
	
	/**
	 * Destroy the viewer
	 */
	destroy: function() {
		console.log('VCMImageViewer.destroy()');
		this._cycle.cycle('destroy');
		this._cycle = null;
	}
};


