<script type="text/javascript">
<!--
function changeImg(img){
	var layer = img.substr(0, img.length-3);
	
	for(var j=0; j<document.layers.length; j++){
		if(document.layers[j].name.substr(0,7) == "page___" || document.layers[j].name.substr(0,7) == "bold___") continue;
		if(document.layers[j].name == layer){
			if(img != 'bulletin_fldimg'){
				document.layers[j].visibility = "hidden";
				document.layers["y" + document.layers[j].name.substr(1,document.layers[j].name.length)].visibility = "visible";
			}
		}
		else{
			if(document.layers[j].name.substring(0,1) == "y"){
				if(document.layers[j].name.substring(1,document.layers[j].name.length) == layer.substring(1,layer.length)){
					document.layers[j].visibility = "visible";
				}
				else{
					document.layers[j].visibility = "hidden";
				}
			}
			else{
				document.layers[j].visibility = "visible";
			}
		}
	}
}


function showPages(numPages, folder, html_folder, nUnread, nItems){
	var top=6;
	var name;

	if(!document.layers["bold___24"]){
		setTimeout('showPages("' + numPages + '", "' + folder + '", "' + html_folder + '", "' + nUnread + '", "' + nItems + '")', 200);
		return;
	}

	for(var j=1; j<=24; j++){
		document.layers["page___" + j].visibility = "hidden";
		document.layers["bold___" + j].visibility = "hidden";
	}

	for(var i=0; i<document.layers.length; i++){
		if(document.layers[i].id.substr(0,4) == "z___"){
			document.layers[i].top = top;
			document.layers["y" + document.layers[i].name.substr(1,document.layers[i].name.length)].top = top;
			top += 17;

			if(document.layers[i].id == "z___" + folder){
				if(numPages > 1){
					for(j=1; j<=numPages; j++){
						if(j == window.parent.frames[2]||ifndef||_nopreview||.frames[0]||endif||.document.List.page_pos.value){
							name = "bold___" + j;
						}
						else{
							name = "page___" + j;
						}
						document.layers[name].top = top-6;
						document.layers[name].visibility = "visible";
						top += 17;

						if(j >= 23){
							j++;
							if(j == window.parent.frames[2]||ifndef||_nopreview||.frames[0]||endif||.document.List.page_pos.value){
								name = "bold___" + j;
							}
							else{
								name = "page___" + j;
							}
							document.layers[name].top = top;
							document.layers[name].visibility = "visible";
							top += 17;
							break;
						}
					}
				}
			}
		}	
	}
}
//-->
</script>

||define||count||0||
<layer id="z___search" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=msg_search&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___searchimg');">
		<img name="searchimg" src="||nwimg||/search.gif" align="top" border="0" alt="Search" /></a> Search
	</td></tr></table>
</layer>
<layer id="z___bulletin_fld" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=||ifdef||_nopreview||bulletin||else||show&amp;page=framelist&amp;display_bulletin=true||endif||&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___bulletin_fldimg');">
		<img name="bulletin_fldimg" src="||nwimg||/bulletin.gif" align="top" border="0" alt="Bulletins" /></a> Bulletins
	</td></tr></table>
</layer>
<layer id="z___todo_fld" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=todo&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___todo_fldimg');">
		<img name="todo_fldimg" src="||nwimg||/todo.gif" align="top" border="0" alt="Todo List" /></a> Todo List
	</td></tr></table>
</layer>
<layer id="y___search" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=msg_search&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___searchimg');">
		<img name="searchimg" src="||nwimg||/search.gif" align="top" border="0" alt="Search" /></a> <em>Search</em>
	</td></tr></table>
</layer>
<layer id="y___bulletin_fld" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=||ifdef||_nopreview||bulletin||else||show&amp;page=framelist&amp;display_bulletin=true||endif||&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___bulletin_fldimg');">
		<img name="bulletin_fldimg" src="||nwimg||/bulletin.gif" align="top" border="0" alt="Bulletins" /></a> <em>Bulletins</em>
	</td></tr></table>
</layer>
<layer id="y___todo_fld" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=todo&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___todo_fldimg');">
		<img name="todo_fldimg" src="||nwimg||/todo.gif" align="top" border="0" alt="Todo List" /></a> <em>Todo List</em>
	</td></tr></table>
</layer>
<script type="text/javascript">
<!--
	document.layers.z___bulletin_fld.top = 23;
	document.layers.y___bulletin_fld.top = 23;
	document.layers.y___bulletin_fld.visibility = "hidden";;
	document.layers.z___todo_fld.top = 40;
	document.layers.y___todo_fld.top = 40;
	document.layers.y___todo_fld.visibility = "hidden";;
	document.layers.z___search.top = 6;
	document.layers.y___search.top = 6;
	document.layers.y___search.visibility = "hidden";
//-->
</script>
||begin_fld_short||
	<layer id="z___||java_text||fld_name||" style="position: absolute; visibility: show; height: 17; top: 0;">
		<table><tr><td nowrap="nowrap">
			<a href="#" target="_self"  onclick="openFolder('||href_text||fld_name||', '||java_text||fld_name||');">
				||ifequal||fld_name||(||spam_name||)||
					<img name="z___||java_text||fld_name||img" src="||nwimg||/folder_spam.gif" align="top" border="0" alt="" />
				||else||
					||ifequal||fld_name||(||new_mail_name||)||
						<img name="z___||java_text||fld_name||img" src="||nwimg||/inbox.gif" align="top" border="0" alt="" />
					||else||
						||ifequal||fld_name||(||copy_name||)||
							<img name="z___||java_text||fld_name||img" src="||nwimg||/outbox.gif" align="top" border="0" alt="" />
						||else||
							||ifequal||fld_name||(||waste_name||)||
								<img name="z___||java_text||fld_name||img" src="||nwimg||/trash.gif" align="top" border="0" alt="" />
							||else||
								||ifdef||fld_is_public||
									<img name="z___||java_text||fld_name||img" src="||nwimg||/sharedfolder.gif" align="top" border="0" alt="" />
								||else||
									<img name="z___||java_text||fld_name||img" src="||nwimg||/folder.gif" align="top" border="0" alt="" />
								||endif||
							||endif||
						||endif||
					||endif||
				||endif||
			||html_text||fld_name||
			</a>
		</td></tr></table>
	</layer>
	<layer id="y___||java_text||fld_name||" style="position: absolute; visibility: hidden; height: 17; top: 0;">
		<table><tr><td nowrap="nowrap">
			<a href="#" target="_self"  onclick="openFolder('||href_text||fld_name||', '||java_text||fld_name||');">
				||ifequal||fld_name||(||spam_name||)||
					<img name="z___||java_text||fld_name||img" src="||nwimg||/folder_spam.gif" align="top" border="0" alt="" />
				||else||
					||ifequal||fld_name||(||new_mail_name||)||
						<img name="z___||java_text||fld_name||img" src="||nwimg||/inbox.gif" align="top" border="0" alt="" />
					||else||
						||ifequal||fld_name||(||copy_name||)||
							<img name="z___||java_text||fld_name||img" src="||nwimg||/outbox.gif" align="top" border="0" alt="" />
						||else||
							||ifequal||fld_name||(||waste_name||)||
								<img name="z___||java_text||fld_name||img" src="||nwimg||/trash.gif" align="top" border="0" alt="" />
							||else||
								||ifdef||fld_is_public||
									<img name="z___||java_text||fld_name||img" src="||nwimg||/sharedfolderopen.gif" align="top" border="0" alt="" />
								||else||
									<img name="z___||java_text||fld_name||img" src="||nwimg||/folderopen.gif" align="top" border="0" alt="" />
								||endif||
							||endif||
						||endif||
					||endif||
				||endif||
				<em>||html_text||fld_name||</em>
			</a>
		</td></tr></table>
	</layer>
	<script type="text/javascript">
	<!--
		document.layers.z___||java_text||fld_name||.top = (||count||) * 17 + 57;
		document.layers.y___||java_text||fld_name||.top = (||count||) * 17 + 57;
		document.layers.y___||java_text||fld_name||.visibility = "hidden";
	//-->
	</script>
	<br />
	||define||count||(||count||+1)||

||end_fld_short||
<script type="text/javascript">
<!--
	document.layers.z___||java_text||new_mail_name||.visibility = "hidden";
	document.layers.y___||java_text||new_mail_name||.visibility = "visible";
	for(var i=1; i<23; i++){
		document.writeln('<layer id="page___' + i + '" position="absolute" visibility="hide" height="17" left="15">');
		document.writeln('	<table><tr><td nowrap="nowrap"><a href="#" onclick="goPage(' + i + ');" target="_self"><img src="||nwimg||/page.gif" border="0"><font> Page ' + i + '</font></a></td></tr></table>');
		document.writeln('</layer>');
		document.writeln('<layer id="bold___' + i + '" position="absolute" visibility="hide" height="17" left="15">');
		document.writeln('	<table><tr><td nowrap="nowrap" class="bold"><a href="#" onclick="goPage(' + i + ');" target="_self"><img src="||nwimg||/page.gif" border="0"><font> </font><em>Page ' + i + '</em></a></td></tr></table>');
		document.writeln('</layer>');
	}
//-->
</script>
<layer id="page___23" position="absolute" visibility="hide" height="17" left="15">
	<table><tr><td nowrap="nowrap"><a href="#" onclick="pageUp()" target="_self"><img src="||nwimg||/page.gif" border="0" alt="" /><font> prev</font></a></td></tr></table>
</layer>
<layer id="page___24" position="absolute" visibility="hide" height="17" left="15">
	<table><tr><td nowrap="nowrap"><a href="#" onclick="pageDown()" target="_self"><img src="||nwimg||/page.gif" border="0" alt="" /><font> next</font></a></td></tr></table>
</layer>
<layer id="bold___23" position="absolute" visibility="hide" height="17" left="15">
	<table><tr><td nowrap="nowrap"><a href="#" onclick="pageUp()" target="_self"><img src="||nwimg||/page.gif" border="0" alt="" /><font> prev</font></a></td></tr></table>
</layer>
<layer id="bold___24" position="absolute" visibility="hide" height="17" left="15">
	<table><tr><td nowrap="nowrap"><a href="#" onclick="pageDown()" target="_self"><img src="||nwimg||/page.gif" border="0" alt="" /><font> next</font></a></td></tr></table>
</layer>
