var i = 0;
var t = 0;
var nlclass = "mage";
var nlclassFolder = "mage";


nltree[i] = "Arcane"; i++;
nltree[i] = "Fire"; i++;
nltree[i] = "Frost"; i++;

i = 0;

nltalent[i] = ["Arcane Subtlety"]; i++;
nltalent[i] = ["Arcane Focus"]; i++;
nltalent[i] = ["Improved Arcane Missiles"]; i++;
nltalent[i] = ["Wand Specialization"]; i++;
nltalent[i] = ["Magic Absorption"]; i++;
nltalent[i] = ["Arcane Concentration"]; i++;
nltalent[i] = ["Magic Attunement"]; i++;
nltalent[i] = ["Arcane Impact"]; i++;
nltalent[i] = ["Arcane Fortitude"]; i++;
nltalent[i] = ["Improved Mana Shield"]; i++;
nltalent[i] = ["Improved Counterspell"]; i++;
nltalent[i] = ["Arcane Meditation"]; i++;
nltalent[i] = ["Improved Blink"]; i++;
nltalent[i] = ["Presence of Mind"]; i++;
nltalent[i] = ["Arcane Mind"]; i++;
nltalent[i] = ["Prismatic Cloak"]; i++;
nltalent[i] = ["Arcane Instability"]; i++;
nltalent[i] = ["Arcane Potency"]; i++;
nltalent[i] = ["Empowered Arcane Missiles"]; i++;
nltalent[i] = ["Arcane Power"]; i++;
nltalent[i] = ["Spell Power"]; i++;
nltalent[i] = ["Mind Mastery"]; i++;
nltalent[i] = ["Slow"]; i++;

treeStartStop[t] = i -1;
t++;

//fire talents
nltalent[i] = ["Improved Fireball"]; i++;
nltalent[i] = ["Impact"]; i++;
nltalent[i] = ["Ignite"]; i++;
nltalent[i] = ["Flame Throwing"]; i++;
nltalent[i] = ["Improved Fire Blast"]; i++;
nltalent[i] = ["Incinerate"]; i++;
nltalent[i] = ["Improved Flamestrike"]; i++;
nltalent[i] = ["Pyroblast"]; i++;
nltalent[i] = ["Burning Soul"]; i++;
nltalent[i] = ["Improved Scorch"]; i++;
nltalent[i] = ["Improved Fire Ward"]; i++;
nltalent[i] = ["Master of Elements"]; i++;
nltalent[i] = ["Playing with Fire"]; i++;
nltalent[i] = ["Critical Mass"]; i++;
nltalent[i] = ["Blast Wave"]; i++;
nltalent[i] = ["Blazing Speed"]; i++;
nltalent[i] = ["Fire Power"]; i++;
nltalent[i] = ["Pyromaniac"]; i++;
nltalent[i] = ["Combustion"]; i++;
nltalent[i] = ["Molten Fury"]; i++;
nltalent[i] = ["Empowered Fireball"]; i++;
nltalent[i] = ["Dragon's Breath"]; i++;

treeStartStop[t] = i -1;
t++;

//frost talents
nltalent[i] = ["Frost Warding"]; i++;
nltalent[i] = ["Improved Frostbolt"]; i++;
nltalent[i] = ["Elemental Precision"]; i++;
nltalent[i] = ["Ice Shards"]; i++;
nltalent[i] = ["Frostbite"]; i++;
nltalent[i] = ["Improved Frost Nova"]; i++;
nltalent[i] = ["Permafrost"]; i++;
nltalent[i] = ["Piercing Ice"]; i++;
nltalent[i] = ["Cold Snap"]; i++;
nltalent[i] = ["Improved Blizzard"]; i++;
nltalent[i] = ["Arctic Reach"]; i++;
nltalent[i] = ["Frost Channeling"]; i++;
nltalent[i] = ["Shatter"]; i++;
nltalent[i] = ["Frozen Core"]; i++;
nltalent[i] = ["Ice Block"]; i++;
nltalent[i] = ["Improved Cone of Cold"]; i++;
nltalent[i] = ["Ice Floes"]; i++;
nltalent[i] = ["Winter's Chill"]; i++;
nltalent[i] = ["Ice Barrier"]; i++;
nltalent[i] = ["Arctic Winds"]; i++;
nltalent[i] = ["Empowered Frostbolt"]; i++;
nltalent[i] = ["Summon Water Elemental"]; i++;
jsLoaded=true;//needed for ajax script loading