/**
 * VCM Main Javascript
 */

// Emulate the console if not preset
if (typeof console == "undefined") console = { };
if (typeof console.log == "undefined") console.log = function() { };

// VCM Main Global Object
var VCM = null;

/**
 * Main (jQuery DOMReady event)
 */
$(function() {
	VCM = new VCMPage();
	VCM.init();
});

// Tools
function OuvrirInscription() {
	if ($('#loginForm').length == 1) {
		// Show inscription
		var inscriptionModal = new VCMInscriptionModal(VCM);
		inscriptionModal.init();
	}
	else {
		// Show profile
		VCM.getContent().showHomePage();
		VCM.getSideBar().displayProfile();
	}
}

