<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>
||ifnempty||bulletin_path||
<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>
||endif||

<!-- SurgePlus TPL Code -->
||ifdef||surgemail||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||use_surgeplus_calendar||true||
<layer id="z___cal_fld" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-101&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___cal_fldimg');">
		<img name="cal_fldimg" src="||nwimg||/calendar.gif" align="top" border="0" alt="Calendar" /></a> Calendar
	</td></tr></table>
</layer>
||endif||
||endif||
||endif||
<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>
||ifdef||surgemail||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||(||check_id||102||)||true||
<layer id="z___filestore" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-102&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___filestoreimg');">
		<img name="filestoreimg" src="||nwimg||/fileshare.gif" align="top" border="0" alt="Filestore" /></a> Filestore
	</td></tr></table>
</layer>
||endif||
||ifequal||(||check_id||103||)||true||
<layer id="z___imagestore" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-103&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___imagestoreimg');">
		<img name="imagestoreimg" src="||nwimg||/imagestore.gif" align="top" border="0" alt="Photos" /></a> Photos
	</td></tr></table>
</layer>
||endif||
||endif||

||ifinstr||surgemail_disallow||blog||
||else||
||ifequal||(||check_id||160||)||true||
	||ifempty||blog_name|| ||define||blog_name||Blogs|| ||endif||
<layer id="z___blog" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-160&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___blogimg');">
		<img name="blogimg" src="||nwimg||/blog.gif" align="top" border="0" alt="||blog_name||" /></a> ||blog_name||
	</td></tr></table>
</layer>
||endif||
||endif||

||ifinstr||surgemail_disallow||dbabble||
||else||
||ifequal||(||check_id||150||)||true||
	||ifempty||dbabble_name|| ||define||dbabble_name||DBabble|| ||endif||
<layer id="z___dbabble" style="position: absolute; visibility: show; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a target="dbabble" href="||action||?cmd=netwin_login_id-150&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___dbabbleimg');">
		<img name="dbabbleimg" src="||nwimg||/dbabble.gif" align="top" border="0" alt="||dbabble_name||" /></a> ||dbabble_name||
	</td></tr></table>
</layer>
||endif||
||endif||
||endif||

<!-- end of surgeplus -->


<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>
||ifnempty||bulletin_path||
<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>
||endif||

<!-- SurgePlus TPL Code -->
||ifdef||surgemail||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||use_surgeplus_calendar||true||
<layer id="y___cal_fld" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-101&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___cal_fldimg');">
		<img name="cal_fldimg" src="||nwimg||/calendar.gif" align="top" border="0" alt="Calendar" /></a> <em>Calendar</em>
	</td></tr></table>
</layer>
||endif||
||endif||
||endif||
<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>
||ifdef||surgemail||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||(||check_id||102||)||true||
<layer id="y___filestore" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-102&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___filestoreimg');">
		<img name="filestoreimg" src="||nwimg||/todo.gif" align="top" border="0" alt="Filestore" /></a> <em>Filestore</em>
	</td></tr></table>
</layer>
||endif||
||ifequal||(||check_id||103||)||true||
<layer id="y___imagestore" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-103&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___imagestoreimg');">
		<img name="imagestoreimg" src="||nwimg||/todo.gif" align="top" border="0" alt="Photos" /></a> <em>Photos</em>
	</td></tr></table>
</layer>
||endif||
||endif||

||ifinstr||surgemail_disallow||blog||
||else||
||ifequal||(||check_id||160||)||true||
	||ifempty||blog_name|| ||define||blog_name||Blogs|| ||endif||
<layer id="y___blog" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-160&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___blogimg');">
		<img name="blogimg" src="||nwimg||/todo.gif" align="top" border="0" alt="||blog_name||" /></a> <em>||blog_name||</em>
	</td></tr></table>
</layer>
||endif||
||endif||

||ifinstr||surgemail_disallow||dbabble||
||else||
||ifequal||(||check_id||150||)||true||
	||ifempty||dbabble_name|| ||define||dbabble_name||DBabble|| ||endif||
<layer id="y___dbabble" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a target="dbabble" href="||action||?cmd=netwin_login_id-150&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___dbabbleimg');">
		<img name="dbabbleimg" src="||nwimg||/todo.gif" align="top" border="0" alt="||dbabble_name||" /></a> <em>||dbabble_name||</em>
	</td></tr></table>
</layer>
||endif||
||endif||
||endif||

<!-- end of surgeplus -->



<script type="text/javascript">
<!--
	document.layers.z___search.top = 6;
	document.layers.y___search.top = 6;
	document.layers.y___search.visibility = "hidden";
||ifnempty||bulletin_path||
	document.layers.z___bulletin_fld.top = 23;
	document.layers.y___bulletin_fld.top = 23;
	document.layers.y___bulletin_fld.visibility = "hidden";;
||endif||

||define||ypos||40||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||use_surgeplus_calendar||true||
	document.layers.z___cal_fld.top = ||ypos||;
	document.layers.y___cal_fld.top = ||ypos||;
	document.layers.y___cal_fld.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||
	document.layers.z___todo_fld.top = ||ypos||;
	document.layers.y___todo_fld.top = ||ypos||;
	document.layers.y___todo_fld.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||define||ypos||40||
||define||ypos||(||add||ypos||17||)||
||ifinstr||surgemail_disallow||surgeplus||
||else||
||ifequal||(||check_id||102||)||true||
	document.layers.z___filestore.top = ||ypos||;
	document.layers.y___filestore.top = ||ypos||;
	document.layers.y___filestore.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||ifequal||(||check_id||103||)||true||
	document.layers.z___imagestore.top = ||ypos||;
	document.layers.y___imagestore.top = ||ypos||;
	document.layers.y___imagestore.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||

||ifdef||surgemail||
||ifinstr||surgemail_disallow||blog||
||else||
||ifequal||(||check_id||160||)||true||
	document.layers.z___blog.top = ||ypos||;
	document.layers.y___blog.top = ||ypos||;
	document.layers.y___blog.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||

||ifdef||surgemail||
||ifinstr||surgemail_disallow||dbabble||
||else||
||ifequal||(||check_id||150||)||true||
	document.layers.z___dbabble.top = ||ypos||;
	document.layers.y___dbabble.top = ||ypos||;
	document.layers.y___dbabble.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||
||endif||
//-->
</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>
		||ifequal||fld_name||(||spam_name||)||
			&nbsp;&nbsp;&nbsp;&nbsp;<a class="empty" href="#" target="_self" onclick="emptySpam();">[purge]</a>
		||endif||
		||ifequal||fld_name||(||waste_name||)||
			&nbsp;&nbsp;&nbsp;&nbsp;<a class="empty" href="#" target="_self" onclick="emptyTrash();">[purge]</a>
		||endif||
		</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 + ||ypos||;
		document.layers.y___||java_text||fld_name||.top = (||count||) * 17 + ||ypos||;
		document.layers.y___||java_text||fld_name||.visibility = "hidden";
	//-->
	</script>
	<br />
	||define||count||(||count||+1)||

||end_fld_short||

<!-- SurgePlus TPL Code -->
||ifdef||surgemail||
||ifinstr||surgemail_disallow||friends|| ||else||
||ifequal||(||check_id||11||)||true||
<layer id="y___pending" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-11&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___pendingimg');">
		<img name="pendingimg" src="||nwimg||/folder.gif" align="top" border="0" alt="pending" /></a> <em>pending</em>
	</td></tr></table>
</layer>
||endif||
||endif||

||ifinstr||surgemail_disallow||spam|| ||else||
||ifequal||(||check_id||10||)||true||
<layer id="y___held" style="position: absolute; visibility: hidden; height: 17; top: 0;">
	<table><tr><td nowrap="nowrap">
		<a href="||action||?cmd=netwin_login_id-10&amp;utoken=||utoken||&amp;&amp;" target="framelist" onclick="changeImg('z___heldimg');">
		<img name="heldimg" src="||nwimg||/folder.gif" align="top" border="0" alt="held" /></a> <em>held</em>
	</td></tr></table>
</layer>
||endif||
||endif||
||endif||
<!-- end of surgeplus -->


<script type="text/javascript">
<!--
||ifdef||surgemail||
||ifinstr||surgemail_disallow||friends|| ||else||
||ifequal||(||check_id||11||)||true||
	document.layers.z___pending.top = ||ypos||;
	document.layers.y___pending.top = ||ypos||;
	document.layers.y___pending.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||

||ifinstr||surgemail_disallow||spam|| ||else||
||ifequal||(||check_id||10||)||true||
	document.layers.z___held.top = ||ypos||;
	document.layers.y___held.top = ||ypos||;
	document.layers.y___held.visibility = "hidden";;
	||define||ypos||(||add||ypos||17||)||
||endif||
||endif||
||endif||

	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>


