<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="mynamespace">
	<xsl:include href="admin/function.xsl" />
	<xsl:include href="account_nav.xsl" />
	<xsl:include href="cat_nav.xsl" />
	<xsl:include href="bottom_nav.xsl" />
	<xsl:template name="top_nav">
		<xsl:param name="page" />
		<xsl:param name="account_nav" />
		<xsl:param name="title_text" />
		<xsl:param name="title_image" />

		<link rel="stylesheet" style="css/text">
			<xsl:attribute name="href"><xsl:value-of select="/root/config/sitepath" />styles.css</xsl:attribute>
		</link>
		<script language="javascript">
			<xsl:attribute name="src"><xsl:value-of select="/root/config/sitepath" />client.js</xsl:attribute>
		</script>

		<xsl:text disable-output-escaping="yes"><![CDATA[ <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> ]]></xsl:text>
		<xsl:text disable-output-escaping="yes"><![CDATA[ <table width="100%" border="0" cellspacing="0" cellpadding="0"> ]]></xsl:text>
  <tr>
    <td background="images/en/extender1.jpg"><table width="760" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/en/1a.jpg" width="760" height="60" /></td>
        </tr>
        <tr>
          <td><table width="760" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/en/2a.jpg" width="500" height="16" /></td>
                <td background="images/en/2b_spacer.jpg" width="88" height="16" valign="top"><xsl:value-of select="/root/shopcart/item" /></td>
                <td><img src="images/en/2c.jpg" width="74" height="16" /></td>
                <td background="images/en/2d_spacer.jpg" width="83" height="16" valign="top"><xsl:if test="/root/shopcart/subtotal != ''">
						<xsl:choose>
							<xsl:when test="/root/currency_id &gt; 0">
								<xsl:value-of select="/root/currency[currency_id = /root/currency_id]/symbol" />
								<xsl:value-of select="format-number(/root/shopcart/subtotal*/root/currency[currency_id=/root/currency_id]/exchange_rate,/root/config/number_format[@selected=1]/@format,/root/config/number_format[@selected=1]/@name)" />
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="/root/currency_symbol/symbol" />
								<xsl:value-of select="format-number(/root/shopcart/subtotal,/root/config/number_format[@selected=1]/@format,/root/config/number_format[@selected=1]/@name)" />
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if></td>
                <td><img src="images/en/2e.jpg" width="15" height="16" /></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><img src="images/en/3a.jpg" width="760" height="25" /></td>
        </tr>
        <tr>
          <td><table width="760" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/en/4a.jpg" width="389" height="30" /></td>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav1','','images/en/4b_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />isapi/isapi.dll?account&amp;action=edit</xsl:attribute><img src="images/en/4b_nav.jpg" name="nav1" width="106" height="30" border="0" /></a></td>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav2','','images/en/4c_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />isapi/isapi.dll?order</xsl:attribute><img src="images/en/4c_nav.jpg" name="nav2" width="86" height="30" border="0" /></a></td>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav3','','images/en/4d_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />gift_certificate/action.new</xsl:attribute><img src="images/en/4d_nav.jpg" name="nav3" width="110" height="30" border="0" /></a></td>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav4','','images/en/4e_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />page.help</xsl:attribute><img src="images/en/4e_nav.jpg" name="nav4" width="69" height="30" border="0" /></a></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><img src="images/en/5a.jpg" width="760" height="31" /></td>
        </tr>
      </table></td>
    <td width="100%" background="images/en/extender1.jpg"></td>
  </tr>
  <xsl:text disable-output-escaping="yes"><![CDATA[ <tr>
    <td><table width="760" border="0" cellspacing="0" cellpadding="0">
        <tr> ]]></xsl:text>
          <td valign="top" background="images/en/extender2.jpg"><table width="184" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav5','','images/en/6a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />page.home</xsl:attribute><img src="images/en/6a_nav.jpg" name="nav5" width="184" height="27" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav6','','images/en/7a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />page.aboutus</xsl:attribute><img src="images/en/7a_nav.jpg" name="nav6" width="184" height="28" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav7','','images/en/8a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />page.whatsnew</xsl:attribute><img src="images/en/8a_nav.jpg" name="nav7" width="184" height="28" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav8','','images/en/9a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />catalog</xsl:attribute><img src="images/en/9a_nav.jpg" name="nav8" width="184" height="28" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav9','','images/en/10a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />feature_product</xsl:attribute><img src="images/en/10a_nav.jpg" name="nav9" width="184" height="28" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav10','','images/en/11a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />new_product</xsl:attribute><img src="images/en/11a_nav.jpg" name="nav10" width="184" height="28" border="0" /></a></td>
              </tr>
              <tr>
                <td><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nav11','','images/en/12a_Rnav.jpg',1)"><xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path" />page.contact</xsl:attribute><img src="images/en/12a_nav.jpg" name="nav11" width="184" height="28" border="0" /></a></td>
              </tr>
	      <form method="post"><xsl:attribute name="action"><xsl:value-of select="/root/config/cgipath" />isapi.dll?search2</xsl:attribute>
              <tr>
                <td><img src="images/en/13a.jpg" width="184" height="21" /></td>
              </tr>
              <tr>
                <td background="images/en/14a_bg.jpg" width="184" height="24" align="center"><input type="text" size="15" name="search_name" /></td>
              </tr>
              <tr>
                <td><table width="184" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="images/en/15a.jpg" width="145" height="18" /></td>
                      <td><INPUT TYPE="image" SRC="images/en/15b_go.jpg" border="0" /></td>
                      <td><img src="images/en/15c.jpg" width="16" height="18" /></td>
                    </tr>
                  </table></td>
              </tr>
	      <input type="hidden" name="search_type" value="quick" />
	      </form>
              <tr>
                <td background="images/en/16a.jpg" width="184" height="85" valign="top" align="center"><A HREF="search2" style="color: B85386">Advanced Search</A></td>
              </tr>
            </table></td>
          <xsl:text disable-output-escaping="yes"><![CDATA[ <td width="100%" valign="top"> ]]></xsl:text>

			<xsl:if test="$account_nav = 1">
						<xsl:call-template name="account_nav" />
			</xsl:if>
			<xsl:choose>
				<xsl:when test="$title_text != ''">
					<h1><xsl:value-of select="$title_text" /></h1>
				</xsl:when>
				<xsl:otherwise>
					<h1><xsl:value-of select="/root/root/title_text" /></h1>
				</xsl:otherwise>
			</xsl:choose>
	<xsl:if test="/root/session/secure_cookie = ''">
		<img>
			<xsl:attribute name="src"><xsl:value-of select="/root/config/secure_path" /><xsl:value-of select="/root/config/cgipath" />isapi.dll?set_session&amp;session_id=<xsl:value-of select="/root/session/id" /></xsl:attribute>
		</img>
	</xsl:if></xsl:template>
</xsl:stylesheet>
