var i = 0;
var t = 0;

var className = "Mage Talents";
var talentPath = "/info/basics/talents/";

tree[i] = "Arcane"; i++;
tree[i] = "Fire"; i++;
tree[i] = "Frost"; i++;

i = 0;
talent[i] = [0, "Arcane Subtlety", 2, 1, 1]; i++;
talent[i] = [0, "Arcane Focus", 3, 2, 1]; i++;
talent[i] = [0, "Improved Arcane Missiles", 5, 3, 1]; i++;
talent[i] = [0, "Arcane Fortitude", 3, 1, 2]; i++;
talent[i] = [0, "Magic Absorption", 2, 2, 2]; i++;
talent[i] = [0, "Arcane Concentration", 5, 3, 2]; i++;
talent[i] = [0, "Magic Attunement", 2, 1, 3]; i++;
talent[i] = [0, "Spell Impact", 3, 2, 3]; i++;
talent[i] = [0, "Student of the Mind", 3, 3, 3]; i++;
talent[i] = [0, "Focus Magic", 1, 4, 3]; i++;
talent[i] = [0, "Arcane Shielding", 2, 1, 4]; i++;
talent[i] = [0, "Improved Counterspell", 2, 2, 4]; i++;
talent[i] = [0, "Arcane Meditation", 3, 3, 4]; i++;
talent[i] = [0, "Torment the Weak", 3, 4, 4]; i++;
talent[i] = [0, "Improved Blink", 2, 1, 5]; i++;
talent[i] = [0, "Presence of Mind", 1, 2, 5]; i++;
talent[i] = [0, "Arcane Mind", 5, 4, 5]; i++;
talent[i] = [0, "Prismatic Cloak", 3, 1, 6]; i++;
talent[i] = [0, "Arcane Instability", 3, 2, 6, [getTalentID("Presence of Mind"),1]]; i++;
talent[i] = [0, "Arcane Potency", 2, 3, 6, [getTalentID("Presence of Mind"),1]]; i++;
talent[i] = [0, "Arcane Empowerment", 3, 1, 7]; i++;
talent[i] = [0, "Arcane Power", 1, 2, 7, [getTalentID("Arcane Instability"),3]]; i++;
talent[i] = [0, "Incanter's Absorption", 3, 3, 7]; i++;
talent[i] = [0, "Arcane Flows", 2, 2, 8, [getTalentID("Arcane Power"),1]]; i++;
talent[i] = [0, "Mind Mastery", 5, 3, 8]; i++;
talent[i] = [0, "Slow", 1, 2, 9]; i++;
talent[i] = [0, "Missile Barrage", 5, 3, 9]; i++;
talent[i] = [0, "Netherwind Presence", 3, 2, 10]; i++;
talent[i] = [0, "Spell Power", 2, 3, 10]; i++;
talent[i] = [0, "Arcane Barrage", 1, 2, 11]; i++;
treeStartStop[t] = i -1;
t++;

//fire talents
talent[i] = [1, "Improved Fire Blast", 2, 1, 1]; i++;
talent[i] = [1, "Incineration", 3, 2, 1]; i++;
talent[i] = [1, "Improved Fireball", 5, 3, 1]; i++;
talent[i] = [1, "Ignite", 5, 1, 2]; i++;
talent[i] = [1, "Burning Determination", 2, 2, 2]; i++;
talent[i] = [1, "World in Flames", 3, 3, 2]; i++;
talent[i] = [1, "Flame Throwing", 2, 1, 3]; i++;
talent[i] = [1, "Impact", 3, 2, 3]; i++;
talent[i] = [1, "Pyroblast", 1, 3, 3]; i++;
talent[i] = [1, "Burning Soul", 2, 4, 3]; i++;
talent[i] = [1, "Improved Scorch", 3, 1, 4]; i++;
talent[i] = [1, "Molten Shields", 2, 2, 4]; i++;
talent[i] = [1, "Master of Elements", 3, 4, 4]; i++;
talent[i] = [1, "Playing with Fire", 3, 1, 5]; i++;
talent[i] = [1, "Critical Mass", 3, 2, 5]; i++;
talent[i] = [1, "Blast Wave", 1, 3, 5, [getTalentID("Pyroblast"),1]]; i++;
talent[i] = [1, "Blazing Speed", 2, 1, 6]; i++;
talent[i] = [1, "Fire Power", 5, 3, 6]; i++;
talent[i] = [1, "Pyromaniac", 3, 1, 7]; i++;
talent[i] = [1, "Combustion", 1, 2, 7, [getTalentID("Critical Mass"),3]]; i++;
talent[i] = [1, "Molten Fury", 2, 3, 7]; i++;
talent[i] = [1, "Fiery Payback", 2, 1, 8]; i++;
talent[i] = [1, "Empowered Fireball", 3, 3, 8]; i++;
talent[i] = [1, "Firestarter", 2, 1, 9, [i+1,1]]; i++;
talent[i] = [1, "Dragon's Breath", 1, 2, 9, [getTalentID("Combustion"),1]]; i++;
talent[i] = [1, "Hot Streak", 3, 3, 9]; i++;
talent[i] = [1, "Burnout", 5, 2, 10]; i++;
talent[i] = [1, "Living Bomb", 1, 2, 11]; i++;


treeStartStop[t] = i -1;
t++;

//frost talents
talent[i] = [2, "Frost Warding", 2, 1, 1]; i++;
talent[i] = [2, "Improved Frostbolt", 5, 2, 1]; i++;
talent[i] = [2, "Ice Floes", 3, 3, 1]; i++;
talent[i] = [2, "Ice Shards", 5, 1, 2]; i++;
talent[i] = [2, "Frostbite", 3, 2, 2]; i++;
talent[i] = [2, "Elemental Precision", 3, 3, 2]; i++;
talent[i] = [2, "Permafrost", 3, 4, 2]; i++;
talent[i] = [2, "Piercing Ice", 3, 1, 3]; i++;
talent[i] = [2, "Icy Veins", 1, 2, 3]; i++;
talent[i] = [2, "Improved Blizzard", 3, 3, 3]; i++;
talent[i] = [2, "Arctic Reach", 2, 1, 4]; i++;
talent[i] = [2, "Frost Channeling", 3, 2, 4]; i++;
talent[i] = [2, "Shatter", 5, 3, 4]; i++;
talent[i] = [2, "Cold Snap", 1, 2, 5]; i++;
talent[i] = [2, "Improved Cone of Cold", 3, 3, 5]; i++;
talent[i] = [2, "Frozen Core", 3, 4, 5]; i++;
talent[i] = [2, "Cold as Ice", 2, 1, 6, [getTalentID("Cold Snap"),1]]; i++;
talent[i] = [2, "Winter's Chill", 3, 3, 6]; i++;
talent[i] = [2, "Shattered Barrier", 2, 1, 7, [i+1,1]]; i++;
talent[i] = [2, "Ice Barrier", 1, 2, 7, [getTalentID("Cold Snap"),1]]; i++;
talent[i] = [2, "Arctic Winds", 5, 3, 7]; i++;
talent[i] = [2, "Empowered Frostbolt", 2, 2, 8]; i++;
talent[i] = [2, "Fingers of Frost", 2, 3, 8]; i++;
talent[i] = [2, "Brain Freeze", 3, 1, 9]; i++;
talent[i] = [2, "Summon Water Elemental", 1, 2, 9]; i++;
talent[i] = [2, "Improved Water Elemental", 3, 3, 9, [getTalentID("Summon Water Elemental"),1]]; i++;
talent[i] = [2, "Chilled to the Bone", 5, 2, 10]; i++;
talent[i] = [2, "Deep Freeze", 1, 2, 11]; i++;
treeStartStop[t] = i -1;
t++;

i = 0;

//Arcane Talents Begin

//Arcane Subtlety - Arcane
rank[i] = [
		"Reduces the chance your spells will be dispelled by 15% and reduces the threat caused by your Arcane spells by 20%.",
		"Reduces the chance your spells will be dispelled by 30% and reduces the threat caused by your Arcane spells by 40%."
		];
i++;		
		
//Arcane Focus - Arcane
rank[i] = [
		"Increases your chance to hit and reduces the mana cost of your Arcane spells by 1%.",
		"Increases your chance to hit and reduces the mana cost of your Arcane spells by 2%.",
		"Increases your chance to hit and reduces the mana cost of your Arcane spells by 3%."
		];
i++;		

//Improved Arcane Missiles - Arcane
rank[i] = [
		"Gives you a 20% chance to avoid interruption caused by damage while channeling Arcane Missiles.",
		"Gives you a 40% chance to avoid interruption caused by damage while channeling Arcane Missiles.",
		"Gives you a 60% chance to avoid interruption caused by damage while channeling Arcane Missiles.",
		"Gives you a 80% chance to avoid interruption caused by damage while channeling Arcane Missiles.",
		"Gives you a 100% chance to avoid interruption caused by damage while channeling Arcane Missiles."
		];
i++;

//Arcane Fortitude - Arcane
rank[i] = [
		"Increases your armor by an amount equal to 50% of your Intellect.",
		"Increases your armor by an amount equal to 100% of your Intellect.",
		"Increases your armor by an amount equal to 150% of your Intellect."
		];
i++;	
		
//Magic Absorption - Arcane
rank[i] = [
		"Increases all resistances by .5 per level and causes all spells you fully resist to restore 1% of your total mana.  1 sec. cooldown.",
		"Increases all resistances by 1 per level and causes all spells you fully resist to restore 2% of your total mana.  1 sec. cooldown."
		];
i++;		

//Arcane Concentration - Arcane	
rank[i] = [
	"Gives you a 2% chance of entering a Clearcasting state after any damage spell hits a target. The Clearcasting state reduces the mana cost of your next damage	spell by 100%.",
	"Gives you a 4% chance of entering a Clearcasting state after any damage spell hits a target. The Clearcasting state reduces the mana cost of your next damage spell by 100%.",
	"Gives you a 6% chance of entering a Clearcasting state after any damage spell hits a target. The Clearcasting state reduces the mana cost of your next damage spell by 100%.",
	"Gives you a 8% chance of entering a Clearcasting state after any damage spell hits a target. The Clearcasting state reduces the mana cost of your next damage spell by 100%.",
	"Gives you a 10% chance of entering a Clearcasting state after any damage spell hits a target. The Clearcasting state reduces the mana cost of your next damage spell by 100%."
		];
i++;		

//Magic Attunement - Arcane
rank[i] = [
"Increases the range of your Arcane spells by 3 yards and the effect of your Amplify Magic and Dampen Magic spells by 25%.",
"Increases the range of your Arcane spells by 6 yards and the effect of your Amplify Magic and Dampen Magic spells by 50%."
		];
i++;		
		
//Spell Impact - Arcane	
rank[i] = [
"Increases the damage of your Arcane Explosion, Arcane Blast, Blast Wave, Fire Blast, Scorch, Fireball, Ice Lance and Cone of Cold spells by an additional 2%.",
"Increases the damage of your Arcane Explosion, Arcane Blast, Blast Wave, Fire Blast, Scorch, Fireball, Ice Lance and Cone of Cold spells by an additional 4%.",
"Increases the damage of your Arcane Explosion, Arcane Blast, Blast Wave, Fire Blast, Scorch, Fireball, Ice Lance and Cone of Cold spells by an additional 6%."
		];		
i++;

//Student of the Mind - Arcane	
rank[i] = [
"Increases your total Spirit by 4%.",
"Increases your total Spirit by 7%.",
"Increases your total Spirit by 10%."
		];		
i++;

//Focus Magic - Arcane
rank[i] = [
		"<span style=text-align:left;float:left;>176 Mana</span><span style=text-align:right;float:right;>30 yd range</span><br><span style=text-align:left;float:left;>Instant cast</span><br>Increases the target's chance to critically hit with all spells by 3%. When the target critically hits the caster's chance to critically hit with spells is increased by 3% for 10 sec."
		];
i++;	

//Arcane Shielding - Arcane		
rank[i] = [
"Decreases the mana lost per point of damage taken when Mana Shield is active by 17% and increases the resistances granted by Mage Armor by 25%.",
"Decreases the mana lost per point of damage taken when Mana Shield is active by 33% and increases the resistances granted by Mage Armor by 50%."
		];
i++;		

//Improved Counterspell - Arcane	
rank[i] = [
		"Your Counterspell also silences the target for 2 sec.",
		"Your Counterspell also silences the target for 4 sec."
		];
i++;		

//Arcane Meditation - Arcane		
rank[i] = [
		"Allows 10% of your Mana regeneration to continue while casting.",
		"Allows 20% of your Mana regeneration to continue while casting.",
		"Allows 30% of your Mana regeneration to continue while casting."
		];
i++;	

//Torment the Weak - Arcane		
rank[i] = [
		"All damage done to ensnared targets is increased by 2%.",
		"All damage done to ensnared targets is increased by 4%.",
		"All damage done to ensnared targets is increased by 6%."
		];
i++;	

//Improved Blink - Arcane	
rank[i] = [
		"Reduces the mana cost of Blink by 25% and for 4 sec after casting your chance to be hit by all attacks and spells is reduced by 15%.",
		"Reduces the mana cost of Blink by 50% and for 4 sec after casting your chance to be hit by all attacks and spells is reduced by 30%."
		];
i++;

//Presence of Mind - Arcane
rank[i] = [
		"<span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>3 min cooldown</span><br>When activated, your next Mage spell with a casting time less than 10 sec becomes an instant cast spell."
		];
i++;		

//Arcane Mind - Arcane		
rank[i] = [
		"Increases your total Intellect by 3%.",
		"Increases your total Intellect by 6%.",
		"Increases your total Intellect by 9%.",
		"Increases your total Intellect by 12%.",
		"Increases your total Intellect by 15%."
		];
i++;

//Prismatic Cloak - Arcane
rank[i]=[
"Reduces all damage taken by 2% and reduces the fade time of your invisibility spell by 1 sec.",
"Reduces all damage taken by 4% and reduces the fade time of your invisibility spell by 2 sec.",
"Reduces all damage taken by 6% and reduces the fade time of your invisibility spell by 3 sec."
		];
i++;

//Arcane Instability - Arcane		
rank[i] = [
		"Increases your spell damage and critical strike chance by 1%.",
		"Increases your spell damage and critical strike chance by 2%.",
		"Increases your spell damage and critical strike chance by 3%."
		];		
i++;

//Arcane Potency - Arcane		
rank[i] = [
"Increases the critical strike chance of your next damaging spell by 15% after gaining Clearcasting or Presence of Mind.",
"Increases the critical strike chance of your next damaging spell by 30% after gaining Clearcasting or Presence of Mind."
		];		
i++;

//Arcane Empowerment - Arcane
rank[i]=[
"Increases the damage of your Arcane Missiles spell by an amount equal to 15% of your spell power and the damage of your Arcane Blast by 3% of your spell power.",
"Increases the damage of your Arcane Missiles spell by an amount equal to 30% of your spell power and the damage of your Arcane Blast by 6% of your spell power.",
"Increases the damage of your Arcane Missiles spell by an amount equal to 45% of your spell power and the damage of your Arcane Blast by 9% of your spell power."
		];
i++;

//Arcane Power - Arcane				
rank[i] = [
		"<span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>3 min cooldown</span><br>When activated, your spells deal 30% more damage while costing 30% more mana to cast. This effect lasts 15 sec."
		];
i++;	

//Incanter's Absorption - Arcane 
rank[i]=[
"When you absorb damage your spell damage is increased by 5% of the amount absorbed for 10 sec.",
"When you absorb damage your spell damage is increased by 10% of the amount absorbed for 10 sec.",
"When you absorb damage your spell damage is increased by 15% of the amount absorbed for 10 sec."
		];
i++;



//Arcane Flows - Arcane 
rank[i]=[
"Reduces the cooldown of your Presence of Mind, Arcane Power and Invisibility spells by 30 secs.",
"Reduces the cooldown of your Presence of Mind, Arcane Power and Invisibility spells by 60 secs.",
		];
i++;

//Mind Mastery - Arcane
rank[i]=[
"Increases spell power by 3% of your total intellect.",
"Increases spell power by 6% of your total intellect.",
"Increases spell power by 9% of your total intellect.",
"Increases spell power by 12% of your total intellect.",
"Increases spell power by 15% of your total intellect."
		];
i++;




//Slow - Arcane				
rank[i] = [
		"<span style=text-align:left;float:left;>627 Mana</span><span style=text-align:right;float:right;>30 yd range</span><br><span style=text-align:left;float:left;>Instant cast</span><BR>Reduces target's movement speed by 60%, increases the time between ranged attacks by 60% and increases casting time by 60%. Lasts 15 sec. Slow can only affect one target at a time."
		];
i++;

//Missile Barrage - Arcane
rank[i] = [
"Gives your Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt spells a 3% chance to reduce the channeled duration of the next Arcane Missiles spell by 2.5 secs and fire missiles every .5 sec.",
"Gives your Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt spells a 6% chance to reduce the channeled duration of the next Arcane Missiles spell by 2.5 secs and fire missiles every .5 sec.",
"Gives your Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt spells a 9% chance to reduce the channeled duration of the next Arcane Missiles spell by 2.5 secs and fire missiles every .5 sec.",
"Gives your Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt spells a 12% chance to reduce the channeled duration of the next Arcane Missiles spell by 2.5 secs and fire missiles every .5 sec.",
"Gives your Arcane Barrage, Fireball, Frostbolt and Frostfire Bolt spells a 15% chance to reduce the channeled duration of the next Arcane Missiles spell by 2.5 secs and fire missiles every .5 sec."
		]; i++;

//Netherwind Presence - Arcane
rank[i] = [
"Increases your spell haste by 2%.",
"Increases your spell haste by 4%.",
"Increases your spell haste by 6%."
		]; i++;


//Spell Power - Arcane 
rank[i]=[
"Increases critical strike damage bonus of all spells by 25%.",
"Increases critical strike damage bonus of all spells by 50%."
		];
i++;



//Arcane Barrage - Arcane				
rank[i] = [
		"<span style=text-align:left;float:left;>325 Mana</span><span style=text-align:right;float:right;>30 yd range</span><br><span style=text-align:left;float:left;>Instant cast</span><span style=text-align:right;float:right;>3 sec cooldown</span><BR>Launches several missiles at the enemy target, causing 401 to 485 Arcane damage.<br><br>&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 393 Mana, 802-958 Arcane Damage<br>\
		&nbsp;Rank 3: 592 Mana, 936-1144 Arcane Damage<br>\
		"
		];
i++;

//FIRE TALENTS---------------------------------------------------

//Improved Fire Blast - Fire	
rank[i] = [
			"Reduces the cooldown of your Fire Blast spell by 1 sec.",
			"Reduces the cooldown of your Fire Blast spell by 2 sec."

		];
i++;	

//Incineration - Fire	
rank[i] = [
"Increases the critical strike chance of your Fire Blast, Scorch, Arcane Blast and Cone of Cold spells by 2%.",
"Increases the critical strike chance of your Fire Blast, Scorch, Arcane Blast and Cone of Cold spells by 4%.",
"Increases the critical strike chance of your Fire Blast, Scorch, Arcane Blast and Cone of Cold spells by 6%."
		];
i++;



//Improved Fireball - Fire	
rank[i] = [
			"Reduces the casting time of your Fireball spell by 0.1 sec.",
			"Reduces the casting time of your Fireball spell by 0.2 sec.",
			"Reduces the casting time of your Fireball spell by 0.3 sec.",
			"Reduces the casting time of your Fireball spell by 0.4 sec.",
			"Reduces the casting time of your Fireball spell by 0.5 sec."
		];
i++;

//Ignite - Fire		
rank[i] = [
			"Your critical strikes from Fire damage spells cause the target to burn for an additional 8% of your spell's damage over 4 sec.",
			"Your critical strikes from Fire damage spells cause the target to burn for an additional 16% of your spell's damage over 4 sec.",
			"Your critical strikes from Fire damage spells cause the target to burn for an additional 24% of your spell's damage over 4 sec.",
			"Your critical strikes from Fire damage spells cause the target to burn for an additional 32% of your spell's damage over 4 sec.",
			"Your critical strikes from Fire damage spells cause the target to burn for an additional 40% of your spell's damage over 4 sec."
		];		
i++;	

//Burning Determination - Fire	
rank[i] = [
"When Interrupted or Silenced you have a 50% chance to become immune to both mechanics for 10 sec.",
"When Interrupted or Silenced you have a 100% chance to become immune to both mechanics for 10 sec."
		];
i++;

//World in Flames - Fire	
rank[i] = [
"Increases the critical strike chance of your Flamestrike, Pyroblast, Blast Wave, Dragon's Breath, Living Bomb, Blizzard and Arcane Explosion spells by 2%.",
"Increases the critical strike chance of your Flamestrike, Pyroblast, Blast Wave, Dragon's Breath, Living Bomb, Blizzard and Arcane Explosion spells by 4%.",
"Increases the critical strike chance of your Flamestrike, Pyroblast, Blast Wave, Dragon's Breath, Living Bomb, Blizzard and Arcane Explosion spells by 6%."
		]; 
i++;

//Flame Throwing - Fire	
rank[i] = [
			"Increases the range of your Fire spells by 3 yards.",
			"Increases the range of your Fire spells by 6 yards."
		];
i++;


//Impact - Fire			
rank[i] = [
			"Gives your damaging spells a 4% chance to stun the target for 2 sec.",
			"Gives your damaging spells a 7% chance to stun the target for 2 sec.",
			"Gives your damaging spells a 10% chance to stun the target for 2 sec."
		];
i++;

//Pyroblast - Fire	
rank[i] = [
		"<span style=text-align:left;float:left;>125 Mana</span><span style=text-align:right;float:right;>35 yd range</span><br><span style=text-align:left;float:left;>5 sec cast</span><br>Hurls an immense fiery boulder that causes 148 to 195 Fire damage and an additional 56 Fire damage over 12 sec.<br><br>\
		&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 150 Mana, 193-250 Damage, 72/12 sec<br>\
		&nbsp;Rank 3: 195 Mana, 270-343 Damage, 96/12 sec<br>\
		&nbsp;Rank 4: 240 Mana, 347-437 Damage, 124/12 sec<br>\
		&nbsp;Rank 5: 285 Mana, 427-536 Damage, 156/12 sec<br>\
		&nbsp;Rank 6: 335 Mana, 525-654 Damage, 188/12 sec<br>\
		&nbsp;Rank 7: 385 Mana, 625-776 Damage, 228/12 sec<br>\
		&nbsp;Rank 8: 440 Mana, 735-926 Damage, 268/12 sec<br>\
		&nbsp;Rank 9: 460 Mana, 876-1104 Damage, 324/12 sec"
		];		
i++;

//Burning Soul - Fire
rank[i] = [
			"Gives your Fire spells a 35% chance to not lose casting time when you take damage and reduces the threat caused by your Fire spells by 5%.",
			"Gives your Fire spells a 70% chance to not lose casting time when you take damage and reduces the threat caused by your Fire spells by 10%."
		];
i++;		

//Improved Scorch - Fire	
rank[i] = [
"Your damaging Scorch spells have a 33% chance to cause your target to be vulnerable to spell damage, increasing spell critical strike chance against that target by 2% andlasts 30 sec. Stacks up to 5 times.",
"Your damaging Scorch spells have a 66% chance to cause your target to be vulnerable to spell damage, increasing spell critical strike chance against that target by 2% andlasts 30 sec. Stacks up to 5 times.",
"Your damaging Scorch spells have a 100% chance to cause your target to be vulnerable to spell damage, increasing spell critical strike chance against that target by 2% andlasts 30 sec. Stacks up to 5 times."
		];
i++;		

//MOLTEN SHIELDS - Fire	
rank[i] = [
"Causes your Fire Ward and Frost Ward spells to have a 15% chance to reflect the warded spell while active. In addition, your Molten Armor has a 50% chance to affect ranged and spell attacks.",
"Causes your Fire Ward and Frost Ward spells to have a 30% chance to reflect the warded spell while active. In addition, your Molten Armor has a 50% chance to affect ranged and spell attacks."
		];
i++;		

//Master of Elements - Fire	
rank[i] = [
			"Your spell criticals will refund 10% of their base mana cost.",
			"Your spell criticals will refund 20% of their base mana cost.",
			"Your spell criticals will refund 30% of their base mana cost."
		]; i++;

//Playing with Fire - Fire	
rank[i] = [
			"Increases all spell damage caused by 1% and all spell damage taken by 1%.",
			"Increases all spell damage caused by 2% and all spell damage taken by 2%.",
			"Increases all spell damage caused by 3% and all spell damage taken by 3%."
		]; i++;

//Critical Mass - Fire	
rank[i] = [
			"Increases the critical strike chance of your fire spells by 2%.",
			"Increases the critical strike chance of your fire spells by 4%.",
			"Increases the critical strike chance of your fire spells by 6%."
		];i++;		

//Blast Wave - Fire	
rank[i] = [
			"215 Mana<br><span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>30 sec cooldown</span><br>A wave of flame radiates outward from the caster, damaging all enemies caught within the blast for 160 to 192 Fire damage, knocking them back and Dazing them for 6 sec.<br><br>\
		&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 270 Mana, 208-249 Damage<br>\
		&nbsp;Rank 3: 355 Mana, 285-338 Damage<br>\
		&nbsp;Rank 4: 450 Mana, 374-443 Damage<br>\
		&nbsp;Rank 5: 545 Mana, 473-556 Damage<br>\
		&nbsp;Rank 6: 595 Mana, 545-640 Damage<br>\
		&nbsp;Rank 7: 620 Mana, 629-738 Damage<br>\
		&nbsp;Rank 8: 795 Mana, 895-1052 Damage<br>\
		&nbsp;Rank 9: 620 Mana, 1047-1233 Damage<br>"
		]; i++;		

//Blazing Speed - Fire	
rank[i] = [
			"Gives you a 5% chance when hit by a melee or ranged attack to increase your movement speed by 50% and dispel all movement impairing effects. This effect lasts 8 sec.",
			"Gives you a 10% chance when hit by a melee or ranged attack to increase your movement speed by 50% and dispel all movement impairing effects. This effect lasts 8 sec."
		]; i++;

//Fire Power - Fire	
rank[i] = [
			"Increases the damage done by your fire spells by 2%.",
			"Increases the damage done by your fire spells by 4%.",
			"Increases the damage done by your fire spells by 6%.",
			"Increases the damage done by your fire spells by 8%.",
			"Increases the damage done by your fire spells by 10%."		
		]; i++;

//Pyromaniac - Fire	
rank[i] = [
			"Increases chance to critically hit and reduces the mana cost of all Fire spells by an additional 1%.",
			"Increases chance to critically hit and reduces the mana cost of all Fire spells by an additional 2%.",
			"Increases chance to critically hit and reduces the mana cost of all Fire spells by an additional 3%."			
		]; 
i++;
		
//Combustion - Fire
rank[i] = [
		"<span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>3 min cooldown</span><br>When activated, this spell causes each of your Fire damage spell hits to increase your critical strike chance with Fire damage spells by 10%. This effect lasts until you have caused 3 critical strikes with Fire spells."
		];
i++;
		
//Molten Fury - Fire	
rank[i] = [
"Increases damage of all spells against targets with less than 35% health by 6%.",
			"Increases damage of all spells against targets with less than 35% health by 12%."
		]; 
i++;

//Fiery Payback - Fire	
rank[i] = [
"When below 35% health all damage taken is reduced by 10% and your Pyroblast spell's cast time is reduced by 1.8 secs while the cooldown is increased by 2.5 secs.",
"When below 35% health all damage taken is reduced by 20% and your Pyroblast spell's cast time is reduced by 3.5 secs while the cooldown is increased by 5 secs."
		]; 
i++;

//Empowered Fireball - Fire	
rank[i] = [
			"Increases the damage of your Fireball spell by an amount equal to 5% of your spell power.",
			"Increases the damage of your Fireball spell by an amount equal to 10% of your spell power.",
			"Increases the damage of your Fireball spell by an amount equal to 15% of your spell power."
		]; 
i++;

//Firestarter - Fire	
rank[i] = [
"Your Blast Wave and Dragon's Breath spells have a 50% chance to make your next Flamestrike spell instant cast. Lasts 10 sec.",
"Your Blast Wave and Dragon's Breath spells have a 100% chance to make your next Flamestrike spell instant cast. Lasts 10 sec."
		]; i++;


//Dragon's Breath - Fire

rank[i] = [
		"<span style=text-align:left;float:left;>475 Mana</span><BR><span style=text-align:left;float:left;>Instant cast</span><span style=text-align:right;float:right;>20 sec cooldown</span><br>Targets in a cone in front of the caster take 382 to 442 Fire damage and are Disoriented for 5 sec. Any direct damaging attack will revive targets. Turns off your attack when used.<br><br>\
		&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 575 Mana, 463-536 Damage<br>\
		&nbsp;Rank 3: 660 Mana, 584-677 Damage<br>\
		&nbsp;Rank 4: 700 Mana, 692-802 Damage<br>\
		&nbsp;Rank 5: 900 Mana, 945-1096 Damage<br>\
		&nbsp;Rank 6: 1050 Mana, 1101-1279 Damage<br>\
		"
		];
i++;

//Hot Streak - Fire	
rank[i] = [
"Any time you score 2 spell criticals in a row using Fireball, Scorch, or Frostfire Bolt, you have a 33% chance the next Pyroblast spell cast within 10 sec will be instant cast.",
"Any time you score 2 spell criticals in a row using Fireball, Scorch, or Frostfire Bolt, you have a 66% chance the next Pyroblast spell cast within 10 sec will be instant cast.",
"Any time you score 2 spell criticals in a row using Fireball, Scorch, or Frostfire Bolt, you have a 100% chance the next Pyroblast spell cast within 10 sec will be instant cast."
		]; 
i++;


//Burnout - Fire	
rank[i] = [
"Increases your spell critical damage bonus with all Fire spells by 10% but your spell criticals cost an additional 1% of the spell's cost.",
"Increases your spell critical damage bonus with all Fire spells by 20% but your spell criticals cost an additional 2% of the spell's cost.",
"Increases your spell critical damage bonus with all Fire spells by 30% but your spell criticals cost an additional 3% of the spell's cost.",
"Increases your spell critical damage bonus with all Fire spells by 40% but your spell criticals cost an additional 4% of the spell's cost.",
"Increases your spell critical damage bonus with all Fire spells by 50% but your spell criticals cost an additional 5% of the spell's cost."
		]; 
i++;

//Living Bomb - Fire				
rank[i] = [
		"<span style=text-align:left;float:left;>295 Mana</span><span style=text-align:right;float:right;>35 yd range</span><br><br><span style=text-align:left;float:left;>Instant cast</span><BR>The target becomes a Living Bomb, taking 612 Fire damage over 12 sec. After 12 sec or when the spell is dispelled, the target explodes dealing 336 to 337 Fire damage to all enemies within 10 yards and knocking all targets up in the air. This spell can only affect one target at a time.<br><br>\
	&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 543 Mana, 1024 Fire Damage/12 sec, 563 to 564 Fire Damage explosion.<br>\
		&nbsp;Rank 3: 980 Mana, 1380 Fire Damage/12 sec, 759 Fire Damage explosion.<br>"
		];
i++;


//FROST TREE--------------------------------------------------------------------------------------		
//Frost Warding - Frost
rank[i]=[
"Increases the armor and resistances given by your Frost Armor and Ice Armor spells by 25%. In addition, gives your Frost Ward and Fire Ward a 15% chance to negate the warded damage spell and restore mana equal to the damage caused.",
"Increases the armor and resistances given by your Frost Armor and Ice Armor spells by 50%. In addition, gives your Frost Ward and Fire Ward a 30% chance to negate the warded damage spell and restore mana equal to the damage caused."
		];
i++;				



//Improved Frost Bolt - Frost
rank[i]=[
			"Reduces the casting time of your Frostbolt spell by 0.1 sec.",
			"Reduces the casting time of your Frostbolt spell by 0.2 sec.",
			"Reduces the casting time of your Frostbolt spell by 0.3 sec.",
			"Reduces the casting time of your Frostbolt spell by 0.4 sec.",
			"Reduces the casting time of your Frostbolt spell by 0.5 sec."
			];
i++;			
			

//Ice Floes - Frost	
rank[i] = [
		"Reduces the cooldown of your Frost Nova, Cone of Cold, Ice Block and Icy Veins spells by 7%.",
		"Reduces the cooldown of your Frost Nova, Cone of Cold, Ice Block and Icy Veins spells by 14%.",
		"Reduces the cooldown of your Frost Nova, Cone of Cold, Ice Block and Icy Veins spells by 20%."
		];
i++;
		
//Ice Shards - Frost
rank[i]=[
"Increases the critical strike damage bonus of your Frost spells by 20%.",
"Increases the critical strike damage bonus of your Frost spells by 40%.",
"Increases the critical strike damage bonus of your Frost spells by 60%.",
"Increases the critical strike damage bonus of your Frost spells by 80%.",
"Increases the critical strike damage bonus of your Frost spells by 100%."
		];
i++;		

//Frostbite - Frost
rank[i]=[
"Gives your Chill effects a 5% chance to freeze the target for 5 sec.",
"Gives your Chill effects a 10% chance to freeze the target for 5 sec.",
"Gives your Chill effects a 15% chance to freeze the target for 5 sec."
		];
i++;	

//Elemental Precision - Frost
rank[i]=[
"Reduces the mana cost and increases your chance to hit with Frost and Fire spells by 1%.",
"Reduces the mana cost and increases your chance to hit with Frost and Fire spells by 2%.",
"Reduces the mana cost and increases your chance to hit with Frost and Fire spells by 3%."
		];
i++;


//Permafrost - Frost
rank[i]=[
			"Increases the duration of your Chill effects by 1 sec and reduces the target's speed by an additional 4%.",
			"Increases the duration of your Chill effects by 2 sec and reduces the target's speed by an additional 7%.",
			"Increases the duration of your Chill effects by 3 sec and reduces the target's speed by an additional 10%."
		];
i++;		



//Piercing Ice - Frost
rank[i]=[
"Increases the damage done by your Frost spells by 2%.",
"Increases the damage done by your Frost spells by 4%.",
"Increases the damage done by your Frost spells by 6%."
		];
i++;		

//Icy Veins - Frost
rank[i]=[
		"<span style=text-align:left;float:left;>67 Mana</span><br><span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>3 min cooldown</span><br>Hastens your spellcasting, increasing spell casting speed by 20% and gives you 100% chance to avoid interruption caused by damage while casting. Lasts 20 sec."
		];
i++;		

//Improved Blizzard - Frost
rank[i]=[
"Adds a chill effect to your Blizzard spell. This effect lowers the target's movement speed by 30%. Lasts 1.50 sec.",
"Adds a chill effect to your Blizzard spell. This effect lowers the target's movement speed by 50%. Lasts 1.50 sec.",
"Adds a chill effect to your Blizzard spell. This effect lowers the target's movement speed by 75%. Lasts 1.50 sec."
		];
i++;		

//Arctic Reach - Frost
rank[i]=[
"Increases the range of your Frostbolt, Ice Lance, Deep Freeze and Blizzard spells and the radius of your Frost Nova and Cone of Cold spells by 10%.",
"Increases the range of your Frostbolt, Ice Lance, Deep Freeze and Blizzard spells and the radius of your Frost Nova and Cone of Cold spells by 20%."
		];
i++;		
		

//Frost Channeling - Frost
rank[i]=[
"Reduces the mana cost of all spells by 4% and reduces the threat caused by your Frost spells by 4%.",
"Reduces the mana cost of all spells by 7% and reduces the threat caused by your Frost spells by 7%.",
"Reduces the mana cost of all spells by 10% and reduces the threat caused by your Frost spells by 10%."
		];
i++;		
		
//Shatter - Frost
rank[i]=[
"Increases the critical strike chance of all your spells against frozen targets by 10%.",
"Increases the critical strike chance of all your spells against frozen targets by 20%.",
"Increases the critical strike chance of all your spells against frozen targets by 30%.",
"Increases the critical strike chance of all your spells against frozen targets by 40%.",
"Increases the critical strike chance of all your spells against frozen targets by 50%."
		];
i++;



//Cold Snap - Frost
rank[i]=[
		"<span style=text-align:left;float:left;>Instant</span><span style=text-align:right;float:right;>8 min cooldown</span><br>When activated, this spell finishes the cooldown on all Frost spells you recently cast."
		];
i++;	
		
	
//Improved Cone of Cold - Frost
rank[i]=[
"Increases the damage dealt by your Cone of Cold spell by 15%.",
"Increases the damage dealt by your Cone of Cold spell by 25%.",
"Increases the damage dealt by your Cone of Cold spell by 35%."
		];
i++;	

//Frozen Core - Frost
rank[i]=[
"Reduces the damage taken by Frost and Fire effects by 2%.",
"Reduces the damage taken by Frost and Fire effects by 4%.",
"Reduces the damage taken by Frost and Fire effects by 6%."
		];
i++;

//Cold as Ice - Frost
rank[i]=[
"Reduces the cooldown of your Cold Snap, Ice Barrier, Deep Freeze and Summon Water Elemental spells by 10%.",
"Reduces the cooldown of your Cold Snap, Ice Barrier, Deep Freeze and Summon Water Elemental spells by 20%."
		];
i++;

//Winter's Chill - Frost
rank[i]=[
"Gives your Frost damage spells a 33% chance to apply the Winter's Chill effect, which increases the chance Arcane, Fire and Frost Spells will critically hit the target by 2% for 15 sec. Stacks up to 5 times.",
"Gives your Frost damage spells a 66% chance to apply the Winter's Chill effect, which increases the chance Arcane, Fire and Frost Spells will critically hit the target by 2% for 15 sec. Stacks up to 5 times.",
"Gives your Frost damage spells a 100% chance to apply the Winter's Chill effect, which increases the chance Arcane, Fire and Frost Spells will critically hit the target by 2% for 15 sec. Stacks up to 5 times."
		];
i++;

//Shattered Barrier - Frost	
rank[i] = [
"Gives your Ice Barrier spell a 50% chance to freeze all enemies within 10 yds for 8 sec when it is destroyed.",
"Gives your Ice Barrier spell a 100% chance to freeze all enemies within 10 yds for 8 sec when it is destroyed."
		];
i++;

//Ice Barrier - Frost
rank[i]=[
		"<span style=text-align:left;float:left;>305 Mana</span><br><span style=text-align:left;float:left;>Instant cast</span><span style=text-align:right;float:right;>30 sec cooldown</span><br>Instantly shields you, absorbing 454 damage. Lasts 1 min. While the shield holds, spells will not be interrupted.<br><br>\
		&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: Absorbs 568 Damage<br>\
		&nbsp;Rank 3: Absorbs 699 Damage<br>\
		&nbsp;Rank 4: Absorbs 842 Damage<br>\
		&nbsp;Rank 5: Absorbs 951 Damage<br>\
		&nbsp;Rank 6: Absorbs 1103 Damage<br>\
		&nbsp;Rank 7: Absorbs 2860 Damage<br>\
		&nbsp;Rank 8: Absorbs 3300 Damage<br>"
		];
i++;	

//Arctic Winds - Frost
rank[i]=[
"Increases all Frost damage you cause by 1% and reduces the chance melee and ranged attacks will hit you by 1%.",
"Increases all Frost damage you cause by 2% and reduces the chance melee and ranged attacks will hit you by 2%.",
"Increases all Frost damage you cause by 3% and reduces the chance melee and ranged attacks will hit you by 3%.",
"Increases all Frost damage you cause by 4% and reduces the chance melee and ranged attacks will hit you by 4%.",
"Increases all Frost damage you cause by 5% and reduces the chance melee and ranged attacks will hit you by 5%."
		];
i++;

//Empowered Frostbolt - Frost
rank[i]=[
"Increases the damage of your Frostbolt spell by an amount equal to 5% of your spell power and increases the critical strike chance by an additional 2%.",
"Increases the damage of your Frostbolt spell by an amount equal to 10% of your spell power and increases the critical strike chance by an additional 4%."
		];
i++;

//Fingers of Frost - Frost
rank[i]=[
"Gives your Frost damage spells a 5% chance to grant you the Fingers of Frost effect, which treats your next 2 Frost spells cast as if the target were Frozen. Lasts 15 sec.",
"Gives your Frost damage spells a 10% chance to grant you the Fingers of Frost effect, which treats your next 2 Frost spells cast as if the target were Frozen. Lasts 15 sec."
		];
i++;

//Brain Freeze - Frost
rank[i]=[
"Your Frost damage spells have a 5% chance to cause your next Fireball spell to be instant cast and cost no mana.",
"Your Frost damage spells have a 10% chance to cause your next Fireball spell to be instant cast and cost no mana.",
"Your Frost damage spells have a 15% chance to cause your next Fireball spell to be instant cast and cost no mana."
		];
i++;

//Summon Water Elemental - Frost
rank[i]=[
		"358 Mana<br><span style=text-align:left;float:left;>Instant cast</span><span style=text-align:right;float:right;>3 min cooldown</span><br>Summon a Water Elemental to fight for the caster for 45 sec."
		];
i++;

//Improved Water Elemental - Frost
rank[i]=[
"Increases the duration of your Summon Water Elemental spell by 5 sec and your Water Elemental restores mana to all party or raid members within 100 yds an amount equal to 0.2% of their total mana every 5 sec.",
"Increases the duration of your Summon Water Elemental spell by 10 sec and your Water Elemental restores mana to all party or raid members within 100 yds an amount equal to 0.4% of their total mana every 5 sec.",
"Increases the duration of your Summon Water Elemental spell by 15 sec and your Water Elemental restores mana to all party or raid members within 100 yds an amount equal to 0.6% of their total mana every 5 sec."
		];
i++;

//Chilled to the Bone - Frost
rank[i]=[
"Increases the damage caused by your Frostbolt, Frostfire Bolt and Ice Lance spells by 1% and reduces the movement speed of all chilled targets by an additional 2%",
"Increases the damage caused by your Frostbolt, Frostfire Bolt and Ice Lance spells by 2% and reduces the movement speed of all chilled targets by an additional 4%",
"Increases the damage caused by your Frostbolt, Frostfire Bolt and Ice Lance spells by 3% and reduces the movement speed of all chilled targets by an additional 6%",
"Increases the damage caused by your Frostbolt, Frostfire Bolt and Ice Lance spells by 4% and reduces the movement speed of all chilled targets by an additional 8%",
"Increases the damage caused by your Frostbolt, Frostfire Bolt and Ice Lance spells by 5% and reduces the movement speed of all chilled targets by an additional 10%"
		];
i++;

//Deep Freeze - Frost
rank[i]=[
"<span style=text-align:left;float:left;>222 Mana</span><span style=text-align:right;float:right;>30 yd range</span><br><span style=text-align:left;float:left;>1.5 sec cast</span><span style=text-align:right;float:right;>30 sec cooldown</span><br>Causes 694 to 806 Frost damage and stuns the target for 5 sec. Only usable on Frozen targets.<br><br>\
		&nbsp;Trainable Ranks Listed Below:<br>\
		&nbsp;Rank 2: 787 to 913 Frost Damage<br>\
		&nbsp;Rank 3: 1018 to 1182 Frost Damage<br>\
		&nbsp;Rank 4: 1319 to 1531 Frost Damage"
		];
i++;
		
//Frost Talents End^^
jsLoaded=true;//needed for ajax script loading

