﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template name ="WizardButtons">
        <xsl:param name="TemplatePathURL" select="'N/A'"></xsl:param>
        <xsl:param name="Source" select="'N/A'"></xsl:param>
        <xsl:param name="HostName" select="'N/A'"></xsl:param>

        <table class="tableMaster" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <xsl:if test="$Source = 'vision'">
                        <a href="http://{$HostName}/Vision.aspx">
                            <img src="{$TemplatePathURL}Web/Images/VisionSelected.png" title="vision_selected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                    <xsl:if test="$Source != 'vision'">
                        <a href="http://{$HostName}/Vision.aspx">
                            <img src="{$TemplatePathURL}Web/Images/VisionUnselected.png" title="vision_unselected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                </td>
                <td>
                    <xsl:if test="$Source = 'plan'">
                        <a href="http://{$HostName}/Plan.aspx">
                            <img src="{$TemplatePathURL}Web/Images/PlanSelected.png" title="plan_selected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                    <xsl:if test="$Source != 'plan'">
                        <a href="http://{$HostName}/Plan.aspx">
                            <img src="{$TemplatePathURL}Web/Images/PlanUnselected.png" title="plan_unselected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                </td>
                <td>
                    <xsl:if test="$Source = 'communitywizard'">
                        <a href="http://{$HostName}/CommunityWizard.aspx">
                            <img src="{$TemplatePathURL}Web/Images/CommunitySelected.png" title="community_selected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                    <xsl:if test="$Source != 'communitywizard'">
                        <a href="http://{$HostName}/CommunityWizard.aspx">
                            <img src="{$TemplatePathURL}Web/Images/CommunityUnselected.png" title="community_unselected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                </td>
                <td>
                    <xsl:if test="$Source = 'social'">
                        <a href="http://{$HostName}/Social.aspx">
                            <img src="{$TemplatePathURL}Web/Images/SocialSelected.png" title="social_selected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                    <xsl:if test="$Source != 'social'">
                        <a href="http://{$HostName}/Social.aspx">
                            <img src="{$TemplatePathURL}Web/Images/SocialUnselected.png" title="social_unselected" BORDER="0"></img>
                        </a>
                    </xsl:if>
                </td>
            </tr>
        </table>
    </xsl:template>
</xsl:stylesheet>
