Your IP : 216.73.216.155


Current Path : /usr/local/ispmgr/skins/sirius/
Upload File :
Current File : //usr/local/ispmgr/skins/sirius/desktop.xsl

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>

<xsl:variable name="binary" select="/doc/@binary"/>
<xsl:variable name="startpage" select="/doc/mainmenu/@startpage"/>
<xsl:variable name="fixpng" select="/doc/@fixpng"/>
<xsl:variable name="localdir" select="/doc/@localdir"/>
<xsl:variable name="msg" select="doc/messages"/>
<xsl:variable name="level" select="/doc/user/@level"/>

<xsl:variable name="pwgen">
	<xsl:variable name="pwgen-first">
		<xsl:call-template name="replace">
			<xsl:with-param name="input" select="/doc/pwgencharacters/text()"/>
			<xsl:with-param name="from" select="string('\')"/>
			<xsl:with-param name="to" select="string('\\')"/>
		</xsl:call-template>
	</xsl:variable>
	<xsl:variable name="pwgen-second">
		<xsl:call-template name="replace">
			<xsl:with-param name="input" select="$pwgen-first"/>
			<xsl:with-param name="from" select="string('/')"/>
			<xsl:with-param name="to" select="string('\/')"/>
		</xsl:call-template>
	</xsl:variable>
	<xsl:variable name="pwgen-third">
		<xsl:call-template name="replace">
			<xsl:with-param name="input" select="$pwgen-second"/>
			<xsl:with-param name="from">'</xsl:with-param>
			<xsl:with-param name="to">\'</xsl:with-param>
		</xsl:call-template>
	</xsl:variable>
	
	<xsl:value-of select="mgr:fixquote($pwgen-third)"/>
</xsl:variable>

<xsl:template match="/">
<html>
<head>
	<title><xsl:if test="/doc/user/@hostname"><xsl:value-of select="/doc/user/@hostname"/><xsl:text> :: </xsl:text></xsl:if><xsl:value-of select="$msg/msg[@name='title']"/></title>
	<xsl:if test="/doc/@host"><base href='{/doc/@host}{/doc/@theme}{/doc/@img}'/></xsl:if>
	<script language="JavaScript">
		<xsl:if test="not(/doc/@host)">document.write( "&lt;base href='"+location.protocol+"//"+location.host+"<xsl:value-of select="/doc/@theme"/><xsl:value-of select="/doc/@img"/>'&gt;" );</xsl:if>
		window.name = "desktop";
		var hlevel = '<xsl:value-of select="/doc/user/@level"/>';
		var imgpath = '<xsl:value-of select="/doc/@theme"/><xsl:value-of select="/doc/@img"/>';
		var binary = '<xsl:value-of select="$binary"/>';
		var localdir = '<xsl:value-of select="$localdir"/>';
		var startform = '<xsl:value-of select="/doc/mainmenu/@startform"/>';
		var pwgenlen = <xsl:value-of select="/doc/pwgenlen"/>;
		var pwgencharacters = "<xsl:value-of select="$pwgen"/>";
		var pwcheck = "<xsl:value-of select="/doc/pwcheck"/>";
		var clang = ( String(document.cookie).match(/\w+4=\w+:(\w\w):/) ) ? RegExp.$1 : "en";
		<xsl:for-each select="$msg/msg[starts-with(@name, 'msg_') or starts-with(@name, 'hint_')]">var <xsl:value-of select="@name"/> = "<xsl:value-of select="."/>";</xsl:for-each>
		var mn_help_value; var mn_help_form_value; var mn_newelem;
	</script>
	<script src="{/doc/@theme}main.js?{/doc/@mtime}"></script>
	<script src="{/doc/@theme}calendar.js?{/doc/@mtime}"></script>
    <script src="{/doc/@theme}touchscroll.js?{/doc/@mtime}"></script>
	<link href="{/doc/@theme}{$localdir}{/doc/@css}?{/doc/@mtime}" rel="stylesheet" type="text/css"/>
	<link rel="shortcut icon" href="{/doc/@theme}{$localdir}{/doc/@favicon}" type="image/x-icon"/>
	<xsl:if test="/doc/htmlinc">
		<xsl:for-each select="/doc/htmlinc">
			<xsl:value-of select="inc" disable-output-escaping="yes"/>
		</xsl:for-each>
	</xsl:if>
</head>
<body class="main-body" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0" onresize="mn_resize_window();" onload="mn_init();">
<!-- Don't touch this frames -->
<iframe id="fka" name="fka" width="0" height="0" frameborder="0" scrolling="no" src="{$binary}?func=keepalive"></iframe>
<iframe id="tmp" name="tmp" width="0" height="0" frameborder="0" scrolling="no" src="{$binary}?func=keepalive"></iframe>

<!-- <div id="debug" style="position:absolute; top:10px; left: 20px; background: black; color: white; height: 600px; overflow-y:scroll;">DEBUG<br/></div> -->

<!-- Form layer -->
<table id="formlayer" class="formlayer" cellpadding="0" cellspacing="0">
<tr>
	<td align="center" class="formlayertd">
		<table border="0" cellpadding="0" cellspacing="0" id="formelem">
			<tr>
				<td><table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td unselectable="on"><table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td class="ft-td1"><img width="8" height="30"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>ft-left.png</xsl:with-param></xsl:call-template></img></td>
						<td class="ft-td2" onmousedown="mn_md_ftitle(event)" ondblclick="mn_form_maxmin()"><div id="ftitle" class="ftitle" unselectable="on"></div></td>
						<td class="ft-td3" style="width:auto;"><img width="16" height="16" class="f-sysbar-img" onclick="mn_form_reset();"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>fi-clear.png</xsl:with-param></xsl:call-template></img></td>
						<td class="ft-td3"><img width="16" height="16" class="f-sysbar-img" onclick="mn_show_help(1)" hint="js:top.formframe.hint_default" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>fi-help.png</xsl:with-param></xsl:call-template></img></td>
						<td class="ft-td4"><img id="maxmin" width="16" height="16" class="f-sysbar-img" onclick="mn_form_maxmin()" hint="{$msg/msg[@name='msg_maxmin']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>fi-max.png</xsl:with-param></xsl:call-template></img></td>
						<td class="ft-td5"><img width="16" height="16" class="f-sysbar-img" onclick="mn_cancel_form()" hint="{$msg/msg[@name='msg_close']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>fi-close.png</xsl:with-param></xsl:call-template></img></td>
						<td class="ft-td6"><img width="8" height="30"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/>ft-right.png</xsl:with-param></xsl:call-template></img></td>
					</tr>
					</table></td>
				</tr>
				<tr>
					<td class="formlayer-table-content"><iframe name="formframe" class="formframe" id="formframe" src="{$binary}?func=keepalive" marginheight="0" marginwidth="0" frameborder="0" width="440" height="400" scrolling="no"></iframe></td>
				</tr>
				</table></td>
				<td class="fsh-left" onmousedown="mn_md_fsize(event)" valign="top">
					<xsl:if test="$fixpng = 'yes'"><xsl:attribute name="style">background: url('fsh-left.gif'); filter:progid:DXImageTransform.Microsoft.Alpha(opacity=25);</xsl:attribute></xsl:if>
					<img src="e.gif" height="1" width="6"/>
				</td>
			</tr>
			<tr>
				<td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td><img src="e.gif" height="8" width="6"/></td>
						<td class="fsh-bottom" width="99%">
							<xsl:if test="$fixpng = 'yes'"><xsl:attribute name="style">background: url('fsh-bottom.gif'); filter:progid:DXImageTransform.Microsoft.Alpha(opacity=25);</xsl:attribute></xsl:if>
							<img src="e.gif" height="8" width="6"/>
						</td>
					</tr>
				</table></td>
			</tr>
		</table>
	</td>
</tr>
</table>

<!-- Layer for hint message -->
<iframe src="javascript:false" style="display: none; position: absolute; z-index: 9;" class="hintframe" id="hintframe" frameborder="0" scrolling="no"></iframe>
<div id="hintpane" class="hint"></div>

<!-- Layer calendar -->
<div id="calendar-y" class="cl-ym-y" unselectable="on"></div>
<div id="calendar-m" class="cl-ym-m" unselectable="on"></div>
<table border="0" cellpadding="0" cellspacing="0" id="calendar" class="cl" unselectable="on">
<tr>
	<td><table border="0" cellpadding="0" cellspacing="0"><tr><td id="calendar-cell" class="cl-cell" style="border: solid 1px #4D80B6;"></td></tr></table></td>
	<td class="cl-fsh-left" width="6" valign="top">
		<xsl:if test="$fixpng = 'yes'"><xsl:attribute name="style">background: url('fsh-left2.gif'); filter:progid:DXImageTransform.Microsoft.Alpha(opacity=25)</xsl:attribute></xsl:if>
		<img src="e.gif" height="1" width="6"/>
	</td>
</tr>
<tr>
	<td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td><img src="e.gif" height="8" width="6"/></td>
			<td class="cl-fsh-bottom" width="99%">
				<xsl:if test="$fixpng = 'yes'"><xsl:attribute name="style">background: url('fsh-bottom.gif'); filter:progid:DXImageTransform.Microsoft.Alpha(opacity=25);</xsl:attribute></xsl:if>
				<img src="e.gif" height="8" width="6"/>
			</td>
		</tr>
	</table></td>
</tr>
</table>

<!-- Apache restarting image and text -->
<table id="waitlayer" class="waitlayer" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td><img src="{$localdir}waiting.gif"/><p id="waitlayer-msg"></p></td>
</tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" style="height:100%; width:100%;">
<tr>
	<td valign="top" style="width: 190px;"><table id="lTbl" border="0" cellpadding="0" cellspacing="0" style="height:100%; width:100%;">

	<!-- Logo line-->
	<tr>
		<td style="height:88px;">
			<xsl:choose>
				<xsl:when test="/doc/@logolink and /doc/@logolink != ''"><a href="{/doc/@logolink}" target="_blank"><img width="190" height="88" border="0"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/><xsl:value-of select="/doc/@logo"/></xsl:with-param></xsl:call-template></img></a></xsl:when>
				<xsl:when test="/doc/user/@dashboard"><a href="" onclick="mn_load_list('dashboard'); return false;"><img width="190" height="88" border="0" hint="{$msg/msg[@name='msg_dashboard']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/><xsl:value-of select="/doc/@logo"/></xsl:with-param></xsl:call-template></img></a></xsl:when>
				<xsl:otherwise><img width="190" height="88" border="0"><xsl:call-template name="pngsrc"><xsl:with-param name="src"><xsl:value-of select="$localdir"/><xsl:value-of select="/doc/@logo"/></xsl:with-param></xsl:call-template></img></xsl:otherwise>
			</xsl:choose>
		</td>
	</tr>
	<!-- Logo line-->
		
	<!-- Dashboard -->
	<xsl:if test="/doc/user/@dashboard">
		<tr>
			<td class="menudashboard" id="menudashboard" onclick="mn_load_list('dashboard')" hint="{$msg/msg[@name='msg_dashboard']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td valign="top" class="menu-title-ch1"><img width="16" height="16" src="m-dashboard.png"/></td>
				<td class="menu-title-ch2" style="text-decoration:underline;"><xsl:value-of select="$msg/msg[@name='menu_dashboard']"/></td>
			</tr>
			</table></td>
		</tr>
	</xsl:if>
	<!-- Dashboard -->

	<!-- Menu panel-->
	<xsl:if test="//node[@name='usermenu']">
		<tr>
			<td class="menubar" id="menubar"><table border="0" cellpadding="0" cellspacing="0" class="menubar-table">
			<tr>
				<td width="7"><img width="7" height="1" src="e.gif"/></td>
				<td width="22" id="mbarimgtd-all"><img width="16" height="16" onclick="mn_switch_menu('all')" hint="{$msg/msg[@name='hint_mbarall']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()" class="menubar-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">mbar-all.png</xsl:with-param></xsl:call-template></img></td>
				<td width="22" id="mbarimgtd-favorite"><img width="16" height="16" onclick="mn_switch_menu('favorite')" hint="{$msg/msg[@name='hint_mbarfavorite']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()" class="menubar-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">mbar-favorite.png</xsl:with-param></xsl:call-template></img></td>
				<td width="22" id="mbarimgtd-popular"><img width="16" height="16" onclick="mn_switch_menu('popular')" hint="{$msg/msg[@name='hint_mbarpopular']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()" class="menubar-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">mbar-popular.png</xsl:with-param></xsl:call-template></img></td>
				<td><img width="1" height="1" src="e.gif"/></td>
				<td width="22"><img width="16" height="16" onclick="mn_expandall_menu('block')" hint="{$msg/msg[@name='hint_mbarshow']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()" class="menubar-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">mbar-showall.png</xsl:with-param></xsl:call-template></img></td>
				<td width="22"><img width="16" height="16" onclick="mn_expandall_menu('none')" hint="{$msg/msg[@name='hint_mbarhide']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()" class="menubar-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">mbar-hideall.png</xsl:with-param></xsl:call-template></img></td>
			</tr>
			</table></td>
		</tr>
	</xsl:if>
	<!-- Menu panel-->
	
	<!-- Menu line-->
	<tr>
		<td style="height:99%;" valign="top"><div id="menupane" class="menupane">
		<table cellpadding="0" cellspacing="0" border="0" class="menupane-table">
			<tr>
				<td class="menupane-table-menu"><xsl:apply-templates select="/doc/mainmenu"/></td>
			</tr>
			<tr>
				<td class="menupane-table-copy">
					<a href="{/doc/copyright/@href}" target="blank"><xsl:value-of select="/doc/copyright" disable-output-escaping="yes"/></a>
				</td>
			</tr>
		</table>
		</div></td>
	</tr>
	<!-- Menu line-->

	</table></td><td valign="top"><table id="rTbl" border="0" cellpadding="0" cellspacing="0" style="height:100%; width:100%;">
	
	<!-- Top line -->
	<tr>
		<td align="right"><table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="wel-td-1"><img src="welcome-left.gif" width="5" height="25"/></td>
			
			<!-- Login path -->
			<td class="wel-td-2"><table border="0" cellpadding="0" cellspacing="0"><tr>
				<td><img width="16" height="16" class="path-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">lv-server.png</xsl:with-param></xsl:call-template></img></td>
				<td><xsl:value-of select="/doc/user/@hostname"/><xsl:text> ::</xsl:text></td>
				<xsl:for-each select="/doc/path">
					<td><img width="16" height="16" class="path-img"><xsl:call-template name="pngsrc"><xsl:with-param name="src">lv-<xsl:value-of select="@level"/>.png</xsl:with-param></xsl:call-template></img></td>
					<td>
					<xsl:choose>
						<xsl:when test="position()!=last()">
							<xsl:attribute name="hint"><xsl:value-of select="$msg/msg[@name='msg_chlevel']"/></xsl:attribute>
							<xsl:attribute name="onmouseover">mn_hnt(event)</xsl:attribute>
							<xsl:attribute name="onmouseout">mn_hintout()</xsl:attribute>
							<a href="" onclick="top.fka.location = '{$binary}?func=chlevel&amp;lp={last()-position()}'; return false;"><xsl:value-of select="."/></a>
							<xsl:text> -></xsl:text>
						</xsl:when>
						<xsl:otherwise>
							<b><xsl:value-of select="."/></b>
						</xsl:otherwise>
					</xsl:choose>
					</td>
				</xsl:for-each>			
			</tr></table></td>
			<!-- Login path -->
			
			<!-- Help / Logout -->
			<td class="wel-td-3"><table border="0" cellpadding="0" cellspacing="0"><tr>
				<xsl:if test="/doc/user/@dashboard">
					<td hint="{$msg/msg[@name='msg_dashboard']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><img src="m-dashboard.png" width="16" height="16" class="sysbar-img" onclick="mn_load_list('dashboard')"/></td>
					<td hint="{$msg/msg[@name='msg_dashboard']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><a href="" onclick="mn_load_list('dashboard'); return false;"><xsl:value-of select="$msg/msg[@name='menu_dashboard']"/></a></td>
				</xsl:if>
				<xsl:if test="//node[@name='usrparam']">
					<td hint="{$msg/msg[@name='msg_cpset']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><img src="m-set.png" width="16" height="16" class="sysbar-img" onclick="mn_form_show('{$binary}?func=usrparam'); return false;"/></td>
					<td hint="{$msg/msg[@name='msg_cpset']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><a href="" onclick="mn_form_show('{$binary}?func=usrparam'); return false;"><xsl:value-of select="$msg/msg[@name='cpset']"/></a></td>
				</xsl:if>
				<td hint="{$msg/msg[@name='msg_help']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><img src="sb-help.gif" width="16" height="16" class="sysbar-img" onclick="mn_show_help(0)"/></td>
				<td hint="{$msg/msg[@name='msg_help']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><a href="{$binary}?func=help&amp;topic={$startpage}" onclick="mn_show_help(0); return false;"><xsl:value-of select="$msg/msg[@name='help2']"/></a></td>
				<td hint="{$msg/msg[@name='msg_logout']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><img src="sb-logout.gif" width="16" height="16" class="sysbar-img" onclick="location='{$binary}?func=logon'"/></td>
				<td hint="{$msg/msg[@name='msg_logout']}" onmouseover="mn_hnt(event)" onmouseout="mn_hintout()"><a href="{$binary}?func=logon"><xsl:value-of select="$msg/msg[@name='logout']"/></a></td>
			</tr></table></td>
			<!-- Help / Logout -->
		</tr>
		</table></td>
	</tr>
	<!-- Top line -->

	<!-- Workarea line -->
	<tr>
		<td style="height: 100%"><iframe name="workarea" id="workarea" src="{$binary}?func={/doc/mainmenu/@startpage}" width="100%" height="100%" scrolling="no" frameborder="0"></iframe></td>
	</tr>
	<!-- Workarea line -->

	</table></td>
</tr>
</table>
<span id="sound_span"></span>
</body>
</html>
</xsl:template>

<xsl:template match="mainmenu">
	<script language="javascript">
		mn_clevel = <xsl:value-of select='$level'/>;
		mn_get_menu_state();
	 	<xsl:for-each select='node'>mn_mnodes.push("<xsl:apply-templates select='@name'/>");</xsl:for-each>
		 
		var lists = {<xsl:for-each select="node/node[@action and not(@isform)]"><xsl:if test="position() != 1">,</xsl:if><xsl:variable name="txt"><xsl:value-of select="@name"/></xsl:variable> <xsl:call-template name="replace"><xsl:with-param name="input" select="$txt"/><xsl:with-param name="from" select="'.'"/><xsl:with-param name="to" select="'_'"/></xsl:call-template>  :"<xsl:value-of select="../@name"/>"</xsl:for-each>};
	</script>
	<div id="menu-all">
		<xsl:if test="//node[@name='usermenu']"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if>
		<xsl:apply-templates select='node'><xsl:with-param name="type">all</xsl:with-param></xsl:apply-templates>
	</div>
	<xsl:if test="//node[@name='usermenu']">
		<div id="menu-favorite" style="display: none;"><xsl:apply-templates select='node'><xsl:with-param name="type">favorite</xsl:with-param></xsl:apply-templates></div>
		<div id="menu-popular" style="display: none;"><xsl:apply-templates select='node'><xsl:with-param name="type">popular</xsl:with-param></xsl:apply-templates></div>
		<script language="javascript">
			var cmbar = "all";
			var bname = String(binary).replace(/(.*\/)/g,"");
			if ( String(document.cookie).match( new RegExp( "mbar=[^;]*"+bname+"-"+mn_clevel+"-(\\w+)" ) ) ) { cmbar = RegExp.$1; }
			mn_switch_menu(cmbar);
		</script>
	</xsl:if>
</xsl:template>

<!-- replace function -->
   <xsl:template name="replace">            
       <xsl:param name="input"/>            
       <xsl:param name="from"/>            
       <xsl:param name="to"/>            

       <xsl:choose>            
           <xsl:when test="contains($input, $from)">            
        
               <xsl:value-of select="substring-before($input, $from)"/>            
               <xsl:value-of select="$to"/>            
            
               <xsl:call-template name="replace">            
          
                   <xsl:with-param name="input" select="substring-after($input, $from)"/>            
                   <xsl:with-param name="from" select="$from"/>            
                   <xsl:with-param name="to" select="$to"/>            
               </xsl:call-template>            

           </xsl:when>            
           <xsl:otherwise>            
               <xsl:value-of select="$input"/>            
           </xsl:otherwise>            
       </xsl:choose>            
   </xsl:template>     

<!-- mainmenu node -->
<xsl:template match='node'>
	<xsl:param name="type"/>
	<xsl:variable name="lpos" select="count(ancestor::node)"/>
	
	<xsl:choose>
		<xsl:when test='$lpos=0'>
			<xsl:if test="$type = 'all' or node/@*[local-name() = $type]">
			<div class="menu-title" onclick="mn_expand_menu('{@name}');">
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="menu-title-ch1" valign="top"><img width="16" height="16"><xsl:call-template name="pngsrc"><xsl:with-param name="src">m-<xsl:value-of select="@name"/>.png</xsl:with-param></xsl:call-template></img></td>
						<td class="menu-title-ch2"><xsl:value-of select="$msg/msg[@name=concat('menu_',current()/@name)]"/></td>
					</tr>
				</table>
			</div>
			<div id="{@name}-{$type}" class="menu-content">
				<xsl:apply-templates select='node'><xsl:with-param name="type" select="$type"/></xsl:apply-templates>
			</div>
			<div><img src="e.gif" width="1" height="1"/></div>
			<script language="javascript">if( mn_smnodes["<xsl:value-of select='@name'/>"]==0 ){ mn_get_obj("<xsl:value-of select='concat(@name,"-",$type)'/>").style.display = "none"; }</script>
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:if test="$type = 'all' or @*[local-name() = $type]">
			<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="mb1">
					<xsl:if test="($type = 'all' and not(following-sibling::node)) or ($type != 'all' and not(following-sibling::node[@*[local-name() = $type]]))"><xsl:attribute name="class">mb1-last</xsl:attribute></xsl:if>
					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
				</td>
				<td class="m1">
					<xsl:choose>
						<xsl:when test="@action or @function">
							<a id="{$type}{generate-id()}">
								<xsl:choose>
									<xsl:when test="@action and @isform">
									<xsl:attribute name="onclick">mn_form_show('<xsl:value-of select="$binary"/>?func=<xsl:value-of select="@action"/>',true); return false;</xsl:attribute>
									<xsl:attribute name="href"><xsl:value-of select="$binary"/>?startform=<xsl:value-of select="@action"/></xsl:attribute>
									</xsl:when>
									<xsl:when test="@action">
									<xsl:attribute name="onclick">mn_load_list('<xsl:value-of select="@action"/>',true); return false;</xsl:attribute>
									<xsl:attribute name="href"><xsl:value-of select="$binary"/>?startpage=<xsl:value-of select="@action"/></xsl:attribute>
									</xsl:when>
									<xsl:when test="@function">
										<xsl:attribute name="href"><xsl:value-of select="@function"/></xsl:attribute>
										<xsl:attribute name="target">_blank</xsl:attribute>
									</xsl:when>
								</xsl:choose>
								<xsl:value-of select="$msg/msg[@name=concat('menu_',current()/@name)]"/>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$msg/msg[@name=concat('menu_',current()/@name)]"/>
						</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
			</table>
			</xsl:if>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template name="pngsrc">
	<xsl:param name="src"/>

	<xsl:choose>
		<xsl:when test="$fixpng = 'yes'">
			<xsl:attribute name="src">e.gif</xsl:attribute>
			<xsl:attribute name="style">filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<xsl:value-of select="/doc/@theme"/><xsl:value-of select="/doc/@img"/><xsl:value-of select="$src"/>',sizingMethod='scale')</xsl:attribute>
		</xsl:when>
		<xsl:otherwise>
			<xsl:attribute name="src"><xsl:value-of select="$src"/></xsl:attribute>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

</xsl:stylesheet>