<?xml version="1.0"?>
<!-- Copyright 1999-2000 Intuit Inc. All rights reserved. Unauthorized duplication is a violation of applicable law. -->

<xsl:stylesheet xmlns:xsl='http://www.w3.org/TR/WD-xsl'>
<xsl:template match="/">
	<xsl:choose>
	<xsl:when test="ACCOUNTS[ACCOUNT]">
	<xsl:apply-templates/>
	</xsl:when>
	<xsl:otherwise>
	<TABLE border="0" cellpadding="6" cellspacing="0">
	<TR><TD colspan="6" bgcolor="#FFFFFF"><img src="blank.gif" width="1" height="4" border="0"/></TD></TR>
	<TR class="AcctTableHead">
	<TD><img src="blank.gif" width="2" height="0" border="0"/></TD>
	<TD colspan="4">You do not have any Accounts.</TD>
	<TD><img src="blank.gif" width="2" height="0" border="0"/></TD>
	</TR>
	<TR><TD colspan="6" bgcolor="#FFFFFF"><img src="blank.gif" width="1" height="4" border="0"/></TD></TR>
	</TABLE>
	</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template match="ACCOUNTS">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR class="AcctTableHead">
<TD><img src="blank.gif" width="2" height="0" border="0"/></TD>
<TD nowrap="true">Account&#160;</TD>
<TD nowrap="true">&#160;Ending Balance&#160;</TD>
<TD nowrap="true">&#160;Online Balance&#160;</TD>
<TD nowrap="true">&#160;Updated On</TD>
<TD><img src="blank.gif" width="2" height="0" border="0"/></TD>
</TR>
<TR><TD colspan="6"></TD></TR>
<TR><TD colspan="6" bgcolor="#9ACC97"></TD></TR>
<xsl:apply-templates/>
</TABLE>
</xsl:template>

<xsl:template match="ACCOUNT[@ISHIDDEN='false']">
<xsl:for-each select=".">
<TR><TD colspan="6"><xsl:attribute name="STYLE">
background-color:<xsl:eval>whichColor(this)</xsl:eval>
</xsl:attribute>
</TD></TR>
<TR class="AcctTableBody">
<xsl:attribute name="STYLE">
background-color:<xsl:eval>curColor(this)</xsl:eval>
</xsl:attribute>
<TD></TD>
<xsl:choose>
<xsl:when test="ONLINEBALANCE">
<TD><xsl:value-of select='NAME'/>&#160;</TD>
</xsl:when>
<xsl:otherwise>
<TD><xsl:element name="a">
  <xsl:attribute name="href"><xsl:value-of select="a/@href"/></xsl:attribute>
  <xsl:value-of select='NAME'/><img src="blank.gif" width="3" height="0" border="0"/>
	</xsl:element>
</TD>
</xsl:otherwise>
</xsl:choose>
<TD>&#160;<xsl:value-of select="TOTALENDINGBALANCE"/>&#160;</TD>
<TD nowrap="true">
<xsl:element name="a">
  <xsl:attribute name="href"><xsl:value-of select="a/@href"/></xsl:attribute>
  <img src="blank.gif" width="3" height="0" border="0"/><xsl:value-of select='ONLINEBALANCE'/><img src="blank.gif" width="2" height="0" border="0"/>
</xsl:element>
</TD>
<TD>&#160;<xsl:value-of select='LASTDOWNLOADDATE'/>&#160;</TD>
<TD></TD>
</TR>
<TR><TD colspan="6"><xsl:attribute name="STYLE">
background-color:<xsl:eval>curColor(this)</xsl:eval>
</xsl:attribute>
</TD></TR>
</xsl:for-each>
</xsl:template>

<xsl:template match="ACCOUNT[@ISHIDDEN='true']"></xsl:template>

<xsl:script><![CDATA[
	var rowColor = "#ffffff";
   function whichColor(e) {
	 if (rowColor == "#ffffff")
      rowColor = "#E0EFE0";
    else
      rowColor = "#ffffff";
	return rowColor;
  }
   function curColor(e) {
      return rowColor;
  }

]]></xsl:script>
  
</xsl:stylesheet>
