<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
  <xsl:output method="html" indent="no" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />

  <xsl:include href="/app/tools/rps/templates/global.xsl" />
 
  <xsl:template name="pickLayout">
    <xsl:call-template name="addContractLayout" />
  </xsl:template>

  <xsl:template name="addContractLayout">
    <script type="text/javascript">
      addEvent(window, 'load', matchColumns, false);
    </script>


    <div class="section">
      <div id="wizard">

        <ul class="matchColumn">
          <li class="step inactiveStep" id="step1">
            <xsl:if test="not(Params/step)">
              <xsl:attribute name="class">step selectedStep</xsl:attribute>
            </xsl:if> 
            <h2>Step 1 - New Payee?</h2>
          </li>
          <li class="step inactiveStep" id="step2">
            <xsl:if test="Params/step = 2">
              <xsl:attribute name="class">step selectedStep</xsl:attribute>
            </xsl:if>
            <h2>Step 2 - Create Contract</h2>
          </li>
          <li class="step inactiveStep" id="step3">
            <xsl:if test="Params/step = 3">
              <xsl:attribute name="class">step selectedStep</xsl:attribute>
            </xsl:if>
            <h2>Step 3 - Profit!</h2>
          </li>
        </ul>

        <ul class="matchColumn" id="instructions">
          <li id="step1Instructions">
            <xsl:if test="Params/step">
              <xsl:attribute name="class">hidden</xsl:attribute>
            </xsl:if>
            <p>Do you need to create a new payee for use in this contract?</p>
            <p class="choices">
              <a href="/rps/payee?c=edit&amp;ReturnTo=%2Frps%2Fdisplay%3Fd%3Dadd_contract%26step%3D2">Yes</a><a href="javascript:goToStep(2)">No</a>
            </p>
          </li>
          <li id="step2Instructions">
            <xsl:if test="not(Params/step) or Params/step != '2'">
              <xsl:attribute name="class">hidden</xsl:attribute>
            </xsl:if>
            <p><a href="/rps/contract?c=edit">Click here</a> to begin creating your contract.</p>
          </li>
          <li id="step3Instructions">
            <xsl:if test="not(Params/step) or Params/step != '3'">
              <xsl:attribute name="class">hidden</xsl:attribute>
            </xsl:if>
            <p>Hooray</p>
          </li>
        </ul>

      </div>
      <br class="superBreak" /><br />
    </div>
  </xsl:template>

</xsl:stylesheet>
