mcw.configuration = {
};

/**
 * An absolute URI of the MC widgets' root directory.
 * Ends with no delimiter.
 */
mcw.configuration.mcwUrl = location.protocol + '//' + location.host + '/widgets';

mcw.configuration.callServerFunctionUrl = mcw.configuration.mcwUrl + '/php/callFunction.php';

mcw.configuration.locale = 'cs';

/**
 * An absolute URI to the server-side script that handles file upload.
 */
mcw.configuration.fileUploadUrl = mcw.configuration.mcwUrl + '/php/fileUpload.php';

/**
 * An absolute URI to the server-side script that serves as an ordinary link to a file.
 */
mcw.configuration.fileLinkUrl = mcw.configuration.mcwUrl + '/php/fileLink.php';

/**
 * A number of minutes how long the inactive user stills logged in before it is
 * automatically logged out.
 */
mcw.configuration.inactivityTimeout = 30;

/**
 * The set of icons used for some buttons and indicators.
 *
 * Recognized icon names are:
 * - logout
 * - activeService
 * - inactiveService
 * - activateServiceEnabled
 * - activateServiceDisabled
 * - deactivateServiceEnabled
 * - deactivateServiceDisabled
 * - configureServiceEnabled
 * - configureServiceDisabled
 * - mmpRemoveMsisdnEnabled
 * - mmpVerifyMsisdnEnabled
 * - mmpBlockMsisdnEnabled
 * - mmpConfigureMsisdnEnabled
 *
 * Their value is an image path.
 * Not all have to be specified. If some is missing, the standard HTML button
 * will be used.
 */
mcw.configuration.iconSet = {
};

// Anonymous function call. Doesn't alter the global scope.
(function() {
	var iconDirectory = location.protocol + '//' + location.host + '/images/icons/widgets/';

	mcw.configuration.iconSet = {
		logout: iconDirectory + 'logout.jpg',
		//activeService: iconDirectory + 'setup.jpg',
		//inactiveService: iconDirectory + 'active-disabled.jpg',
		activateServiceEnabled: iconDirectory + 'activate-enabled.jpg',
		activateServiceDisabled: iconDirectory + 'activate-disabled.jpg',
		deactivateServiceEnabled: iconDirectory + 'deactivate-enabled.jpg',
		deactivateServiceDisabled: iconDirectory + 'deactivate-disabled.jpg',
		configureServiceEnabled: iconDirectory + 'active-enabled.jpg',
		configureServiceDisabled: iconDirectory + 'active-disabled.jpg',
		mmpRemoveMsisdnEnabled: iconDirectory + 'remove.jpg',
		mmpVerifyMsisdnEnabled: iconDirectory + 'verify.jpg',
		mmpBlockMsisdnEnabled: iconDirectory + 'block.jpg',
		mmpConfigureMsisdnEnabled: iconDirectory + 'active-enabled.jpg'
	};
})();
