/**
* Static, simple definitions like strings, hashes, enums
*/
(function(context,$) {

    "use strict";

    context.JK = context.JK || {};
    var logger = context.JK.logger;

    context.JK.OS = {
        WIN32: "Win32",
        OSX: "MacOSX",
        UNIX: "Unix"
    };

    // TODO: store these client_id values in instruments table, or store
    // server_id as the client_id to prevent maintenance nightmares. As it's
    // set up now, we will have to deploy each time we add new instruments.
    context.JK.server_to_client_instrument_map = {
        "Acoustic Guitar": { "client_id": 10, "server_id": "acoustic guitar" },
        "Bass Guitar": { "client_id": 20, "server_id": "bass guitar" },
        "Computer": { "client_id": 30, "server_id": "computer" },
        "Drums": { "client_id": 40, "server_id": "drums" },
        "Electric Guitar": { "client_id": 50, "server_id": "electric guitar" },
        "Keyboard": { "client_id": 60, "server_id": "keyboard" },
        "Voice": { "client_id": 70, "server_id": "voice" },
        "Flute": { "client_id": 80, "server_id": "flute" },
        "Clarinet": { "client_id": 90, "server_id": "clarinet" },
        "Saxophone": { "client_id": 100, "server_id": "saxophone" },
        "Trumpet": { "client_id": 110, "server_id": "trumpet" },
        "Violin": { "client_id": 120, "server_id": "violin" },
        "Trombone": { "client_id": 130, "server_id": "trombone" },
        "Banjo": { "client_id": 140, "server_id": "banjo" },
        "Harmonica": { "client_id": 150, "server_id": "harmonica" },
        "Accordion": { "client_id": 160, "server_id": "accordion" },
        "French Horn": { "client_id": 170, "server_id": "french horn" },
        "Euphonium": { "client_id": 180, "server_id": "euphonium" },
        "Tuba": { "client_id": 190, "server_id": "tuba" },
        "Oboe": { "client_id": 200, "server_id": "oboe" },
        "Ukulele": { "client_id": 210, "server_id": "ukulele" },
        "Cello": { "client_id": 220, "server_id": "cello" },
        "Viola": { "client_id": 230, "server_id": "viola" },
        "Mandolin": { "client_id": 240, "server_id": "mandolin" },
        "Other": { "client_id": 250, "server_id": "other" }
    };

    context.JK.client_to_server_instrument_map = {
        10: { "server_id": "acoustic guitar" },
        20: { "server_id": "bass guitar" },
        30: { "server_id": "computer" },
        40: { "server_id": "drums" },
        50: { "server_id": "electric guitar" },
        60: { "server_id": "keyboard" },
        70: { "server_id": "voice" },
        80: { "server_id": "flute" },
        90: { "server_id": "clarinet" },
        100: { "server_id": "saxophone" },
        110: { "server_id": "trumpet" },
        120: { "server_id": "violin" },
        130: { "server_id": "trombone" },
        140: { "server_id": "banjo" },
        150: { "server_id": "harmonica" },
        160: { "server_id": "accordion" },
        170: { "server_id": "french horn" },
        180: { "server_id": "euphonium" },
        190: { "server_id": "tuba" },
        200: { "server_id": "oboe" },
        210: { "server_id": "ukulele" },
        220: { "server_id": "cello" },
        230: { "server_id": "viola" },
        240: { "server_id": "mandolin" },
        250: { "server_id": "other" }
    };
 })(window,jQuery);