<xsl:template match="img[@ckimg='1']">
	<xsl:element name="{name()}">
		<xsl:apply-templates select="@*"/>
		<xsl:attribute name="src"><xsl:value-of select="concat($siteroot,'getuserimgs/ram_',@w,'_',@h,'/',@srco)"/></xsl:attribute>
		<xsl:attribute name="srco"></xsl:attribute>
	</xsl:element>
</xsl:template>

<xsl:template match="a[@cml='1']">
	<xsl:element name="{name()}">
		<xsl:apply-templates select="@*"/>
		<xsl:attribute name="href">#</xsl:attribute>
		<xsl:choose>
			<xsl:when test="string-length(@class) &gt; 0">
				<xsl:attribute name="class"><xsl:value-of select="concat(@class,' cmta')"/></xsl:attribute>
			</xsl:when>
			<xsl:otherwise>
				<xsl:attribute name="class">cmta</xsl:attribute>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:element>
</xsl:template>

<xsl:template match="vidpro">
	<span class="vpdivd" vid="{@vid}" vpr="{@vpr}" vw="{@width}" vh="{@height}"/>
</xsl:template>