(function($){

   var notif_code;
   var notif_value;


    $.extend({
                 getNotifMsg : function(notif_code){

                     switch(notif_code){

			// Registration
                     case "register-invalid-pin":
                           notif_value = "Your pin was incorrect, please try again.";
                        break;

                        case "invalid-username":
                           notif_value = "Invalid Username.";
                        break;

                        case 'invalid-mobile':
                           notif_value = "Invalid Mobile Number.";
                        break;

                        case "duplicate-username":
                           notif_value = "User ID already in use, please change.";
                        break;

                        case 'duplicate-mobile':
                           notif_value = "Your mobile number is already registered.";
                        break;

                        case 'empty-username':
                           notif_value = "Missing value for Username.";
                        break;

                        case 'empty­mobile':
                           notif_value = "Missing value for Mobile Number.";
                        break;

                        case 'code-not-found':
                            notif_value = "Your pin was incorrect, please try again.";
                        break;

                        case 'offline-settings-saved':
                            notif_value = "Offline Settings Saved.";
                        break;

                        case 'create-group-success':
                            notif_value = "Groups Created.";
                        break;

                        case 'registration-success':
                            notif_value = "Registrationn Successful. You may now login.";
                        break;
			               // End Registration



                        // Add Buddy
                        case "no-such-user":
                           notif_value = "The username you wanted to add has not yet been registered.";
                        break;


                        case "successful-add-user":
                           notif_value = "<span style=\"color:#000\">Your new buddy has been added to your buddy list, and an invitation has been sent for your new buddy. You will not be able to see their online status or profile until they have accepted your invitation.</span>";
                        break;

                        case "userid-not-found":
                           if (window.ifSandBox==1)
                             notif_value= " User ID is not registered.";
                           else
                             notif_value= " User ID is not registered, Please re-enter or proceed to “Register a New Account”";
                        break;

			case "no-username-password":
			   notif_value = "Please fill-in username and password.";
			break;

			case "invalid-credentials":
                           if (window.ifSandBox==1)
                             notif_value = "The password you entered is incorrect.<br/>Your Password will be sent to your email address.";
                           else
                             notif_value = "The password entered is incorrect, please try again or proceed to \"Forgot Password\" option from the front screen and enter your User ID. Your Password will be sent to your email address.";
                        break;

                        default:
                        notif_value = notif_code;


                     }

                    return notif_value;

                 }

    });
})(jQuery);
