/**
 * Create a new instance of VCMProfileContent
 * @classDescription Class to manage the content of Profile
 * @param page {VCMPage} Reference to the VCMPage object
 * @return Returns a new VCMProfileContent object
 * @constructor
 */
function VCMProfileContent(page) {
	this._page = page;
}

VCMProfileContent.prototype = {
	/**
	 * Reference to the VCMPage object
	 * @type {VCMPage}
	 */
	_page: null,
	
	/**
	 * jQuery reference to the welcome popup
	 * @type {jQuery}
	 */
	_jWelcomePopup: null,
	
	/**
	 * Initialize
	 */
	init: function() {
		this._jWelcomePopup = $('#welcomePopup');
		
		// Show the first welcome popup
		if (this._jWelcomePopup.length == 1) {
			var modal = this._page.getModal();
			modal.show(this._jWelcomePopup.html());
			$('.welcomePopupFooter > a.btn').click(function() {
				modal.close();
				$('.welcomePopupFooter > a.btn').unbind('click');
				return false;
			});
		}
	},
	
	/**
	 * Destroy
	 */
	destroy: function() {
		this._jWelcomePopup = null;
	}
};


