var MessagesManager = Class.create ({

	initialize: function() {
	},

	// metoda zwracajaca komunikaty, sposob wolania: mm.getStatusMsg('typ komunikatu')
	getStatusMsg: function(statusCode) {
		switch (statusCode)
		{
// UserManager
		case 'introduction':
			return 'Login with Your username and password or sign in to become a user.'; break;
		
		case 'introductionUser':
			return 'Welcome back, You now have access to restricted features.'; break;
		
		case 'loginTrue':
			return 'Logged in! Hello...'; break;

		case 'loginFalse':
			return 'Username or password are incorrect, or Your account may not be activated.'; break;
		
		case 'loginError01':
			return ''; break;
		
		case 'logoutTrue':
			return 'Logged out! Bye, bye...'; break;
// ***			
			
// FormManager
	
	// addUser
		case 'addUserTrue':
			return 'Thank You for registering an account. You will recive created account details in email we will send shortly. Before You can use created account it has to be activated. One of our administrators will verify the data You have provided, if verification is positive You will recive activation message.'; break;
		
		case 'addUserFalse':
			return 'addUserFalse'; break;

		case 'addUserError01':
			return 'Entered email address is already used by other user.<br/>Please choose different one.'; break;
	
	// modUser	
		case 'modUserTrue':
			return 'Your account data was updated and now You will be logged out.'; break;

		case 'modUserTrue01':
			return 'Email was changed, Your account will be deactivated and You will recive activation message in short time. User profile was updated and now You will be logged out.'; break;
			
		case 'modUserFalse':
			return 'modUserFalse ... say what?!'; break;
		
		case 'modUserError01':
			return 'Entered email address is already used by other user.<br/>Please choose different one.'; break;
			
	// modUserPass
		case 'modUserPasswordTrue':
			return 'Your account data was updated and now You will be logged out.'; break;
		case 'modUserPasswordError01':
			return 'Your old password is incorrect, please type it in again.'; break;
		
		case 'modUserPasswordFalse':
			return 'modUserPassFalse ... say what?!'; break;
		
	// lostPass
		case 'lostPasswordTrue':
			return 'Email address You have entered is registered in our database.<br/>We will send You an message with Your account details in short time.'; break;
			
		case 'lostPasswordFalse':
			return 'Email address You have entered does not belong to any user of emotional-face.org. Please enter valid email address.'; break;
		
		case 'lostPasswordError01':
			return 'lostPassError01'; break;
	
	// addRecord
		case 'addRecordTrue':
			return 'New record was created successfully. Content of page will be reloaded.'; break;
		case 'addRecordFalse':
			return 'New record can not be created! Please contact the administrator: mskorko@gmail.com'; break;
	
	// delRecord
		case 'delRecordTrue':
			return 'Record was successfully deleted. Content of page will be reloaded.'; break;
		case 'delRecordFalse':
			return 'Selected record can not be deleted! Please contact the administrator: mskorko@gmail.com'; break;
	
	// modRecord
		case 'modRecordTrue':
			return 'Record was successfully modified. Content of page will be reloaded.'; break;
		case 'modRecordFalse':
			return 'Selected record can not be modified! Please contact the administrator: mskorko@gmail.com'; break;
	
	// delUser
		case 'delUserTrue':
			return 'Selected user account was successfully deleted and notification email was sent.<br/>Content of page will be reloaded.'; break;
		case 'delUserFalse':
			return 'Selected user account can not be deleted! Please contact the administrator: mskorko@gmail.com'; break;
	
	// notifyUser
		case 'notifyUserTrue':
			return 'Notification email with activation code and link was sent.<br/>Content of page will be reloaded.'; break;
		case 'notifyUserFalse':
			return 'Can not send notification email. Please contact the administrator: mskorko@gmail.com'; break;
	
	// activateUser
		case 'activateUserTrue':
			return 'Account was deactivated. Content of page will be reloaded.'; break;
		case 'activateUserTrue01':
			return 'Account was activated. Content of page will be reloaded.'; break;

	// adminUser
		case 'adminUserTrue':
			return 'Admin rights removed. Content of page will be reloaded.'; break;
		case 'adminUserTrue01':
			return 'Admin rights added. Content of page will be reloaded.'; break;
			
	// Blobs
		case 'addBlobTrue':
			return 'File upload completed succesfully. Content of page will be reloaded.'; break;
		case 'addBlobFalse':
			return 'File upload failed, because of following reasons: '; break;
// ***
		
// General errors and messages
		case 'loader':
			return 'Please wait, processing...<br/><img src="images/ajax-loader.gif" style="padding-top:3px;">'; break;
		
		case 'loaderFile':
			return 'Uploading files...<br/><img src="images/ajax-loader.gif" style="padding-top:3px;">'; break;
		
		case 'unknownError':
			return 'Uknown error! Contact the administrator: mskorko@gmail.com'; break;
			
		case 'noSuchRecord':
			return 'Requested data can not be found! Contact the administrator: mskorko@gmail.com'; break;
		
		default:
			return 'There was an error in .getStatusMsg, code: '+statusCode; break;
// ***
		}
	}
	
});	