<?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><xsl:apply-templates/></xsl:template>

<xsl:template match="actions/action">
<xsl:for-each select=".">
	<DIV>
	<xsl:attribute name="class">menuItem</xsl:attribute>
	<xsl:attribute name="task"><xsl:value-of select="task"/></xsl:attribute>
	<xsl:value-of select="ui"/>
	</DIV>
</xsl:for-each>
</xsl:template>
	
<xsl:template match="table/rows">
<table border="0" width="100%" height="100%" cellpadding="1" cellspacing="0">
<tr><td width="3%"><img src="images/blank.gif" width="68" height="1"/></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td width="76%"></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td width="19%"><img src="images/blank.gif" width="85" height="1"/></td>
</tr>
<tr class="key">
<td nowrap="yes"><DIV ALIGN="left"><img src="images/blank.gif" width="3" height="1"/></DIV></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td><DIV ALIGN="left"><img src="images/blank.gif"  width="3" height="1"/>Description</DIV></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td nowrap="yes"><DIV ALIGN="left"><img src="images/blank.gif"  width="3" height="1"/>Sent Date<img src="images/blank.gif" width="3" height="1"/></DIV></td>
</tr>
<tr><td colspan="5" bgcolor="#FFFFFF"></td></tr>
</table>
<xsl:choose>
<xsl:when test="row">

<xsl:for-each select="row">
<table border="0" width="100%" height="100%" cellpadding="1" cellspacing="0">
<tr><td width="3%"><img src="images/blank.gif" width="68" height="1"/></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td width="76%"></td>
<td bgcolor="#FFFFFF" width="1%"></td>
<td width="19%"><img src="images/blank.gif" width="85" height="1"/></td>
</tr>

<tr><td colspan="5" bgcolor="#FFFFFF"></td></tr>

 <xsl:for-each select="details/detail">
  <tr>
		<xsl:attribute name="class">standardrow</xsl:attribute>
 	<xsl:choose>
	<xsl:when test="actions/action">
		<xsl:attribute name="onmouseover">rolloverRow.className="row";this.className="rowHighlight";rolloverRow = this;</xsl:attribute>
		<xsl:attribute name="onmouseout">rolloverRow.className="row";rolloverRow = '0';</xsl:attribute>
		<xsl:attribute name="oncontextmenu">rolloverRow.className="row";this.className="rowHighlight";rolloverRow = this;showContextMenu(<xsl:value-of select="row_id"/>);return false;</xsl:attribute>
		<xsl:attribute name="onclick">this.className="rowHighlight";rolloverRow.className="row";rolloverRow = this;clickRow();return false;</xsl:attribute>
	</xsl:when>
	<xsl:otherwise>
		<xsl:attribute name="oncontextmenu">return false;</xsl:attribute>
	</xsl:otherwise>
	</xsl:choose>
	<td><xsl:attribute name="task"><xsl:value-of select="actions/action[@type='default']/task"/></xsl:attribute></td>
	<td nowrap="yes" class="date" valign="top"><xsl:attribute name="task"><xsl:value-of select="actions/action[@type='default']/task"/></xsl:attribute><img src="images/blank.gif"  width="3" height="1"/><img src="images/blank.gif"  width="5" height="1"/></td>
	<td class="reminder" valign="top"><xsl:attribute name="task"><xsl:value-of select="actions/action[@type='default']/task"/></xsl:attribute>
	<xsl:if test=".[@online='true']"><img src="images/blank.gif"  width="3" height="1"/><img src="images/com_bolt.gif" width="8" height="12"/><img src="images/blank.gif" width="3" height="1"/></xsl:if>
	<xsl:value-of select="description"/>
	</td><td></td>
	<td nowrap="yes" class="date" valign="top"><xsl:attribute name="task"><xsl:value-of select="actions/action[@type='default']/task"/></xsl:attribute><img src="images/blank.gif"  width="3" height="1"/><xsl:value-of select="date"/><img src="images/blank.gif"  width="5" height="1"/></td>
	</tr> 
 	<xsl:if test="actions/action">
	<DIV>
	 <xsl:attribute name="class">menus</xsl:attribute>
	 <xsl:attribute name="id"><xsl:value-of select="row_id"/></xsl:attribute>
	 <xsl:attribute name="onmouseover">toggleContextMenu()</xsl:attribute>
	 <xsl:attribute name="onmouseout">toggleContextMenu()</xsl:attribute>
	 <xsl:attribute name="onclick">clickContextMenu(<xsl:value-of select="row_id"/>)</xsl:attribute>
	 <xsl:attribute name="oncontextmenu">rtClickContextMenu(<xsl:value-of select="row_id"/>);return false;</xsl:attribute>
	 <xsl:attribute name="style">display: none;</xsl:attribute>
	 <xsl:apply-templates select="actions/action"/>
	</DIV>
	</xsl:if>
 <tr><td colspan="5" bgcolor="#FFFFFF"></td></tr>
 </xsl:for-each>

	<tr><td colspan="5" bgcolor="#FFFFFF" height="6"></td></tr>
</table>
 </xsl:for-each> 
</xsl:when>
<xsl:otherwise>
	<table border="0" width="100%" height="100%" cellpadding="1" cellspacing="0">
	<tr><td width="3%"><img src="images/blank.gif" width="68" height="1"/></td>
	<td bgcolor="#FFFFFF" width="1%"></td>
	<td width="76%"></td>
	<td bgcolor="#FFFFFF" width="1%"></td>
	<td width="19%"><img src="images/blank.gif" width="85" height="1"/></td>
	</tr>

	<tr><td colspan="5" bgcolor="#FFFFFF"></td></tr>

	<TR align="center"><TD colspan="5"><B>You have no messages.</B></TD></TR>

	</table>
</xsl:otherwise>
</xsl:choose>
<table>
<tr><td></td></tr>
</table>	
</xsl:template>
</xsl:stylesheet>