﻿<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

<xsl:include href="includes.xsl"/>
<xsl:include href="character-header.xsl"/>
<xsl:include href="character-utils.xsl"/>
<xsl:include href="mini-search-templates.xsl"/>

<xsl:template match="page/characterInfo">

<xsl:variable name = "isPropass">
  <xsl:choose>
    <xsl:when test = "character/@tournamentRealm">true</xsl:when>
	<xsl:otherwise>false</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

<xsl:variable name="theCharName" select="character/@name" />

<xsl:variable name = "pathPropass" select = "/page/characterInfo/character/arenaTeams/arenaTeam[@size=3]" />
<xsl:variable name = "pathPropassChar" select = "/page/characterInfo/character/arenaTeams/arenaTeam[@size=3]/members/character[@name = $theCharName]" />

<span style="display:none;">start</span><!--needed to fix IE bug that ignores script includes-->

<div id="dataElement">


<xsl:variable name="theClassId" select="character/@classId" />
<xsl:variable name="theRaceId" select="character/@raceId" />
<xsl:variable name="theGenderId" select="character/@genderId" />
<xsl:variable name="theFactionId" select="character/@factionId" />
<xsl:variable name="charUrl" select="character/@charUrl" />
<xsl:variable name="level" select="character/@level" />
<xsl:variable name="lastModified" select="character/@lastModified" />
<xsl:variable name="guildUrl" select="character/@guildUrl" />

<xsl:variable name="recUpgradeUrlPre">
    <xsl:call-template name="search-and-replace">
        <xsl:with-param name="input" select="$charUrl" />
        <xsl:with-param name="search-string" select="'r='" />
        <xsl:with-param name="replace-string" select="'pr='" />
    </xsl:call-template>
</xsl:variable>

<xsl:variable name="recUpgradeUrl">
    <xsl:call-template name="search-and-replace">
        <xsl:with-param name="input" select="$recUpgradeUrlPre" />
        <xsl:with-param name="search-string" select="'n='" />
        <xsl:with-param name="replace-string" select="'pn='" />
    </xsl:call-template>
</xsl:variable>

<script type="text/javascript">

var theClassId = <xsl:value-of select="$theClassId" />;
var theRaceId = <xsl:value-of select="$theRaceId" />;
var theClassName = "<xsl:value-of select="character/@class" />";
var theLevel = <xsl:value-of select="$level" />;

var theRealmName = "<xsl:value-of select="character/@realm" />";
var theCharName = "<xsl:value-of select="character/@name" />";

</script>

<div class="sub-head">
<xsl:call-template name="character-tabs">
  <xsl:with-param name="thePage" select="'character-sheet'"/>
  <xsl:with-param name="charUrl" select="$charUrl"/>  
  <xsl:with-param name="guildUrl" select="$guildUrl"/>
  <xsl:with-param name="charLevel" select="$level"/>
  <xsl:with-param name="isPropass" select="$isPropass"/>  
  <xsl:with-param name="pathPropass" select="$pathPropass"/>
</xsl:call-template>

</div>

 <div class="parchment-top">
  <div class="parchment-content">
<div class="mini-search-start-state" id="results-side-switch">
 <div class="list">
  <div class="player-side">
   <div class="tip" style="clear: left; position: relative; z-index: 99;">
<table><tr><td class="tip-top-left" /><td class="tip-top" /><td class="tip-top-right" /></tr><tr><td class="tip-left" /><td class="tip-bg">

<xsl:choose>

<xsl:when test="character"><!--does a char exist-->
	
 <div class="profile-wrapper">
<!-- begin character header -->
  <div class="profile">
   <div>
	 <xsl:attribute name="class">
	  <xsl:choose>
	   <xsl:when test="$isPropass = 'true'">faction-propass</xsl:when>	  
	   <xsl:when test="character/@factionId = 0">faction-alliance</xsl:when>
	   <xsl:otherwise>faction-horde</xsl:otherwise>
	  </xsl:choose>
	 </xsl:attribute>
	 
	  <div class="profile-left">
	   <div class="profile-right">
		<div class="profile-content">
	<xsl:call-template name="character-header">
	  <xsl:with-param name="headerKey" select = "'profile'" />
	  <xsl:with-param name="genderId" select = "$theGenderId" />
	  <xsl:with-param name="raceId" select = "$theRaceId" />  
	  <xsl:with-param name="classId" select = "$theClassId" />  
	  <xsl:with-param name="realm" select = "character/@realm" />
	  <xsl:with-param name="lang" select = "$lang" />
	  <xsl:with-param name="battleGroup" select = "character/@battleGroup" />  
	  <xsl:with-param name="level" select = "$level" />    
	  <xsl:with-param name="title" select = "character/@title" />    
	  <xsl:with-param name="guildName" select = "character/@guildName" />
	  <xsl:with-param name="guildUrl" select = "$guildUrl" />  
	  <xsl:with-param name="race" select = "character/@race" />    
	  <xsl:with-param name="class" select = "character/@class" />    
	  <xsl:with-param name="name" select = "character/@name" />
	  <xsl:with-param name="isPropass" select = "$isPropass" />	
	  <xsl:with-param name="pathPropass" select="$pathPropass"/>
	</xsl:call-template>


	<xsl:choose>
	<xsl:when test = "character/@level &gt;= 10"> <!--is the character above level 10-->

	  <xsl:choose>
	  <xsl:when test = "characterTab"><!--is the info available-->

<xsl:variable name="theSecondBar" select="characterTab/characterBars/secondBar/@type" />
<xsl:variable name="resistArcaneValue" select="characterTab/resistances/arcane/@value" />
<xsl:variable name="resistFireValue" select="characterTab/resistances/fire/@value" />
<xsl:variable name="resistNatureValue" select="characterTab/resistances/nature/@value" />
<xsl:variable name="resistShadowValue" select="characterTab/resistances/shadow/@value" />
<xsl:variable name="resistFrostValue" select="characterTab/resistances/frost/@value" />

<script type="text/javascript" src="js/character/functions.js"></script>

<script type="text/javascript">

function strengthObject() {
	this.base = "<xsl:value-of select="characterTab/baseStats/strength/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/strength/@effective" />";
	this.block = "<xsl:value-of select="characterTab/baseStats/strength/@block" />";
	this.attack = "<xsl:value-of select="characterTab/baseStats/strength/@attack" />";

	this.diff = this.effective - this.base;
}

function agilityObject() {
	this.base = "<xsl:value-of select="characterTab/baseStats/agility/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/agility/@effective" />";
	this.critHitPercent = "<xsl:value-of select="characterTab/baseStats/agility/@critHitPercent" />";
	this.attack = "<xsl:value-of select="characterTab/baseStats/agility/@attack" />";
	this.armor = "<xsl:value-of select="characterTab/baseStats/agility/@armor" />";
	
	this.diff = this.effective - this.base;
}

function staminaObject(base, effective, health, petBonus) {
	this.base = "<xsl:value-of select="characterTab/baseStats/stamina/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/stamina/@effective" />";
	this.health = "<xsl:value-of select="characterTab/baseStats/stamina/@health" />";
	this.petBonus = "<xsl:value-of select="characterTab/baseStats/stamina/@petBonus" />";

	this.diff = this.effective - this.base;
}

function intellectObject() {
	this.base = "<xsl:value-of select="characterTab/baseStats/intellect/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/intellect/@effective" />";
	this.mana = "<xsl:value-of select="characterTab/baseStats/intellect/@mana" />";
	this.critHitPercent = "<xsl:value-of select="characterTab/baseStats/intellect/@critHitPercent" />";
	this.petBonus = "<xsl:value-of select="characterTab/baseStats/intellect/@petBonus" />";

	this.diff = this.effective - this.base;
}

function spiritObject() {
	this.base = "<xsl:value-of select="characterTab/baseStats/spirit/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/spirit/@effective" />";
	this.healthRegen = "<xsl:value-of select="characterTab/baseStats/spirit/@healthRegen" />";
	this.manaRegen = "<xsl:value-of select="characterTab/baseStats/spirit/@manaRegen" />";

	this.diff = this.effective - this.base;
}

function armorObject() {
	this.base = "<xsl:value-of select="characterTab/baseStats/armor/@base" />";
	this.effective = "<xsl:value-of select="characterTab/baseStats/armor/@effective" />";	
	this.reductionPercent = "<xsl:value-of select="characterTab/baseStats/armor/@percent" />";
	this.petBonus = "<xsl:value-of select="characterTab/baseStats/armor/@petBonus" />";
	
	this.diff = this.effective - this.base;	
}

function resistancesObject() {
	this.arcane = new resistArcaneObject("<xsl:value-of select="$resistArcaneValue" />", "<xsl:value-of select="characterTab/resistances/arcane/@petBonus" />");
	this.nature = new resistNatureObject("<xsl:value-of select="$resistNatureValue" />", "<xsl:value-of select="characterTab/resistances/nature/@petBonus" />");	
	this.fire = new resistFireObject("<xsl:value-of select="$resistFireValue" />", "<xsl:value-of select="characterTab/resistances/fire/@petBonus" />");
	this.frost = new resistFrostObject("<xsl:value-of select="$resistFrostValue" />", "<xsl:value-of select="characterTab/resistances/frost/@petBonus" />");
	this.shadow = new resistShadowObject("<xsl:value-of select="$resistShadowValue" />", "<xsl:value-of select="characterTab/resistances/shadow/@petBonus" />");
}

function meleeMainHandWeaponSkillObject() {
	this.value = "<xsl:value-of select="characterTab/melee/expertise/@value" />";
	this.rating = "<xsl:value-of select="characterTab/melee/expertise/@rating" />";
	this.additional = "<xsl:value-of select="characterTab/melee/expertise/@additional" />";
	this.percent = "<xsl:value-of select="characterTab/melee/expertise/@percent" />";	
}

function meleeOffHandWeaponSkillObject() {
	this.value = "<xsl:value-of select="characterTab/melee/offHandWeaponSkill/@value" />";
	this.rating = "<xsl:value-of select="characterTab/melee/offHandWeaponSkill/@rating" />";
}


function meleeMainHandDamageObject() {
	this.speed = "<xsl:value-of select="characterTab/melee/mainHandDamage/@speed" />";
	this.min = "<xsl:value-of select="characterTab/melee/mainHandDamage/@min" />";
	this.max = "<xsl:value-of select="characterTab/melee/mainHandDamage/@max" />";
	this.percent = "<xsl:value-of select="characterTab/melee/mainHandDamage/@percent" />";	
	this.dps = "<xsl:value-of select="characterTab/melee/mainHandDamage/@dps" />";	

	if (this.percent &gt; 0)
		this.effectiveColor = "class = 'mod'";
	else if (this.percent &lt; 0)
		this.effectiveColor = "class = 'moddown'";

}

function meleeOffHandDamageObject() {
	this.speed = "<xsl:value-of select="characterTab/melee/offHandDamage/@speed" />";
	this.min = "<xsl:value-of select="characterTab/melee/offHandDamage/@min" />";
	this.max = "<xsl:value-of select="characterTab/melee/offHandDamage/@max" />";
	this.percent = "<xsl:value-of select="characterTab/melee/offHandDamage/@percent" />";
	this.dps = "<xsl:value-of select="characterTab/melee/offHandDamage/@dps" />";	
}


function meleeMainHandSpeedObject() {
	this.value = "<xsl:value-of select="characterTab/melee/mainHandSpeed/@value" />";
	this.hasteRating = "<xsl:value-of select="characterTab/melee/mainHandSpeed/@hasteRating" />";
	this.hastePercent = "<xsl:value-of select="characterTab/melee/mainHandSpeed/@hastePercent" />";
}

function meleeOffHandSpeedObject() {
	this.value = "<xsl:value-of select="characterTab/melee/offHandSpeed/@value" />";
	this.hasteRating = "<xsl:value-of select="characterTab/melee/offHandSpeed/@hasteRating" />";
	this.hastePercent = "<xsl:value-of select="characterTab/melee/offHandSpeed/@hastePercent" />";
}

function meleePowerObject() {
	this.base = "<xsl:value-of select="characterTab/melee/power/@base" />";
	this.effective = "<xsl:value-of select="characterTab/melee/power/@effective" />";	
	this.increasedDps = "<xsl:value-of select="characterTab/melee/power/@increasedDps" />";
	
	this.diff = this.effective - this.base;
}

function meleeHitRatingObject() {
	this.value = "<xsl:value-of select="characterTab/melee/hitRating/@value" />";
	this.increasedHitPercent = "<xsl:value-of select="characterTab/melee/hitRating/@increasedHitPercent" />";
	this.armorPenetration = "<xsl:value-of select="characterTab/melee/hitRating/@penetration" />";	
	this.reducedArmorPercent = "<xsl:value-of select="characterTab/melee/hitRating/@reducedArmorPercent" />";
}

function meleeCritChanceObject() {
	this.percent = "<xsl:value-of select="characterTab/melee/critChance/@percent" />";
	this.rating = "<xsl:value-of select="characterTab/melee/critChance/@rating" />";
	this.plusPercent = "<xsl:value-of select="characterTab/melee/critChance/@plusPercent" />";	
}

function rangedWeaponSkillObject() {
	this.value = <xsl:value-of select="characterTab/ranged/weaponSkill/@value" />;
	this.rating = <xsl:value-of select="characterTab/ranged/weaponSkill/@rating" />;
}

function rangedDamageObject() {
	this.speed = <xsl:value-of select="characterTab/ranged/damage/@speed" />;
	this.min = <xsl:value-of select="characterTab/ranged/damage/@min" />;
	this.max = <xsl:value-of select="characterTab/ranged/damage/@max" />;	
	this.dps = <xsl:value-of select="characterTab/ranged/damage/@dps" />;
	this.percent = <xsl:value-of select="characterTab/ranged/damage/@percent" />;

	if (this.percent &gt; 0)
		this.effectiveColor = "class = 'mod'";
	else if (this.percent &lt; 0)
		this.effectiveColor = "class = 'moddown'";

}

function rangedSpeedObject() {
	this.value = <xsl:value-of select="characterTab/ranged/speed/@value" />;
	this.hasteRating = <xsl:value-of select="characterTab/ranged/speed/@hasteRating" />;
	this.hastePercent = <xsl:value-of select="characterTab/ranged/speed/@hastePercent" />;	
}

function rangedPowerObject() {
	this.base = <xsl:value-of select="characterTab/ranged/power/@base" />;
	this.effective = <xsl:value-of select="characterTab/ranged/power/@effective" />;
	this.increasedDps = <xsl:value-of select="characterTab/ranged/power/@increasedDps" />;	
	this.petAttack = <xsl:value-of select="characterTab/ranged/power/@petAttack" />;	
	this.petSpell = <xsl:value-of select="characterTab/ranged/power/@petSpell" />;		
	
	this.diff = this.effective - this.base;
}

function rangedHitRatingObject() {
	this.value = "<xsl:value-of select="characterTab/ranged/hitRating/@value" />";
	this.increasedHitPercent = "<xsl:value-of select="characterTab/ranged/hitRating/@increasedHitPercent" />";
	this.armorPenetration = "<xsl:value-of select="characterTab/ranged/hitRating/@penetration" />";
	this.reducedArmorPercent = "<xsl:value-of select="characterTab/ranged/hitRating/@reducedArmorPercent" />";
}

function rangedCritChanceObject() {
	this.percent = <xsl:value-of select="characterTab/ranged/critChance/@percent" />;
	this.rating = <xsl:value-of select="characterTab/ranged/critChance/@rating" />;
	this.plusPercent = <xsl:value-of select="characterTab/ranged/critChance/@plusPercent" />;
}

function spellBonusDamageObject() {
	this.holy = <xsl:value-of select="characterTab/spell/bonusDamage/holy/@value" />;
	this.arcane = <xsl:value-of select="characterTab/spell/bonusDamage/arcane/@value" />;
	this.fire = <xsl:value-of select="characterTab/spell/bonusDamage/fire/@value" />;
	this.nature = <xsl:value-of select="characterTab/spell/bonusDamage/nature/@value" />;
	this.frost = <xsl:value-of select="characterTab/spell/bonusDamage/frost/@value" />;
	this.shadow = <xsl:value-of select="characterTab/spell/bonusDamage/shadow/@value" />;
	this.petBonusAttack = <xsl:value-of select="characterTab/spell/bonusDamage/petBonus/@attack" />;
	this.petBonusDamage = <xsl:value-of select="characterTab/spell/bonusDamage/petBonus/@damage" />;
	this.petBonusFromType = "<xsl:value-of select="characterTab/spell/bonusDamage/petBonus/@fromType" />";
	
	this.value = this.holy;
	if (this.value &gt; this.arcane)
		this.value = this.arcane;
	if (this.value &gt; this.fire)
		this.value = this.fire;
	if (this.value &gt; this.nature)
		this.value = this.nature;	
	if (this.value &gt; this.frost)
		this.value = this.frost;
	if (this.value &gt; this.shadow)
		this.value = this.shadow;
}

function spellBonusHealingObject() {
	this.value = <xsl:value-of select="characterTab/spell/bonusHealing/@value" />;
}

function spellHasteRatingObject(){
	this.value = <xsl:value-of select="characterTab/spell/hasteRating/@hasteRating" />;
	this.percent = <xsl:value-of select="characterTab/spell/hasteRating/@hastePercent" />;
}

function spellHitRatingObject() {
	this.value = <xsl:value-of select="characterTab/spell/hitRating/@value" />;
	this.increasedHitPercent = <xsl:value-of select="characterTab/spell/hitRating/@increasedHitPercent" />;
	this.spellPenetration =  <xsl:value-of select="characterTab/spell/penetration/@value" />;	
}

function spellCritChanceObject() {
	this.rating = <xsl:value-of select="characterTab/spell/critChance/@rating" />;
	this.holy = <xsl:value-of select="characterTab/spell/critChance/holy/@percent" />;
	this.arcane = <xsl:value-of select="characterTab/spell/critChance/arcane/@percent" />;
	this.fire = <xsl:value-of select="characterTab/spell/critChance/fire/@percent" />;
	this.nature = <xsl:value-of select="characterTab/spell/critChance/nature/@percent" />;
	this.frost = <xsl:value-of select="characterTab/spell/critChance/frost/@percent" />;
	this.shadow = <xsl:value-of select="characterTab/spell/critChance/shadow/@percent" />;

	this.percent = this.holy;
	if (this.percent &gt; this.arcane)
		this.percent = this.arcane;
	if (this.percent &gt; this.fire)
		this.percent = this.fire;
	if (this.percent &gt; this.nature)
		this.percent = this.nature;	
	if (this.percent &gt; this.frost)
		this.percent = this.frost;
	if (this.percent &gt; this.shadow)
		this.percent = this.shadow;

}

function spellPenetrationObject() {
	this.value = <xsl:value-of select="characterTab/spell/penetration/@value" />;
}

function spellManaRegenObject() {
	this.casting = <xsl:value-of select="characterTab/spell/manaRegen/@casting" />;
	this.notCasting = <xsl:value-of select="characterTab/spell/manaRegen/@notCasting" />;
}

function defensesArmorObject() {
	this.base = <xsl:value-of select="characterTab/defenses/armor/@base" />;
	this.effective = <xsl:value-of select="characterTab/defenses/armor/@effective" />;
	this.percent = <xsl:value-of select="characterTab/defenses/armor/@percent" />;	
	this.petBonus = <xsl:value-of select="characterTab/defenses/armor/@petBonus" />;	
	
	this.diff = this.effective - this.base;
}

function defensesDefenseObject() {
	this.rating = <xsl:value-of select="characterTab/defenses/defense/@rating" />;	
	this.plusDefense = <xsl:value-of select="characterTab/defenses/defense/@plusDefense" />;	
	this.increasePercent = <xsl:value-of select="characterTab/defenses/defense/@increasePercent" />;	
	this.decreasePercent = <xsl:value-of select="characterTab/defenses/defense/@decreasePercent" />;	
	this.value = <xsl:value-of select="characterTab/defenses/defense/@value" /> + this.plusDefense;	
}

function defensesDodgeObject() {
	this.percent = <xsl:value-of select="characterTab/defenses/dodge/@percent" />;	
	this.rating = <xsl:value-of select="characterTab/defenses/dodge/@rating" />;	
	this.increasePercent = <xsl:value-of select="characterTab/defenses/dodge/@increasePercent" />;
}

function defensesParryObject() {
	this.percent = <xsl:value-of select="characterTab/defenses/parry/@percent" />;	
	this.rating = <xsl:value-of select="characterTab/defenses/parry/@rating" />;	
	this.increasePercent = <xsl:value-of select="characterTab/defenses/parry/@increasePercent" />;
}

function defensesBlockObject() {
	this.percent = <xsl:value-of select="characterTab/defenses/block/@percent" />;	
	this.rating = <xsl:value-of select="characterTab/defenses/block/@rating" />;	
	this.increasePercent = <xsl:value-of select="characterTab/defenses/block/@increasePercent" />;
}

function defensesResilienceObject() {
	this.value = <xsl:value-of select="characterTab/defenses/resilience/@value" />;	
	this.hitPercent = <xsl:value-of select="characterTab/defenses/resilience/@hitPercent" />;	
	this.damagePercent = <xsl:value-of select="characterTab/defenses/resilience/@damagePercent" />;
}


var theCharacter = new characterObject();

var theCharUrl = "<xsl:value-of select="$charUrl" />";

</script>
<script type="text/javascript" src="js/{$lang}/character-sheet.js"></script>

<script type="text/javascript">

  var itemsArray = new Array;
  
  <xsl:for-each select = "characterTab/items/item">
    itemsArray[<xsl:value-of select="@slot" />]  = [<xsl:value-of select="@id" />  , "<xsl:value-of select="@icon" />", "<xsl:value-of select="@durability" />", "<xsl:value-of select="@maxDurability" />"];
  </xsl:for-each>

</script>

<xsl:variable name = "pathItem" select = "/page/characterInfo/characterTab/items"/>
<xsl:variable name = "pathHead" select = "$pathItem/item[@slot = 0]"/>
<xsl:variable name = "pathNeck" select = "$pathItem/item[@slot = 1]"/>
<xsl:variable name = "pathShoulders" select = "$pathItem/item[@slot = 2]"/>
<xsl:variable name = "pathBack" select = "$pathItem/item[@slot = 14]"/>
<xsl:variable name = "pathChest" select = "$pathItem/item[@slot = 4]"/>
<xsl:variable name = "pathShirt" select = "$pathItem/item[@slot = 3]"/>
<xsl:variable name = "pathTabard" select = "$pathItem/item[@slot = 18]"/>
<xsl:variable name = "pathWrist" select = "$pathItem/item[@slot = 8]"/>

<xsl:variable name = "pathHands" select = "$pathItem/item[@slot = 9]"/>
<xsl:variable name = "pathWaist" select = "$pathItem/item[@slot = 5]"/>
<xsl:variable name = "pathLegs" select = "$pathItem/item[@slot = 6]"/>
<xsl:variable name = "pathFeet" select = "$pathItem/item[@slot = 7]"/>
<xsl:variable name = "pathRingOne" select = "$pathItem/item[@slot = 10]"/>
<xsl:variable name = "pathRingTwo" select = "$pathItem/item[@slot = 11]"/>
<xsl:variable name = "pathTrinketOne" select = "$pathItem/item[@slot = 12]"/>
<xsl:variable name = "pathTrinketTwo" select = "$pathItem/item[@slot = 13]"/>

<xsl:variable name = "pathMainHand" select = "$pathItem/item[@slot = 15]"/>
<xsl:variable name = "pathOffHand" select = "$pathItem/item[@slot = 16]"/>
<xsl:variable name = "pathRanged" select = "$pathItem/item[@slot = 17]"/>

<xsl:variable name = "textFindUpgrade" select = "$loc/strs/characterSheet/str[@id='armory.character-sheet.findupgrade']"/>


<div class="profile-master" style="height: 500px;">
 <div class="stack1"><img src="/images/pixel.gif" class="ieimg" width="1" height="1" />
  <div class="items-left">
   <ul>
    <li><img id = "slot0x"><xsl:attribute name = "src"><xsl:if test = "$pathHead">/wow-icons/_images/51x51/<xsl:value-of select = "$pathHead/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.head, theCharUrl + '&amp;s={$pathHead/@slot}')" onMouseOut="hideTip();" class="thisTip" id = "slotOver0x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathHead">item-info.xml?i=<xsl:value-of select = "$pathHead/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.head.id, '0');" onMouseOut = "javascript: mouseOutArrow('0');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('0');" onMouseOut = "javascript: mouseOutArrow('0');" id = "flyOver0x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathHead/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
    <li><img id = "slot1x"><xsl:attribute name = "src"><xsl:if test = "$pathNeck">/wow-icons/_images/51x51/<xsl:value-of select = "$pathNeck/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.neck, theCharUrl + '&amp;s={$pathNeck/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver1x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathNeck">item-info.xml?i=<xsl:value-of select = "$pathNeck/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.neck.id, '1');" onMouseOut = "javascript: mouseOutArrow('1');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('1');" onMouseOut = "javascript: mouseOutArrow('1');" id = "flyOver1x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathNeck/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot2x"><xsl:attribute name = "src"><xsl:if test = "$pathShoulders">/wow-icons/_images/51x51/<xsl:value-of select = "$pathShoulders/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.shoulders, theCharUrl + '&amp;s={$pathShoulders/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver2x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathShoulders">item-info.xml?i=<xsl:value-of select = "$pathShoulders/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.shoulders.id, '2');" onMouseOut = "javascript: mouseOutArrow('2');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('2');" onMouseOut = "javascript: mouseOutArrow('2');" id = "flyOver2x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathShoulders/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot14x"><xsl:attribute name = "src"><xsl:if test = "$pathBack">/wow-icons/_images/51x51/<xsl:value-of select = "$pathBack/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.back, theCharUrl + '&amp;s={$pathBack/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver14x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathBack">item-info.xml?i=<xsl:value-of select = "$pathBack/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.back.id, '14');" onMouseOut = "javascript: mouseOutArrow('14');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('14');" onMouseOut = "javascript: mouseOutArrow('14');" id = "flyOver14x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathBack/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot4x"><xsl:attribute name = "src"><xsl:if test = "$pathChest">/wow-icons/_images/51x51/<xsl:value-of select = "$pathChest/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.chest, theCharUrl + '&amp;s={$pathChest/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver4x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathChest">item-info.xml?i=<xsl:value-of select = "$pathChest/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.chest.id, '4');" onMouseOut = "javascript: mouseOutArrow('4');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('4');" onMouseOut = "javascript: mouseOutArrow('4');" id = "flyOver4x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathChest/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li class="noUpgrade"><img id = "slot3x"><xsl:attribute name = "src"><xsl:if test = "$pathShirt">/wow-icons/_images/51x51/<xsl:value-of select = "$pathShirt/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.shirt)" onMouseOut = "hideTip();" class="thisTip" id = "slotOver3x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathShirt">item-info.xml?i=<xsl:value-of select = "$pathShirt/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a></li>
	<li class="noUpgrade"><img id = "slot18x"><xsl:attribute name = "src"><xsl:if test = "$pathTabard">/wow-icons/_images/51x51/<xsl:value-of select = "$pathTabard/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.tabard)" onMouseOut = "hideTip();" class="thisTip" id = "slotOver18x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathTabard">item-info.xml?i=<xsl:value-of select = "$pathTabard/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a></li>
	<li><img id = "slot8x"><xsl:attribute name = "src"><xsl:if test = "$pathWrist">/wow-icons/_images/51x51/<xsl:value-of select = "$pathWrist/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.wrist, theCharUrl + '&amp;s={$pathWrist/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver8x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathWrist">item-info.xml?i=<xsl:value-of select = "$pathWrist/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.wrist.id, '8');" onMouseOut = "javascript: mouseOutArrow('8');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('8');" onMouseOut = "javascript: mouseOutArrow('8');" id = "flyOver8x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathWrist/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
   </ul>
  </div><!--/items-left/-->
  <div class="items-right">
   <ul>
    <li><img id = "slot9x"><xsl:attribute name = "src"><xsl:if test = "$pathHands">/wow-icons/_images/51x51/<xsl:value-of select = "$pathHands/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.hands, theCharUrl + '&amp;s={$pathHands/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver9x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathHands">item-info.xml?i=<xsl:value-of select = "$pathHands/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.hands.id, '9');" onMouseOut = "javascript: mouseOutArrow('9');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('9');" onMouseOut = "javascript: mouseOutArrow('9');" id = "flyOver9x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathHands/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
    <li><img id = "slot5x"><xsl:attribute name = "src"><xsl:if test = "$pathWaist">/wow-icons/_images/51x51/<xsl:value-of select = "$pathWaist/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.waist, theCharUrl + '&amp;s={$pathWaist/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver5x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathWaist">item-info.xml?i=<xsl:value-of select = "$pathWaist/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.waist.id, '5');" onMouseOut = "javascript: mouseOutArrow('5');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('5');" onMouseOut = "javascript: mouseOutArrow('5');" id = "flyOver5x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathWaist/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot6x"><xsl:attribute name = "src"><xsl:if test = "$pathLegs">/wow-icons/_images/51x51/<xsl:value-of select = "$pathLegs/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.legs, theCharUrl + '&amp;s={$pathLegs/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver6x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathLegs">item-info.xml?i=<xsl:value-of select = "$pathLegs/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.legs.id, '6');" onMouseOut = "javascript: mouseOutArrow('6');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('6');" onMouseOut = "javascript: mouseOutArrow('6');" id = "flyOver6x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathLegs/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot7x"><xsl:attribute name = "src"><xsl:if test = "$pathFeet">/wow-icons/_images/51x51/<xsl:value-of select = "$pathFeet/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.feet, theCharUrl + '&amp;s={$pathFeet/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver7x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathFeet">item-info.xml?i=<xsl:value-of select = "$pathFeet/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.feet.id, '7');" onMouseOut = "javascript: mouseOutArrow('7');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('7');" onMouseOut = "javascript: mouseOutArrow('7');" id = "flyOver7x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathFeet/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot10x"><xsl:attribute name = "src"><xsl:if test = "$pathRingOne">/wow-icons/_images/51x51/<xsl:value-of select = "$pathRingOne/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.finger1, theCharUrl + '&amp;s={$pathRingOne/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver10x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathRingOne">item-info.xml?i=<xsl:value-of select = "$pathRingOne/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.finger1.id, '10');" onMouseOut = "javascript: mouseOutArrow('10');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('10');" onMouseOut = "javascript: mouseOutArrow('10');" id = "flyOver10x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathRingOne/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot11x"><xsl:attribute name = "src"><xsl:if test = "$pathRingTwo">/wow-icons/_images/51x51/<xsl:value-of select = "$pathRingTwo/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.finger2, theCharUrl + '&amp;s={$pathRingTwo/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver11x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathRingTwo">item-info.xml?i=<xsl:value-of select = "$pathRingTwo/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.finger2.id, '11');" onMouseOut = "javascript: mouseOutArrow('11');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('11');" onMouseOut = "javascript: mouseOutArrow('11');" id = "flyOver11x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathRingTwo/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot12x"><xsl:attribute name = "src"><xsl:if test = "$pathTrinketOne">/wow-icons/_images/51x51/<xsl:value-of select = "$pathTrinketOne/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.trinket1, theCharUrl + '&amp;s={$pathTrinketOne/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver12x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathTrinketOne">item-info.xml?i=<xsl:value-of select = "$pathTrinketOne/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.trinket1.id, '12');" onMouseOut = "javascript: mouseOutArrow('12');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('12');" onMouseOut = "javascript: mouseOutArrow('12');" id = "flyOver12x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathTrinketOne/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
	<li><img id = "slot13x"><xsl:attribute name = "src"><xsl:if test = "$pathTrinketTwo">/wow-icons/_images/51x51/<xsl:value-of select = "$pathTrinketTwo/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.trinket2, theCharUrl + '&amp;s={$pathTrinketTwo/@slot}')" onMouseOut = "hideTip();" class="thisTip" id = "slotOver13x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathTrinketTwo">item-info.xml?i=<xsl:value-of select = "$pathTrinketTwo/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.trinket2.id, '13');" onMouseOut = "javascript: mouseOutArrow('13');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('13');" onMouseOut = "javascript: mouseOutArrow('13');" id = "flyOver13x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathTrinketTwo/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
   </ul>
  </div><!--/items-right/-->

  <div class="buffs">
   <ul>
     <xsl:for-each select="characterTab/buffs/spell">
	   <xsl:variable name = "buffIcon">
	     <xsl:choose>
	       <xsl:when test = "@icon != 'Temp'"><xsl:value-of select="@icon"/></xsl:when>
		   <xsl:otherwise>inv_misc_questionmark</xsl:otherwise>
	     </xsl:choose>
	   </xsl:variable>
		  <script type="text/javascript">
			buffArray[<xsl:value-of select = "position()" />] = "&lt;span class='tooltipContentSpecial tooltipTitle'&gt;<xsl:value-of select = "@name" />&lt;/span&gt;\
<xsl:call-template name = "search-and-replace">
  <xsl:with-param name = "input" select = "@effect" />
  <xsl:with-param name = "search-string" select = "'&#10;&#10;'" />
  <xsl:with-param name = "replace-string" select = "'&lt;br /&gt;'" />
</xsl:call-template>";
		  </script>
		   <li><img src="/wow-icons/_images/21x21/{$buffIcon}.png" height="21" width="21" onMouseOver="showTip(buffArray[{position()}]);" onMouseOut="hideTip()" class = "ci" /></li>
	 </xsl:for-each>
   </ul>
  </div>
  <div class="debuffs">
   <ul>
     <xsl:for-each select="characterTab/debuffs/spell">   
	   <xsl:variable name = "debuffIcon">
	     <xsl:choose>
	       <xsl:when test = "@icon != 'Temp'"><xsl:value-of select="@icon"/></xsl:when>
		   <xsl:otherwise>inv_misc_questionmark</xsl:otherwise>
	     </xsl:choose>
	   </xsl:variable>
			<script type="text/javascript">
				debuffArray[<xsl:value-of select = "position()" />] = "&lt;span class='tooltipContentSpecial tooltipTitle'&gt;<xsl:value-of select = "@name" />&lt;/span&gt;<xsl:value-of select = "@effect" />";
			</script>
			<li><img src="/wow-icons/_images/21x21/{$debuffIcon}.png" class = "ci" onMouseOver="showTip(debuffArray[{position()}]);" onMouseOut="hideTip()" /></li>
	 </xsl:for-each>
   </ul>
  </div>
  <div class="spec"><img src="/images/pixel.gif" height="1" width="1" class="ieimg" /> 
   <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em>
   <h4><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character.talent-specialization']"/></h4>
   <div class="spec-wrapper"><div style="position:absolute; left:15px;"><img id="talentSpecImage" /></div>   
   <h4><a href="character-talents.xml?{$charUrl}"><div id="replaceTalentSpecText"></div></a></h4><span><xsl:value-of select="characterTab/talentSpec/@treeOne" /> / <xsl:value-of select="characterTab/talentSpec/@treeTwo" /> / <xsl:value-of select="characterTab/talentSpec/@treeThree" /></span></div>

<span style="display:none;">start</span><!--needed to fix IE bug that ignores script includes-->
<script type="text/javascript">

	var talentsTreeArray = new Array;
	talentsTreeArray[0] = [1, <xsl:value-of select="characterTab/talentSpec/@treeOne" />, "<xsl:value-of select="$loc/strs/talents/str[@id=concat('armory.class', $theClassId, '.talents.tree.one')]"/>"];
	talentsTreeArray[1] = [2, <xsl:value-of select="characterTab/talentSpec/@treeTwo" />, "<xsl:value-of select="$loc/strs/talents/str[@id=concat('armory.class', $theClassId, '.talents.tree.two')]"/>"];
	talentsTreeArray[2] = [3, <xsl:value-of select="characterTab/talentSpec/@treeThree" />, "<xsl:value-of select="$loc/strs/talents/str[@id=concat('armory.class', $theClassId, '.talents.tree.three')]"/>"];
</script>

  </div>
  <div class="resists">
   <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em>  
   <h4><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character.resistances']"/></h4>
   <ul>
    <li onMouseOver="showTip(theText.resistances.arcane.tooltip);" onMouseOut="hideTip();" class="arcane"><b><xsl:value-of select="characterTab/resistances/arcane/@value" /></b>
	<span id = "spanResistArcane"><xsl:value-of select="characterTab/resistances/arcane/@value" /></span><h4><a><xsl:value-of select="$loc/strs/spellType/str[@id='armory.spell-type.arcane']"/></a></h4></li>
   
    <li onMouseOver="showTip(theText.resistances.fire.tooltip);" onMouseOut="hideTip();" class="fire"><b><xsl:value-of select="characterTab/resistances/fire/@value" /></b>
	<span id = "spanResistFire"><xsl:value-of select="characterTab/resistances/fire/@value" /></span><h4><a><xsl:value-of select="$loc/strs/spellType/str[@id='armory.spell-type.fire']"/></a></h4></li>

    <li onMouseOver="showTip(theText.resistances.nature.tooltip);" onMouseOut="hideTip();" class="nature"><b><xsl:value-of select="characterTab/resistances/nature/@value" /></b>
	<span id = "spanResistNature"><xsl:value-of select="characterTab/resistances/nature/@value" /></span><h4><a><xsl:value-of select="$loc/strs/spellType/str[@id='armory.spell-type.nature']"/></a></h4></li>

    <li onMouseOver="showTip(theText.resistances.frost.tooltip);" onMouseOut="hideTip();" class="frost"><b><xsl:value-of select="characterTab/resistances/frost/@value" /></b>
	<span id = "spanResistFrost"><xsl:value-of select="characterTab/resistances/frost/@value" /></span><h4><a><xsl:value-of select="$loc/strs/spellType/str[@id='armory.spell-type.frost']"/></a></h4></li>

    <li onMouseOver="showTip(theText.resistances.shadow.tooltip);" onMouseOut="hideTip();" class="shadow"><b><xsl:value-of select="characterTab/resistances/shadow/@value" /></b>
	<span id = "spanResistShadow"><xsl:value-of select="characterTab/resistances/shadow/@value" /></span><h4><a><xsl:value-of select="$loc/strs/spellType/str[@id='armory.spell-type.shadow']"/></a></h4></li>

   </ul>
  </div>
  <div class="profs">
   <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em>  
   
   
   <xsl:choose>
   <xsl:when test = "$isPropass = 'true'"><h4><xsl:value-of select="$loc/strs/propass/str[@id='pvpinfo']"/></h4>
   
   <div class="tooltipContentSpecial" style="padding-left: 15px; padding-top: 5px;">
   <span style="font-size: 12px; font-weight: bold; "><xsl:value-of select="$loc/strs/propass/str[@id='personalrating']"/>&#160;</span><span style="color:#FFFFFF; font-size: 14px;"><xsl:choose><xsl:when test = "$pathPropassChar"><xsl:value-of select = "$pathPropassChar/@contribution" /></xsl:when><xsl:otherwise><span style="font-size: 11px;">N/A</span></xsl:otherwise></xsl:choose></span><p />
   <span style="font-size: 10px;"><xsl:value-of select="$loc/strs/propass/str[@id='winrecord']"/>&#160;</span><xsl:choose><xsl:when test = "$pathPropassChar"><span style="color:#FFFFFF; "><span style="color:#00CC00"><xsl:value-of select = "$pathPropassChar/@seasonGamesWon" /></span> - <span style="color:#FF0000 "><xsl:value-of select = "$pathPropassChar/@seasonGamesPlayed - $pathPropassChar/@seasonGamesWon" /></span></span></xsl:when><xsl:otherwise><span style="color:#FFFFFF">N/A</span></xsl:otherwise></xsl:choose> <br />
   <span style="font-size: 10px;"><xsl:value-of select="$loc/strs/propass/str[@id='winpercentage']"/>&#160;</span><span style="color:#FFFFFF; "><xsl:choose>
    <xsl:when test = "not ($pathPropassChar)"><span style="color:#FFFFFF">N/A</span></xsl:when>
   <xsl:when test = "@seasonGamesPlayed = 0">0&#37;</xsl:when>
   <xsl:otherwise><xsl:value-of select = "round($pathPropassChar/@seasonGamesWon div $pathPropassChar/@seasonGamesPlayed * 100)" />&#37;</xsl:otherwise>
   </xsl:choose></span>
   </div>
   
   </xsl:when>
   <xsl:otherwise>
   <h4><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character.professions-primary']"/></h4>
   
   <xsl:for-each select="characterTab/professions/skill">

   <xsl:variable name="profValue" select="@value" />
   <xsl:variable name="profMax" select="@max" />
   
   <div class="prof1">
   <div class="profImage"><img src="/images/icons/professions/{@key}-sm.gif" /></div>
   	<!--<xsl:attribute name="style">
	  background: url('/images/icons/professions/<xsl:value-of select="@key" />-sm.png') no-repeat 15px 17px;
	</xsl:attribute>-->

    <h4><a href="character-skills.xml?{$charUrl}"><xsl:value-of select="@name" /></a></h4>
	<div class="bar-container"><img src="/images/pixel.gif" height="1" width="1" class="ieimg" /> 
	<b>
	<xsl:attribute name="style"> width: <xsl:choose><xsl:when test = "$profValue &lt; $profMax"><xsl:value-of select="number(100 * $profValue div $profMax)" /></xsl:when><xsl:otherwise>100</xsl:otherwise></xsl:choose>%</xsl:attribute></b><span><xsl:value-of select="@value" /> / <xsl:value-of select="@max" /></span></div>
   </div>
   </xsl:for-each>

   <xsl:choose>
     <xsl:when test = "count(characterTab/professions/skill) = 0">

   <div class="prof1">
   <div class="profImage"><img src="/images/icons/professions/none-sm.gif" /></div>
    <h4><a><xsl:value-of select="$loc/strs/common/str[@id='armory.none']"/></a></h4>
	<div class="bar-container"><img src="/images/pixel.gif" height="1" width="1" class="ieimg" /> 
	<b>
	<xsl:attribute name="style"> width: 0%</xsl:attribute></b><span><xsl:value-of select="$loc/strs/general/str[@id='armory.labels.na']"/></span></div>
   </div>

	 </xsl:when>
   </xsl:choose>

   <xsl:choose>
     <xsl:when test = "count(characterTab/professions/skill) = 1 or count(characterTab/professions/skill) = 0">
   <div class="prof1">
   <div class="profImage"><img src="/images/icons/professions/none-sm.gif" /></div>
    <h4><a><xsl:value-of select="$loc/strs/common/str[@id='armory.none']"/></a></h4>
	<div class="bar-container"><img src="/images/pixel.gif" height="1" width="1" class="ieimg" /> 
	<b>
	<xsl:attribute name="style"> width: 0%</xsl:attribute></b><span><xsl:value-of select="$loc/strs/general/str[@id='armory.labels.na']"/></span></div>
   </div>
	 </xsl:when>
   </xsl:choose>
   </xsl:otherwise>
   </xsl:choose>

  </div>
</div><!--/stack1/-->
<div class="stack2">
  <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em> 
   <div class="health-stat">
    <h4><xsl:value-of select="$loc/strs/character/str[@id='character.health']"/></h4><p><span><xsl:value-of select="characterTab/characterBars/health/@effective" /></span></p>
   </div>
   <div>
   <xsl:attribute name = "class">
     <xsl:choose>
	   <xsl:when test="$theSecondBar='r'">rage-stat</xsl:when>
	   <xsl:when test="$theSecondBar='e'">energy-stat</xsl:when>
       <xsl:when test="$theSecondBar='p'">runic-stat</xsl:when>	   
	   <xsl:otherwise>mana-stat</xsl:otherwise>
	 </xsl:choose>
   </xsl:attribute>
  
    <h4>
	
     <xsl:choose>
	   <xsl:when test = "$theSecondBar = 'r'">
	     <xsl:value-of select="$loc/strs/character/str[@id='character.rage']"/>
	   </xsl:when>
	   <xsl:when test = "$theSecondBar = 'e'">
	     <xsl:value-of select="$loc/strs/character/str[@id='character.energy']"/>
	   </xsl:when>
       <xsl:when test = "$theSecondBar = 'p'">
	     <xsl:value-of select="$loc/strs/character/str[@id='character.runicpower']"/>
	   </xsl:when>	    
	   <xsl:otherwise>
	     <xsl:value-of select="$loc/strs/character/str[@id='character.mana']"/>
	   </xsl:otherwise>
	 </xsl:choose>
	</h4><p><span><xsl:value-of select="characterTab/characterBars/secondBar/@effective" /></span></p>
   </div>
</div><!--/stack2/-->

<div class="stack3">

<xsl:call-template name="dropdownMenu">
<xsl:with-param name="hiddenId" select="'Left'"/>
<xsl:with-param name="defaultValue" select = "$loc/strs/characterSheet/str[@id='armory.character-sheet.base-stats.display']" />
  <xsl:with-param name="divClass" select = "'dropdown1'" />
<xsl:with-param name="anchorClass" select = "'profile-stats'" />
</xsl:call-template>
  <div class="drop-stats" style="display: none; z-index: 99999;" id = "dropdownHiddenLeft" onMouseOver="javascript: varOverLeft = 1;" onMouseOut="javascript: varOverLeft = 0;">
  <div class="tooltip">
  <table><tr><td class="tl" /><td class="t" /><td class="tr" /></tr><tr><td class="l" /><td class="bg">
   <ul>
	<li><a href = "#" onClick="changeStats('Left', replaceStringBaseStats, 'BaseStats', baseStatsDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.base-stats.display']"/><img id = "checkLeftBaseStats" src="/images/icons/icon-check.gif" style = "visibility: visible;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Left', replaceStringMelee, 'Melee', meleeDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.melee.display']"/><img id = "checkLeftMelee" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Left', replaceStringRanged, 'Ranged', rangedDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.ranged.display']"/><img id = "checkLeftRanged" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Left', replaceStringSpell, 'Spell', spellDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.spell.display']"/><img id = "checkLeftSpell" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Left', replaceStringDefenses, 'Defenses', defensesDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.defenses.display']"/><img id = "checkLeftDefenses" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
   </ul>
   </td><td class="r" /></tr><tr><td class="bl" /><td class="b" /><td class="br" /></tr> </table>
  </div>  
 </div>

<xsl:call-template name="dropdownMenu">
  <xsl:with-param name="hiddenId" select="'Right'"/>
  <xsl:with-param name="defaultValue" select = "$loc/strs/characterSheet/str[@id='armory.character-sheet.base-stats.display']" />
  <xsl:with-param name="divClass" select = "'dropdown2'" />
  <xsl:with-param name="anchorClass" select = "'profile-stats'" />
</xsl:call-template>

   <div class="drop-stats" style="display: none; z-index: 9999999; left: 190px;" id="dropdownHiddenRight" onMouseOver="javascript: varOverRight = 1;" onMouseOut="javascript: varOverRight = 0;">
  <div class="tooltip">
  <table><tr><td class="tl" /><td class="t" /><td class="tr" /></tr><tr><td class="l" /><td class="bg">
   <ul>
    <li><a href = "#" onClick="changeStats('Right', replaceStringBaseStats, 'BaseStats', baseStatsDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.base-stats.display']"/><img id = "checkRightBaseStats" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Right', replaceStringMelee, 'Melee', meleeDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.melee.display']"/><img id = "checkRightMelee" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Right', replaceStringRanged, 'Ranged', rangedDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.ranged.display']"/><img id = "checkRightRanged" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Right', replaceStringSpell, 'Spell', spellDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.spell.display']"/><img id = "checkRightSpell" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
	<li><a href = "#" onClick="changeStats('Right', replaceStringDefenses, 'Defenses', defensesDisplay); return false;"><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.defenses.display']"/><img id = "checkRightDefenses" src="/images/icons/icon-check.gif" style = "visibility: hidden;" class="checkmark" /></a></li>
   </ul>
   </td><td class="r" /></tr><tr><td class="bl" /><td class="b" /><td class="br" /></tr></table>
  </div>
 </div><!--/drop-stats/-->
 
 <div class="stats1">
  <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em>  
  <div class="character-stats">
   <div id="replaceStatsLeft"></div>

  </div>   
 </div>
 <div class="stats2">
  <em class="ptl"></em><em class="ptr"></em><em class="pbl"></em><em class="pbr"></em>  
  <div class="character-stats"> 
   <div id="replaceStatsRight"></div>
<script type="text/javascript" src="js/character/textObjects.js"></script>  

  </div> 
 </div>
</div><!--/stack3/-->
<div class="stack4">
 <div class="items-bot">
   <ul>
    <li><img id = "slot15x"><xsl:attribute name = "src"><xsl:if test = "$pathMainHand">/wow-icons/_images/51x51/<xsl:value-of select = "$pathMainHand/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.mainHand, theCharUrl + '&amp;s={$pathMainHand/@slot}')" onMouseOut = "javascript: hideTip();" class="thisTip" id = "slotOver15x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathMainHand">item-info.xml?i=<xsl:value-of select = "$pathMainHand/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.mainHand.id, '15');" onMouseOut = "javascript: mouseOutArrow('15');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('15');" onMouseOut = "javascript: mouseOutArrow('15');" id = "flyOver15x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathMainHand/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
    <li><img id = "slot16x"><xsl:attribute name = "src"><xsl:if test = "$pathOffHand">/wow-icons/_images/51x51/<xsl:value-of select = "$pathOffHand/@icon" />.jpg</xsl:if></xsl:attribute></img><a onMouseOver="javascript: loadTooltip(textLoading, items.offHand, theCharUrl + '&amp;s={$pathOffHand/@slot}')" onMouseOut = "javascript: hideTip();" class="thisTip" id = "slotOver16x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathOffHand">item-info.xml?i=<xsl:value-of select = "$pathOffHand/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.offHand.id, '16');" onMouseOut = "javascript: mouseOutArrow('16');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('16');" onMouseOut = "javascript: mouseOutArrow('16');" id = "flyOver16x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href">search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathOffHand/@id" /></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
    <li>
	<u>
	<xsl:attribute name="class">
	  <xsl:choose>  
        <xsl:when test = "$theClassId = 11 or $theClassId = 2 or $theClassId = 7 or $theClassId = 6">relic</xsl:when>
      </xsl:choose>
	</xsl:attribute>
	<img id="slot17x"><xsl:attribute name = "src"><xsl:if test = "$pathRanged">/wow-icons/_images/51x51/<xsl:value-of select = "$pathRanged/@icon" />.jpg</xsl:if></xsl:attribute></img>
	</u><a onMouseOver="javascript: loadTooltip(textLoading, items.ranged, theCharUrl + '&amp;s={$pathRanged/@slot}')" onMouseOut = "javascript: hideTip();" class="thisTip" id = "slotOver17x"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$pathRanged">item-info.xml?i=<xsl:value-of select = "$pathRanged/@id" /></xsl:when><xsl:otherwise>javascript: return false;</xsl:otherwise></xsl:choose></xsl:attribute></a><b class = "hitBoxArrow" onMouseOver = "javascript: mouseOverArrow(items.ranged.id, '17');" onMouseOut = "javascript: mouseOutArrow('17');"></b><div onMouseOver = "javascript: mouseOverUpgradeBox('17');" onMouseOut = "javascript: mouseOutArrow('17');" id = "flyOver17x" style="visibility: hidden;"><div id="flyoutMenu" class="fly-horz"><a class="upgrd"><xsl:attribute name = "href"><xsl:choose><xsl:when test = "$theClassId = 6">search.xml?fl%5Bsource%5D=all&amp;fl%5Btype%5D=armor&amp;fl%5BsubTp%5D=sigil&amp;searchType=items</xsl:when><xsl:when test = "$theClassId = 11">search.xml?fl%5Bsource%5D=all&amp;fl%5Btype%5D=armor&amp;fl%5BsubTp%5D=idol&amp;searchType=items</xsl:when><xsl:when test = "$theClassId = 2">search.xml?fl%5Bsource%5D=all&amp;fl%5Btype%5D=armor&amp;fl%5BsubTp%5D=libram&amp;searchType=items</xsl:when><xsl:when test = "$theClassId = 7">search.xml?fl%5Bsource%5D=all&amp;fl%5Btype%5D=armor&amp;fl%5BsubTp%5D=totem&amp;searchType=items</xsl:when><xsl:otherwise>search.xml?searchType=items&amp;<xsl:value-of select = "$recUpgradeUrl" />&amp;pi=<xsl:value-of select = "$pathRanged/@id" /></xsl:otherwise></xsl:choose></xsl:attribute><xsl:value-of select = "$textFindUpgrade" /></a></div></div></li>
   </ul>
  </div>

<script type="text/javascript">
  var items = new itemsObject();
</script>


<xsl:if test="characterTab/quivers/quiver">
  <div class="ammo" onMouseOver = "javascript: loadTooltip(textLoading, {characterTab/quivers/quiver/@id});" onMouseOut = "javascript: hideTip();">
   <img src = "/wow-icons/_images/43x43/{characterTab/quivers/quiver/@icon}.png"/><p></p>
  </div>
</xsl:if>

  
</div><!--/stack4/-->

<div class="lastModified"><span><xsl:value-of select="$loc/strs/general/str[@id='armory.character.lastModified']"/></span>&#160;<strong><xsl:value-of select="$lastModified" /></strong></div>

</div><!--/profile-master/-->

<xsl:variable name = "team2path" select = "character/arenaTeams/arenaTeam[@size=2]" />
<xsl:variable name = "team3path" select = "character/arenaTeams/arenaTeam[@size=3]" />
<xsl:variable name = "team5path" select = "character/arenaTeams/arenaTeam[@size=5]" />

<div class="bonus-stats">
<xsl:attribute name = "style">
<xsl:if test = "$isPropass = 'true' or (characterTab/pvp/lifetimehonorablekills/@value &lt; 1337) and (string-length($team2path) = 0) and (string-length($team3path) = 0) and (string-length($team5path) = 0)">display: none;</xsl:if>
</xsl:attribute>

<table class="deco-frame">
 <thead>
  <tr><td class="sl"></td><td class="ct st"></td><td class="sr"></td></tr>
 </thead>
<tbody>
 <tr><td class="sl"><b><em class="port"></em></b></td><td class="ct">

  <table><tr><td class="s-top-left" /><td class="s-top" /><td class="s-top-right" /></tr><tr><td class="s-left"><div class="shim stable" /></td><td class="s-bg">
    <div class="bonus-stats-content">
     <div>
	  <em class="b-title"></em>
       <div class="achievements external">

<xsl:choose>
<xsl:when test="character/arenaTeams">

<div id ="divAchievementArenaTeams">
<h2><a href="character-arenateams.xml?{$charUrl}" style="float:right; position:relative;"><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.morearenateams']"/></a><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.header.arena']"/></h2>



<xsl:variable name = "team2ranking" select = "$team2path/@ranking" />
<xsl:variable name = "team3ranking" select = "$team3path/@ranking" />
<xsl:variable name = "team5ranking" select = "$team5path/@ranking" />
<xsl:variable name = "textRatingColon" select = "$loc/strs/unsorted/str[@id='armory.labels.ratingcolon']" />


<ul class="badges-pvp">
 <li>
  <div>
	<xsl:attribute name = "class">
	  <xsl:choose>
	    <xsl:when test = "string-length($team2path) = 0" >arena-team-faded</xsl:when>
	    <xsl:otherwise>arenacontainer</xsl:otherwise>
	  </xsl:choose>
	</xsl:attribute>
	
	<h4><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.2v2']"/></h4>
	<em><span><xsl:choose>
	<xsl:when test = "string-length($team2path) != 0"><xsl:value-of select = "$textRatingColon" /> <xsl:value-of select = "$team2path/@rating" /></xsl:when>
	<xsl:otherwise><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.noteam']"/></xsl:otherwise>
	</xsl:choose></span></em>
	<div class="icon" onMouseOut = "hideTip();" id = "icon2v2team">
	<xsl:attribute name = "onClick">
	  <xsl:if test = "$team2path" >javascript: window.location.href = "team-info.xml?<xsl:value-of select="$team2path/@url" />"</xsl:if>
	</xsl:attribute>
	<xsl:attribute name = "onMouseOver">
	  <xsl:if test = "$team2path" >showTip(tooltip2v2team);</xsl:if>
	</xsl:attribute>
	<xsl:attribute name = "style">
	  <xsl:if test = "$team2path" >cursor: pointer;</xsl:if>
	</xsl:attribute>
	<img src = "/images/pixel.gif" id = "badgeBorder2v2team" class="p" border = "0" />

<xsl:choose>
<xsl:when test = "$team2path" >

<xsl:variable name = "standing2Print">
	<xsl:choose>
	<xsl:when test = "$team2ranking != 0 and $team2ranking &lt;= 1000">
	<xsl:value-of select = "$team2ranking" /><xsl:call-template name="positionSuffix"><xsl:with-param name="pos" select="$team2ranking"/></xsl:call-template>
	</xsl:when>
	</xsl:choose>
</xsl:variable>

    <div class="rank-num" id="arenarank">
		<xsl:call-template name="flash">
		<xsl:with-param name="id" select="'arenarank'"/>
		<xsl:with-param name="src" select="'/images/rank.swf'"/>
		<xsl:with-param name="wmode" select="'transparent'"/>
		<xsl:with-param name="width" select="'100'"/>
		<xsl:with-param name="height" select="'40'"/>
		<xsl:with-param name="quality" select="'best'"/>
		<xsl:with-param name="flashvars" select="concat('rankNum=', $standing2Print)"/>
		</xsl:call-template>
	</div>
</xsl:when>
</xsl:choose>
	
	</div></div>
	</li>	
	<li>
	<div>
	<xsl:attribute name="class">
	  <xsl:choose>
	    <xsl:when test = "string-length($team3path) = 0" >arena-team-faded</xsl:when>
	    <xsl:otherwise>arenacontainer</xsl:otherwise>
	  </xsl:choose>
	</xsl:attribute>
		
	<h4><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.3v3']"/></h4>
	<em><span><xsl:choose>
	<xsl:when test = "string-length($team3path) != 0"><xsl:value-of select = "$textRatingColon" /> <xsl:value-of select = "$team3path/@rating" /></xsl:when>
	<xsl:otherwise><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.noteam']"/></xsl:otherwise>
	</xsl:choose></span></em>
	
	<div class="icon" onMouseOut = "hideTip();" id = "icon3v3team">
	<xsl:attribute name = "onClick">
	  <xsl:choose>
	    <xsl:when test = "$team3path" >javascript: window.location.href = "team-info.xml?<xsl:value-of select="$team3path/@url" />"</xsl:when>
	  </xsl:choose>
	</xsl:attribute>
	<xsl:attribute name = "onMouseOver">
	  <xsl:choose>
	    <xsl:when test = "$team3path" >showTip(tooltip3v3team);</xsl:when>
	  </xsl:choose>
	</xsl:attribute>	
	<xsl:attribute name = "style">
	  <xsl:choose>
	    <xsl:when test = "$team3path" >cursor: pointer;</xsl:when>
	    <xsl:otherwise>cursor: default;</xsl:otherwise>
	  </xsl:choose>
	</xsl:attribute>
	
	<img src="/images/pixel.gif" id = "badgeBorder3v3team" class="p" border = "0"/>

<xsl:choose>
<xsl:when test="$team3path" >

<xsl:variable name="standing3Print">
	<xsl:choose>
	<xsl:when test="$team3ranking != 0 and $team3ranking &lt;= 1000">
	<xsl:value-of select="$team3ranking" /><xsl:call-template name="positionSuffix"><xsl:with-param name="pos" select="$team3ranking"/></xsl:call-template>
	</xsl:when>
	</xsl:choose>
</xsl:variable>

	<div class="rank-num" id="arenarank2">
		<xsl:call-template name="flash">
		<xsl:with-param name="id" select="'arenarank2'"/>
		<xsl:with-param name="src" select="'/images/rank.swf'"/>
		<xsl:with-param name="wmode" select="'transparent'"/>
		<xsl:with-param name="width" select="'100'"/>
		<xsl:with-param name="height" select="'40'"/>
		<xsl:with-param name="quality" select="'best'"/>
		<xsl:with-param name="flashvars" select="concat('rankNum=', $standing3Print)"/>
		</xsl:call-template>
	</div>
</xsl:when>
</xsl:choose>	
	
	
  	</div>
	</div>
	</li>
	
	<li>
	<div>
	<xsl:attribute name = "class">
	  <xsl:choose>
	    <xsl:when test = "string-length($team5path) = 0" >arena-team-faded</xsl:when>
	    <xsl:otherwise>arenacontainer</xsl:otherwise>
	  </xsl:choose>
	</xsl:attribute>
	
	<h4><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.5v5']"/></h4>
	<em><span><xsl:choose>
	<xsl:when test = "string-length($team5path) != 0"><xsl:value-of select = "$textRatingColon" /> <xsl:value-of select = "$team5path/@rating" /></xsl:when>
	<xsl:otherwise><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.noteam']"/></xsl:otherwise>
	</xsl:choose></span></em>

	<div class="icon" onMouseOut = "hideTip();" id = "icon5v5team">
	<xsl:attribute name = "onClick">
	  <xsl:choose>
	    <xsl:when test = "$team5path" >javascript: window.location.href = "team-info.xml?<xsl:value-of select="$team5path/@url" />"</xsl:when>
	  </xsl:choose>
	</xsl:attribute>
	<xsl:attribute name = "onMouseOver">
	  <xsl:choose>
	    <xsl:when test = "$team5path" >showTip(tooltip5v5team);</xsl:when>
	  </xsl:choose>
	</xsl:attribute>	
	<xsl:attribute name = "style">
	  <xsl:choose>
	    <xsl:when test = "$team5path" >cursor: pointer;</xsl:when>
	    <xsl:otherwise>cursor: default;</xsl:otherwise>
	  </xsl:choose>
	</xsl:attribute>	
	<img src = "/images/pixel.gif" id = "badgeBorder5v5team" class="p" border = "0"/>

<xsl:choose>
<xsl:when test = "$team5path" >

<xsl:variable name = "standing5Print">
	<xsl:choose>
	<xsl:when test = "$team5ranking != 0 and $team5ranking &lt;= 1000 ">
	<xsl:value-of select = "$team5ranking" /><xsl:call-template name="positionSuffix"><xsl:with-param name="pos" select="$team5ranking"/></xsl:call-template>
	</xsl:when>
	</xsl:choose>
</xsl:variable>

	<div class="rank-num" id="arenarank3">
		<xsl:call-template name="flash">
		<xsl:with-param name="id" select="'arenarank3'"/>
		<xsl:with-param name="src" select="'/images/rank.swf'"/>
		<xsl:with-param name="wmode" select="'transparent'"/>
		<xsl:with-param name="width" select="'100'"/>
		<xsl:with-param name="height" select="'40'"/>
		<xsl:with-param name="quality" select="'best'"/>
		<xsl:with-param name="flashvars" select="concat('rankNum=', $standing5Print)"/>
		</xsl:call-template>
	</div>
</xsl:when>
</xsl:choose>	
	
	</div>	
	</div>
	</li>
</ul>

<ul class="badges-pvp personalrating">
	<li><div><em><span>
	
	<xsl:if test = "$team2path">
		<xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.personalratingcolon']"/><xsl:value-of select = "$team2path/members/character[@name=$theCharName]/@contribution" />
	</xsl:if>
	
	</span></em></div></li>
	<li><div><em><span>
	
	<xsl:if test = "$team3path">
		<xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.personalratingcolon']"/><xsl:value-of select = "$team3path/members/character[@name=$theCharName]/@contribution" />
	</xsl:if>
	
	</span></em></div></li>
	<li><div><em><span>
	
	<xsl:if test = "$team5path">
		<xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.personalratingcolon']"/><xsl:value-of select = "$team5path/members/character[@name=$theCharName]/@contribution" />
	</xsl:if>
	
	</span></em></div></li>
</ul>

</div>

<script type="text/javascript">

  var arenaTeamArray = new Array;
  <xsl:for-each select = "character/arenaTeams/arenaTeam">
      arenaTeamArray[<xsl:value-of select="@size" />] = ["<xsl:value-of select="@name" />", "<xsl:value-of select="@url" />", "<xsl:value-of select="@ranking" />", <xsl:value-of select="@seasonGamesWon" />, <xsl:value-of select="@rating" />];
  </xsl:for-each>

</script>

<script type="text/javascript" src="js/character/arenaTooltips.js"></script>

</xsl:when>
</xsl:choose>

<xsl:choose>
<xsl:when test = "characterTab/pvp/lifetimehonorablekills/@value &gt;= 1337">
<h2><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.header.pvp']"/></h2>
	  <h3><xsl:value-of select="$loc/strs/unsorted/str[@id='armory.labels.hks']"/> <strong><xsl:value-of select = "characterTab/pvp/lifetimehonorablekills/@value" /></strong></h3>
</xsl:when>
</xsl:choose>

<div style="clear:both;"></div></div>
<!--<div class="bonus-footer"><p><a href="">More Reputations</a></p><a class="page-button-forward"></a><a class="page-button-back back-off"></a></div>-->
		</div>
		</div><!--/bonus-stats-content/-->
		</td><td class="s-right"><div class="shim stable" /></td></tr><tr><td class="s-bot-left" /><td class="s-bot" /><td class="s-bot-right" /></tr></table>

  </td><td class="sr"><b><em class="star"></em></b></td></tr>
 </tbody>
 <tfoot>
  <tr><td class="sl"></td><td class="ct sb" align="center"><b><em class="foot"></em></b></td><td class="sr"></td></tr>
 </tfoot>
</table>
</div><!--/bonus-stats/-->

  </xsl:when>
  <xsl:otherwise>
  
  <script type="text/javascript">document.getElementById('divCharTabs').style.display = "none"</script>
  
  
  <xsl:choose>
  <xsl:when test = "/page/errorCode/@value= 'serverBusy'"><xsl:call-template name="serverBusy" /></xsl:when>
  <xsl:otherwise><xsl:call-template name="unavailable" /></xsl:otherwise>
  </xsl:choose>

  </xsl:otherwise>
  </xsl:choose>

</xsl:when>
</xsl:choose>

    </div></div></div></div></div><!--/end profile/-->
			</div><!--/end profile-wrapper/-->

</xsl:when>
  <xsl:when test = "/page/characterInfo/@errCode = 'belowMinLevel'">
  
	<blockquote><b class="icharacters">
<h4><a href="team-search.xml"><xsl:value-of select="$loc/strs/character/str[@id='character-profiles']"/></a></h4>
<h3><xsl:value-of select="$loc/strs/character/str[@id='character-profiles']"/></h3></b></blockquote>

<script type="text/javascript">document.getElementById('divCharTabs').style.display = "none"</script>

	<div class="under10">
	<div class="bonus-stats">
	<table class="deco-frame">
	<thead>
	 <tr><td class="sl"></td><td class="ct st"></td><td class="sr"></td></tr>
	</thead>
	<tbody>
	 <tr><td class="sl"><b><em class="port"></em></b></td><td class="ct">
	
	<div class="kids">
	<h2><span><xsl:value-of select="$loc/strs/characterSheet/str[@id='armory.character-sheet.prompt.levelTen']"/></span></h2>
	<div class="levelBar-wrapper">
	  <div></div>
	</div>
	</div>
	
	  </td><td class="sr"><b><em class="star"></em></b></td></tr>
	</tbody>
	<tfoot>
	 <tr><td class="sl"></td><td class="ct sb" align="center"><b><em class="foot"></em></b></td><td class="sr"></td></tr>
	</tfoot>
	</table>
	</div><!--/bonus-stats/-->
	</div>


  </xsl:when>
<xsl:otherwise>

<script type="text/javascript">
document.getElementById('divCharTabs').style.display = "none";
</script>

<xsl:call-template name="errorSection" />

</xsl:otherwise>
</xsl:choose>
<!--end big if-->

</td><td class="tip-right" /></tr><tr><td class="tip-bot-left" /><td class="tip-bot" /><td class="tip-bot-right" /></tr></table></div><!--/end tip/-->				

</div><!--/end player-side/-->

<div id="miniSearchElement">

<xsl:choose>
<xsl:when test = "$isPropass = 'true' and $pathPropass">

							
							
		<xsl:call-template name="propassRight">							
		  <xsl:with-param name="pathPropass" select="$pathPropass" />
		</xsl:call-template>
							
							
							
							
	</xsl:when>
	<xsl:otherwise>	
		<xsl:call-template name="charSheetMiniSearchPanel">
		  <xsl:with-param name="searchNode" select="'guild'" />
		</xsl:call-template>
	</xsl:otherwise>
</xsl:choose>

</div>

</div><!--/end list/-->
</div><!--/end mini-search-start-state/-->
<!--/end index content/-->
<xsl:call-template name="related-info">
	<xsl:with-param name="src">
		<xsl:choose>
			<xsl:when test = "$isPropass != 'true'">/strings/<xsl:value-of select = "$lang" />/ri-character-sheet.xml</xsl:when>
			<xsl:otherwise>/strings/<xsl:value-of select = "$lang" />/ri-propass.xml</xsl:otherwise>
		</xsl:choose>
	</xsl:with-param>
</xsl:call-template>
  </div>
 </div>
</div><!--/dataelement/-->


<script type="text/javascript" src="/js/mini-search-ajax.js"></script>
<script type="text/javascript" src="/js/character-info-ajax.js"></script>
<script type="text/javascript">
    if (characterInfoPageInstance) {
        characterInfoPageInstance.setXmlUrl("character-sheet.xml");
    }
</script>

</xsl:template>

</xsl:stylesheet>
