<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict">
	<xsl:include href="../../../../../Common/XSL/Common.xsl" />
	
	<xsl:param name="PARAMTableWidth" select="" />
	
	<xsl:template match="/">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr><td>&#160;</td></tr>
			<tr>
				<td width="120" align="left" valign="top">
					<img class="ImageBlock" align="left" valign="top" border="0" width="120" height="150">
						<xsl:attribute name="src"><xsl:value-of select="//image" /></xsl:attribute>
						<xsl:attribute name="alt"><xsl:value-of select="//title" /></xsl:attribute>
						<xsl:attribute name="title"><xsl:value-of select="//title" /></xsl:attribute>
					</img>
				</td>
				<td width="{number($PARAMTableWidth) - 120}" align="center" valign="center">
					<span class="PageTitle">
						<b><xsl:value-of select="//position" /></b><br />
						<b><xsl:value-of select="//name" /></b><br />
					</span>
				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr><td>&#160;</td></tr>
			<tr><td><xsl:apply-templates select="//topic" /></td></tr>
			<tr><td>&#160;</td></tr>
		</table>	
	</xsl:template>
	
	<xsl:template match="topic">
		<xsl:variable name="varContent" select="." />
		
		<xsl:if test="string-length(normalize-space($varContent)) = 0">
			<xsl:text disable-output-escaping="yes">&lt;div id="divHidden" style="display:none"&gt;</xsl:text>
		</xsl:if>
		
		<xsl:if test="@title != ''"> 
			<span class="ParaTitle"><b><xsl:value-of select="@title" /></b></span>
			<br /><br />			
		</xsl:if>
			
		<xsl:choose>
			<xsl:when test="@contenteditable = 'true'">
				<div style="width:{$PARAMTableWidth}">
					<xsl:if test="@contenteditable = 'true'">
						<xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute> 
						<xsl:attribute name="contenteditable">false</xsl:attribute>
						<xsl:attribute name="onclick">javascript:OnClick(this)</xsl:attribute> 
						<xsl:attribute name="onbeforepaste">javascript:OnBeforePaste(this)</xsl:attribute> 
						<xsl:attribute name="onpaste">javascript:OnPaste(this)</xsl:attribute> 
					</xsl:if>
					<xsl:apply-templates />
				</div>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates />
			</xsl:otherwise>
		</xsl:choose>
		<br />
			
		<xsl:if test="string-length(normalize-space($varContent)) = 0">
			<xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
		</xsl:if>
	</xsl:template>
	
</xsl:stylesheet>
