<!--Copyright 1999-2000 Intuit Inc. All rights reserved. Unauthorized duplication is a violation of applicable law.-->

<!--
*************************************************************************************************************
*	The JavaScript code that rotates the X-sell links per each open/close of the Employee Navigator is in   *
*	Empsolutions.js and EmpSolutionscookies.js                                                              *
*************************************************************************************************************
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="reminders.xsl"/>
	<xsl:output method="html" indent="yes" /> 

	<xsl:template match="solutions/links">
		<table cellspacing="0" cellpadding="0" width="100%">
			<xsl:call-template name="FeaturedServicesImage" />
			<xsl:call-template name="rotatinglinks1" />
			<xsl:call-template name="rotatinglinks2" />
				<!-- 
					Business requirements originally asked for rotating AND non rotating links, and later changed to go 
					with only rotating. So, we disable non rotating links by commenting out the following template call. 
				-->
				<!-- <xsl:call-template name="nonrotatinglinks1" /> -->
			<tr>
				<td colspan="3">
					<img src="Images/spacer.gif" width="1" height="6" /> <!-- vertical spacer image -->
				</td>
			</tr>
		</table>
	</xsl:template>
	
	<xsl:template name="FeaturedServicesImage">
			<tr>
				<td colspan="3">
					<img src="Images/spacer.gif" width="4" height="1" /> <!-- horizontal spacer image -->
					<img src="Questions/Images/feat_services.gif" border="0" alt="Featured Services" style="margin-bottom:4pt;" />
				</td>
			</tr>
	</xsl:template>

	<xsl:template name="rotatinglinks1">
		<xsl:for-each select="rotatinglinkgroup1/link">
			<tbody ID="SolutionsRotatingLinkGroup1{1 + count(preceding-sibling::link)}" name="rotatinglinks1" style="display:none;">
				<tr>
					<!-- icon -->
					<td rowspan="2">
						<xsl:if test="icon != '' ">
							<a href="{command}"><img src="{icon}" border="0" /></a>
						</xsl:if>
					</td>
					
					<!-- title -->
					<td>
						<xsl:if test="linktitle != '' ">
							<span style="color:330000;font-weight:bold;"><xsl:value-of select="linktitle" /></span>
						</xsl:if>
					</td>
					
					<!-- Remind Me Later link -->
					<td width="1%" nowrap="">
						<xsl:apply-templates select="reminderlink"/>
					</td>
				</tr>
				
				<tr height="28">
					<!-- description -->
					<td colspan="2">
						<xsl:if test="@online = 'true' ">
							<img src="images/com_bolt.gif" alt="Online Content Icon" width="8" height="12" />
						</xsl:if>
						<a href="{command}"><xsl:value-of select="linktext" /></a>
					</td>
					<td>
						<img src="Images/spacer.gif" width="12" height="1" /> <!-- horizontal spacer image -->
					</td>
				</tr> 
				<tr>
					<td colspan="3">
						<img src="Images/spacer.gif" width="1" height="5" /> <!-- vertical spacer image -->
					</td>
				</tr>
			</tbody>
		</xsl:for-each>
	</xsl:template>

	<xsl:template name="rotatinglinks2">
		<xsl:for-each select="rotatinglinkgroup2/link">
			<tbody ID="SolutionsRotatingLinkGroup2{1 + count(preceding-sibling::link)}" name="rotatinglinks2" style="display:none;">
				<tr>
					<!-- icon -->
					<td rowspan="2">
						<xsl:if test="icon != '' ">
							<a href="{command}"><img src="{icon}" border="0" /></a>
						</xsl:if>
					</td>

					<!-- title -->
					<td>
						<xsl:if test="linktitle != '' ">
							<span style="color:330000;font-weight:bold;"><xsl:value-of select="linktitle" /></span>
						</xsl:if>
					</td>
					
					
					<!-- Remind Me Later link -->
					<td width="1%" nowrap="">
						<xsl:apply-templates select="reminderlink"/>
					</td>
				</tr>
				
				<tr height="28">
					<!-- description -->
					<td colspan="2">
						<xsl:if test="@online = 'true' ">
							<img src="images/com_bolt.gif" alt="Online Content Icon" width="8" height="12" />
						</xsl:if>
						<a href="{command}"><xsl:value-of select="linktext" /></a>
					</td>
					<td>
						<img src="Images/spacer.gif" width="12" height="1" /> <!-- horizontal spacer image -->
					</td>
				</tr> 
				<tr>
					<td colspan="3">
						<img src="Images/spacer.gif" width="1" height="3" /> <!-- vertical spacer image -->
					</td>
				</tr>
			</tbody>
		</xsl:for-each>
	</xsl:template>
	
	<xsl:template name="nonrotatinglinks1">
		<xsl:for-each select="nonrotatinglinkgroup1/link">
			<tr height="28">
				<td>
					<xsl:if test="icon != '' ">
						<a href="{command}"><img src="{icon}" border="0" /></a>
					</xsl:if>
				</td>
				<td>
					<img src="Images/spacer.gif" width="1" height="6" /> <!-- vertical spacer image -->
					<br/>
					<xsl:if test="linktitle != '' ">
						<span style="color:330000;font-weight:bold;"><xsl:value-of select="linktitle" /></span>
							<xsl:apply-templates select="reminderlink"/>
						<br />
					</xsl:if>
					<xsl:if test="@online = 'true' ">
						<img src="images/com_bolt.gif" alt="Online Content Icon" width="8" height="12" />
					</xsl:if>
					<a href="{command}"><xsl:value-of select="linktext" /></a>
				</td>
				<td>
					<img src="Images/spacer.gif" width="12" height="1" /> <!-- horizontal spacer image -->
				</td>
			</tr> 
			<tr>
				<td colspan="3">
					<img src="Images/spacer.gif" width="1" height="3" /> <!-- vertical spacer image -->
				</td>
			</tr>     
		</xsl:for-each>
	</xsl:template>
  

</xsl:stylesheet>

