function head()

{

	document.writeln(

		'<table><tr><td>',

			'<img src="../img/head.png" width="760" height="80" border="0">',

		'</td></table>'

	);

}



function down()

{

//	document.writeln('<hr>');

}



function anchor(s)

{

	document.writeln('<a name = "', s, '"></a>');

}



function win_header(w, s)

{

	document.writeln(

		'<table width="', w, '"',

		' border="0" cellspacing="0" cellpadding="0"><tr>',

			'<td><img src="../img/win_header_left.png"></td>',

			'<td background="../img/win_header_fill.png" align="center" width="100%" class="header">',

				'<span class="blk"><b>-[', s, ']-</b></span>',

			'</td>',

			'<td><img src="../img/win_header_right.png"></td>',

		'</table>'

	);

}



function win_panel_start(w)

{

	document.writeln(

		'<table width="', w, '"',

		' border="0" cellspacing="0" cellpadding="0"><tr>',

			'<td><img src="../img/win_panel_topleft.png"></td>',

			'<td background="../img/win_panel_top.png" width="100%" height="4">',

			'<img src="../img/win_panel_top.png" width="100%" height="4">',

			'</td>',

			'<td><img src="../img/win_panel_topright.png"></td>',

		'<tr>',

			'<td background="../img/win_panel_left.png" width="4">',

			'<img src="../img/win_panel_left.png" width="4" height="100%">',

			'</td>',

			'<td background="../img/win_panel_fill.png" width="100%">'

	);

}



function win_panel_end()

{

	document.writeln(

		'</td>',

		'<td background="../img/win_panel_right.png">',

		'<img src="../img/win_panel_right.png" width="4" height="100%">',

		'</td>',

		'<tr>',

			'<td><img src="../img/win_panel_bottomleft.png"></td>',

			'<td background="../img/win_panel_bottom.png" width="100%" height="4">',

			'<img src="../img/win_panel_bottom.png" width="100%" height="4">',

			'</td>',

			'<td><img src="../img/win_panel_bottomright.png"></td>',

		'</table>'

	);

}



function menupanel_start(w, h)

{

	document.writeln(

		'<table width=', w, ' border="0" cellspacing="0" cellpadding="0">',

		'<tr><td>'

	);

	

	win_header(w, h);

	

	document.writeln('</td><tr><td>');

	

	win_panel_start(w);

}



function menupanel_end()

{

	win_panel_end();

	document.writeln('</td></table>');

}



function news_date(d)

{

	document.writeln('<span class="itm">');

	document.writeln('<span class="grn"><b>[', d, ']</b></span><br>');

	document.writeln('</span>');

}



function news_item(d)

{

	document.writeln('<span class="itm">');

	document.writeln('<span class="grn"> :: </span>');

	document.writeln('<span class="blk">', d, '</span><br>');

	document.writeln('</span>');

}



function brk()

{

	document.writeln('<br>');

}





function menu_item(d, i, l, s)
{
	document.writeln('<span class="itm">');
	document.writeln('<span class="grn"> :: </span>');

	if (i == "_blank") {	// not local item
	    document.writeln('<a href="', l, '" target="_blank">', d, '</a><br>');
	} else {
		if (i == "") {	// only link
	    	document.writeln('<a href="', l, '">', d, '</a><br>');
		} else {
			if (i == s)
				document.writeln('<span class="blk"><b>', d, '</b></span><br>');
			else
				document.writeln('<a href="../pages/', l, '">', d, '</a><br>');
		}
	}
	document.writeln('</span>');
}



function subtopic(s)
{
	document.writeln('<p class="grn"><b>', s, '</b></p>');
}



function art_table_start()
{
	document.writeln('<table width="100%" border="0" ',
		'cellspacing="0" cellpadding="0" color="black">');
}



function art_table_add(tip, name, lnk, date, author, surs, surs_lnk)

{

	document.writeln('<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln('<img src="../img/' + tip + '" align="middle">');

	document.writeln('<a target="_blank" href="../articles/', lnk, '">', 

		name, '</a></td>');

	document.writeln('<tr><td><span class="small_grn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln(date, ' &copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td><tr><td>&nbsp;</td></tr>');

}



function art_table_end()

{

	document.writeln('</table>');

}







function link_item_add(name, lnk, des, img)

{

	document.writeln('<tr><td width=180>&nbsp;&nbsp;&nbsp;&nbsp;');

//	document.writeln('<img src="../img/bullet_art.png">');

	
	if (img) {
		document.writeln('<a target="_blank" href="', lnk, '"><img src="../img/' + img + '"></a>');
	}
	else
		document.writeln('<a target="_blank" href="', lnk, '">[', name, ']</a>');
		
	document.writeln('</td>');

	document.writeln('<td>', des, '</td><tr><td>&nbsp;</td></tr>');

}



function link_table_brk()

{

	document.writeln('<tr><td>&nbsp;</td><td>&nbsp;</td>');

}





function comp_item_add(name, lnk, ext_lnk, des, date, author, surs, surs_lnk)

{

	document.writeln('<tr><td width="140">&nbsp;&nbsp;&nbsp;&nbsp;');

	if (lnk != "") {

		document.writeln('<img src="../img/i_file.gif" align="middle">');

		document.writeln('<a href="../components/', lnk, '">', 

			name, '</a></td>');

	}

	else {

		document.writeln('<img src="../img/i_html.gif" align="middle">');

		document.writeln('<a target="_blank" href="', ext_lnk, '">', 

			name, '</a></td>');

	}

	

	document.writeln("<td>", des, "</td>");

	document.writeln('<tr><td colspan="2"><span class="small_grn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln(date, ' &copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td><tr><td>&nbsp;</td></tr>');

}







function doc_item_add(name, lnk, ext_lnk, des, author, surs, surs_lnk)

{

	document.writeln('<tr><td width="180">&nbsp;&nbsp;&nbsp;&nbsp;');

	if (lnk != "") {

		document.writeln('<img src="../img/i_txt.gif" align="middle">');

		document.writeln('<a target="_blank" href="../doc/', lnk, '">', 

			name, '</a></td>');

	}

	else {

		document.writeln('<img src="../img/i_html.gif" align="middle">');

		document.writeln('<a target="_blank" href="', ext_lnk, '">', 

			name, '</a></td>');

	}

	document.writeln("<td>", des, "</td>");

	document.writeln('<tr><td colspan="2"><span class="small_grn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln('&copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td>');

	document.writeln("<tr><td><font size=0>&nbsp;</font></td><tr><td>&nbsp;</td></tr>");

}



function lib_item_add(name, lnk, ext_lnk, des, date, author, surs, surs_lnk)

{

	document.writeln('<tr><td width="150">&nbsp;&nbsp;&nbsp;&nbsp;');

	if (lnk != "") {

		document.writeln('<img src="../img/i_lib.gif" align="middle">');

		document.writeln('<a href="../libraries/', lnk, '">', 

			name, '</a></td>');

	}

	else {

		document.writeln('<img src="../img/i_html.gif" align="middle">');

		document.writeln('<a target="_blank" href="', ext_lnk, '">', 

			name, '</a></td>');

	}

	

	document.writeln("<td>", des, "</td>");

	document.writeln('<tr><td colspan="2"><span class="small_grn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln(date, ' &copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td><tr><td>&nbsp;</td></tr>');

}





function book_item_add(name, lnk, ext_lnk, des, date, author, surs, surs_lnk, ss)

{

	document.writeln('<tr><td width="20">');

	if (lnk != "") {

		document.writeln('<img src="../img/i_zip.gif" align="middle"></td>');

		document.writeln('<td><a href="../books/', lnk, '">', 

			name, '</a> <br><span class="small_grn">', ss, '</span></td>');

	}

	else {

		document.writeln('<img src="../img/i_html.gif" align="middle"></td>');

		document.writeln('<td><a href="', ext_lnk, '">', 

			name, '</a> <br><span class="small_grn">', ss, '</span></td>');

	}

	

	document.writeln("<tr><td></td><td>", des, "</td>");

	document.writeln('<tr><td></td><td><span class="small_grn">');

	document.writeln(date, ' &copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td>');

	document.writeln("<tr><td>&nbsp;</td></tr>");

}





function tool_item_add(name, lnk, ext_lnk, des, date, author, surs, surs_lnk)

{

	document.writeln('<tr><td width="150">&nbsp;&nbsp;&nbsp;&nbsp;');

	if (lnk != "") {

		document.writeln('<img src="../img/i_lib.gif" align="middle">');

		document.writeln('<a href="../tools/', lnk, '">', 

			name, '</a></td>');

	}

	else {

		document.writeln('<img src="../img/i_html.gif" align="middle">');

		document.writeln('<a target="_blank" href="', ext_lnk, '">', 

			name, '</a></td>');

	}

	

	document.writeln("<td>", des, "</td>");

	document.writeln('<tr><td colspan="2"><span class="small_grn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

	document.writeln(date, ' &copy; ', author, '');

	if (surs != "")

		document.writeln(' - <a target="_blank" href="', surs_lnk, '"><i>', surs, '</i></a>');

	document.writeln('</span></td><tr><td>&nbsp;</td></tr>');

}



