<!--                                                                  -->
<!--  Copyright (C) 2009 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:include href="/app/tools/common/production/templates/global.xsl" />

    <xsl:variable name="pageName">
		<xsl:choose>
			<xsl:when test="Root/Messages/Message/Code = 'access_denied' or $accessDenied = 1">Access Denied</xsl:when>
			<xsl:when test="Root/Messages/Message/Code = 'form_submit_success' and $area = 'login'">Success</xsl:when>
	        <xsl:when test="$area = 'changepw'">Change Password</xsl:when>
            <xsl:when test="$area = 'login' and $cmd = 'config'">Authenticate Your Account</xsl:when>
            <xsl:when test="$area = 'login' and /Root/Portal = 1">Welcome to RoyaltyShare’s Payee Portal</xsl:when>
            <xsl:when test="$area = 'login'">Login</xsl:when>
            <xsl:when test="$cmd = 'logout'">Logged Out</xsl:when>
	        <xsl:when test="$area = 'forgotpw' and not(/Root/Params/new)">Restore Password</xsl:when>
  	        <xsl:when test="$area = 'forgotpw' and /Root/Params/new">Set Password</xsl:when>
	        <xsl:when test="$area = 'profile'">View/Edit Profile</xsl:when>
  	        <xsl:when test="$area = 'import_user'">Import User</xsl:when>
        </xsl:choose>
    </xsl:variable>

    <!-- would like to remove as many of these includes as possible -->
    <!--
    <xsl:include href="/app/tools/common/production/templates/id_to_name.xsl" />
    <xsl:include href="/app/tools/common/production/templates/inline_pop.xsl" />
    <xsl:include href="/app/tools/common/production/templates/list.xsl" />
    <xsl:include href="/app/tools/common/production/templates/messaging.xsl" />
    <xsl:include href="/app/tools/common/production/templates/navigation.xsl" />
    <xsl:include href="/app/tools/common/production/templates/raptor.xsl" />
    <xsl:include href="/app/tools/common/production/templates/search.xsl" />
    <xsl:include href="/app/tools/common/production/templates/shared_templates.xsl" />
	<xsl:include href="/app/tools/common/production/templates/royalty_run_status.xsl" />
    -->
	<xsl:include href="/app/tools/rps/templates/base_includes.xsl" />

    <xsl:template name="body">
        <xsl:call-template name="rpsBaseIncludes" />
        <xsl:call-template name="header" />

        <div class="LoginTop"></div>

        <div class="Layout Layout-base-content" id="content">
            <div class="Appuser-layout-wrapper">
                <xsl:call-template name="sectionHeader" />
                <div class="Section-body">
                    <xsl:call-template name="pickLayout" />
                </div>
            </div>
        </div>

        <xsl:call-template name="footer" />
    </xsl:template>


</xsl:stylesheet>
