var images = new Array();
images[0] = 'archer_default.png';
images[1] = 'archer_hover.png';
images[2] = 'archer_selected.png';
images[3] = 'assassin_default.png';
images[4] = 'assassin_hover.png';
images[5] = 'assassin_selected.png';
images[6] = 'background_default.jpg';
images[7] = 'blank.gif';
images[8] = 'mage_default.png';
images[9] = 'mage_hover.png';
images[10] = 'mage_selected.png';
images[11] = 'priest_default.png';
images[12] = 'priest_hover.png';
images[13] = 'priest_selected.png';
images[14] = 'upgrade_default.gif';
images[15] = 'upgrade_hover.gif';
images[16] = 'upgrade_selected.gif';
images[17] = 'warrior_default.png';
images[18] = 'warrior_hover.png';
images[19] = 'warrior_selected.png';
images[20] = 'class_hover.jpg';
images[21] = 'class_selected.jpg';
images[22] = 'class_default.jpg';
images[23] = 'warrior_plate.png';
images[24] = 'priest_plate.png';
images[25] = 'mage_plate.png';
images[26] = 'assassin_plate.png';
images[27] = 'archer_plate.png';
images[28] = 'default_plate.png';
images[29] = 'skill_title.jpg';
images[30] = 'animation.gif';
images[31] = 'link.png';
images[32] = 'level.jpg';
images[33] = 'reset.png';
images[34] = 'balance.jpg';

var class_positions = new Array();
class_positions['archer'] = '0 0';
class_positions['assassin'] = '-70 0';
class_positions['warrior'] = '-141 0';
class_positions['mage'] = '-279 0';
class_positions['priest'] = '-209 0';

//classes mainly used for get string parsing
var classes = new Array();
classes[0] = 'archer';
classes[1] = 'assassin';
classes[2] = 'warrior';
classes[3] = 'mage';
classes[4] = 'priest';

var tclasses = new Array();
tclasses['archer'] = '0';
tclasses['assassin'] = '1';
tclasses['warrior'] = '2';
tclasses['mage'] = '3';
tclasses['priest'] = '4';

//positions for string parsing
var positions = new Array(31);
positions[1] = '00';
positions[2] = '11';
positions[3] = '12';
positions[4] = '13';
positions[5] = '14';
positions[6] = '15';
positions[7] = '16';
positions[8] = '21';
positions[9] = '22';
positions[10] = '23';
positions[11] = '24';
positions[12] = '25';
positions[13] = '26';
positions[14] = '31';
positions[15] = '32';
positions[16] = '33';
positions[17] = '34';
positions[18] = '35';
positions[19] = '36';
positions[20] = '41';
positions[21] = '42';
positions[22] = '43';
positions[23] = '44';
positions[24] = '45';
positions[25] = '46';
positions[26] = '51';
positions[27] = '52';
positions[28] = '53';
positions[29] = '54';
positions[30] = '55';
positions[31] = '56';

//lots and lots of data
var treeInfo = new Array ();
//*** ARCHER ***//
treeInfo['archer'] = new Array();
treeInfo['archer']['name'] = 'Archer';
treeInfo['archer']['button'] = new Array();
treeInfo['archer']['button']['archer13'] = new Array();
treeInfo['archer']['button']['archer13']['class'] = "button13";
treeInfo['archer']['button']['archer13']['position'] = '-148 -67';
treeInfo['archer']['button']['archer13']['name'] = 'Flare Arrow';
treeInfo['archer']['button']['archer13']['desc'] = 'Attatches a bright flare to the tip, useful for rangefinding and marking areas. No extra damage.';
treeInfo['archer']['button']['archer13']['cost'] = 1;
treeInfo['archer']['button']['archer13']['rdepend'] = 'archer23';
treeInfo['archer']['button']['archer14'] = new Array();
treeInfo['archer']['button']['archer14']['class'] = "button14";
treeInfo['archer']['button']['archer14']['position'] = '-214 -67';
treeInfo['archer']['button']['archer14']['name'] = 'Fast Reload';
treeInfo['archer']['button']['archer14']['desc'] = 'A coating of goose grease makes your arrows slide from the quiver at a much increased rate.';
treeInfo['archer']['button']['archer14']['cost'] = 1;
treeInfo['archer']['button']['archer14']['media'] = 0;
treeInfo['archer']['button']['archer14']['upgrade'] = new Array();
treeInfo['archer']['button']['archer14']['upgrade']['level2'] = new Array();
treeInfo['archer']['button']['archer14']['upgrade']['level2']['class'] = 'archer14_2';
treeInfo['archer']['button']['archer14']['upgrade']['level2']['name'] = 'Fast Reload Level 2';
treeInfo['archer']['button']['archer14']['upgrade']['level2']['desc'] = 'A spring-loaded quiver makes arrows leap into your hand ready for firing.';
treeInfo['archer']['button']['archer14']['upgrade']['level2']['cost'] = 1;
treeInfo['archer']['button']['archer16'] = new Array();
treeInfo['archer']['button']['archer16']['class'] = "button16";
treeInfo['archer']['button']['archer16']['position'] = '-345 -67';
treeInfo['archer']['button']['archer16']['name'] = 'Composite Bow';
treeInfo['archer']['button']['archer16']['desc'] = 'Increases your bow\'s drawing capacity, boosting range and damage.';
treeInfo['archer']['button']['archer16']['cost'] = 1;
treeInfo['archer']['button']['archer16']['media'] = 0;
treeInfo['archer']['button']['archer16']['rdepend'] = 'archer36';
treeInfo['archer']['button']['archer16']['upgrade'] = new Array();
treeInfo['archer']['button']['archer16']['upgrade']['level2'] = new Array();
treeInfo['archer']['button']['archer16']['upgrade']['level2']['class'] = 'archer16_2';
treeInfo['archer']['button']['archer16']['upgrade']['level2']['name'] = 'Composite Bow Level 2';
treeInfo['archer']['button']['archer16']['upgrade']['level2']['desc'] = 'A tighter bowstring delivers even more power to the projectile.';
treeInfo['archer']['button']['archer16']['upgrade']['level2']['cost'] = 1;
treeInfo['archer']['button']['archer16']['upgrade']['level3'] = new Array();
treeInfo['archer']['button']['archer16']['upgrade']['level3']['class'] = 'archer16_3';
treeInfo['archer']['button']['archer16']['upgrade']['level3']['name'] = 'Composite Bow Level 3';
treeInfo['archer']['button']['archer16']['upgrade']['level3']['desc'] = 'Strengthened battens bonded to your bow boost the flexibility and power delivery, increasing range and damage.';
treeInfo['archer']['button']['archer16']['upgrade']['level3']['cost'] = 1;
treeInfo['archer']['button']['archer16']['upgrade']['level4'] = new Array();
treeInfo['archer']['button']['archer16']['upgrade']['level4']['class'] = 'archer16_4';
treeInfo['archer']['button']['archer16']['upgrade']['level4']['name'] = 'Composite Bow Level 4';
treeInfo['archer']['button']['archer16']['upgrade']['level4']['desc'] = 'Re-engineering your bow with a magical composite material, this is the most powerful archery device available.';
treeInfo['archer']['button']['archer16']['upgrade']['level4']['cost'] = 1;
treeInfo['archer']['button']['archer21'] = new Array();
treeInfo['archer']['button']['archer21']['class'] = "button21";
treeInfo['archer']['button']['archer21']['position'] = '-17 -123';
treeInfo['archer']['button']['archer21']['name'] = 'Poison Arrow';
treeInfo['archer']['button']['archer21']['desc'] = 'Target struck by this venomous missile will be disoriented.';
treeInfo['archer']['button']['archer21']['cost'] = 2;
treeInfo['archer']['button']['archer21']['upgrade'] = new Array();
treeInfo['archer']['button']['archer21']['upgrade']['level2'] = new Array();
treeInfo['archer']['button']['archer21']['upgrade']['level2']['class'] = 'archer21_2';
treeInfo['archer']['button']['archer21']['upgrade']['level2']['name'] = 'Poison Arrow Level 2';
treeInfo['archer']['button']['archer21']['upgrade']['level2']['desc'] = 'A double dose of toxin causes hallucinations and increased duration.';
treeInfo['archer']['button']['archer21']['upgrade']['level2']['cost'] = 1;
treeInfo['archer']['button']['archer23'] = new Array();
treeInfo['archer']['button']['archer23']['class'] = "button23";
treeInfo['archer']['button']['archer23']['position'] = '-148 -123';
treeInfo['archer']['button']['archer23']['name'] = 'Burning Arrow';
treeInfo['archer']['button']['archer23']['desc'] = 'A flaming arrowhead does increased damage and may set targets alight.';
treeInfo['archer']['button']['archer23']['cost'] = 2;
treeInfo['archer']['button']['archer23']['depend'] = 'archer13';
treeInfo['archer']['button']['archer25'] = new Array();
treeInfo['archer']['button']['archer25']['class'] = "button25";
treeInfo['archer']['button']['archer25']['position'] = '-279 -123';
treeInfo['archer']['button']['archer25']['name'] = 'Eagle Eye';
treeInfo['archer']['button']['archer25']['desc'] = 'Increase your targeting ability with a closer view of your enemies.';
treeInfo['archer']['button']['archer25']['cost'] = 2;
treeInfo['archer']['button']['archer25']['upgrade'] = new Array();
treeInfo['archer']['button']['archer25']['upgrade']['level2'] = new Array();
treeInfo['archer']['button']['archer25']['upgrade']['level2']['class'] = 'archer25_2';
treeInfo['archer']['button']['archer25']['upgrade']['level2']['name'] = 'Eagle Eye Level 2';
treeInfo['archer']['button']['archer25']['upgrade']['level2']['desc'] = 'Aim at the smallest, most distant target with ease.';
treeInfo['archer']['button']['archer25']['upgrade']['level2']['cost'] = 1;
treeInfo['archer']['button']['archer36'] = new Array();
treeInfo['archer']['button']['archer36']['class'] = "button36";
treeInfo['archer']['button']['archer36']['position'] = '-345 -179';
treeInfo['archer']['button']['archer36']['name'] = 'Double Arrow';
treeInfo['archer']['button']['archer36']['desc'] = 'Draw, nock and fire two arrows simultaneously. The increased hit chance is counterbalanced by the reduced range and accuracy.';
treeInfo['archer']['button']['archer36']['cost'] = 3;
treeInfo['archer']['button']['archer36']['depend'] = 'archer16';
treeInfo['archer']['button']['archer36']['rdepend'] = 'archer56';
treeInfo['archer']['button']['archer42'] = new Array();
treeInfo['archer']['button']['archer42']['class'] = "button42";
treeInfo['archer']['button']['archer42']['position'] = '-82 -235';
treeInfo['archer']['button']['archer42']['name'] = 'Bramble Arrow';
treeInfo['archer']['button']['archer42']['desc'] = 'An evil barbed head on this arrow causes extreme wracking pain and slows movement. Target struck by this venomous missile will be slowed.';
treeInfo['archer']['button']['archer42']['cost'] = 4;
treeInfo['archer']['button']['archer42']['rdepend'] = 'archer52';
treeInfo['archer']['button']['archer52'] = new Array();
treeInfo['archer']['button']['archer52']['class'] = "button52";
treeInfo['archer']['button']['archer52']['position'] = '-82 -291';
treeInfo['archer']['button']['archer52']['name'] = 'Drill Arrow';
treeInfo['archer']['button']['archer52']['desc'] = 'The spiralling steel tip of this unstoppable arrow drills straight through armour and flesh, doing increased damage.';
treeInfo['archer']['button']['archer52']['cost'] = 5;
treeInfo['archer']['button']['archer52']['depend'] = 'archer42'
treeInfo['archer']['button']['archer56'] = new Array();
treeInfo['archer']['button']['archer56']['class'] = "button56";
treeInfo['archer']['button']['archer56']['position'] = '-345 -291';
treeInfo['archer']['button']['archer56']['name'] = 'Triple Arrow';
treeInfo['archer']['button']['archer56']['desc'] = 'Fire three arrows simultaneously. This is slow and inaccurate, but lethal at close range.';
treeInfo['archer']['button']['archer56']['cost'] = 5;
treeInfo['archer']['button']['archer56']['depend'] = 'archer36';

//*** WARRIOR ***//
treeInfo['warrior'] = new Array();
treeInfo['warrior']['name'] = 'Warrior';
treeInfo['warrior']['button'] = new Array();
treeInfo['warrior']['button']['warrior13'] = new Array();
treeInfo['warrior']['button']['warrior13']['class'] = "button13";
treeInfo['warrior']['button']['warrior13']['position'] = '-148 -67';
treeInfo['warrior']['button']['warrior13']['name'] = 'Second Breath';
treeInfo['warrior']['button']['warrior13']['desc'] = 'Boost your Stamina bar.';
treeInfo['warrior']['button']['warrior13']['cost'] = 1;
treeInfo['warrior']['button']['warrior13']['media'] = 0;
treeInfo['warrior']['button']['warrior13']['rdepend'] = 'warrior33';
treeInfo['warrior']['button']['warrior13']['upgrade'] = new Array();
treeInfo['warrior']['button']['warrior13']['upgrade']['level2'] = new Array();
treeInfo['warrior']['button']['warrior13']['upgrade']['level2']['class'] = 'warrior13_2';
treeInfo['warrior']['button']['warrior13']['upgrade']['level2']['name'] = 'Second Breath Level 2';
treeInfo['warrior']['button']['warrior13']['upgrade']['level2']['desc'] = 'Pilates and circuit training have made you one tough hombre.';
treeInfo['warrior']['button']['warrior13']['upgrade']['level2']['cost'] = 1;
treeInfo['warrior']['button']['warrior13']['upgrade']['level3'] = new Array();
treeInfo['warrior']['button']['warrior13']['upgrade']['level3']['class'] = 'archer13_3';
treeInfo['warrior']['button']['warrior13']['upgrade']['level3']['name'] = 'Second Breath Level 3';
treeInfo['warrior']['button']['warrior13']['upgrade']['level3']['desc'] = 'Extensive hyperbaric ergometer exercise has boosted your haemoglobin levels through the roof. Your stamina is unparalleled.';
treeInfo['warrior']['button']['warrior13']['upgrade']['level3']['cost'] = 1;
treeInfo['warrior']['button']['warrior14'] = new Array();
treeInfo['warrior']['button']['warrior14']['class'] = "button14";
treeInfo['warrior']['button']['warrior14']['position'] = '-214 -67';
treeInfo['warrior']['button']['warrior14']['name'] = 'Strength';
treeInfo['warrior']['button']['warrior14']['desc'] = 'All blows do increased damage.';
treeInfo['warrior']['button']['warrior14']['cost'] = 1;
treeInfo['warrior']['button']['warrior14']['media'] = 0;
treeInfo['warrior']['button']['warrior15'] = new Array();
treeInfo['warrior']['button']['warrior15']['class'] = "button15";
treeInfo['warrior']['button']['warrior15']['position'] = '-279 -67';
treeInfo['warrior']['button']['warrior15']['name'] = 'Safeguard';
treeInfo['warrior']['button']['warrior15']['desc'] = 'Project a force shield which can protect your allies. Crouch and shield to activate.';
treeInfo['warrior']['button']['warrior15']['cost'] = 1;
treeInfo['warrior']['button']['warrior15']['rdepend'] = 'warrior35';
treeInfo['warrior']['button']['warrior16'] = new Array();
treeInfo['warrior']['button']['warrior16']['class'] = "button16";
treeInfo['warrior']['button']['warrior16']['position'] = '-345 -67';
treeInfo['warrior']['button']['warrior16']['name'] = 'Reinforced Armour';
treeInfo['warrior']['button']['warrior16']['desc'] = 'Upgrade your armour to reduce the impact of physical damage.';
treeInfo['warrior']['button']['warrior16']['cost'] = 1;
treeInfo['warrior']['button']['warrior16']['media'] = 0;
treeInfo['warrior']['button']['warrior16']['upgrade'] = new Array();
treeInfo['warrior']['button']['warrior16']['upgrade']['level2'] = new Array();
treeInfo['warrior']['button']['warrior16']['upgrade']['level2']['class'] = 'warrior16_2';
treeInfo['warrior']['button']['warrior16']['upgrade']['level2']['name'] = 'Reinforced Armour Level 2';
treeInfo['warrior']['button']['warrior16']['upgrade']['level2']['desc'] = 'The extra filigree twirls and twiddles provide even more \'fractal\' protection, says your armourer. That\'s why it costs more.';
treeInfo['warrior']['button']['warrior16']['upgrade']['level2']['cost'] = 1;
treeInfo['warrior']['button']['warrior16']['upgrade']['level3'] = new Array();
treeInfo['warrior']['button']['warrior16']['upgrade']['level3']['class'] = 'warrior16_3';
treeInfo['warrior']['button']['warrior16']['upgrade']['level3']['name'] = 'Reinforced Armour Level 3';
treeInfo['warrior']['button']['warrior16']['upgrade']['level3']['desc'] = 'Specially enchanted bees have laid down a honeycomb of steel all over the inside of your armour. It\'s a bit scratchy, but very safe!';
treeInfo['warrior']['button']['warrior16']['upgrade']['level3']['cost'] = 1;
treeInfo['warrior']['button']['warrior21'] = new Array();
treeInfo['warrior']['button']['warrior21']['class'] = "button21";
treeInfo['warrior']['button']['warrior21']['position'] = '-17 -123';
treeInfo['warrior']['button']['warrior21']['name'] = 'Magic Resistance';
treeInfo['warrior']['button']['warrior21']['desc'] = 'Some magical protection is provided by your thaumionic resistant undergarments. NOTE - this applies to ALL magic.';
treeInfo['warrior']['button']['warrior21']['cost'] = 2;
treeInfo['warrior']['button']['warrior21']['media'] = 0;
treeInfo['warrior']['button']['warrior21']['upgrade'] = new Array();
treeInfo['warrior']['button']['warrior21']['upgrade']['level2'] = new Array();
treeInfo['warrior']['button']['warrior21']['upgrade']['level2']['class'] = 'warrior21_2';
treeInfo['warrior']['button']['warrior21']['upgrade']['level2']['name'] = 'Magic Resistance Level 2';
treeInfo['warrior']['button']['warrior21']['upgrade']['level2']['desc'] = 'Specially moulded copper and bat guano cords under your armour channel a percentage of all magic straight to ground.';
treeInfo['warrior']['button']['warrior21']['upgrade']['level2']['cost'] = 1;
treeInfo['warrior']['button']['warrior21']['upgrade']['level3'] = new Array();
treeInfo['warrior']['button']['warrior21']['upgrade']['level3']['class'] = 'warrior21_3';
treeInfo['warrior']['button']['warrior21']['upgrade']['level3']['name'] = 'Magic Resistance Level 3';
treeInfo['warrior']['button']['warrior21']['upgrade']['level3']['desc'] = 'Your armour is bolstered with parallelised anti-thaumionic resilin underlays, creating a medium strength anti-magic cage.';
treeInfo['warrior']['button']['warrior21']['upgrade']['level3']['cost'] = 1;
treeInfo['warrior']['button']['warrior22'] = new Array();
treeInfo['warrior']['button']['warrior22']['class'] = "button22";
treeInfo['warrior']['button']['warrior22']['position'] = '-82 -123';
treeInfo['warrior']['button']['warrior22']['name'] = 'Combat Ready';
treeInfo['warrior']['button']['warrior22']['desc'] = 'Enter combat stances faster by having your armourer whittle excess weight from your blade. Yes, you pay more for less metal!';
treeInfo['warrior']['button']['warrior22']['cost'] = 2;
treeInfo['warrior']['button']['warrior22']['media'] = 0;
treeInfo['warrior']['button']['warrior22']['rdepend'] = 'warrior32';
treeInfo['warrior']['button']['warrior32'] = new Array();
treeInfo['warrior']['button']['warrior32']['class'] = "button32";
treeInfo['warrior']['button']['warrior32']['position'] = '-82 -179';
treeInfo['warrior']['button']['warrior32']['name'] = 'Leaping Attack';
treeInfo['warrior']['button']['warrior32']['desc'] = 'Using a full stamina bar, charge at an enemy for a second or so, then press attack to deliver a swift and damaging leaping move.';
treeInfo['warrior']['button']['warrior32']['cost'] = 3;
treeInfo['warrior']['button']['warrior32']['media'] = 0;
treeInfo['warrior']['button']['warrior32']['depend'] = 'warrior22';
treeInfo['warrior']['button']['warrior33'] = new Array();
treeInfo['warrior']['button']['warrior33']['class'] = "button33";
treeInfo['warrior']['button']['warrior33']['position'] = '-148 -179';
treeInfo['warrior']['button']['warrior33']['name'] = 'Last Stand';
treeInfo['warrior']['button']['warrior33']['desc'] = 'Boost your health for a limited time by channelling battle fury. WARNING - once your adrenaline runs out, you\'re going to crash.';
treeInfo['warrior']['button']['warrior33']['cost'] = 3;
treeInfo['warrior']['button']['warrior33']['depend'] = 'warrior13';
treeInfo['warrior']['button']['warrior33']['rdepend'] = 'warrior53';
treeInfo['warrior']['button']['warrior35'] = new Array();
treeInfo['warrior']['button']['warrior35']['class'] = "button35";
treeInfo['warrior']['button']['warrior35']['position'] = '-279 -179';
treeInfo['warrior']['button']['warrior35']['name'] = 'Charge';
treeInfo['warrior']['button']['warrior35']['desc'] = 'Hold your shield in defense posture, then hold Attack to deliver a running bashing shield charge.';
treeInfo['warrior']['button']['warrior35']['cost'] = 3;
treeInfo['warrior']['button']['warrior35']['depend'] = 'warrior15';
treeInfo['warrior']['button']['warrior53'] = new Array();
treeInfo['warrior']['button']['warrior53']['class'] = "button53";
treeInfo['warrior']['button']['warrior53']['position'] = '-148 -291';
treeInfo['warrior']['button']['warrior53']['name'] = 'Battle Cry';
treeInfo['warrior']['button']['warrior53']['desc'] = 'All nearby friends get a temporary health boost thanks to your rousing battle cry.';
treeInfo['warrior']['button']['warrior53']['cost'] = 5;
treeInfo['warrior']['button']['warrior53']['media'] = 0;
treeInfo['warrior']['button']['warrior53']['depend'] = 'warrior33';

//*** MAGE ***//
treeInfo['mage'] = new Array();
treeInfo['mage']['name'] = 'Mage';
treeInfo['mage']['base'] = new Array();
treeInfo['mage']['base']['name'] = 'Eldritch Arrow';
treeInfo['mage']['base']['desc'] = 'Loose a sequence of magic missiles.';
treeInfo['mage']['button'] = new Array();
treeInfo['mage']['button']['mage11'] = new Array();
treeInfo['mage']['button']['mage11']['class'] = "button11";
treeInfo['mage']['button']['mage11']['position'] = '-17 -67';
treeInfo['mage']['button']['mage11']['name'] = 'Flame Arrow';
treeInfo['mage']['button']['mage11']['desc'] = 'Loose a sequence of firey missiles. NOTE - hold down fire to guide flying missile(s) to a specific target.';
treeInfo['mage']['button']['mage11']['cost'] = 1;
treeInfo['mage']['button']['mage11']['rdepend'] = 'mage21';
treeInfo['mage']['button']['mage14'] = new Array();
treeInfo['mage']['button']['mage14']['class'] = "button14";
treeInfo['mage']['button']['mage14']['position'] = '-214 -67';
treeInfo['mage']['button']['mage14']['name'] = 'Magic Shield';
treeInfo['mage']['button']['mage14']['desc'] = 'Project a force shield which protects from magical effects, or hold right click button to cast it upon yourself! NOTE - do not try to cast spells inside the shield!';
treeInfo['mage']['button']['mage14']['cost'] = 1;
treeInfo['mage']['button']['mage14']['media'] = 0;
treeInfo['mage']['button']['mage16'] = new Array();
treeInfo['mage']['button']['mage16']['class'] = "button16";
treeInfo['mage']['button']['mage16']['position'] = '-345 -67';
treeInfo['mage']['button']['mage16']['name'] = 'Lightning Shock';
treeInfo['mage']['button']['mage16']['desc'] = 'Fire small moving bolts of electricity.';
treeInfo['mage']['button']['mage16']['cost'] = 1;
treeInfo['mage']['button']['mage16']['rdepend'] = 'mage26';
treeInfo['mage']['button']['mage16']['upgrade'] = new Array();
treeInfo['mage']['button']['mage16']['upgrade']['level2'] = new Array();
treeInfo['mage']['button']['mage16']['upgrade']['level2']['class'] = 'mage16_2';
treeInfo['mage']['button']['mage16']['upgrade']['level2']['name'] = 'Lightning Shock Level 2';
treeInfo['mage']['button']['mage16']['upgrade']['level2']['desc'] = 'Hold down fire for more potent bolts.';
treeInfo['mage']['button']['mage16']['upgrade']['level2']['cost'] = 1;
treeInfo['mage']['button']['mage16']['upgrade']['level3'] = new Array();
treeInfo['mage']['button']['mage16']['upgrade']['level3']['class'] = 'mage16_3';
treeInfo['mage']['button']['mage16']['upgrade']['level3']['name'] = 'Lightning Shock Level 3';
treeInfo['mage']['button']['mage16']['upgrade']['level3']['desc'] = 'Hold down fire for big bouncy bolts.';
treeInfo['mage']['button']['mage16']['upgrade']['level3']['cost'] = 1;
treeInfo['mage']['button']['mage21'] = new Array();
treeInfo['mage']['button']['mage21']['class'] = "button21";
treeInfo['mage']['button']['mage21']['position'] = '-17 -123';
treeInfo['mage']['button']['mage21']['name'] = 'Fireball';
treeInfo['mage']['button']['mage21']['desc'] = 'A guided ball of explosive flame.';
treeInfo['mage']['button']['mage21']['cost'] = 2;
treeInfo['mage']['button']['mage21']['depend'] = 'mage11';
treeInfo['mage']['button']['mage21']['rdepend'] = 'mage31';
treeInfo['mage']['button']['mage23'] = new Array();
treeInfo['mage']['button']['mage23']['class'] = "button23";
treeInfo['mage']['button']['mage23']['position'] = '-148 -123';
treeInfo['mage']['button']['mage23']['name'] = 'Magic Affinity';
treeInfo['mage']['button']['mage23']['desc'] = 'Increase your reserves of magical strength.';
treeInfo['mage']['button']['mage23']['cost'] = 2;
treeInfo['mage']['button']['mage23']['media'] = 0;
treeInfo['mage']['button']['mage23']['upgrade'] = new Array();
treeInfo['mage']['button']['mage23']['upgrade']['level2'] = new Array();
treeInfo['mage']['button']['mage23']['upgrade']['level2']['class'] = 'mage23_2';
treeInfo['mage']['button']['mage23']['upgrade']['level2']['name'] = 'Magic Affinity Level 2';
treeInfo['mage']['button']['mage23']['upgrade']['level2']['desc'] = 'Store the most magical strength possible.';
treeInfo['mage']['button']['mage23']['upgrade']['level2']['cost'] = 1;
treeInfo['mage']['button']['mage25'] = new Array();
treeInfo['mage']['button']['mage25']['class'] = "button25";
treeInfo['mage']['button']['mage25']['position'] = '-279 -123';
treeInfo['mage']['button']['mage25']['name'] = 'Quicker Regen';
treeInfo['mage']['button']['mage25']['desc'] = 'Recover magical energy faster.';
treeInfo['mage']['button']['mage25']['cost'] = 2;
treeInfo['mage']['button']['mage25']['media'] = 0;
treeInfo['mage']['button']['mage25']['upgrade'] = new Array();
treeInfo['mage']['button']['mage25']['upgrade']['level2'] = new Array();
treeInfo['mage']['button']['mage25']['upgrade']['level2']['class'] = 'mage25_2';
treeInfo['mage']['button']['mage25']['upgrade']['level2']['name'] = 'Quicker Regen Level 2';
treeInfo['mage']['button']['mage25']['upgrade']['level2']['desc'] = 'Recover magical energy at the fastest possible rate.';
treeInfo['mage']['button']['mage25']['upgrade']['level2']['cost'] = 1;
treeInfo['mage']['button']['mage26'] = new Array();
treeInfo['mage']['button']['mage26']['class'] = "button26";
treeInfo['mage']['button']['mage26']['position'] = '-345 -123';
treeInfo['mage']['button']['mage26']['name'] = 'Lightning Bolt';
treeInfo['mage']['button']['mage26']['desc'] = 'Charge carefully, then release for an instantaneous damaging bolt of lightning. NOTE - do not overcharge!';
treeInfo['mage']['button']['mage26']['cost'] = 2;
treeInfo['mage']['button']['mage26']['depend'] = 'mage16';
treeInfo['mage']['button']['mage26']['rdepend'] = 'mage36';
treeInfo['mage']['button']['mage31'] = new Array();
treeInfo['mage']['button']['mage31']['class'] = "button31";
treeInfo['mage']['button']['mage31']['position'] = '-17 -179';
treeInfo['mage']['button']['mage31']['name'] = 'Fire Orbs';
treeInfo['mage']['button']['mage31']['desc'] = 'Grenade-style explosives. If on the ground, they explode. If on a person, it\'s a kill.';
treeInfo['mage']['button']['mage31']['cost'] = 3;
treeInfo['mage']['button']['mage31']['rdepend'] = 'mage41';
treeInfo['mage']['button']['mage31']['upgrade'] = new Array();
treeInfo['mage']['button']['mage31']['upgrade']['level2'] = new Array();
treeInfo['mage']['button']['mage31']['upgrade']['level2']['class'] = 'mage31_2';
treeInfo['mage']['button']['mage31']['upgrade']['level2']['name'] = 'Fire Orbs Level 2';
treeInfo['mage']['button']['mage31']['upgrade']['level2']['desc'] = 'An extra orb is summoned when you cast.';
treeInfo['mage']['button']['mage31']['upgrade']['level2']['cost'] = 1;
treeInfo['mage']['button']['mage31']['upgrade']['level3'] = new Array();
treeInfo['mage']['button']['mage31']['upgrade']['level3']['class'] = 'mage31_3';
treeInfo['mage']['button']['mage31']['upgrade']['level3']['name'] = 'Fire Orbs Level 3';
treeInfo['mage']['button']['mage31']['upgrade']['level3']['desc'] = 'An extra orb is summoned when you cast.';
treeInfo['mage']['button']['mage31']['upgrade']['level3']['cost'] = 1;
treeInfo['mage']['button']['mage31']['depend'] = 'mage21';
treeInfo['mage']['button']['mage36'] = new Array();
treeInfo['mage']['button']['mage36']['class'] = "button36";
treeInfo['mage']['button']['mage36']['position'] = '-345 -179';
treeInfo['mage']['button']['mage36']['name'] = 'Chain Lightning';
treeInfo['mage']['button']['mage36']['desc'] = 'Charge and aim carefully. This bolt doesn\'t stop with just one target.';
treeInfo['mage']['button']['mage36']['cost'] = 3;
treeInfo['mage']['button']['mage36']['depend'] = 'mage26';
treeInfo['mage']['button']['mage36']['rdepend'] = 'mage46';
treeInfo['mage']['button']['mage41'] = new Array();
treeInfo['mage']['button']['mage41']['class'] = "button41";
treeInfo['mage']['button']['mage41']['position'] = '-17 -235';
treeInfo['mage']['button']['mage41']['name'] = 'Fireblast';
treeInfo['mage']['button']['mage41']['desc'] = 'A guided ball of tightly compress flames which spill out when it ruptures, igniting all targets. The \'crowd pleaser\'.';
treeInfo['mage']['button']['mage41']['cost'] = 4;
treeInfo['mage']['button']['mage41']['depend'] = 'mage31';
treeInfo['mage']['button']['mage46'] = new Array();
treeInfo['mage']['button']['mage46']['class'] = "button46";
treeInfo['mage']['button']['mage46']['position'] = '-345 -235';
treeInfo['mage']['button']['mage46']['name'] = 'Lightning Sphere';
treeInfo['mage']['button']['mage46']['desc'] = 'Summon a slow-travelling electrical inferno which will zap anything near to it. Watch out for team kills!';
treeInfo['mage']['button']['mage46']['cost'] = 4;
treeInfo['mage']['button']['mage46']['depend'] = 'mage36';
treeInfo['mage']['button']['align'] = new Array();
treeInfo['mage']['button']['align']['magealign_2'] = new Array();
treeInfo['mage']['button']['align']['magealign_2']['name'] = "Fire Mastery (Pyromancer)";
treeInfo['mage']['button']['align']['magealign_2']['desc'] = "You gain a large Fire bonus at the cost of most of your Lightning skill.";
treeInfo['mage']['button']['align']['magealign_2']['cost'] = 2;
treeInfo['mage']['button']['align']['magealign_1'] = new Array();
treeInfo['mage']['button']['align']['magealign_1']['name'] = "Fire Affinity";
treeInfo['mage']['button']['align']['magealign_1']['desc'] = "You gain a bonus when using Fire, but cannot use Lightning as well as before.";
treeInfo['mage']['button']['align']['magealign_1']['cost'] = 1;
treeInfo['mage']['button']['align']['magealign0'] = new Array();
treeInfo['mage']['button']['align']['magealign0']['name'] = "Elemental Balance";
treeInfo['mage']['button']['align']['magealign0']['desc'] = "Your skills are unchanged.";
treeInfo['mage']['button']['align']['magealign0']['cost'] = 0;
treeInfo['mage']['button']['align']['magealign1'] = new Array();
treeInfo['mage']['button']['align']['magealign1']['name'] = "Lightning Affinity";
treeInfo['mage']['button']['align']['magealign1']['desc'] = "You are skilled at using Lightning, but don\'t understand Fire that well.";
treeInfo['mage']['button']['align']['magealign1']['cost'] = 1;
treeInfo['mage']['button']['align']['magealign2'] = new Array();
treeInfo['mage']['button']['align']['magealign2']['name'] = "Lightning Mastery (Stormcaller)";
treeInfo['mage']['button']['align']['magealign2']['desc'] = "You are adept and devastating with Lightning, but your Fire abilities have suffered.";
treeInfo['mage']['button']['align']['magealign2']['cost'] = 2;

//*** ASSASSIN ***//
treeInfo['assassin'] = new Array();
treeInfo['assassin']['name'] = 'Assassin';
treeInfo['assassin']['base'] = new Array();
treeInfo['assassin']['base']['name'] = 'Cloak';
treeInfo['assassin']['base']['desc'] = 'Allows you to become invisible.';
treeInfo['assassin']['button'] = new Array();
treeInfo['assassin']['button']['assassin00'] = new Array();
treeInfo['assassin']['button']['assassin00']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin00']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin00']['upgrade']['level2']['class'] = 'assassin00_2';
treeInfo['assassin']['button']['assassin00']['upgrade']['level2']['name'] = 'Cloak Level 2';
treeInfo['assassin']['button']['assassin00']['upgrade']['level2']['desc'] = 'Increase the duration of your Cloak effect.';
treeInfo['assassin']['button']['assassin00']['upgrade']['level2']['cost'] = 1;
treeInfo['assassin']['button']['assassin00']['upgrade']['level3'] = new Array();
treeInfo['assassin']['button']['assassin00']['upgrade']['level3']['class'] = 'assassin00_3';
treeInfo['assassin']['button']['assassin00']['upgrade']['level3']['name'] = 'Cloak Level 3';
treeInfo['assassin']['button']['assassin00']['upgrade']['level3']['desc'] = 'Further boost your Cloak duration by swapping to an expensive new material with magical \'Light Pockets\'.';
treeInfo['assassin']['button']['assassin00']['upgrade']['level3']['cost'] = 1;
treeInfo['assassin']['button']['assassin00']['upgrade']['level4'] = new Array();
treeInfo['assassin']['button']['assassin00']['upgrade']['level4']['class'] = 'assassin00_4';
treeInfo['assassin']['button']['assassin00']['upgrade']['level4']['name'] = 'Cloak Level 4';
treeInfo['assassin']['button']['assassin00']['upgrade']['level4']['desc'] = 'Max out your Cloak duration by investing in a thermionically \'breathable\' fabric which also wicks up perspiration (and has a gum pocket).';
treeInfo['assassin']['button']['assassin00']['upgrade']['level4']['cost'] = 1;
treeInfo['assassin']['button']['assassin11'] = new Array();
treeInfo['assassin']['button']['assassin11']['class'] = "button11";
treeInfo['assassin']['button']['assassin11']['position'] = '-17 -67';
treeInfo['assassin']['button']['assassin11']['name'] = 'Stalk';
treeInfo['assassin']['button']['assassin11']['desc'] = 'Soft-Soled boots muffle your footsteps.';
treeInfo['assassin']['button']['assassin11']['cost'] = 1;
treeInfo['assassin']['button']['assassin11']['media'] = 0;
treeInfo['assassin']['button']['assassin11']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin11']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin11']['upgrade']['level2']['class'] = 'assassin11_2';
treeInfo['assassin']['button']['assassin11']['upgrade']['level2']['name'] = 'Stalk Level 2';
treeInfo['assassin']['button']['assassin11']['upgrade']['level2']['desc'] = 'Carefully placed silk pads and moss pouches reduce noise made on contact.';
treeInfo['assassin']['button']['assassin11']['upgrade']['level2']['cost'] = 1;
treeInfo['assassin']['button']['assassin11']['upgrade']['level3'] = new Array();
treeInfo['assassin']['button']['assassin11']['upgrade']['level3']['class'] = 'assassin11_3';
treeInfo['assassin']['button']['assassin11']['upgrade']['level3']['name'] = 'Stalk Level 3';
treeInfo['assassin']['button']['assassin11']['upgrade']['level3']['desc'] = 'Hypnotherapy has convinced you of your feline status. Every movement is counterbalanced. You make almost no noise.';
treeInfo['assassin']['button']['assassin11']['upgrade']['level3']['cost'] = 1;
treeInfo['assassin']['button']['assassin16'] = new Array();
treeInfo['assassin']['button']['assassin16']['class'] = "button16";
treeInfo['assassin']['button']['assassin16']['position'] = '-345 -67';
treeInfo['assassin']['button']['assassin16']['name'] = 'Second Breath';
treeInfo['assassin']['button']['assassin16']['desc'] = 'Boost your Stamina bar.';
treeInfo['assassin']['button']['assassin16']['cost'] = 1;
treeInfo['assassin']['button']['assassin16']['media'] = 0;
treeInfo['assassin']['button']['assassin16']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin16']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin16']['upgrade']['level2']['class'] = 'assassin16_2';
treeInfo['assassin']['button']['assassin16']['upgrade']['level2']['name'] = 'Second Breath Level 2';
treeInfo['assassin']['button']['assassin16']['upgrade']['level2']['desc'] = 'Pilates and circuit training have made you one tough hombre.';
treeInfo['assassin']['button']['assassin16']['upgrade']['level2']['cost'] = 1;
treeInfo['assassin']['button']['assassin24'] = new Array();
treeInfo['assassin']['button']['assassin24']['class'] = "button24";
treeInfo['assassin']['button']['assassin24']['position'] = '-214 -123';
treeInfo['assassin']['button']['assassin24']['name'] = 'Disguise';
treeInfo['assassin']['button']['assassin24']['desc'] = 'Appear as if you\'re on the other team with a splash of makeup and a funny voice. NOTE - your name stays the same.';
treeInfo['assassin']['button']['assassin24']['cost'] = 2;
treeInfo['assassin']['button']['assassin24']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin24']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin24']['upgrade']['level2']['class'] = 'assassin24_2';
treeInfo['assassin']['button']['assassin24']['upgrade']['level2']['name'] = 'Disguise Level 2';
treeInfo['assassin']['button']['assassin24']['upgrade']['level2']['desc'] = 'Increased duration.';
treeInfo['assassin']['button']['assassin24']['upgrade']['level2']['cost'] = 1;
treeInfo['assassin']['button']['assassin25'] = new Array();
treeInfo['assassin']['button']['assassin25']['class'] = "button25";
treeInfo['assassin']['button']['assassin25']['position'] = '-279 -123';
treeInfo['assassin']['button']['assassin25']['name'] = 'Poison Orbs';
treeInfo['assassin']['button']['assassin25']['desc'] = 'Lay proximity fused explosive traps which only Assassins can see.';
treeInfo['assassin']['button']['assassin25']['cost'] = 2;
treeInfo['assassin']['button']['assassin25']['4depend'] = 'assassin45';
treeInfo['assassin']['button']['assassin25']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin25']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin25']['upgrade']['level2']['class'] = 'assassin25_2';
treeInfo['assassin']['button']['assassin25']['upgrade']['level2']['name'] = 'Poison Orbs Level 2';
treeInfo['assassin']['button']['assassin25']['upgrade']['level2']['desc'] = 'Warn your teammates about the orbs you place, so they see them as you do.';
treeInfo['assassin']['button']['assassin25']['upgrade']['level2']['cost'] = 2;
treeInfo['assassin']['button']['assassin32'] = new Array();
treeInfo['assassin']['button']['assassin32']['class'] = "button32";
treeInfo['assassin']['button']['assassin32']['position'] = '-82 -179';
treeInfo['assassin']['button']['assassin32']['name'] = 'Feign Death';
treeInfo['assassin']['button']['assassin32']['desc'] = 'A thespian night class enables you to pull off a moderately convincing death scene and then lie doggo.';
treeInfo['assassin']['button']['assassin32']['cost'] = 3;
treeInfo['assassin']['button']['assassin33'] = new Array();
treeInfo['assassin']['button']['assassin33']['class'] = "button33";
treeInfo['assassin']['button']['assassin33']['position'] = '-148 -179';
treeInfo['assassin']['button']['assassin33']['name'] = 'Poison Dagger';
treeInfo['assassin']['button']['assassin33']['desc'] = 'Your dagger scabbard is lined with velvet soaked in oily posion. Every blow delivers a disorientating dose of toxin.';
treeInfo['assassin']['button']['assassin33']['cost'] = 3;
treeInfo['assassin']['button']['assassin33']['media'] = 0;
treeInfo['assassin']['button']['assassin33']['rdepend'] = 'assassin43';
treeInfo['assassin']['button']['assassin33']['upgrade'] = new Array();
treeInfo['assassin']['button']['assassin33']['upgrade']['level2'] = new Array();
treeInfo['assassin']['button']['assassin33']['upgrade']['level2']['class'] = 'assassin33_2';
treeInfo['assassin']['button']['assassin33']['upgrade']['level2']['name'] = 'Poison Dagger Level 2';
treeInfo['assassin']['button']['assassin33']['upgrade']['level2']['desc'] = 'Your dagger\'s poison has been concentrated into a sticky tar-like goo, with added amphibian neurotoxin. Targets now hallucinate.';
treeInfo['assassin']['button']['assassin33']['upgrade']['level2']['cost'] = 1;
treeInfo['assassin']['button']['assassin43'] = new Array();
treeInfo['assassin']['button']['assassin43']['class'] = "button43";
treeInfo['assassin']['button']['assassin43']['position'] = '-148 -235';
treeInfo['assassin']['button']['assassin43']['name'] = 'Arterial Strike';
treeInfo['assassin']['button']['assassin43']['desc'] = 'Deliver an attack that just won\'t stop bleeding with your mastery of the art of \'twisty blade in the wound fu\'.';
treeInfo['assassin']['button']['assassin43']['cost'] = 3;
treeInfo['assassin']['button']['assassin43']['media'] = 0;
treeInfo['assassin']['button']['assassin43']['depend'] = 'assassin33';
treeInfo['assassin']['button']['assassin45'] = new Array();
treeInfo['assassin']['button']['assassin45']['class'] = "button45";
treeInfo['assassin']['button']['assassin45']['position'] = '-279 -235';
treeInfo['assassin']['button']['assassin45']['name'] = 'Triggered Poison Orbs';
treeInfo['assassin']['button']['assassin45']['desc'] = 'Lay traps, then blow them up at a time of your choosing. Use Alternate Attack to enter \'detonate\' mode.';
treeInfo['assassin']['button']['assassin45']['cost'] = 4;
treeInfo['assassin']['button']['assassin45']['media'] = 0;
treeInfo['assassin']['button']['assassin45']['depend'] = 'assassin25';

//*** PRIEST ***//
treeInfo['priest'] = new Array();
treeInfo['priest']['name'] = 'priest';
treeInfo['priest']['base'] = new Array();
treeInfo['priest']['base']['name'] = 'Restore/Corrupt';
treeInfo['priest']['base']['desc'] = 'Regenerate Hit Points (channeled) on allies/Channeled damage on enemies.';
treeInfo['priest']['button'] = new Array();
treeInfo['priest']['button']['priest11'] = new Array();
treeInfo['priest']['button']['priest11']['class'] = "button11";
treeInfo['priest']['button']['priest11']['position'] = '-17 -67';
treeInfo['priest']['button']['priest11']['name'] = 'Soulmark';
treeInfo['priest']['button']['priest11']['desc'] = 'Highlight someone to mark them out to your teammates, who gain bonuses for dealing with them (especially good against assassins).';
treeInfo['priest']['button']['priest11']['cost'] = 1;
treeInfo['priest']['button']['priest11']['media'] = 0;
treeInfo['priest']['button']['priest14'] = new Array();
treeInfo['priest']['button']['priest14']['class'] = "button14";
treeInfo['priest']['button']['priest14']['position'] = '-214 -67';
treeInfo['priest']['button']['priest14']['name'] = 'Stone Skin';
treeInfo['priest']['button']['priest14']['desc'] = 'Protect and reduce damage with this easy to apply and quick hardening all-over mudpack.';
treeInfo['priest']['button']['priest14']['cost'] = 1;
treeInfo['priest']['button']['priest23'] = new Array();
treeInfo['priest']['button']['priest23']['class'] = "button23";
treeInfo['priest']['button']['priest23']['position'] = '-148 -123';
treeInfo['priest']['button']['priest23']['name'] = 'Brambles';
treeInfo['priest']['button']['priest23']['desc'] = 'Summon writhing entangling brambles from the ground to slow all who try to pass through.';
treeInfo['priest']['button']['priest23']['cost'] = 2;
treeInfo['priest']['button']['priest23']['upgrade'] = new Array();
treeInfo['priest']['button']['priest23']['upgrade']['level2'] = new Array();
treeInfo['priest']['button']['priest23']['upgrade']['level2']['class'] = 'priest23_2';
treeInfo['priest']['button']['priest23']['upgrade']['level2']['name'] = 'Branbles Level 2';
treeInfo['priest']['button']['priest23']['upgrade']['level2']['desc'] = 'Enjoy an extra projectile.';
treeInfo['priest']['button']['priest23']['upgrade']['level2']['cost'] = 2;
treeInfo['priest']['button']['priest25'] = new Array();
treeInfo['priest']['button']['priest25']['class'] = "button25";
treeInfo['priest']['button']['priest25']['position'] = '-279 -123';
treeInfo['priest']['button']['priest25']['name'] = 'Resurrection';
treeInfo['priest']['button']['priest25']['desc'] = 'Bring a friend back to life by casting this spell on their soul before it disappears. NOTE - if you die, so does your resurrectee.';
treeInfo['priest']['button']['priest25']['cost'] = 2;
treeInfo['priest']['button']['priest25']['rdepend'] = 'priest35';
treeInfo['priest']['button']['priest26'] = new Array();
treeInfo['priest']['button']['priest26']['class'] = "button26";
treeInfo['priest']['button']['priest26']['position'] = '-345 -123';
treeInfo['priest']['button']['priest26']['name'] = 'Poison Cloud';
treeInfo['priest']['button']['priest26']['desc'] = 'Create a foul and stinking cloud of toxic gas.';
treeInfo['priest']['button']['priest26']['cost'] = 2;
treeInfo['priest']['button']['priest26']['rdepend'] = 'priest36';
treeInfo['priest']['button']['priest26']['upgrade'] = new Array();
treeInfo['priest']['button']['priest26']['upgrade']['level2'] = new Array();
treeInfo['priest']['button']['priest26']['upgrade']['level2']['class'] = 'priest26_2';
treeInfo['priest']['button']['priest26']['upgrade']['level2']['name'] = 'Poison Cloud Level 2';
treeInfo['priest']['button']['priest26']['upgrade']['level2']['desc'] = 'Improve the range and duration of the Toxic Cloud.';
treeInfo['priest']['button']['priest26']['upgrade']['level2']['cost'] = 1;
treeInfo['priest']['button']['priest26']['upgrade']['level3'] = new Array();
treeInfo['priest']['button']['priest26']['upgrade']['level3']['class'] = 'priest26_3';
treeInfo['priest']['button']['priest26']['upgrade']['level3']['name'] = 'Poison Cloud Level 3';
treeInfo['priest']['button']['priest26']['upgrade']['level3']['desc'] = 'Boost the potency and duration of the toxic efects, causing targets to hallucinate. Looks like the newt testing paid off!';
treeInfo['priest']['button']['priest26']['upgrade']['level3']['cost'] = 1;
treeInfo['priest']['button']['priest32'] = new Array();
treeInfo['priest']['button']['priest32']['class'] = "button32";
treeInfo['priest']['button']['priest32']['position'] = '-82 -179';
treeInfo['priest']['button']['priest32']['name'] = 'Restoration/Corruption Sphere';
treeInfo['priest']['button']['priest32']['desc'] = 'Restoration - Create a bubble of pure healing energy for your team to enjoy. Corruption - hurt any wandering enemy.';
treeInfo['priest']['button']['priest32']['cost'] = 3;
treeInfo['priest']['button']['priest32']['rdepend'] = 'priest42';
treeInfo['priest']['button']['priest35'] = new Array();
treeInfo['priest']['button']['priest35']['class'] = "button35";
treeInfo['priest']['button']['priest35']['position'] = '-279 -179';
treeInfo['priest']['button']['priest35']['name'] = 'Mass Resurrection';
treeInfo['priest']['button']['priest35']['desc'] = 'Bring all your friends back to life with this soul-of-the-party ability. Be careful though - you die, they all die!';
treeInfo['priest']['button']['priest35']['cost'] = 3;
treeInfo['priest']['button']['priest35']['media'] = 0;
treeInfo['priest']['button']['priest35']['depend'] = 'priest25';
treeInfo['priest']['button']['priest36'] = new Array();
treeInfo['priest']['button']['priest36']['class'] = "button36";
treeInfo['priest']['button']['priest36']['position'] = '-345 -179';
treeInfo['priest']['button']['priest36']['name'] = 'Blindness';
treeInfo['priest']['button']['priest36']['desc'] = 'Disrupt a single target\'s vision (expecially good against archers).';
treeInfo['priest']['button']['priest36']['cost'] = 3;
treeInfo['priest']['button']['priest36']['depend'] = 'priest26';
treeInfo['priest']['button']['priest36']['upgrade'] = new Array();
treeInfo['priest']['button']['priest36']['upgrade']['level2'] = new Array();
treeInfo['priest']['button']['priest36']['upgrade']['level2']['class'] = 'priest36_2';
treeInfo['priest']['button']['priest36']['upgrade']['level2']['name'] = 'Blindness Level 2';
treeInfo['priest']['button']['priest36']['upgrade']['level2']['desc'] = 'Increased duration of Blind effects.';
treeInfo['priest']['button']['priest36']['upgrade']['level2']['cost'] = 1;
treeInfo['priest']['button']['priest36']['upgrade']['level3'] = new Array();
treeInfo['priest']['button']['priest36']['upgrade']['level3']['class'] = 'priest36_3';
treeInfo['priest']['button']['priest36']['upgrade']['level3']['name'] = 'Blindness Level 3';
treeInfo['priest']['button']['priest36']['upgrade']['level3']['desc'] = 'Destroy someone\'s eyesight for a limited time, without resorting to shocking internet pictures.';
treeInfo['priest']['button']['priest36']['upgrade']['level3']['cost'] = 1;
treeInfo['priest']['button']['priest42'] = new Array();
treeInfo['priest']['button']['priest42']['class'] = "button42";
treeInfo['priest']['button']['priest42']['position'] = '-82 -235';
treeInfo['priest']['button']['priest42']['name'] = 'Mass Restoration';
treeInfo['priest']['button']['priest42']['desc'] = 'Boost your friends\' health by means of this moderately sacrifical ritual.';
treeInfo['priest']['button']['priest42']['cost'] = 4;
treeInfo['priest']['button']['priest42']['media'] = 0;
treeInfo['priest']['button']['priest42']['depend'] = 'priest32';
treeInfo['priest']['button']['align'] = new Array();
treeInfo['priest']['button']['align']['priestalign_2'] = new Array();
treeInfo['priest']['button']['align']['priestalign_2']['name'] = "Restoration Mastery (Preserver)";
treeInfo['priest']['button']['align']['priestalign_2']['desc'] = "You gain a Cure bonus at the cost of reducing Curse ability.";
treeInfo['priest']['button']['align']['priestalign_2']['cost'] = 2;
treeInfo['priest']['button']['align']['priestalign_1'] = new Array();
treeInfo['priest']['button']['align']['priestalign_1']['name'] = "Restoration Affinity";
treeInfo['priest']['button']['align']['priestalign_1']['desc'] = "You gain a bonus to Cure at the cost of reducing your Curse ability.";
treeInfo['priest']['button']['align']['priestalign_1']['cost'] = 1;
treeInfo['priest']['button']['align']['priestalign0'] = new Array();
treeInfo['priest']['button']['align']['priestalign0']['name'] = "Spiritual Balance";
treeInfo['priest']['button']['align']['priestalign0']['desc'] = "Your abilities are unchanged.";
treeInfo['priest']['button']['align']['priestalign0']['cost'] = 0;
treeInfo['priest']['button']['align']['priestalign1'] = new Array();
treeInfo['priest']['button']['align']['priestalign1']['name'] = "Corruption Affinity";
treeInfo['priest']['button']['align']['priestalign1']['desc'] = "You gain a bonus to Curse, but cannot Cure as well as before.";
treeInfo['priest']['button']['align']['priestalign1']['cost'] = 1;
treeInfo['priest']['button']['align']['priestalign2'] = new Array();
treeInfo['priest']['button']['align']['priestalign2']['name'] = "Corruption Mastery (Putrifier)";
treeInfo['priest']['button']['align']['priestalign2']['desc'] = "You gain a large Curse boost by sacrificing most of your Curing abilities.";
treeInfo['priest']['button']['align']['priestalign2']['cost'] = 2;