var mgActiveMappings =
{
  mappings :
  {
    browser    : new Array(),
    viewsource : new Array(),
    window     : new Array(),
    messenger  : new Array(),
    mailcompose: new Array()
  },

  /* for description: chrome://mozgest/content/defaults.js */

  init : function()
  {
    var b = this.mappings.browser;
    b[":20"] = {func: "mgB_Back", count: 0}
    b[":02"] = {func: "mgB_Forward", count: 0}
    b[":12"] = {func: "mgB_NextTab", count: 0}
    b[":10"] = {func: "mgB_PreviousTab", count: 0}
    b[":2+"] = {func: "mgB_NextTab", count: 0}
    b[":2-"] = {func: "mgB_PreviousTab", count: 0}
    b["L"] = {func: "mgB_Back", count: 0}
    b["R"] = {func: "mgB_Forward", count: 0}
    b["UDU"] = {func: "mgB_ReloadSkipCache", count: 0}
    b["LU"] = {func: "mgB_Stop", count: 0}
    b["DURD"] = {func: "mgB_Home", count: 0}
    b["D"] = {func: "mgB_OpenNewDocument", count: 0}
    b["ULU"] = {func: "mgB_UpDir", count: 0}
    b["979"] = {func: "mgB_UpDir", count: 0}
    b["797"] = {func: "mgB_UpDir", count: 0}
    b["U"] = {func: "mgB_OpenTab", count: 0}
    b["UR"] = {func: "mgB_NextTab", count: 0}
    b["UL"] = {func: "mgB_PreviousTab", count: 0}
    b["RLR"] = {func: "mgB_CloseDoc", count: 0}
    b["DR"] = {func: "mgB_CloseDoc", count: 0}
    b["LDRDL"] = {func: "mgB_ViewPageSource", count: 0}
    b["DRDLU"] = {func: "mgB_AddBookmark", count: 0}
    b["RUDR"] = {func: "mgB_DoubleStackWin", count: 0}
    b["9"] = {func: "mgB_HideImage", count: 0}
    b["3"] = {func: "mgB_ZoomIn_DoubleImage", count: 0}
    b["7"] = {func: "mgB_ZoomOut_HalveImage", count: 0}
    b["1"] = {func: "mgB_ResetZoom", count: 0}
    b["31"] = {func: "mgB_ZoomIn", count: 0}
    b["13"] = {func: "mgB_ZoomOut", count: 0}
    b["*RU"] = {func: "mgB_LinksInWindows", count: 0}
    b["*RUL"] = {func: "mgB_LinksInTabs", count: 0}

    var vs = this.mappings.viewsource;
    vs["3"] = {func: "mgB_ZoomIn", count: 0}
    vs["7"] = {func: "mgB_ZoomOut", count: 0}
    vs["1"] = {func: "mgB_ResetZoom", count: 0}

    var w = this.mappings.window;
    w["RU"] = {func: "mgW_RestMaxWin", count: 0}
    w["DL"] = {func: "mgW_MinWin", count: 0}
    w["RLR"] = {func: "mgW_CloseWin", count: 0}
    w["DR"] = {func: "mgW_CloseWin", count: 0}
    w["9L3"] = {func: "mgW_Cut", count: 0}
    w["93"] = {func: "mgW_Copy", count: 0}
    w["39"] = {func: "mgW_Paste", count: 0}
    w["U1"] = {func: "mgW_ScrollUp", count: 0}
    w["D7"] = {func: "mgW_ScrollDown", count: 0}
    w["R7"] = {func: "mgW_ScrollRight", count: 0}
    w["L9"] = {func: "mgW_ScrollLeft", count: 0}

    var m = this.mappings.messenger;
    m[":20"] = {func: "mgM_PrevUnreadMessage", count: 0}
    m[":02"] = {func: "mgM_NextUnreadMessage", count: 0}
    m["L"] = {func: "mgM_PrevUnreadMessage", count: 0}
    m["R"] = {func: "mgM_NextUnreadMessage", count: 0}
    m["DRU"] = {func: "mgM_DeleteMessage", count: 0}
    m["DUR"] = {func: "mgM_ReplyMessage", count: 0}
    m["DURL"] = {func: "mgM_ForwardMessage", count: 0}
    m["UD"] = {func: "mgM_Reload", count: 0}
    m["DURD"] = {func: "mgM_Home", count: 0}
    m["D"] = {func: "mgM_NewMessage", count: 0}
    m["URD"] = {func: "mgM_ViewSource", count: 0}
    m["LDRDL"] = {func: "mgM_ViewSource", count: 0}
    m["9"] = {func: "mgB_HideImage", count: 0}
    m["3"] = {func: "mgB_ZoomIn_DoubleImage", count: 0}
    m["7"] = {func: "mgB_ZoomOut_HalveImage", count: 0}
    m["1"] = {func: "mgB_ResetZoom", count: 0}
    m["31"] = {func: "mgB_ZoomIn", count: 0}
    m["13"] = {func: "mgB_ZoomOut", count: 0}

    var mc = this.mappings.mailcompose;

  },

  getMappings : function()
  {
    return this.mappings
  }
}