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

nltree[i] = "Affliction"; i++;
nltree[i] = "Demonology"; i++;
nltree[i] = "Destruction"; i++;

i = 0;

nltalent[i] = ["Suppression"]; i++;
nltalent[i] = ["Improved Corruption"]; i++;
nltalent[i] = ["Improved Curse of Weakness"]; i++;
nltalent[i] = ["Improved Drain Soul"]; i++;
nltalent[i] = ["Improved Life Tap"]; i++;
nltalent[i] = ["Soul Siphon"]; i++;
nltalent[i] = ["Improved Curse of Agony"]; i++;
nltalent[i] = ["Fel Concentration"]; i++;
nltalent[i] = ["Amplify Curse"]; i++;
nltalent[i] = ["Grim Reach"]; i++;
nltalent[i] = ["Nightfall"]; i++;
nltalent[i] = ["Empowered Corruption"]; i++;
nltalent[i] = ["Shadow Embrace"]; i++;
nltalent[i] = ["Siphon Life"]; i++;
nltalent[i] = ["Curse of Exhaustion"]; i++;
nltalent[i] = ["Shadow Mastery"]; i++;
nltalent[i] = ["Contagion"]; i++;
nltalent[i] = ["Dark Pact"]; i++;
nltalent[i] = ["Improved Howl of Terror"]; i++;
nltalent[i] = ["Malediction"]; i++;
nltalent[i] = ["Unstable Affliction"]; i++;

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

//demonology talents
nltalent[i] = ["Improved Healthstone"]; i++;
nltalent[i] = ["Improved Imp"]; i++;
nltalent[i] = ["Demonic Embrace"]; i++;
nltalent[i] = ["Improved Health Funnel"]; i++;
nltalent[i] = ["Improved Voidwalker"]; i++;
nltalent[i] = ["Fel Intellect"]; i++;
nltalent[i] = ["Improved Succubus"]; i++;
nltalent[i] = ["Fel Domination"]; i++;
nltalent[i] = ["Fel Stamina"]; i++;
nltalent[i] = ["Demonic Aegis"]; i++;
nltalent[i] = ["Master Summoner"]; i++;
nltalent[i] = ["Unholy Power"]; i++;
nltalent[i] = ["Improved Enslave Demon"]; i++;
nltalent[i] = ["Demonic Sacrifice"]; i++;
nltalent[i] = ["Master Conjuror"]; i++;
nltalent[i] = ["Mana Feed"]; i++;
nltalent[i] = ["Master Demonologist"]; i++;
nltalent[i] = ["Demonic Resilience"]; i++;
nltalent[i] = ["Soul Link"]; i++;
nltalent[i] = ["Demonic Knowledge"]; i++;
nltalent[i] = ["Demonic Tactics"]; i++;
nltalent[i] = ["Summon Felguard"]; i++;

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

//destruction talents
nltalent[i] = ["Improved Shadow Bolt"]; i++;
nltalent[i] = ["Cataclysm"]; i++;
nltalent[i] = ["Bane"]; i++;
nltalent[i] = ["Aftermath"]; i++;
nltalent[i] = ["Improved Firebolt"]; i++;
nltalent[i] = ["Improved Lash of Pain"]; i++;
nltalent[i] = ["Devastation"]; i++;
nltalent[i] = ["Shadowburn"]; i++;
nltalent[i] = ["Intensity"]; i++;
nltalent[i] = ["Destructive Reach"]; i++;
nltalent[i] = ["Improved Searing Pain"]; i++;
nltalent[i] = ["Pyroclasm"]; i++;
nltalent[i] = ["Improved Immolate"]; i++;
nltalent[i] = ["Ruin"]; i++;
nltalent[i] = ["Nether Protection"]; i++;
nltalent[i] = ["Emberstorm"]; i++;
nltalent[i] = ["Backlash"]; i++;
nltalent[i] = ["Conflagrate"]; i++;
nltalent[i] = ["Soul Leech"]; i++;
nltalent[i] = ["Shadow and Flame"]; i++;
nltalent[i] = ["Shadow Fury"]; i++;
jsLoaded=true;//needed for ajax script loading