
// ****************************************************************
// This file contains all of the messages to be returned in KeyHole
// ****************************************************************

// Retrieve a message based on a resultCode and a brand
function GetUnlockCodeMessage( resultCode, brand )
{
    var myMessages = messagesShockwave;
    if ( brand == "NickArcade" )
    {
        myMessages = messagesNickArcade;
    }
    else if ( brand == "NickJrArcade" )
    {
        myMessages = messagesNickJrArcade;
    }

    var msg = myMessages[ resultCode ];

	if( msg == null || msg.length==0 )
    {
		msg = myMessages[ -1 ];
		if ( msg != null && msg.length > 0 )
        {
			msg+=("("+resultCode+")");
		}
	}
	return msg;

}

// Function for future capabilities when localization is added
function GetUnlockCodeMessageForLocale( resultCode, brand, locale )
{
    return GetUnlockCodeMessage( resultCode, brand );
}

var messagesShockwave = new Array();
messagesShockwave[1] = 'Your free trial has expired. Buy the full version and keep the fun coming!';
messagesShockwave[2] = 'Sorry, the trial failed to work.';
messagesShockwave[3] = 'Please enter a license key and try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[4] = 'Please enter an email address and try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[5] = 'Please enter a password and try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[10] = 'Your unlock request was cancelled.  Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[11] = 'We\'re sorry -- the server has encountered an internal error (11) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesShockwave[12] = 'We\'re sorry -- the server has encountered an internal error (12) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesShockwave[13] = 'We\'re sorry -- the server has encountered an internal error (13) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesShockwave[200] = 'This will be leaving Shockwave.com UNLIMITED in a few days. Please visit the Shockwave.com store to buy it and own it forever!';
messagesShockwave[300] = 'Your Shockwave.com UNLIMITED subscription will expire soon. Make sure to renew your subscription if you would like to continue playing after your current expiration date.';
messagesShockwave[400] = 'We did not recognize your user name and password. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[401] = 'We did not recognize your user name and/or password. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[402] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[403] = 'An updated version of this product is available and must be downloaded from NickArcade.com.  Please uninstall this version before installing the new version.';
messagesShockwave[404] = 'Your application is not authorized to unlock this product!';
messagesShockwave[405] = 'Our records show that your Shockwave.com UNLIMITED account has expired!';
messagesShockwave[406] = 'We did not recognize your license user name. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[407] = 'We did not recognize your email address. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[500] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[501] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[502] = 'This game is not available for play through Shockwave UNLIMITED. Please visit our <a href="javascript:showHelp();">help section</a> or contact Customer Support for more information.';
messagesShockwave[503] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit our <a href="javascript:showHelp();">help section</a> for troubleshooting tips.';
messagesShockwave[504] = 'We\'re sorry -- the server has encountered an internal error (504) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesShockwave[-1] = 'We\'re sorry -- the server has encountered an internal error while processing your request. Please try again later. If the problem persists, contact Customer Support.';

var messagesNickArcade = new Array();
messagesNickArcade[1] = 'Your free trial has expired. Buy the full version and keep the fun coming!';
messagesNickArcade[2] = 'Sorry, the trial failed to work.';
messagesNickArcade[3] = 'Please enter a license key and try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[4] = 'Please enter an email address and try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[5] = 'Please enter a password and try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[10] = 'Your unlock request was cancelled.  Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[11] = 'We\'re sorry -- the server has encountered an internal error (11) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickArcade[12] = 'We\'re sorry -- the server has encountered an internal error (12) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickArcade[13] = 'We\'re sorry -- the server has encountered an internal error (13) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickArcade[200] = 'This will be leaving Shockwave.com UNLIMITED in a few days. Please visit the Shockwave.com store to buy it and own it forever!';
messagesNickArcade[300] = 'Your Shockwave.com UNLIMITED subscription will expire soon. Make sure to renew your subscription if you would like to continue playing after your current expiration date.';
messagesNickArcade[400] = 'We did not recognize your user name and password. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[401] = 'We did not recognize your user name and/or password. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[402] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[403] = 'An updated version of this product is available and must be downloaded from NickArcade.com.  Please uninstall this version before installing the new version.';
messagesNickArcade[404] = 'Your application is not authorized to unlock this product!';
messagesNickArcade[405] = 'Our records show that your Shockwave.com UNLIMITED account has expired!';
messagesNickArcade[406] = 'We did not recognize your license user name. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[407] = 'We did not recognize your email address. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[500] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[501] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[502] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[503] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://www.nickarcade.com/nick/help.jsp" target="HelpWindow">Nick Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickArcade[504] = 'We\'re sorry -- the server has encountered an internal error (504) while processing your request. Please try again later. If the problem persists, contact Customer Support.'; 
messagesNickArcade[-1] = 'We\'re sorry -- the server has encountered an internal error while processing your request. Please try again later. If the problem persists, contact Customer Support.';

var messagesNickJrArcade = new Array();
messagesNickJrArcade[1] = 'Your free trial has expired. Buy the full version and keep the fun coming!';
messagesNickJrArcade[2] = 'Sorry, the trial failed to work.';
messagesNickJrArcade[3] = 'Please enter a license key and try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[4] = 'Please enter an email address and try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[5] = 'Please enter a password and try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[10] = 'Your unlock request was cancelled.  Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[11] = 'We\'re sorry -- the server has encountered an internal error (11) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickJrArcade[12] = 'We\'re sorry -- the server has encountered an internal error (12) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickJrArcade[13] = 'We\'re sorry -- the server has encountered an internal error (13) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickJrArcade[200] = 'This will be leaving Shockwave.com UNLIMITED in a few days. Please visit the Shockwave.com store to buy it and own it forever!';
messagesNickJrArcade[300] = 'Your Shockwave.com UNLIMITED subscription will expire soon. Make sure to renew your subscription if you would like to continue playing after your current expiration date.';
messagesNickJrArcade[400] = 'We did not recognize your user name and password. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[401] = 'We did not recognize your user name and/or password. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[402] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[403] = 'An updated version of this product is available and must be downloaded from Arcade.NickJr.com.  Please uninstall this version before installing the new version.';
messagesNickJrArcade[404] = 'Your application is not authorized to unlock this product!';
messagesNickJrArcade[405] = 'Our records show that your Shockwave.com UNLIMITED account has expired!';
messagesNickJrArcade[406] = 'We did not recognize your license user name. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[407] = 'We did not recognize your email address. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[500] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[501] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[502] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[503] = 'We did not recognize your license key. Please try again. If you continue to receive this error, please visit the <a href="http://arcade.nickjr.com/nickjr/help.jsp" target="HelpWindow">Nick Jr. Arcade FAQ</a> for helpful troubleshooting tips.';
messagesNickJrArcade[504] = 'We\'re sorry -- the server has encountered an internal error (504) while processing your request. Please try again later. If the problem persists, contact Customer Support.';
messagesNickJrArcade[-1] = 'We\'re sorry -- the server has encountered an internal error while processing your request. Please try again later. If the problem persists, contact Customer Support.';
