<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <html>
  <body>
    <h2>Current Synergy Bar Banners</h2>
    <table border="1" width="1000">
<xsl:for-each select="synergybar/show">
    <tr bgcolor="#9acd32">
      <th align="left"><xsl:value-of select="@id"/></th>
    </tr>

    <tr>
    <td>
    <strong>Show Banners</strong>
<xsl:for-each select="show">


<div style="float:left;">
<xsl:attribute name="style"><xsl:choose>
          <xsl:when test="../@shows= 'full'">
            float:left;
          </xsl:when>
          <xsl:otherwise>
            float:left;
          </xsl:otherwise>
        </xsl:choose> </xsl:attribute>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
WIDTH="200" HEIGHT="60" 
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<PARAM NAME="MOVIE"><xsl:attribute name="VALUE"> <xsl:choose>
          <xsl:when test="../@shows= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@shows= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute></PARAM>
<PARAM NAME="PLAY" VALUE="true" />
<PARAM NAME="QUALITY" VALUE="best" />
<PARAM NAME="LOOP" VALUE="true" />
<EMBED WIDTH="200" HEIGHT="60" PLAY="true" LOOP="true" QUALITY="best" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><xsl:attribute name="SRC"> <xsl:choose>
          <xsl:when test="../@shows= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@shows= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute>
</EMBED>
</OBJECT>
</div>
</xsl:for-each>
<div style="clear:both;" />

<xsl:if test="count(showTour) &gt; 0">
    <strong>Show Tour Banners</strong>
</xsl:if>


<xsl:for-each select="showTour">
<div style="float:left;">
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
WIDTH="200" HEIGHT="60" 
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<PARAM NAME="MOVIE"><xsl:attribute name="VALUE">
            <xsl:value-of select="@thirdbanner"/>
 </xsl:attribute></PARAM>
<PARAM NAME="PLAY" VALUE="true" />
<PARAM NAME="QUALITY" VALUE="best" />
<PARAM NAME="LOOP" VALUE="true" />
<EMBED WIDTH="200" HEIGHT="60" PLAY="true" LOOP="true" QUALITY="best" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><xsl:attribute name="SRC"> <xsl:value-of select="@thirdbanner"/>
 </xsl:attribute>
</EMBED>
</OBJECT>
</div>
</xsl:for-each>
<div style="clear:both;" />

<xsl:if test="count(promo) &gt; 0">
    <strong>Promo Banners</strong>
</xsl:if>
<xsl:for-each select="promo">
<div style="float:left;">
<xsl:attribute name="style"><xsl:choose>
          <xsl:when test="../@promo= 'full'">
            float:left;
          </xsl:when>
          <xsl:otherwise>
            float:left;
          </xsl:otherwise>
        </xsl:choose> </xsl:attribute>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
WIDTH="200" HEIGHT="60" 
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<PARAM NAME="MOVIE"><xsl:attribute name="VALUE"> <xsl:choose>
          <xsl:when test="../@promo= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@promo= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute></PARAM>
<PARAM NAME="PLAY" VALUE="true" />
<PARAM NAME="QUALITY" VALUE="best" />
<PARAM NAME="LOOP" VALUE="true" />
<EMBED WIDTH="200" HEIGHT="60" PLAY="true" LOOP="true" QUALITY="best" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><xsl:attribute name="SRC"> <xsl:choose>
          <xsl:when test="../@promo= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@promo= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute>
</EMBED>
</OBJECT>
</div>
</xsl:for-each>
<div style="clear:both;" />

<xsl:if test="count(tour) &gt; 0">
    <strong>Tour Banners</strong>
</xsl:if>
<xsl:for-each select="tour">
<div style="float:left;">
<xsl:attribute name="style"><xsl:choose>
          <xsl:when test="../@tour= 'full'">
            float:left;
          </xsl:when>
          <xsl:otherwise>
            float:left;
          </xsl:otherwise>
        </xsl:choose> </xsl:attribute>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
WIDTH="200" HEIGHT="60" 
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<PARAM NAME="MOVIE"><xsl:attribute name="VALUE"> <xsl:choose>
          <xsl:when test="../@promo= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@promo= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute></PARAM>
<PARAM NAME="PLAY" VALUE="true" />
<PARAM NAME="QUALITY" VALUE="best" />
<PARAM NAME="LOOP" VALUE="true" />
<EMBED WIDTH="200" HEIGHT="60" PLAY="true" LOOP="true" QUALITY="best" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><xsl:attribute name="SRC"> <xsl:choose>
          <xsl:when test="../@tour= 'full'">
            <xsl:value-of select="@fullbanner"/>
          </xsl:when>
	  <xsl:when test="../@tour= 'half'">
            <xsl:value-of select="@halfbanner"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@thirdbanner"/>
          </xsl:otherwise>
        </xsl:choose>
 </xsl:attribute>
</EMBED>
</OBJECT>
</div>
</xsl:for-each>
<div style="clear:both;" />
</td>
    </tr>
</xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>
