<?xml version="1.0" encoding="windows-1251" ?>
<!DOCTYPE page [
<!ENTITY nbsp "&amp;nbsp;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" version="1.0" encoding="windows-1251" omit-xml-declaration="no" indent="no" media-type="text/html"/>
	<xsl:variable name="AddValue"><xsl:value-of select="//page/content/Messages/GlobalAdding"/></xsl:variable>
	<xsl:variable name="EditValue"><xsl:value-of select="//page/content/Messages/GlobalEditing"/></xsl:variable>
	<xsl:variable name="OptionDeleteValue"><xsl:value-of select="//page/content/Messages/GlobalDelete"/></xsl:variable>
	<xsl:variable name="OptionEditValue"><xsl:value-of select="//page/content/Messages/GlobalEdit"/></xsl:variable>
	<xsl:variable name="ConfirmMessage"><xsl:value-of select="//page/content/Messages/GlobalConfirm"/></xsl:variable>
	<!-- Admin section layout template -->
	<xsl:template match="page">
		<html>
			<head>
				<title><xsl:value-of select="//page/content/Messages/GlobalTitle"/> - <xsl:value-of select="$page-title"/></title>
				<script language="JavaScript" src="admin.js"></script>
				<script language="JavaScript" src="cookie.js"></script>
				<xsl:choose><xsl:when test="//page/content/ShowTooltips=1"><script language="JavaScript" src="tooltip.js"></script>
				</xsl:when><xsl:otherwise><script type="text/javascript">
					function showWMTT(sender) {
					return;
					}
					function hideWMTT() {
					return;
					}
				</script></xsl:otherwise></xsl:choose>
				<link rel="STYLESHEET" type="text/css" href="main.css"/>
				<!-- Calendar functionality -->
				<link rel="stylesheet" type="text/css" media="all" href="{//page/@app-path}/calendar/calendar-blue.css"/>
				<script type="text/javascript" src="{//page/@app-path}/calendar/calendar.js"></script>
				<script type="text/javascript" src="{//page/@app-path}/calendar/lang/calendar-{//page/@language}.js"></script>
				<script type="text/javascript" src="{//page/@app-path}/calendar/calendar-setup.js"></script>
			</head>
			<body bgcolor="#ffffff" marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
				<!-- ToolTip div -->
				<div class="ttdiv" id="mytt" 
					style="position: absolute; display: none; background-color: #97D9FE;  border: solid 1px #333333; padding-left: 2px; padding-right:2px; font-family: verdana, arial, 'ms sans serif', sans-serif; color: #000000; font-size: 10px; line-height: 16px"
					></div>
				<!-- ToolTip div -->
				
				<form name="appPath">
					<input type="Hidden" name="appPath" value="{//page/@server-path}{//page/@app-path}"/>
				</form>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr><td colspan="3"><img src="images/pix.gif" width="1" height="10"/></td></tr>
					<tr>
						<td><img src="images/pix.gif" width="10" height="1"/></td>
						<td align="center" width="100%">
							<table border="0" cellpadding="0" cellspacing="0" width="100%">
								<tr>
									<td>
										<table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tr>
												<td bgcolor="#ffffff" width="171">
													<table border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="171" height="42" align="center" valign="middle"><a href="index.php"><img src="images/logo-.gif" alt="" border="0"/></a></td>
														</tr>
													</table>
												</td>
												<td>
													<table border="0" cellpadding="0" cellspacing="0" height="46" width="100%">
														<tr><td height="1" bgcolor="#999999" colspan="2"><img src="images/pix.gif" width="1" height="1"/></td></tr>
														<tr>
															<td>
																<table border="0" cellpadding="0" cellspacing="0" width="100%">
																	<tr valign="bottom">
																		<td><img src="images/pix.gif" width="15" height="1"/></td>
																		<td></td>
																		<td><img src="images/pix.gif" width="15" height="1"/></td>
																		<td width="100%" nowrap="" align="right"><a href="logout.php" class="logout" style="text-decoration:none;"><xsl:value-of select="//content/Messages/GlobalLogout"/></a></td>
																		<td><img src="images/pix.gif" width="11" height="1"/></td>						
																	</tr>
																	<tr><td colspan="4"><img src="images/pix.gif" width="1" height="5"/></td></tr>
																	<tr>
																		<td><img src="images/pix.gif" width="1" height="1"/></td>
																		<td width="100%" height="1" bgcolor="#999999" colspan="4"><img src="images/pix.gif" width="1" height="1"/></td>
																	</tr>
																</table>
															</td>
															<td width="1" bgcolor="#999999"><img src="images/pix.gif" width="1" height="1"/></td>
														</tr>
													</table>
												</td>
											</tr>
										</table>		
									</td>
								</tr>
								<tr>
									<td bgcolor="#455580">
										<table border="0" cellpadding="0" cellspacing="1" width="100%">
											<tr>
												<td background="images/bgrubrnav.jpg">
													<table border="0" cellpadding="0" cellspacing="0" width="100%">
														<tr>
															<td width="9"><img src="images/whiteline.gif" width="1" height="18" alt="" border="0"/><img src="images/pix.gif" width="8" height="1"/></td>
															<td>
																<p class="TxtInHref">
																	<xsl:apply-templates select="content/topMenu/menu"/>
																</p>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<tr><td bgcolor="#999999"><img src="images/pix.gif" width="1" height="1"/></td></tr>
								<tr>
									<td>
										<table border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td bgcolor="#999999" width="1"><img src="images/pix.gif" width="1" height="1"/></td>
												<!-- main -->
												<td valign="top" width="100%">
													<table border="0" cellpadding="0" cellspacing="0" width="100%">
														<tr>
															<td height="17"><p class="headline"><xsl:value-of select="//page/content/Messages/GlobalHeader"/></p></td>
														</tr>
														<tr><td height="2" bgcolor="#5A7EDC"><img src="images/pix.gif" width="1" height="2"/></td></tr>
														<tr><td bgcolor="#999999"><img src="images/pix.gif" width="1" height="1"/></td></tr>
														<!--tr><td>
															<table cellspacing="0" cellpadding="0" border="0" width="100%" style="background:url(images/lang_n_bg.gif);"><tr>
																<td><img src="images/lang_n_bg.gif" alt="" border="0" /></td>
																<xsl:apply-templates select="//Languages/row"/>
																<td width="100%">&nbsp;</td>
															</tr></table>				
														</td></tr-->
														<tr>
															<td width="100%">
																<!-- content -->
																<table border="0" cellpadding="0" cellspacing="0" width="100%">
																	<tr><td colspan="3"><img src="images/pix.gif" width="1" height="15"/></td></tr>
																	<tr>
																		<td width="15"><img src="images/pix.gif" width="15" height="1"/></td>
																		<td width="100%">
																			<table border="0" cellpadding="0" cellspacing="0" width="100%">
																				<tr>
																					<td width="100%">
																						<xsl:apply-templates select="content"/>
																					</td>
																				</tr>
																			</table>
																		</td>
																		<td width="15"><img src="images/pix.gif" width="15" height="1"/></td>
																	</tr>
																	<tr><td colspan="3"><img src="images/pix.gif" width="1" height="15"/></td></tr>
																</table>
																<!-- content ends -->
															</td>
														</tr>
													</table>
												</td>
												<!-- main ends -->
												<td bgcolor="#999999" width="1"><img src="images/pix.gif" width="1" height="1"/></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr><td bgcolor="#999999"><img src="images/pix.gif" width="1" height="1"/></td></tr>
								<tr><td><br/><br/><br/><br/><br/></td></tr>
							</table>
						</td>
						<td><img src="images/pix.gif" width="10" height="1"/></td>
					</tr>
				</table>
				
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="page[@type='PopUp']">
		<html>
			<head>
				<title><xsl:value-of select="//page/content/Messages/GlobalPopUpTitle"/>: <xsl:value-of select="$page-title"/></title>
				<script language="JavaScript" src="admin.js"></script>
				<link rel="STYLESHEET" type="text/css" href="main.css"/>				
			</head>
			<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" bgcolor="#F5F9FF">
				<xsl:apply-templates select="content"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template name="MakeDate">
		<xsl:param name="Date"/>
		<xsl:param name="NeedHours"/>
		<xsl:param name="InputDate"/>
		<xsl:choose><xsl:when test="$InputDate=1"><xsl:value-of select="$Date/Year"/><xsl:text>-</xsl:text><xsl:value-of select="$Date/MonthFullValue"/><xsl:text>-</xsl:text><xsl:value-of select="$Date/Day"/></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="$Date/Day!=0 and $Date/Year!=0"><xsl:value-of select="$Date/Day"/><xsl:text> </xsl:text><xsl:value-of select="$Date/MonthName"/><xsl:text>, </xsl:text><xsl:value-of select="$Date/Year"/></xsl:when><xsl:otherwise><span class="error"><xsl:value-of select="//page/content/Messages/GlobalEmpty"/></span></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose><xsl:if test="$NeedHours=1"><xsl:text> </xsl:text><xsl:value-of select="$Date/Hour"/><xsl:text>:</xsl:text><xsl:value-of select="$Date/Minute"/><xsl:text>:</xsl:text><xsl:value-of select="$Date/Second"/></xsl:if>
	</xsl:template>
	
	<xsl:template match="Languages/row">
		<xsl:choose>
			<xsl:when test="@current=0">
			<td><img src="images/lang_n_bg.gif" alt="" border="0" height="25" width="4" /></td>
				<td>&nbsp;<a href="?event=Switch&amp;lang={@language}" style="color:#000000;"><b class="lang"><xsl:value-of select="@name"/></b></a>&nbsp;</td>
			<td><img src="images/lang_n_bg.gif" alt="" border="0"  height="25" width="4"/></td>
			</xsl:when>
			<xsl:otherwise>
			<td><img src="images/lang_r.gif" alt="" border="0" /><img src="images/lang_a_bg.gif" alt="" border="0" height="25" width="4" /></td>
				<td style="color:#5A7EDC; background:url(images/lang_a_bg.gif);">&nbsp;<b class="lang"><xsl:value-of select="@name"/></b>&nbsp;</td>
			<td><img src="images/lang_a_bg.gif" alt="" border="0" height="25" width="4" /><img src="images/lang_l.gif" alt="" border="0" /></td>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template name="DefaultFormTemplate">
		<xsl:param name="FormBody"/>
		<xsl:param name="FormTitle"/>
		<xsl:param name="BottomError"/>
		<xsl:param name="width"/>
		<xsl:param name="NoErrors"/>
		<xsl:if test="$FormBody">
			<table border="0" cellpadding="0" cellspacing="0" width="{$width}">
				<tr>
					<td bgcolor="#3D5E74">
						<table border="0" cellpadding="0" cellspacing="1" width="100%">
							<tr><td background="images/tabbg.gif" height="17"><p class="table"><b><xsl:value-of select="$FormTitle"/></b>&amp;nbsp;</p></td></tr>
							<xsl:if test="error-messages and $BottomError!=1 and not($NoErrors)">
								<tr><td bgcolor="#f7f7f7" height="40"><xsl:for-each select="error-messages/message"><p class="error" style="margin:5px;"><xsl:value-of select="." disable-output-escaping="yes"/></p></xsl:for-each></td></tr>
							</xsl:if>
							<tr>
								<td bgcolor="#F7F7F7">
									<table border="0" cellpadding="4" cellspacing="2" width="100%">
										<xsl:apply-templates select="$FormBody"/>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<xsl:if test="error-messages and $BottomError=1 and not($NoErrors)">
					<tr><td><xsl:for-each select="error-messages/message" ><p class="error" style="margin:5px;"><xsl:value-of select="." disable-output-escaping="yes"/></p></xsl:for-each></td></tr>
				</xsl:if>
			</table><br/>
		</xsl:if>
	</xsl:template>
	
	<xsl:template name="DefaultText">
		<xsl:param name="isObligatory"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td><xsl:value-of select="$value" disable-output-escaping="yes"/></td>
		</tr>
	</xsl:template>
	
	<xsl:template name="DefaultTextInput">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="maxLength" />
		<xsl:param name="style">background:#ffffff;border:solid 1px #000000;height:20px;</xsl:param>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td><input type="text" name="{$name}" class="adminform" style="{$style}" value="{$value}"><xsl:if test="$maxLength > 0"><xsl:attribute name="maxLength"><xsl:value-of select="$maxLength"/></xsl:attribute></xsl:if><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"></xsl:attribute></xsl:if></input></td>
		</tr>
	</xsl:template>
	
	<xsl:template name="DefaultPasswordInput">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="maxLength" />
		<xsl:param name="style">background:#ffffff;border:solid 1px #000000;height:20px;</xsl:param>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td><input type="password" name="{$name}" value="{$value}" size="40" class="adminform" style="{$style}"><xsl:if test="$maxLength > 0"><xsl:attribute name="maxLength"><xsl:value-of select="$maxLength"/></xsl:attribute></xsl:if></input></td>
		</tr>
	</xsl:template>
	
	<xsl:template name="DefaultCheckbox">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="disabled"/>
		<xsl:param name="style"></xsl:param>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td><input type="checkbox" name="{$name}" value="1" style="{$style}" ><xsl:if test="$disabled = 1"><xsl:attribute name="disabled"></xsl:attribute></xsl:if> <xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"></xsl:attribute></xsl:if><xsl:if test="$value=1"><xsl:attribute name="checked"/></xsl:if></input></td>
		</tr>
	</xsl:template>
	
	<xsl:template name="DefaultSelect">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="chooseName"/>
		<xsl:param name="chooseValue"/>
		<xsl:param name="multiple"/>
		<xsl:param name="multipleSize"/>
		<xsl:param name="checkboxes"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="onChange"></xsl:param>
		<xsl:param name="style"></xsl:param>
		<xsl:param name="templateValues"/>
		<xsl:param name="templateEmptyError"/>
		<xsl:param name="templateEmptyErrorMessage"/>
		<xsl:param name="templateParamName2"/>
		<xsl:param name="templateParamValue2"/>
		<xsl:param name="templateParamName3"/>
		<xsl:param name="templateParamValue3"/>
		<xsl:param name="templateParamName4"/>
		<xsl:param name="templateParamValue4"/>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td>
				<xsl:choose>
					<xsl:when test="$templateEmptyErrorMessage!=''">
						<xsl:choose>
							<xsl:when test="$templateValues">
								<xsl:choose>
									<xsl:when test="$checkboxes!=1">
										<select name="{$name}" style="{$style}" class="adminform" ><xsl:if test="$onChange != ''"><xsl:attribute name="onchange"><xsl:value-of select="$onChange" disable-output-escaping="yes"/></xsl:attribute></xsl:if>
											<xsl:if test="$multiple = 1"><xsl:attribute name="multiple"/></xsl:if>
											<xsl:if test="$multipleSize != ''"><xsl:attribute name="size"><xsl:value-of select="$multipleSize"/></xsl:attribute></xsl:if>
											<xsl:if test="$chooseName != ''"><option value="{$chooseValue}"><xsl:value-of select="$chooseName"/></option></xsl:if>
											<xsl:apply-templates select="$templateValues">
												<xsl:with-param name="Id" select="$value"/>
												<xsl:with-param name="$templateParamName2" select="$templateParamValue2"/>
												<xsl:with-param name="$templateParamName3" select="$templateParamValue3"/>
												<xsl:with-param name="$templateParamName4" select="$templateParamValue4"/>
											</xsl:apply-templates>
										</select>
									</xsl:when>
									<xsl:otherwise>
										<xsl:apply-templates select="$templateValues">
											<xsl:with-param name="Id" select="$value"/>
											<xsl:with-param name="$templateParamName2" select="$templateParamValue2"/>
											<xsl:with-param name="$templateParamName3" select="$templateParamValue3"/>
											<xsl:with-param name="$templateParamName4" select="$templateParamValue4"/>
										</xsl:apply-templates>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<xsl:otherwise>
								<p class="error"><xsl:value-of select="$templateEmptyErrorMessage" disable-output-escaping="yes"/></p>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="$checkboxes!=1">
								<select name="{$name}" style="{$style}" class="adminform"><xsl:if test="$onChange != ''"><xsl:attribute name="onchange"><xsl:value-of select="$onChange" disable-output-escaping="yes"/></xsl:attribute></xsl:if>
									<xsl:if test="$multiple = 1"><xsl:attribute name="multiple"/></xsl:if>
									<xsl:if test="$multipleSize != ''"><xsl:attribute name="size"><xsl:value-of select="$multipleSize"/></xsl:attribute></xsl:if>
									<xsl:if test="$chooseName != ''"><option value="{$chooseValue}"><xsl:value-of select="$chooseName"/></option></xsl:if>
									<xsl:apply-templates select="$templateValues">
										<xsl:with-param name="pizdec">suka</xsl:with-param>
										<xsl:with-param name="$templateParamName2" select="$templateParamValue2"/>
										<xsl:with-param name="$templateParamName3" select="$templateParamValue3"/>
										<xsl:with-param name="$templateParamName4" select="$templateParamValue4"/>
									</xsl:apply-templates>
								</select>
							</xsl:when>
							<xsl:otherwise>
								<xsl:apply-templates select="$templateValues">
									<xsl:with-param name="Id" select="$value"/>
									<xsl:with-param name="$templateParamName2" select="$templateParamValue2"/>
									<xsl:with-param name="$templateParamName3" select="$templateParamValue3"/>
									<xsl:with-param name="$templateParamName4" select="$templateParamValue4"/>
								</xsl:apply-templates>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
		
	</xsl:template>
	
	<xsl:template name="DefaultTextArea">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="comments"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="reditor"/>
		<xsl:param name="simpleEditor"/>
		<xsl:param name="style">background:#ffffff;border:solid 1px #000000;width:280px;</xsl:param>
		<xsl:choose>
			<xsl:when test="$simpleEditor=1">
				<script type='text/javascript' src='code.js'></script>
				<tr valign="top">
					<td colspan="3">
						<table width="100%">
							<tr>
								<td align="right"><p class="error"><xsl:if test="$isObligatory = 1">*</xsl:if>&amp;nbsp;</p></td>
								<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
							</tr>
							<tr>
								<td>&amp;nbsp;</td>
								<td align="center">
									<table style="background:#DFE6ED;border:solid 2px #000000;">
										<tr>
											<td align="left">
												<table>
													<tr>
														<td><img alt="{//content/Messages/GlobalBold}" src="images/ico_B_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='simpletag("B", "{$formName}", "{$name}")' name='B' /></td>
														<td><img alt="{//content/Messages/GlobalItalic}" src="images/ico_I_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='simpletag("I", "{$formName}", "{$name}")' name='I' /></td>
														<td><img alt="{//content/Messages/GlobalUnderline}" src="images/ico_U_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='simpletag("U", "{$formName}", "{$name}")' name='U' /></td>
														<td><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR', '{$formName}',  '{$name}')">
															<option value='0'><xsl:value-of select="//content/Messages/GlobalColor"/></option>
															<option value='blue' style='color:blue'><xsl:value-of select="//content/Messages/GlobalColorBlue"/></option>
															<option value='red' style='color:red'><xsl:value-of select="//content/Messages/GlobalColorRed"/></option>
															<option value='purple' style='color:purple'><xsl:value-of select="//content/Messages/GlobalColorViolet"/></option>
															<option value='orange' style='color:orange'><xsl:value-of select="//content/Messages/GlobalColorOrange"/></option>
															<option value='yellow' style='color:yellow'><xsl:value-of select="//content/Messages/GlobalColorYellow"/></option>
															<option value='gray' style='color:gray'><xsl:value-of select="//content/Messages/GlobalColorGrey"/></option>
															<option value='green' style='color:green'><xsl:value-of select="//content/Messages/GlobalColorGreen"/></option>
														</select></td>
														
														<td><img alt="{//content/Messages/GlobalUrl}" src="images/ico_link_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='tag_url("{$formName}", "{$name}")'  name='url' /></td>
														<td><img alt="{//content/Messages/GlobalImg}" src="images/ico_image_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='tag_image("{$formName}", "{$name}")'  name='img' /></td>
														<td><img alt="{//content/Messages/GlobalEmail}" src="images/ico_email_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='tag_email("{$formName}", "{$name}")'  name='email' /></td>
														<td><img alt="{//content/Messages/GlobalList}" src="images/ico_list_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='tag_list("{$formName}", "{$name}")'  name='LIST' /></td>
														<td><img alt="{//content/Messages/GlobalNumberedList}" src="images/ico_numb_list_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='tag_list_numeric("{$formName}", "{$name}")'  name='LIST_NUM' /></td>
														
													</tr>
												</table>
											</td>
										</tr>
										<tr><td align="center"><textarea name="{$name}" class="adminarea" style="{$style}"><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"/></xsl:if><xsl:value-of select="$value"/></textarea></td></tr>
										<tr>
											<td align="left">
												<table width="100%">
													<tr>
														<td><xsl:value-of select="//content/Messages/GlobalOpenedTags"/>:&amp;nbsp;<input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" value="0" /></td>
														<td align="right"><img alt="{//content/Messages/GlobalCloseTags}" src="images/ico_lock_ok_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" onmouseout="this.style.background='';" onmouseover="this.style.background='#D8D8D8';" onclick='closeall("{$formName}", "{$name}")' name='lock' /></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<br/><div class="small" style="width:280px;"><xsl:value-of select="$comments"/></div>
					</td>
				</tr>	
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
					<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
					<td><textarea name="{$name}" class="adminarea" style="{$style}"><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"/></xsl:if><xsl:value-of select="$value" /></textarea>
						<xsl:if test="$reditor = 1"><img src="{//page/@app-path}/images/pix.gif" width="10" height="1"/><img src="images/ico_edit2.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalHtmlEditor}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" onClick="EditorDlg('{$formName}','{$name}');"/></xsl:if>
						<br/><div class="small" style="width:280px;"><xsl:value-of select="$comments"/></div>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		
	</xsl:template>
	
	<xsl:template name="DefaultChooseFile">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="maxLength" />
		<xsl:param name="isPreview"/>
		<xsl:param name="isAll"/>
		<xsl:param name="style">border:solid 0px #000000;height:20px;</xsl:param>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td style="background:#ffffff;border:solid 1px #000000;">
							<img src="{//page/@app-path}/images/pix.gif" width="1" height="1"/>
							<xsl:choose>
								<xsl:when test="$isPreview=1 and $value!=''"><span><input type="text" name="{$name}" value="{$value}" size="40" class="adminform" style="{$style}width:250px;"><xsl:if test="$maxLength > 0"><xsl:attribute name="maxlength"><xsl:value-of select="$maxLength"/></xsl:attribute></xsl:if><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"/></xsl:if></input></span></xsl:when>
								<xsl:otherwise><span><input type="text" name="{$name}" value="{$value}" size="40" class="adminform" style="{$style}"><xsl:if test="$maxLength > 0"><xsl:attribute name="maxlength"><xsl:value-of select="$maxLength"/></xsl:attribute></xsl:if><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"/></xsl:if></input></span></xsl:otherwise>
							</xsl:choose>
						</td>
						<td valign="middle">
							<xsl:if test="$isPreview=1 and $value!=''"><img src="{//page/@app-path}/images/pix.gif" width="6" height="1"/><a href="{//page/@app-path}{$value}" target="_blank"><img src="images/ico_view_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalLook}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''"/></a></xsl:if>
							<img src="{//page/@app-path}/images/pix.gif" width="10" height="1"/><img src="images/ico_file_add_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalChoose}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''">
								<xsl:attribute name="OnClick">FilesDlg('<xsl:value-of select="$formName"/>', '<xsl:value-of select="$name"/><xsl:if test="$isAll = 1">&amp;all=1</xsl:if>');</xsl:attribute>
							</img>
							<img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/><img src="images/ico_delete2_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalClear}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" OnClick="{$name}.value=''"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	
	<xsl:template name="DefaultChooseScript">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="maxLength" />
		<xsl:param name="style">border:solid 0px #000000;height:20px;</xsl:param>
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td style="background:#ffffff;border:solid 1px #000000;">
							<img src="{//page/@app-path}/images/pix.gif" width="1" height="1"/><span><input type="text" name="{$name}" value="{$value}" size="40" class="adminform" style="{$style}"><xsl:if test="$maxLength > 0"><xsl:attribute name="maxlength"><xsl:value-of select="$maxLength"/></xsl:attribute></xsl:if><xsl:if test="$readOnly = 1"><xsl:attribute name="readonly"/></xsl:if></input></span>
						</td>
						<td valign="middle">
							<img src="{//page/@app-path}/images/pix.gif" width="10" height="1"/><img src="images/ico_file_add_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalChoose}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''"  onclick="RubricDlg('{$formName}', '{$name}');"/>
							<img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/><img src="images/ico_delete2_sm.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalClear}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" OnClick="{$name}.value=''"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	
	
	<xsl:template name="DefaultSelectDate">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="value"/>
		<xsl:param name="name"/>
		<xsl:param name="descriptor"/>
		<xsl:param name="descriptorValue"/>
		<xsl:param name="isObligatory"/>
		<xsl:param name="readOnly"/>
		<xsl:param name="dateOnly">1</xsl:param>
		<xsl:param name="style">background:#ffffff;border:solid 1px #000000;height:20px;width:130;</xsl:param>
		
		<tr>
			<td align="right"><p class="error">&amp;nbsp;<xsl:if test="$isObligatory = 1">*</xsl:if></p></td>
			<td><xsl:value-of select="$description" disable-output-escaping="yes"/>:</td>
			<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td><xsl:if test="$descriptor!=''"><input type="Checkbox" value="1" name="{$descriptor}"><xsl:if test="$descriptorValue=1"><xsl:attribute name="checked"/></xsl:if></input></xsl:if></td>
						<td><xsl:if test="$readOnly!=1"><xsl:attribute name="style"><xsl:value-of select="$style"/></xsl:attribute></xsl:if><img src="{//page/@app-path}/images/pix.gif" width="1" height="1"/>
							<span id="show_{$name}">
								<xsl:choose>
									<xsl:when test="$dateOnly=1">
										<xsl:call-template name="MakeDate">
											<xsl:with-param name="Date" select="$value"/>
										</xsl:call-template>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="MakeDate">
											<xsl:with-param name="Date" select="$value"/>
											<xsl:with-param name="NeedHours">1</xsl:with-param>
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</span>
							<input type="hidden" name="{$name}" id="{$name}" readonly="1"><xsl:attribute name="value">
								<xsl:choose>
									<xsl:when test="$dateOnly=1">
										<xsl:call-template name="MakeDate">
											<xsl:with-param name="Date" select="$value"/>
											<xsl:with-param name="InputDate">1</xsl:with-param>
										</xsl:call-template>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="MakeDate">
											<xsl:with-param name="Date" select="$value"/>
											<xsl:with-param name="InputDate">1</xsl:with-param>
											<xsl:with-param name="NeedHours">1</xsl:with-param>
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:attribute></input>
						</td>
						<xsl:if test="$readOnly!=1">
							<td>
								<img src="{//page/@app-path}/images/pix.gif" width="6" height="1"/>
								<img src="{//page/@app-path}/calendar/img.gif" id="f_trigger_{$name}" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalDateSelect}" onmouseout="this.style.background=''">
									<xsl:choose><xsl:when test="$descriptor!=''"><xsl:attribute name="onmouseover">this.style.background='#D8D8D8';<xsl:value-of select="$name"/>Set();</xsl:attribute></xsl:when>
										<xsl:otherwise><xsl:attribute name="onmouseover">this.style.background='#D8D8D8';</xsl:attribute></xsl:otherwise></xsl:choose>
								</img></td>
							<script type="text/javascript">
								<xsl:if test="$descriptor!=''">function <xsl:value-of select="$name"/>Set() {</xsl:if>
								Calendar.setup({
								inputField     :    "<xsl:value-of select="$name"/>",     // id of the input field
								ifFormat       :    "%Y-%m-%d<xsl:if test="$dateOnly!=1"> %H:%M:%S</xsl:if>",     // format of the input field (even if hidden, this format will be honored)
								displayArea    :    "show_<xsl:value-of select="$name"/>",       // ID of the span where the date is to be shown
								daFormat       :    "<xsl:choose><xsl:when test="$dateOnly=1"><xsl:value-of select="//page/@date-short-format"/></xsl:when><xsl:otherwise><xsl:value-of select="//page/@date-long-format"/></xsl:otherwise></xsl:choose>",// format of the displayed date
								button         :    "f_trigger_<xsl:value-of select="$name"/>",  // trigger button (well, IMG in our case)
								showsTime      :    <xsl:choose><xsl:when test="$dateOnly=1">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose>,            // will display a time selector
								align          :    "Tl",           // alignment (defaults to "Bl")
								singleClick    :    true<xsl:if test="$descriptor!=''">,
									DateSearch     :    "document.forms.<xsl:value-of select="$formName"/>.<xsl:value-of select="$descriptor"/>.checked=true"</xsl:if>
								});
								<xsl:if test="$descriptor!=''">}</xsl:if>
							</script>
						</xsl:if>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	
	<xsl:template name="StandartButtonsBar">
		<xsl:param name="formName"/>
		<xsl:param name="UpdateId"/>
		<xsl:param name="Search"/>
		<xsl:param name="Update">1</xsl:param>
		<xsl:param name="Delete">1</xsl:param>
		<xsl:param name="additional"/>
		<tr>
			<td colspan="3" >
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
					<tr><td><img src="{//page/@app-path}/images/pix.gif" width="1" height="3"/></td></tr>
					<tr><td style="background:#5A7EDC;"><img src="{//page/@app-path}/images/pix.gif" width="1" height="1"/></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="3" align="right">
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<xsl:if test="$additional=1"><xsl:call-template name="AdditionalButtons"><xsl:with-param name="formName" select="$formName"/></xsl:call-template></xsl:if>
						<xsl:choose>
							<xsl:when test="$Search=1">
								<td><input type="image" src="{//page/@app-path}/images/pix.gif" style="height:0px;width:0;"/><img src="{//page/@app-path}/images/pix.gif" width="4" height="1"/><img src="images/ico_search.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//content/Messages/GlobalSearch}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" onClick="{$formName}.submit();"/></td>
							</xsl:when>
							<xsl:otherwise>
								<xsl:if test="$Update=1 and //content/Permissions/@Write=1">
									<td><input type="image" src="{//page/@app-path}/images/pix.gif" style="height:0px;width:0;"/><img src="{//page/@app-path}/images/pix.gif" width="4" height="1"/><img src="images/ico_save.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//page/content/Messages/GlobalChange}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" onClick="{$formName}.submit();"/></td>
								</xsl:if>
								<xsl:if test="$Delete=1 and $UpdateId and //content/Permissions/@Delete=1">
									<td><img src="{//page/@app-path}/images/pix.gif" width="4" height="1"/><img src="images/ico_delete.gif" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{//page/content/Messages/GlobalDelete}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" onClick="if (confirm('{$ConfirmMessage}')) elements['event'].value='Delete';else return false;{$formName}.submit();"/></td>
								</xsl:if>
							</xsl:otherwise>
						</xsl:choose>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	
	<xsl:template name="StandartButton">
		<xsl:param name="formName"/>
		<xsl:param name="description"/>
		<xsl:param name="action"/>
		<xsl:param name="src"/>
		<td><img src="{//page/@app-path}/images/pix.gif" width="4" height="1"/>
			<a href="{$action}"><img src="images/{$src}" style="cursor: pointer; border: 1px solid #5A7EDC;" title="{$description}" onmouseover="this.style.background='#D8D8D8';" onmouseout="this.style.background=''" /></a>
		</td>
	</xsl:template>
	
	<xsl:template name="StandartOptions">
		<xsl:param name="EditLink"/>
		<xsl:param name="DeleteLink" select="$EditLink"/>
		<xsl:param name="DeleteEvent">Delete</xsl:param>
		<xsl:param name="AndValue"/>
		<xsl:param name="DeleteOnly"/>
		<xsl:param name="EditOnly"/>
		<xsl:param name="EditTitle"/>
		<xsl:param name="DeleteTitle"/>
		<xsl:param name="Id"/>
		<xsl:param name="Border"/>
		<xsl:variable name="EditTitleOut">
			<xsl:choose><xsl:when test="$EditTitle"><xsl:value-of select="$EditTitle"/></xsl:when><xsl:otherwise><xsl:value-of select="$OptionEditValue"/></xsl:otherwise></xsl:choose>
		</xsl:variable>
		<xsl:variable name="DeleteTitleOut">
			<xsl:choose><xsl:when test="$DeleteTitle"><xsl:value-of select="$DeleteTitle"/></xsl:when><xsl:otherwise><xsl:value-of select="$OptionDeleteValue"/></xsl:otherwise></xsl:choose>
		</xsl:variable>
		<xsl:if test="$DeleteOnly!=1 and //content/Permissions/@Write=1"><a class="tableElements" href="{$EditLink}?Id={$Id}{$AndValue}"><img src="images/ico_edit_sm.gif" border="0" alt="{$EditTitleOut}" vspace="1" hspace="1"><xsl:if test="$Border=1"><xsl:attribute name="style">border:solid 1px #3D5E74</xsl:attribute></xsl:if></img></a></xsl:if><xsl:if test="$DeleteOnly!=1 and $EditOnly!=1"><img src="images/pix.gif" width="5" height="1"/></xsl:if><xsl:if test="$EditOnly!=1 and //content/Permissions/@Delete=1"><a class="tableElements" href="#" onclick="if (confirm('{$ConfirmMessage}')) location='{$DeleteLink}?event={$DeleteEvent}&amp;Id={$Id}{$AndValue}';else return false;"><img src="images/ico_delete_sm.gif" border="0" alt="{$DeleteTitleOut}" vspace="1" hspace="1"><xsl:if test="$Border=1"><xsl:attribute name="style">border:solid 1px #3D5E74</xsl:attribute></xsl:if></img></a></xsl:if>
	</xsl:template>
	
	<xsl:template name="MakeEmail">
		<xsl:param name="Email"/>
		<xsl:param name="Class"/>
		<xsl:choose>
			<xsl:when test="$Email!=''">
				<a href="mailto:{$Email}"><xsl:if test="$Class"><xsl:attribute name="class"><xsl:value-of select="$Class"/></xsl:attribute></xsl:if><xsl:value-of select="$Email"/></a>
			</xsl:when>
			<xsl:otherwise><span class="error"><xsl:value-of select="//page/content/Messages/GlobalEmpty"/></span></xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="MakeLink">
		<xsl:param name="Link"/>
		<xsl:param name="Class"/>
		<xsl:variable name="TargetLink">
			<xsl:choose>
				<xsl:when test="contains($Link,'http://')"><xsl:value-of select="$Link"/></xsl:when>
				<xsl:otherwise><xsl:value-of select="//page/@server-path"/><xsl:value-of select="//page/@app-path"/>/<xsl:value-of select="$Link"/></xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<a href="{$TargetLink}" target="_blank"><xsl:if test="$Class"><xsl:attribute name="class"><xsl:value-of select="$Class"/></xsl:attribute></xsl:if><xsl:value-of select="$Link"/></a>
	</xsl:template>
	
	<xsl:template match="pager">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center">
					<p class="pager">
						<xsl:apply-templates select="first-page"/> | <xsl:apply-templates select="previous-page"/> | <a class="pager" style="color:#940031;"><xsl:value-of select="start-item"/><xsl:if test="start-item != end-item">-<xsl:value-of select="end-item"/></xsl:if></a> | 	<xsl:apply-templates select="next-page"/> | <xsl:apply-templates select="last-page"/>
					</p>
				</td>
			</tr>
			<tr><td><img src="images/pix.gif" width="1" height="3"/></td></tr>
			<tr><td bgcolor="#777F90"><img src="images/pix.gif" width="1" height="1"/></td></tr>
			<tr><td><img src="images/pix.gif" width="1" height="3"/></td></tr>				
			<tr>
				<td align="center">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td><p class="pager"><xsl:apply-templates select="previous-pager-page"/></p></td>
							<td><p class="pager"><xsl:apply-templates select="page-link"/></p></td>
							<td><p class="pager"><xsl:apply-templates select="next-pager-page"/></p></td>
						</tr>
					</table>
				</td>						
			</tr>
			<tr><td><br/></td></tr>				
		</table>
	</xsl:template>
	
	<xsl:template match="pager/first-page">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;"><xsl:value-of select="//page/content/Messages/GlobalPagerFirst"/></a>
	</xsl:template>
	
	<xsl:template match="pager/first-page[@current]">
		<xsl:value-of select="//page/content/Messages/GlobalPagerFirst"/>
	</xsl:template>
	
	<xsl:template match="pager/previous-page">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;"><xsl:value-of select="//page/content/Messages/GlobalPagerPrev"/><xsl:text> </xsl:text><xsl:value-of select="//items-per-page"/></a>
	</xsl:template>
	
	<xsl:template match="pager/previous-page[@current]">
		<xsl:value-of select="//page/content/Messages/GlobalPagerPrev"/><xsl:text> </xsl:text><xsl:value-of select="//items-per-page"/>
	</xsl:template>
	
	
	<xsl:template match="pager/page-link">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;"><xsl:value-of select="."/></a>
		<xsl:if test="position() &lt; last()">
			&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;
		</xsl:if>
	</xsl:template>
	
	<xsl:template match="pager/page-link[@active]">
		<b style="color:#940031;"><xsl:value-of select="."/></b>
		<xsl:if test="position() &lt; last()">
			&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;
		</xsl:if>
	</xsl:template>
	
	<xsl:template match="pager/next-page">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;"><xsl:value-of select="//page/content/Messages/GlobalPagerNext"/><xsl:text> </xsl:text><xsl:value-of select="//items-per-page"/></a>
	</xsl:template>
	
	<xsl:template match="pager/next-page[@current]">
		<xsl:value-of select="//page/content/Messages/GlobalPagerNext"/><xsl:text> </xsl:text><xsl:value-of select="//items-per-page"/>
	</xsl:template>
	
	<xsl:template match="pager/last-page">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;"><xsl:value-of select="//page/content/Messages/GlobalPagerLast"/></a>
	</xsl:template>
	
	<xsl:template match="pager/last-page[@current]">
		<xsl:value-of select="//page/content/Messages/GlobalPagerLast"/>
	</xsl:template>
	
	<xsl:template match="pager/previous-pager-page">
		<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;">&amp;lt;&amp;lt;</a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;
	</xsl:template>
	
	<xsl:template match="pager/next-pager-page">
		&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;<a class="pager" href="{//page/@app-path}/admin/" OnClick="ChangePage({.}); return false;">&amp;gt;&amp;gt;</a>
	</xsl:template>
	<xsl:template match="LastMessage">
		<xsl:call-template name="MakeDate">
			<xsl:with-param name="Date" select="Date"/>
			<xsl:with-param name="NeedHours">1</xsl:with-param>
		</xsl:call-template>
		<br/>
		<a class="small" href="forum.messages.php?Id={ThreadId}#mId{Id}"><xsl:value-of select="Subject"/></a>
	</xsl:template>
	<xsl:template match="content/topMenu/menu">
		<a class="header" href="{Link}" mytooltip="{Description}" id="Menu_{Id}" onMouseOver="showWMTT('Menu_{Id}')" onMouseOut="hideWMTT()"><xsl:value-of select="Name"/></a><xsl:if test="position()!=last()">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:if>
	</xsl:template>
	
	<xsl:template match="content/leftMenu/menu">
		<xsl:variable name="CurrId"><xsl:value-of select="translate(Name,' ','')"/><xsl:value-of select="Id"/></xsl:variable>
		<xsl:choose>
			<xsl:when test="not(menu)">
				<table style="cursor: hand;" border="0" cellpadding="0" cellspacing="0" width="100%"  mytooltip="{Description}" id="Menu_{Id}" onMouseOver="showWMTT('Menu_{Id}')" onMouseOut="hideWMTT()">
					<tr >
						<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
						<td width="7"><a class="header" href="{Link}"><img src="images/ico_nosub.gif" border="0" name="SubmenuMemeber_ico" id="SubmenuMemeber_ico"/></a></td>
						<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
						<td height="18"><a class="header" href="{Link}"><xsl:value-of select="Name"/></a></td>
					</tr>
				</table>
			</xsl:when>
			<xsl:otherwise>
				<div id="{$CurrId}Off" style="position:absolute;visibility:hidden;top:0px;left:0px" >
					<table style="cursor: hand;" border="0" cellpadding="0" cellspacing="0" width="100%" mytooltip="{Description}" id="Menu_{Id}" onMouseOver="showWMTT('Menu_{Id}')" onMouseOut="hideWMTT()">
						<tr>
							<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
							<td width="7"><a class="header" href="#"><img src="images/ico_sub.gif" border="0" name="SubmenuMemeber_ico" id="SubmenuMemeber_ico"/></a></td>
							<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
							<td height="18"><a class="header" href="#"><xsl:value-of select="Name"/></a></td>
						</tr>
					</table>
				</div>
				<div id="{$CurrId}On" style="position:absolute; visibility:hidden;">
					<table style="cursor: hand;" border="0" cellpadding="0" cellspacing="0"  width="100%" mytooltip="{Description}" id="Menu_{Id}" onMouseOver="showWMTT('Menu_{Id}')" onMouseOut="hideWMTT()">
						<tr>
							<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
							<td width="7"><a class="header" href="#"><img src="images/ico_nosub.gif" border="0" name="SubmenuMemeber_ico" id="SubmenuMemeber_ico"/></a></td>
							<td width="5"><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
							<td height="18"><a class="header" href="#"><xsl:value-of select="Name"/></a></td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="169" id="SubmenuMemeber" bgcolor="#efefef">
						<tr><td bgcolor="#B5C2CA" height="1"><img src="images/pix.gif" width="1" height="1"/></td></tr>
						<xsl:for-each select="menu">
							<tr style="cursor: hand;" mytooltip="{Description}" id="Menu_{Id}" onMouseOver="showWMTT('Menu_{Id}')" onMouseOut="hideWMTT()" onclick="(ie)?(window.event.cancelBubble=true):(stopNSbubble(event));document.location='{Link}';">
								<td height="18" style="padding-left:10px;" onmouseover="thisOver(this.style);" onmouseout="thisOut(this.style);">
									<table border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
											<td><img src="images/ico_nosub.gif" border="0"/></td>
											<td><img src="{//page/@app-path}/images/pix.gif" width="5" height="1"/></td>
											<td><a class="header" href="{Link}" onclick="(ie)?(window.event.cancelBubble=true):(stopNSbubble(event));"><xsl:value-of select="Name"/></a></td>
										</tr>
									</table>
								</td>
							</tr>
							<xsl:if test="position()!=last()">
								<tr><td bgcolor="#B5C2CA" height="1"><img src="images/pix.gif" width="1" height="1"/></td></tr>
							</xsl:if>
						</xsl:for-each>
					</table>
				</div>
				<script language="JavaScript">
					var <xsl:value-of select="$CurrId"/> = new Menu('<xsl:value-of select="$CurrId"/>');
					<xsl:value-of select="$CurrId"/>.create();
				</script>
			</xsl:otherwise>
		</xsl:choose>
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr><td bgcolor="#B5C2CA" height="1"><img src="images/pix.gif" width="1" height="1"/></td></tr>
		</table>
	</xsl:template>
</xsl:stylesheet>
  