var PREF_KEY_ACCOUNT                = 'acctNumber';
var PREF_KEY_U_STRING               = 'uString';
var PREF_KEY_SENDER_EMAIL           = 'emailAddress';
var PREF_KEY_SENDER_MOBILE          = "SenderMobileData";
var PREF_KEY_SENDER_NAME            = 'SenderName';

// Emulation code only for development outside of the google.com gadget dashboard.
// GOOGLE_IG_AdjustIFrameHeight() redirects to the _AdjustIFrameHeight() function.
function PREF_Emulate()
{
    this.m_dict = new Object();

    this.m_dict[ PREF_KEY_SENDER_MOBILE ] = "";
    this.m_dict[ PREF_KEY_SENDER_EMAIL ] = "";
    this.m_dict[ PREF_KEY_ACCOUNT ] = "";
    this.m_dict[ PREF_KEY_U_STRING ] = "";
}

PREF_Emulate.prototype =
{
    getString : function( preferenceKey )
    {
        try
        {
            return this.m_dict[ preferenceKey ];
        }
        catch (e)
        {
            EX_ASSERT_NO_EXCEPTIONS( e, 'PREF_Emulate::getString( )' );
        }
    },

    set : function( preferenceKey, preferenceValue )
    {
        try
        {
            this.m_dict[ preferenceKey ] = preferenceValue;
        }
        catch (e)
        {
            EX_ASSERT_NO_EXCEPTIONS( e, 'PREF_Emulate::set( )' );
        }
    }
};

var PREFERENCES = null;
function VM_GetPreference( key )
{
    try
    {
        return PREFERENCES.getString( key );
    }
    catch ( e )
    {
        EX_ASSERT_NO_EXCEPTIONS( e, "VM_GetPreference( )" );
    }
}

function VM_SetPreference( key, value )
{
    try
    {
        PREFERENCES.set( key, value );
    }
    catch ( e )
    {
        EX_ASSERT_NO_EXCEPTIONS( e, "VM_SetPreference( )" );
    }
}