MetaMapNotes_Mininote_UpdateRate = 0.01
MetaMapNotes_MinDiff = 7

MetaMapNotes_Colors = {}
MetaMapNotes_Colors[0] = {r = 1.0, g = 0.82, b = 0.0}
MetaMapNotes_Colors[1] = {r = 0.55, g = 0.46, b = 0.04}
MetaMapNotes_Colors[2] = {r = 1.0, g = 0.0, b = 0.0}
MetaMapNotes_Colors[3] = {r = 0.56, g = 0.0, b = 0.0}
MetaMapNotes_Colors[4] = {r = 0.0, g = 1.0, b = 0.0}
MetaMapNotes_Colors[5] = {r = 0.0, g = 0.39, b = 0.05}
MetaMapNotes_Colors[6] = {r = 0.42, g = 0.47, b = 0.87}
MetaMapNotes_Colors[7] = {r = 0.25, g = 0.35, b = 0.66}
MetaMapNotes_Colors[8] = {r = 1.0, g = 1.0, b = 1.0}
MetaMapNotes_Colors[9] = {r = 0.65, g = 0.65, b = 0.65}

MetaMapNotes_Const = {}
MetaMapNotes_Const[1] = {}
MetaMapNotes_Const[2] = {}
MetaMapNotes_Const = {
    [1] = {
        [0] = {
            ["xscale"] = 11016.6,
            ["yscale"] = 7399.9,
        },
        [1] = {
            ["scale"] = 0.15670371525706,
            ["xoffset"] = 0.41757282062541,
            ["yoffset"] = 0.33126468682991,
            ["xscale"] = 12897.3,
            ["yscale"] = 8638.1,
        },
        [2] = {
            ["scale"] = 0.13779501505279,
            ["xoffset"] = 0.55282036918049,
            ["yoffset"] = 0.30400571307545,
            ["xscale"] = 15478.8,
            ["yscale"] = 10368.0,
        },
        [3] = {
            ["scale"] = 0.17799008894522,
            ["xoffset"] = 0.38383175154516,
            ["yoffset"] = 0.18206216123156,
            ["xscale"] = 19321.8,
            ["yscale"] = 12992.7,
        },
        [4] = {
            ["scale"] = 0.02876626176374,
            ["xoffset"] = 0.38392150175204,
            ["yoffset"] = 0.10441296545475,
            ["xscale"] = 25650.4,
            ["yscale"] = 17253.2,
        },
        [5] = {
            ["scale"] = 0.12219839120669,
            ["xoffset"] = 0.34873187115693,
            ["yoffset"] = 0.50331046935371,
            ["xscale"] = 38787.7,
            ["yscale"] = 26032.1,
        },
        [6] = {
            ["scale"] = 0.14368294970080,
            ["xoffset"] = 0.51709782709100,
            ["yoffset"] = 0.44802818134926,
        },
        [7] = {
            ["scale"] = 0.14266384095509,
            ["xoffset"] = 0.49026338351379,
            ["yoffset"] = 0.60461876174686,
        },
        [8] = {
            ["scale"] = 0.15625084006464,
            ["xoffset"] = 0.41995800144849,
            ["yoffset"] = 0.23097545880609,
        },
        [9] = {
            ["scale"] = 0.18885970960818,
            ["xoffset"] = 0.31589651244686,
            ["yoffset"] = 0.61820581746798,
        },
        [10] = {
            ["scale"] = 0.06292695969921,
            ["xoffset"] = 0.50130287793373,
            ["yoffset"] = 0.17560823085517,
        },
        [11] = {
            ["scale"] = 0.13960673216274,
            ["xoffset"] = 0.40811854919226,
            ["yoffset"] = 0.53286226907346,
        },
        [12] = {
            ["scale"] = 0.03811449638057,
            ["xoffset"] = 0.56378554142668,
            ["yoffset"] = 0.42905218646258,
        },
        [13] = {
            ["scale"] = 0.18885969712845,
            ["xoffset"] = 0.33763582469211,
            ["yoffset"] = 0.75815224951929,
        },
        [14] = {
            ["scale"] = 0.13272833611061,
            ["xoffset"] = 0.37556627748617,
            ["yoffset"] = 0.40285135292988,
        },
        [15] = {
            ["scale"] = 0.18750104661175,
            ["xoffset"] = 0.46971301480866,
            ["yoffset"] = 0.76120931364891,
        },
        [16] = {
            ["scale"] = 0.13836131003639,
            ["xoffset"] = 0.36011098024729,
            ["yoffset"] = 0.03948322979210,
        },
        [17] = {
            ["scale"] = 0.27539211944292,
            ["xoffset"] = 0.39249347333450,
            ["yoffset"] = 0.45601063260257,
        },
        [18] = {
            ["scale"] = 0.11956582877920,
            ["xoffset"] = 0.47554411191734,
            ["yoffset"] = 0.68342356389650,
        },
        [19] = {
            ["scale"] = 0.02836291430658,
            ["xoffset"] = 0.44972878210917,
            ["yoffset"] = 0.55638479002362,
        },
        [20] = {
            ["scale"] = 0.10054401185671,
            ["xoffset"] = 0.44927594451520,
            ["yoffset"] = 0.76494573629405,
        },
        [21] = {
            ["scale"] = 0.19293573573141,
            ["xoffset"] = 0.47237382938446,
            ["yoffset"] = 0.17390990272233,
        },
    },
    [2] = {
        [0] = {
            ["xscale"] = 10448.3,
            ["yscale"] = 7072.7,
            ["cityscale"] = 1.565,
        },
        [1] = {
            ["scale"] = 0.07954563533736,
            ["xoffset"] = 0.43229874660542,
            ["yoffset"] = 0.25425926375262,
            ["xscale"] = 12160.5,
            ["yscale"] = 8197.8,
            ["cityscale"] = 1.687,
        },
        [2] = {
            ["scale"] = 0.10227310921644,
            ["xoffset"] = 0.47916793249546,
            ["yoffset"] = 0.32386170078419,
            ["xscale"] = 14703.1,
            ["yscale"] = 9825.0,
            ["cityscale"] = 1.882,
        },
        [3] = {
            ["scale"] = 0.07066771883566,
            ["xoffset"] = 0.51361415033147,
            ["yoffset"] = 0.56915717993261,
            ["xscale"] = 18568.7,
            ["yscale"] = 12472.2,
            ["cityscale"] = 2.210,
        },
        [4] = {
            ["scale"] = 0.09517074521836,
            ["xoffset"] = 0.48982154167011,
            ["yoffset"] = 0.76846519986510,
            ["xscale"] = 24390.3,
            ["yscale"] = 15628.5,
            ["cityscale"] = 2.575,
        },
        [5] = {
            ["scale"] = 0.08321525646393,
            ["xoffset"] = 0.04621224670174,
            ["yoffset"] = 0.61780780524905,
            ["xscale"] = 37012.2,
            ["yscale"] = 25130.6,
            ["cityscale"] = 2.651,
        },
        [6] = {
            ["scale"] = 0.07102298961531,
            ["xoffset"] = 0.47822105868635,
            ["yoffset"] = 0.73863555048516,
        },
        [7] = {
            ["scale"] = 0.13991525534426,
            ["xoffset"] = 0.40335096278072,
            ["yoffset"] = 0.48339696712179,
        },
        [8] = {
            ["scale"] = 0.07670475476181,
            ["xoffset"] = 0.43087243362495,
            ["yoffset"] = 0.73224350550454,
        },
        [9] = {
            ["scale"] = 0.10996723642661,
            ["xoffset"] = 0.51663255550387,
            ["yoffset"] = 0.15624753972085,
        },
        [10] = {
            ["scale"] = 0.09860350595046,
            ["xoffset"] = 0.41092682316676,
            ["yoffset"] = 0.65651531970162,
        },
        [11] = {
            ["scale"] = 0.09090931690055,
            ["xoffset"] = 0.42424361247460,
            ["yoffset"] = 0.30113436864162,
        },
        [12] = {
            ["scale"] = 0.02248317426784,
            ["xoffset"] = 0.47481923366335,
            ["yoffset"] = 0.51289242617182,
        },
        [13] = {
            ["scale"] = 0.07839152145224,
            ["xoffset"] = 0.51118749188138,
            ["yoffset"] = 0.50940913489577,
        },
        [14] = {
            ["scale"] = 0.06170112311456,
            ["xoffset"] = 0.49917278340928,
            ["yoffset"] = 0.68359285304999,
        },
        [15] = {
            ["scale"] = 0.06338794005823,
            ["xoffset"] = 0.46372051266487,
            ["yoffset"] = 0.57812379382509,
        },
        [16] = {
            ["scale"] = 0.11931848806212,
            ["xoffset"] = 0.35653502290090,
            ["yoffset"] = 0.24715695496522,
        },
        [17] = {
            ["scale"] = 0.03819701270887,
            ["xoffset"] = 0.41531450060561,
            ["yoffset"] = 0.67097280492581,
        },
        [18] = {
            ["scale"] = 0.18128603034401,
            ["xoffset"] = 0.39145470225916,
            ["yoffset"] = 0.79412224886668,
        },
        [19] = {
            ["scale"] = 0.06516347991404,
            ["xoffset"] = 0.51769795272070,
            ["yoffset"] = 0.72815974701615,
        },
        [20] = {
            ["scale"] = 0.10937523495111,
            ["xoffset"] = 0.49929119700867,
            ["yoffset"] = 0.25567971676068,
        },
        [21] = {
            ["scale"] = 0.12837403412087,
            ["xoffset"] = 0.36837217317549,
            ["yoffset"] = 0.15464954319582,
        },
        [22] = {
            ["scale"] = 0.02727719546939,
            ["xoffset"] = 0.42973999245660,
            ["yoffset"] = 0.23815358517831,
        },
        [23] = {
            ["scale"] = 0.12215946583965,
            ["xoffset"] = 0.44270955019641,
            ["yoffset"] = 0.17471356786018,
        },
        [24] = {
            ["scale"] = 0.09943208435841,
            ["xoffset"] = 0.36884571674582,
            ["yoffset"] = 0.71874918595783,
        },
        [25] = {
            ["scale"] = 0.11745423014662,
            ["xoffset"] = 0.46561438951659,
            ["yoffset"] = 0.40971063365152,
        },
    },
    [METAMAPNOTES_WARSONGGULCH] = {
        ["scale"] = 0.035,
        ["xoffset"] = 0.41757282062541,
        ["yoffset"] = 0.33126468682991,
        ["xscale"] = 12897.3,
        ["yscale"] = 8638.1,
    },
    [METAMAPNOTES_ALTERACVALLEY] = {
        ["scale"] = 0.13,
        ["xoffset"] = 0.41757282062541,
        ["yoffset"] = 0.33126468682991,
        ["xscale"] = 12897.3,
        ["yscale"] = 8638.1
    },
    [METAMAPNOTES_ARATHIBASIN] = {
        ["scale"] = 0.045,
        ["xoffset"] = 0.41757282062541,
        ["yoffset"] = 0.33126468682991,
        ["xscale"] = 12897.3,
        ["yscale"] = 8638.1
    },
}

MetaMap_ZoneLevels = {
[1] = {
	[1] = {18, 30, "Contested"},
	[2] = {45, 55, "Contested"},
	[3] = {10, 20, "Alliance"},
	[4] = {0, 0, "Alliance"},
	[5] = {30, 40, "Contested"},
	[6] = {1, 10, "Horde"},
	[7] = {35, 45, "Contested"},
	[8] = {48, 55, "Contested"},
	[9] = {40, 50, "Contested"},
	[10] = {1, 60, "Contested"},
	[11] = {1, 10, "Horde"},
	[12] = {0, 0, "Horde"},
	[13] = {55, 60, "Contested"},
	[14] = {15, 27, "Contested"},
	[15] = {40, 50, "Contested"},
	[16] = {1, 10, "Alliance"},
	[17] = {10, 25, "Horde"},
	[18] = {25, 35, "Contested"},
	[19] = {0, 0, "Horde"},
	[20] = {48, 55, "Contested"},
	[21] = {55, 60, "Contested"},
},
[2] = {
	[1] = {30, 40, "Contested"},
	[2] = {30, 40, "Contested"},
	[3] = {35, 45, "Contested"},
	[4] = {45, 55, "Contested"},
	[5] = {50, 58, "Contested"},
	[6] = {55, 60, "Contested"},
	[7] = { 1, 10, "Alliance"},
	[8] = {18, 30, "Contested"},
	[9] = {53, 60, "Contested"},
	[10] = { 1, 10, "Alliance"},
	[11] = {20, 30, "Contested"},
	[12] = {0, 0, "Alliance"},
	[13] = {10, 20, "Alliance"},
	[14] = {15, 25, "Contested"},
	[15] = {43, 50, "Contested"},
	[16] = {10, 20, "Horde"},
	[17] = {0, 0, "Alliance"},
	[18] = {30, 45, "Contested"},
	[19] = {35, 45, "Contested"},
	[20] = {40, 50, "Contested"},
	[21] = { 1, 10, "Horde"},
	[22] = {0, 0, "Horde"},
	[23] = {51, 58, "Contested"},
	[24] = {10, 20, "Alliance"},
	[25] = {20, 30, "Contested"},
}
};


-- ZoneShift matrix for English/German/French exports/imports

if(GetLocale() == "deDE") then
	MetaMapNotes_ZoneShift = {
		[0] = { [0] = 0 },
		[1] = { 1, 2, 6, 4, 5, 7, 9, 18, 8, 10, 11, 12, 13, 14, 15, 17, 3, 16, 19 ,20, 21 },              
		[2] = { 1, 2, 24, 19, 3, 6, 4, 5, 25, 21, 20, 8, 9, 10, 12, 13, 14, 11, 16, 7, 17, 18, 23, 22, 15 },
	}
elseif(GetLocale() == "frFR") then
	MetaMapNotes_ZoneShift = {
		[0] = { [0] = 0 },
		[1] = { 1, 2, 18, 5, 7, 6, 12, 9, 8 , 16, 14, 15, 17, 10, 19, 20, 11, 13, 21, 4, 3 },               
		[2] = { 20, 10, 23, 22, 21, 6, 5, 1, 16, 7, 4, 11, 15, 12, 9, 8, 2, 25, 18, 13, 3, 24, 17, 19, 14 },
	}
else
	MetaMapNotes_ZoneShift = {
		[0] = { [0] = 0 },
		[1] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 },
		[2] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 },
	}
end
MetaMapNotes_ZoneShift[1][0] = 0;
MetaMapNotes_ZoneShift[2][0] = 0;
