<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- edited with XML Spy v2.5 NT  - http://www.xmlspy.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
	<xsl:output method="html" indent="no" omit-xml-declaration="yes" encoding="ISO-8859-1"/>
	<xsl:variable name="XMLC_TreePath">
		<xsl:choose>
			<xsl:when test="(/document/XMLC_Profile/XMLC_LocalPortal = '1') and (/document/XMLC_Profile/XMLC_LocalPortalPath != '')">
				<xsl:value-of select="/document/XMLC_Profile/XMLC_LocalPortalPath"/>
			</xsl:when>
			<xsl:otherwise>/<xsl:value-of select="/document/XMLC_Params/XMLC_Portal"/>
			</xsl:otherwise>
		</xsl:choose>/Tree/<xsl:choose>
			<xsl:when test="/document/XMLC_Profile/TreeviewStyle != ''">
				<xsl:value-of select="/document/XMLC_Profile/TreeviewStyle"/>
			</xsl:when>
			<xsl:when test="/document/XMLC_Params/TreeviewStyle != ''">
				<xsl:value-of select="/document/XMLC_Params/TreeviewStyle"/>
			</xsl:when>
			<xsl:otherwise>XP</xsl:otherwise>
		</xsl:choose>/</xsl:variable>
	<xsl:template name="xslc:TreeviewHeader">
		<xsl:param name="SelectedID"/>
		<xsl:param name="TreePath" select="$XMLC_Portal"/>
		<script language="javascript" src="{$TreePath}Treeview.js"/>
		<script language="javascript">
			<![CDATA[currentTreeIDSelected = ']]>
			<xsl:value-of select="$SelectedID"/>
			<![CDATA[';]]>
		</script>
	</xsl:template>
	<xsl:template name="xslc:Treeview">
		<xsl:param name="AdditionalColumns">
			<dummy/>
		</xsl:param>
		<xsl:param name="AdditionalColumnsAlternateColor">1</xsl:param>
		<xsl:param name="BoldSelectedItem">1</xsl:param>
		<xsl:param name="Depth">0</xsl:param>
		<xsl:param name="Fakes">
			<xsl:copy-of select="/document/XMLC_Fakes/*[position() &lt; last()]"/>
		</xsl:param>
		<xsl:param name="HighlightColor">#316AC5</xsl:param>
		<xsl:param name="HighlightSelectedItem">0</xsl:param>
		<xsl:param name="MaskableItems">0</xsl:param>
		<xsl:param name="SelectedID"/>
		<xsl:param name="Tree">
			<xsl:copy-of select="/document/Tree/*"/>
		</xsl:param>
		<xsl:param name="TreePath" select="$XMLC_TreePath"/>
		<xsl:param name="Width"/>
		<xsl:variable name="VTree" select="msxsl:node-set($Tree)"/>
		<xsl:variable name="VFakes" select="msxsl:node-set($Fakes)"/>
		<xsl:variable name="VAdditionalColumns" select="msxsl:node-set($AdditionalColumns)"/>
		<xsl:if test="$MaskableItems != '0'">
			<script language="javascript">
				<![CDATA[MaskChildsArray = new Array(]]>
				<xsl:for-each select="$VTree//Item">
					<xsl:if test="position() != 1">, </xsl:if>'<xsl:choose>
						<xsl:when test="@ID">
							<xsl:value-of select="@ID"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="generate-id()"/>
						</xsl:otherwise>
					</xsl:choose>'</xsl:for-each>
				<![CDATA[);]]>
				<![CDATA[ChildsToShowArray = new Array(]]>
				<xsl:for-each select="$VTree//Item">
					<xsl:if test="position() != 1">, </xsl:if>new Array(<xsl:variable name="IsAncestorNodes" select="ancestor::Item[@MaskableChild = '1']"/>
					<xsl:for-each select="../Item[@MaskableChild = '1']">'item_<xsl:choose>
							<xsl:when test="@ID">
								<xsl:value-of select="@ID"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="generate-id()"/>
							</xsl:otherwise>
						</xsl:choose>'<xsl:if test="position() != last() or $IsAncestorNodes">, </xsl:if>
					</xsl:for-each>
					<xsl:for-each select="ancestor::Item[@MaskableChild = '1']">'item_<xsl:choose>
							<xsl:when test="@ID">
								<xsl:value-of select="@ID"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="generate-id()"/>
							</xsl:otherwise>
						</xsl:choose>'<xsl:if test="position() != last()">, </xsl:if>
					</xsl:for-each>)</xsl:for-each>
				<![CDATA[);]]>
				<![CDATA[ChildsToMaskArray = new Array(]]>
				<xsl:for-each select="$VTree//Item">
					<xsl:choose>
						<xsl:when test="@MaskChilds = '1'">
							<xsl:if test="position() != 1">, </xsl:if>new Array(<xsl:for-each select="../Item[@MaskableChild = '1']">
								<xsl:if test="position() != 1">, </xsl:if>'item_<xsl:choose>
									<xsl:when test="@ID">
										<xsl:value-of select="@ID"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="generate-id()"/>
									</xsl:otherwise>
								</xsl:choose>'</xsl:for-each>
							<xsl:if test="../Item[@MaskableChild = '1'] and ../Item/Item[@MaskableChild = '1']">, </xsl:if>
							<xsl:for-each select="../Item/Item[@MaskableChild = '1']">
								<xsl:if test="position() != 1">, </xsl:if>'item_<xsl:choose>
									<xsl:when test="@ID">
										<xsl:value-of select="@ID"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="generate-id()"/>
									</xsl:otherwise>
								</xsl:choose>'</xsl:for-each>
							<xsl:if test="../Item[@MaskableChild = '1'] and ../Item/Item[@MaskableChild = '1'] and preceding-sibling::Item[@MaskableChild = '1']/Item[@MaskableChild = '1']">, </xsl:if>
							<xsl:for-each select="preceding-sibling::Item[@MaskableChild = '1']/Item[@MaskableChild = '1']">
								<xsl:if test="position() != 1">, </xsl:if>'item_<xsl:choose>
									<xsl:when test="@ID">
										<xsl:value-of select="@ID"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="generate-id()"/>
									</xsl:otherwise>
								</xsl:choose>'</xsl:for-each>)</xsl:when>
						<xsl:when test="@MaskableChild = '1'">
							<xsl:if test="position() != 1 or preceding::Item[@MaskableChild = '1'] or ancestor::Item[@MaskableChild = '1']">, </xsl:if>new Array(<xsl:for-each select="preceding-sibling::Item/Item[@MaskableChild = '1']">
								<xsl:if test="position() != 1">, </xsl:if>'item_<xsl:choose>
									<xsl:when test="@ID">
										<xsl:value-of select="@ID"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="generate-id()"/>
									</xsl:otherwise>
								</xsl:choose>'</xsl:for-each>)</xsl:when>
						<xsl:otherwise>
							<xsl:if test="position() != 1">, </xsl:if>new Array()</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
				<![CDATA[);]]>
			</script>
		</xsl:if>
		<xsl:if test="$VAdditionalColumns/Column">
			<div class="clRowHeader">
				<xsl:for-each select="$VAdditionalColumns/Column">
					<span class="clRowHeader">
						<xsl:attribute name="style">width: <xsl:value-of select="@Width"/>; padding: 2px;<xsl:variable name="TextAlign" select="@TextAlign"/>
							<xsl:if test="$TextAlign != ''">text-align:<xsl:value-of select="$TextAlign"/>;</xsl:if>
						</xsl:attribute>
						<xsl:value-of select="@Caption"/>
					</span>
				</xsl:for-each>
			</div>
		</xsl:if>
		<div style="white-space: nowrap" oncontextmenu="return CancelEvent(event);">
			<xsl:apply-templates select="$VTree/Item" mode="TreeView">
				<xsl:with-param name="AdditionalColumns" select="$AdditionalColumns"/>
				<xsl:with-param name="AdditionalColumnsAlternateColor" select="$AdditionalColumnsAlternateColor"/>
				<xsl:with-param name="BoldSelectedItem" select="$BoldSelectedItem"/>
				<xsl:with-param name="Depth" select="$Depth"/>
				<xsl:with-param name="HighlightColor" select="$HighlightColor"/>
				<xsl:with-param name="HighlightSelectedItem" select="$HighlightSelectedItem"/>
				<xsl:with-param name="MaskableItems" select="$MaskableItems"/>
				<xsl:with-param name="SelectedID" select="$SelectedID"/>
				<xsl:with-param name="TreePath" select="$TreePath"/>
				<xsl:with-param name="VFakes" select="$VFakes"/>
			</xsl:apply-templates>
		</div>
	</xsl:template>
	<xsl:template match="Item" mode="TreeView">
		<xsl:param name="AdditionalColumns">
			<dummy/>
		</xsl:param>
		<xsl:param name="AdditionalColumnsAlternateColor">1</xsl:param>
		<xsl:param name="BoldSelectedItem">1</xsl:param>
		<xsl:param name="Bold" select="@Bold"/>
		<xsl:param name="Columns">
			<xsl:choose>
				<xsl:when test="AdditionalColumns">
					<xsl:copy-of select="AdditionalColumns/*"/>
				</xsl:when>
				<xsl:otherwise>
					<dummy/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:param>
		<xsl:param name="Depth">0</xsl:param>
		<xsl:param name="Hint" select="@Hint"/>
		<xsl:param name="VFakes">
			<dummy/>
		</xsl:param>
		<xsl:param name="GlobalPosition">1</xsl:param>
		<xsl:param name="HighlightColor">#316AC5</xsl:param>
		<xsl:param name="HighlightSelectedItem">0</xsl:param>
		<xsl:param name="MaskableItems"/>
		<xsl:param name="TreePath"/>
		<xsl:param name="SelectedID"/>
		<xsl:variable name="VAdditionalColumns" select="msxsl:node-set($AdditionalColumns)"/>
		<xsl:variable name="VColumns" select="msxsl:node-set($Columns)"/>
		<xsl:variable name="VDepth">
			<xsl:choose>
				<xsl:when test="(@Depth)">
					<xsl:value-of select="@Depth"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$Depth"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="CurrentID">
			<xsl:choose>
				<xsl:when test="(@ID) and (@ID != '')">
					<xsl:value-of select="@ID"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="generate-id()"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Expanded">
			<xsl:choose>
				<xsl:when test="@xslc_id">True</xsl:when>
				<xsl:when test=".//Item[@ID = $SelectedID]">True</xsl:when>
				<xsl:when test="@Expanded = '0'">False</xsl:when>
				<xsl:when test="@Expanded = '1'">True</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="@Expanded"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="MaskChilds">
			<xsl:choose>
				<xsl:when test="$MaskableItems = '0'">False</xsl:when>
				<xsl:when test="../@MaskChilds = '1' or ../@MaskChilds = 'True'">True</xsl:when>
				<xsl:when test="not(parent::Item/@MaskChilds) and ((@MaskChilds = '1') or (@MaskChilds = 'True'))">True</xsl:when>
				<xsl:otherwise>False</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="MaskableChilds">
			<xsl:choose>
				<xsl:when test="$MaskableItems = '0'">False</xsl:when>
				<xsl:when test="Item[@MaskableChild = '1']">True</xsl:when>
				<xsl:otherwise>False</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AllChildsMaskable">
			<xsl:choose>
				<xsl:when test="$MaskableItems = '0'">False</xsl:when>
				<xsl:when test="Item[not(@MaskableChild) or @MaskableChild = '0']">False</xsl:when>
				<xsl:otherwise>True</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="MaskedChild">
			<xsl:choose>
				<xsl:when test="$MaskableItems = '0'">False</xsl:when>
				<xsl:when test="@MaskableChild = '1'">True</xsl:when>
				<xsl:when test="@MaskableChild = 'True'">True</xsl:when>
				<xsl:otherwise>False</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="id" select="generate-id()"/>
		<xsl:variable name="IsRootNode">
			<xsl:choose>
				<xsl:when test="@PartialUpdate = '1'">False</xsl:when>
				<xsl:when test="(preceding-sibling::Item) or (following-sibling::Item) or (ancestor::Item)">False</xsl:when>
				<xsl:otherwise>True</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!--ancestors-->
		<!--Node itself-->
		<div id="item_{$CurrentID}" depth="{$VDepth + count(ancestor::Item)}">
			<xsl:if test="$VColumns/Column and $AdditionalColumnsAlternateColor = '1'">
				<xsl:attribute name="class">
					<xsl:choose>
						<xsl:when test="($GlobalPosition + position())  mod 2">clRowLight</xsl:when>
						<xsl:otherwise>clRowDark</xsl:otherwise>
					</xsl:choose>
				</xsl:attribute>
			</xsl:if>
			<xsl:if test="$MaskableItems != '0' and $MaskedChild = 'True'">
				<xsl:attribute name="style">visibility:hidden;display: none;</xsl:attribute>
			</xsl:if>
			<div id="title_{$CurrentID}">
				<!--expand/collapse icon-->
				<xsl:if test="$VDepth != '0'">
					<xsl:for-each select="$VFakes/XMLC_Fake">
						<img align="absmiddle" src="{$TreePath}blank.gif"/>
					</xsl:for-each>
				</xsl:if>
				<span>
					<xsl:if test="$VAdditionalColumns/Column">
						<xsl:attribute name="style">width:<xsl:value-of select="$VAdditionalColumns/Column/@Width"/>;</xsl:attribute>
					</xsl:if>
					<xsl:for-each select="ancestor::Item">
						<xsl:variable name="AncestorIsRootNode">
							<xsl:choose>
								<xsl:when test="(preceding-sibling::Item) or (following-sibling::Item) or (ancestor::Item)">False</xsl:when>
								<xsl:otherwise>True</xsl:otherwise>
							</xsl:choose>
						</xsl:variable>
						<xsl:if test="$AncestorIsRootNode = 'False'">
							<img align="absmiddle">
								<xsl:attribute name="src">
									<xsl:value-of select="$TreePath"/>
									<xsl:choose>
										<xsl:when test="following-sibling::Item">bi.gif</xsl:when>
										<xsl:otherwise>blank.gif</xsl:otherwise>
									</xsl:choose>
								</xsl:attribute>
							</img>
						</xsl:if>
					</xsl:for-each>
					<xsl:variable name="PictoID">
						<xsl:if test="@ImageClosedPath != ''">picto_<xsl:value-of select="$CurrentID"/>
						</xsl:if>
					</xsl:variable>
					<xsl:if test="$IsRootNode = 'False'">
						<a href="." onfocus="this.blur();">
							<xsl:attribute name="onclick">
								<xsl:choose>
									<xsl:when test="@PartialUpdate = 1">
										<xsl:if test="@PartialOnClick != ''">
											<xsl:value-of select="@PartialOnClick"/>
										</xsl:if>
										<![CDATA[PartialUpdate(']]>
										<xsl:value-of select="@PartialForm"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialAction"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialTarget"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialKeyField"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialKeyFieldValue"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$VDepth + count(ancestor::Item) +1"/>
										<![CDATA[', false);]]>
									</xsl:when>
									<xsl:otherwise>
										<![CDATA[onClickNode('img_]]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', 'div_]]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$PictoID"/>
										<![CDATA[', false);]]>
										<xsl:value-of select="@OnExpandClick"/>
									</xsl:otherwise>
								</xsl:choose>
								<![CDATA[return false;]]>
							</xsl:attribute>
							<xsl:if test="@OnKeyPress and @OnKeyPress != ''">
								<xsl:attribute name="onkeypress">
									<xsl:value-of select="@OnKeyPress"/>
								</xsl:attribute>
							</xsl:if>
							<img id="img_{$CurrentID}" align="absmiddle" border="0">
								<xsl:attribute name="src">
									<xsl:value-of select="$TreePath"/>
									<xsl:choose>
										<xsl:when test="@PartialUpdate = '1'">
											<xsl:choose>
												<xsl:when test="$Expanded='True'">mbl.gif</xsl:when>
												<xsl:otherwise>pbl.gif</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="Item and $AllChildsMaskable = 'False'">
											<xsl:choose>
												<xsl:when test="following-sibling::Item">
													<xsl:choose>
														<xsl:when test="(position() = 1) and not(ancestor::Item)">
															<xsl:choose>
																<xsl:when test="$Expanded='True'">umbt.gif</xsl:when>
																<xsl:otherwise>upbt.gif</xsl:otherwise>
															</xsl:choose>
														</xsl:when>
														<xsl:otherwise>
															<xsl:choose>
																<xsl:when test="$Expanded='True'">mbt.gif</xsl:when>
																<xsl:otherwise>pbt.gif</xsl:otherwise>
															</xsl:choose>
														</xsl:otherwise>
													</xsl:choose>
												</xsl:when>
												<xsl:otherwise>
													<xsl:choose>
														<xsl:when test="$Expanded='True'">mbl.gif</xsl:when>
														<xsl:otherwise>pbl.gif</xsl:otherwise>
													</xsl:choose>
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="Item and $AllChildsMaskable = 'True'">
											<xsl:choose>
												<xsl:when test="following-sibling::Item">bt.gif</xsl:when>
												<xsl:otherwise>bl.gif</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="not(descendant::Item)">
											<xsl:choose>
												<xsl:when test="following-sibling::Item">bt.gif</xsl:when>
												<xsl:otherwise>bl.gif</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:otherwise>
											<xsl:choose>
												<xsl:when test="following-sibling::Item and $AllChildsMaskable = 'False'">pbt.gif</xsl:when>
												<xsl:otherwise>bl.gif</xsl:otherwise>
											</xsl:choose>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:attribute>
							</img>
						</a>
					</xsl:if>
					<span style="cursor: pointer; white-space: nowrap;">
						<xsl:if test="$Hint != ''">
							<xsl:attribute name="title">
								<xsl:value-of select="$Hint"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="@xslc_id">
							<xsl:attribute name="xslc_id">
								<xsl:value-of select="@xslc_id"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:variable name="Element">
							<xsl:choose>
								<xsl:when test="@HRef and (@HRef != '')">a</xsl:when>
								<xsl:otherwise>span</xsl:otherwise>
							</xsl:choose>
						</xsl:variable>
						<xsl:if test="@ImagePath != ''">
							<xsl:element name="{$Element}">
								<xsl:if test="$Element = 'a'">
									<xsl:attribute name="href">
										<xsl:value-of select="@HRef"/>
									</xsl:attribute>
									<xsl:attribute name="onfocus">this.blur();</xsl:attribute>
									<xsl:if test="@Target">
										<xsl:attribute name="target">
											<xsl:value-of select="@Target"/>
										</xsl:attribute>
									</xsl:if>
								</xsl:if>
								<xsl:if test="($BoldSelectedItem = '1') or ($HighlightSelectedItem = '1') or (@OnClick != '') or (@ExpandOnClick != '') or (@PartialUpdate = '1')">
									<xsl:attribute name="onclick">
										<xsl:if test="@PartialUpdate = 1">
											<xsl:if test="@PartialOnClick != ''">
												<xsl:value-of select="@PartialOnClick"/>
											</xsl:if>
											<![CDATA[PartialUpdate(']]>
											<xsl:value-of select="@PartialForm"/>
											<![CDATA[', ']]>
											<xsl:value-of select="@PartialAction"/>
											<![CDATA[', ']]>
											<xsl:value-of select="@PartialTarget"/>
											<![CDATA[', ']]>
											<xsl:value-of select="@PartialKeyField"/>
											<![CDATA[', ']]>
											<xsl:value-of select="@PartialKeyFieldValue"/>
											<![CDATA[', ']]>
											<xsl:value-of select="$CurrentID"/>
											<![CDATA[', ']]>
											<xsl:value-of select="$VDepth + count(ancestor::Item) +1"/>
											<![CDATA[', true);]]>
										</xsl:if>
										<xsl:if test="$BoldSelectedItem = '1'">boldItem('<xsl:value-of select="$CurrentID"/>');</xsl:if>
										<xsl:if test="$HighlightSelectedItem = '1'">highlightItem('<xsl:value-of select="$CurrentID"/>', '<xsl:value-of select="$HighlightColor"/>');</xsl:if>
										<xsl:if test="@PartialUpdate != '1'">
											<![CDATA[onClickNode('img_]]>
											<xsl:value-of select="$CurrentID"/>
											<![CDATA[', 'div_]]>
											<xsl:value-of select="$CurrentID"/>
											<![CDATA[', ']]>
											<xsl:value-of select="$PictoID"/>
											<![CDATA[', true);]]>
										</xsl:if>
										<xsl:if test="@OnClick != ''">
											<xsl:value-of select="@OnClick"/>
										</xsl:if>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="@OnMouseDown and @OnMouseDown != ''">
									<xsl:attribute name="onmousedown">
										<xsl:value-of select="@OnMouseDown"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="@OnMouseUp and @OnMouseUp != ''">
									<xsl:attribute name="onmouseup">
										<xsl:value-of select="@OnMouseUp"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="@OnKeyPress and @OnKeyPress != ''">
									<xsl:attribute name="onkeypress">
										<xsl:value-of select="@OnKeyPress"/>
									</xsl:attribute>
								</xsl:if>
								<img id="picto_{$CurrentID}" border="0" align="absmiddle">
									<xsl:if test="(@Hint) and (@Hint != '')">
										<xsl:attribute name="alt">
											<xsl:value-of select="@Hint"/>
										</xsl:attribute>
										<xsl:attribute name="title">
											<xsl:value-of select="@Hint"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:choose>
										<xsl:when test="not(@ImageClosedPath) or (@ImageClosedPath = '')">
											<xsl:attribute name="src">
												<xsl:value-of select="@ImagePath"/>
											</xsl:attribute>
											<xsl:attribute name="src_">
												<xsl:value-of select="@ImagePath"/>
											</xsl:attribute>
										</xsl:when>
										<xsl:when test="$Expanded != 'True'">
											<xsl:attribute name="src">
												<xsl:value-of select="@ImageClosedPath"/>
											</xsl:attribute>
											<xsl:attribute name="src_">
												<xsl:value-of select="@ImagePath"/>
											</xsl:attribute>
										</xsl:when>
										<xsl:when test="(@Folder='1') and (not(descendant::Item))">
											<xsl:attribute name="src">
												<xsl:value-of select="@ImageClosedPath"/>
											</xsl:attribute>
											<xsl:attribute name="src_">
												<xsl:value-of select="@ImagePath"/>
											</xsl:attribute>
										</xsl:when>
										<xsl:otherwise>
											<xsl:attribute name="src">
												<xsl:value-of select="@ImagePath"/>
											</xsl:attribute>
											<xsl:attribute name="src_">
												<xsl:value-of select="@ImageClosedPath"/>
											</xsl:attribute>
										</xsl:otherwise>
									</xsl:choose>
								</img>
							</xsl:element>&#160;</xsl:if>
						<xsl:element name="{$Element}">
							<xsl:attribute name="id">
								<xsl:value-of select="$CurrentID"/>
							</xsl:attribute>
							<xsl:if test="$Element = 'a'">
								<xsl:attribute name="href">
									<xsl:value-of select="@HRef"/>
								</xsl:attribute>
								<xsl:attribute name="onfocus">this.blur();</xsl:attribute>
								<xsl:if test="@Target">
									<xsl:attribute name="target">
										<xsl:value-of select="@Target"/>
									</xsl:attribute>
								</xsl:if>
							</xsl:if>
							<xsl:if test="($BoldSelectedItem = '1') or ($HighlightSelectedItem = '1') or (@OnClick != '') or (@PartialUpdate = '1')">
								<xsl:attribute name="onclick">
									<xsl:if test="@PartialUpdate = 1">
										<xsl:if test="@PartialOnClick != ''">
											<xsl:value-of select="@PartialOnClick"/>
										</xsl:if>
										<![CDATA[PartialUpdate(']]>
										<xsl:value-of select="@PartialForm"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialAction"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialTarget"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialKeyField"/>
										<![CDATA[', ']]>
										<xsl:value-of select="@PartialKeyFieldValue"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$VDepth + count(ancestor::Item) +1"/>
										<![CDATA[', true);]]>
									</xsl:if>
									<xsl:if test="$BoldSelectedItem = '1'">boldItem('<xsl:value-of select="$CurrentID"/>');</xsl:if>
									<xsl:if test="$HighlightSelectedItem = '1'">highlightItem('<xsl:value-of select="$CurrentID"/>', '<xsl:value-of select="$HighlightColor"/>');</xsl:if>
									<xsl:if test="@PartialUpdate != '1'">
										<![CDATA[onClickNode('img_]]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', 'div_]]>
										<xsl:value-of select="$CurrentID"/>
										<![CDATA[', ']]>
										<xsl:value-of select="$PictoID"/>
										<![CDATA[', true);]]>
									</xsl:if>
									<xsl:if test="@OnClick != ''">
										<xsl:value-of select="@OnClick"/>
									</xsl:if>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="@OnMouseDown and @OnMouseDown != ''">
								<xsl:attribute name="onmousedown">
									<xsl:value-of select="@OnMouseDown"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="@OnMouseUp and @OnMouseUp != ''">
								<xsl:attribute name="onmouseup">
									<xsl:value-of select="@OnMouseUp"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="@OnKeyPress and @OnKeyPress != ''">
								<xsl:attribute name="onkeypress">
									<xsl:value-of select="@OnKeyPress"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$CurrentID = $SelectedID">
								<xsl:choose>
									<xsl:when test="($HighlightSelectedItem = '1') and substring($HighlightColor, 1, 1) != '#'">
										<xsl:attribute name="class">
											<xsl:value-of select="$HighlightColor"/>
										</xsl:attribute>
										<xsl:attribute name="class_"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:attribute name="color_"/>
									</xsl:otherwise>
								</xsl:choose>
								<xsl:if test="$BoldSelectedItem = '1'">
									<xsl:attribute name="fontWeight_"/>
								</xsl:if>
							</xsl:if>
							<xsl:attribute name="style">padding-left: 3px; padding-right: 3px;<xsl:if test="$Bold = '1'">font-weight: bold;</xsl:if>
								<xsl:if test="$CurrentID = $SelectedID">
									<xsl:if test="($HighlightSelectedItem = '1') and substring($HighlightColor, 1, 1) = '#'">background-color: <xsl:value-of select="$HighlightColor"/>; color: #FFFFFF;</xsl:if>
								</xsl:if>
							</xsl:attribute>
							<xsl:choose>
								<xsl:when test="Content">
									<xsl:copy-of select="Content"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="@Caption"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:element>
						<xsl:if test="$MaskableItems != '0' and $MaskableChilds = 'True'">
							<xsl:variable name="IDArray">[<xsl:for-each select="Item[@MaskableChild = '1']">
									<xsl:variable name="ItemID">
										<xsl:choose>
											<xsl:when test="@ID">
												<xsl:value-of select="@ID"/>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="generate-id()"/>
											</xsl:otherwise>
										</xsl:choose>
									</xsl:variable>
									<xsl:if test="position() != 1">, </xsl:if>'item_<xsl:value-of select="$ItemID"/>'</xsl:for-each>]</xsl:variable>&#160;<img id="imgMask_{$CurrentID}" alt="{/document/Locales/MaskUnmaskChildsAlt}" border="0" onclick="ShowHide({$IDArray}, 'IMG', 'imgMask_{$CurrentID}', '+', '{$XMLC_PictosPath}ico_CheckAfter.gif', '-', '{$XMLC_PictosPath}ico_CheckBefore.gif'); return false;" onfocus="this.blur();" style="cursor: pointer;">
								<xsl:attribute name="src">
									<xsl:value-of select="$XMLC_PictosPath"/>ico_Check<xsl:choose>
										<xsl:when test="$MaskChilds = 'True'">After</xsl:when>
										<xsl:otherwise>Before</xsl:otherwise>
									</xsl:choose>.gif</xsl:attribute>
							</img>
						</xsl:if>
						<xsl:if test="AdditionalContent">
							<xsl:copy-of select="AdditionalContent"/>
						</xsl:if>
					</span>
				</span>
				<xsl:if test="$VColumns/Column">
					<xsl:for-each select="$VColumns/Column">
						<xsl:variable name="ColumnName" select="@Name"/>
						<span>
							<xsl:attribute name="style">
								<xsl:variable name="Width" select="$VAdditionalColumns/Column[@Name = $ColumnName]/@Width"/>
								<xsl:if test="$Width != ''">width:<xsl:value-of select="$Width"/>;</xsl:if>
								<xsl:variable name="TextAlign" select="$VAdditionalColumns/Column[@Name = $ColumnName]/@TextAlign"/>
								<xsl:if test="$TextAlign != ''">text-align:<xsl:value-of select="$TextAlign"/>;</xsl:if>
							</xsl:attribute>
							<xsl:value-of select="@Value"/>
						</span>
					</xsl:for-each>
				</xsl:if>
			</div>
			<div id="div_{$CurrentID}">
				<xsl:if test="($Expanded != 'True') and ($IsRootNode = 'False')">
					<xsl:attribute name="style">display: none;</xsl:attribute>
				</xsl:if>
				<xsl:apply-templates select="Item" mode="TreeView">
					<xsl:with-param name="AdditionalColumns" select="$AdditionalColumns"/>
					<xsl:with-param name="AdditionalColumnsAlternateColor" select="$AdditionalColumnsAlternateColor"/>
					<xsl:with-param name="BoldSelectedItem" select="$BoldSelectedItem"/>
					<xsl:with-param name="Depth" select="$VDepth"/>
					<xsl:with-param name="HighlightColor" select="$HighlightColor"/>
					<xsl:with-param name="HighlightSelectedItem" select="$HighlightSelectedItem"/>
					<xsl:with-param name="GlobalPosition" select="$GlobalPosition + position()"/>
					<xsl:with-param name="SelectedID" select="$SelectedID"/>
					<xsl:with-param name="TreePath" select="$TreePath"/>
					<xsl:with-param name="VFakes" select="$VFakes"/>
				</xsl:apply-templates>
			</div>
		</div>
	</xsl:template>
</xsl:stylesheet>
