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

    <!--
        By default, the help link will be created using the current page's area and command.
        You only have to pass those in if you want to do something different.
        The helpType param is used to style it differently depending on where it shows up on the page.
    -->

    <xsl:template name="helpLink">
        <xsl:param name="helpArea" select="$area" />
        <xsl:param name="helpCommand" select="$cmd" />
        <xsl:param name="helpType" select="'page'" />
        <xsl:param name="extraParams" />
        <!-- Possible helpType values are Page, Tab, and Section -->
        <div class="HelpLink HelpLink-type-{$helpType}">
            <a href="javascript:void(0)" onClick="window.open('help?a={$helpArea}&amp;oc={$helpCommand}{$extraParams}','_blank','{$helpLinkOptions}');">Help With This <xsl:value-of select="$helpType" />?</a>
        </div>
    </xsl:template>

</xsl:stylesheet>
