<xsl:stylesheet xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ddw1="http://schemas.microsoft.com/sharepoint/soap/" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
	<xsl:output method="html" indent="no"/>
	<xsl:decimal-format NaN=""/>
	<xsl:param name="dvt_apos">'</xsl:param>
	<xsl:param name="ManualRefresh"></xsl:param><xsl:variable name="dvt_1_automode">0</xsl:variable>
	<xsl:template match="/">
		<div id="corp_inst_box" class="homeWhiteBox">
			<h2>Institutional and Corporate<br />Memberships</h2>
			<div id="ci_logo_container">
				<!--div id="ci_logo_inner_container"-->
				<marquee behavior="slide" direction="left" loop="10" scrollamount="2" scrolldelay="5" onmouseover="this.stop()" onmouseout="this.start()">		
					<xsl:call-template name="dvt_1"/>
				</marquee>
				<!--/div-->
			</div>
			<div class="clear">&#160;</div>
			<h3>Join now!</h3>
			<a href="/Membership/Pages/ci-membership.aspx" target="_self">Click here</a> for more information
		</div>
	</xsl:template>
	<xsl:template name="dvt_1">
	    <!--xsl:variable name="randomNum" select="ddwrt:Random(1,count(/soap:Envelope/soap:Body/ddw1:GetListItemsResponse/ddw1:GetListItemsResult/ddw1:listitems/rs:data/z:row[@ows_Display = 1]))" />
	    <xsl:variable name="Rows" select="/soap:Envelope/soap:Body/ddw1:GetListItemsResponse/ddw1:GetListItemsResult/ddw1:listitems/rs:data/z:row[position() = $randomNum]"/-->
		<xsl:variable name="Rows" select="/soap:Envelope/soap:Body/ddw1:GetListItemsResponse/ddw1:GetListItemsResult/ddw1:listitems/rs:data/z:row[@ows_Display = 1]"/>
		<xsl:variable name="dvt_RowCount" select="count($Rows)"/>
		<xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
		<xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
		
		<xsl:choose>
			<xsl:when test="$dvt_IsEmpty">
				<xsl:call-template name="dvt_1.empty"/>
			</xsl:when>
			<xsl:otherwise>
					<xsl:call-template name="dvt_1.body">
						<xsl:with-param name="Rows" select="$Rows"/>
					</xsl:call-template>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="dvt_1.body">
		<xsl:param name="Rows"/>
		<xsl:for-each select="$Rows">
			<!--xsl:sort select="@ows_ImageSize" order="ascending" /-->
			<xsl:call-template name="dvt_1.rowview" />
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="dvt_1.rowview">
		<!--div class="ci_logo_item"-->
			<a href="{substring-before(@ows_URL,',')}" target="_blank"><img border="0" alt="{@ows_Title}" title="{@ows_Title}" src="{concat('/',substring-after(@ows_FileRef,'#'))}" /></a>
			<!--div class="ci_logo_width"><xsl:value-of select="@ows_ImageSize" disable-output-escaping="yes" /></div-->
		<!--/div-->
		<xsl:if test="position() = last()">
			<img src="/_layouts/images/blank.gif" width="300" height="50" alt="" border="0" />
		</xsl:if>
	</xsl:template>
	<xsl:template name="dvt_1.empty"></xsl:template>
</xsl:stylesheet>