function createSubItem(it) {
	if (it==1){
		var Items = new Array (
			"Резюме|about/resume.html",
			"Краткая биография|about/biography.html",
			"Конт.информация|about/contact.html"
			);
		var Razd = "Перс. информация";
	}
	if (it==2){
		var Items = new Array (
			"Детские|photo/child.html",
			"Свадебные|photo/marriage.html",
			"Разные|photo/other.html",
			"Туристические|photo/tourizm.html",
			"Фотопейзажи|photo/photo.html",
			"Макросъемка|photo/macro.html",
			"Клан [C++]|cpp/cpp.html",
			"Свадьбы друзей|photo/oth_marr.html",
			"Кошки|photo/cats.html"
			);
		var Razd = "Фотоальбом";
	}
	if (it==3){
		var Items = new Array (
			"Светильники|hobby/lamps.html",
			"ИК-управление|hobby/ir.html"
			);
		var Razd = "Увлечения";
	}
	if (it==4){
		var Items = new Array (
			"Нотный материал|music/notes.html",
			"Муз.фотографии|music/photo.html"
			);
		var Razd = "Музыка";
	}
	if (it==5){
		var Items = new Array (
			"VCL компоненты|progr/vcl.html"
			);
		var Razd = "Программирование";
	}
	if (it==6){
		var Items = new Array (
			"Форум|phpBB2/index.php"
			);
		var Razd = "Форум";
	}
	if (it==7){
		var Items = new Array (
			"Фото-черновики 1|special/foto1.html",
			"Фото-черновики 2|special/foto2.html",
			"Фото-черновики 3|special/foto3.html",
			"Фото-черновики 4|special/foto4.html",
			"Турнирная таблица|special/turnir.html",
			"Цитатник|special/quote.html",
			"Фото Юмор|special/photohumor.html"
			);
		var Razd = "Специальное";
	}
	if (it==8){
		var Items = new Array (
			"Новый Год 2005|hny2005/index.html"
			);
		var Razd = "Новый Год 2005";
	}
	if (it==9){
		var Items = new Array (
			"Ссылки|links/index.html"
			);
		var Razd = "Ссылки";
	}
	document.writeln("<TR><TD style='CURSOR: hand' ");
	document.writeln("bgColor='#3F5E78'><TABLE cellSpacing=0 cellPadding=0 width='100%'>");
	document.writeln("<TBODY><TR><TD align=left width=20><IMG height=16");
	document.writeln("src='"+ROOT+"images/str2.gif' width=20></TD> <TD align=left><FONT");
	document.writeln("class=menu><B>"+Razd+"</B></FONT></TD></TR></TBODY></TABLE></TD></TR>");
	for (var i=0; i<Items.length; i++) {
		var r = Items[i].split('|');
		document.writeln("<TR><TD onmouseover=this.style.backgroundColor='#708FA9'"+
                         " style='CURSOR: hand' onclick=parent.location='"+ROOT+r[1]+"'"+
                         " onmouseout=this.style.backgroundColor='#4F6E88' bgColor='#4F6E88'>"+
                         "<TABLE cellSpacing=0 cellPadding=0 width='100%'><TBODY>"+
                         "<TR><TD align=left width=20><IMG height=16 src='"+ROOT+"images/str2.gif' width=20></TD>"+
                         "<TD align=left><FONT class=menu>"+r[0]+"</FONT></TD></TR></TBODY></TABLE>"+
						 "</TD></TR>");
	}
}

function FirstItem(){
		document.writeln("<TR><TD vAlign=top bgColor='#5E7F9B'><FONT class=LIT>"+
                     "<TABLE cellSpacing=1 cellPadding=0 width='100%' align=center><TBODY><TR>"+
                     "<TD onmouseover=this.style.backgroundColor='#708FA9' style='CURSOR: hand' onclick=parent.location='"+
					 ROOT+"index.html' onmouseout=this.style.backgroundColor='#3F5E78'"+
                     " bgColor='#3F5E78'><TABLE cellSpacing=0 cellPadding=0 width='100%'><TBODY><TR>"+
                     "<TD align=left width=20><IMG height=16 src='"+ROOT+"images/str2.gif' width=20></TD><TD align=left><FONT"+
                     " class=menu><B>Главная</B></FONT></TD></TR></TBODY></TABLE></TD></TR>");
		
}

function Menu(){
	FirstItem();
	createSubItem(1);	
	createSubItem(2);	
	createSubItem(3);	
	createSubItem(4);	
	createSubItem(5);	
	createSubItem(6);	
	createSubItem(7);	
	createSubItem(8);	
	createSubItem(9);	
}

function Anonce1(){
	document.writeln("<TABLE height='100%' cellSpacing=5 cellPadding=0 width='100%' border=0>"+
	"<TBODY><TR><TD vAlign=top><TABLE height='100%' cellSpacing=1 width='100%' bgColor=#000000 border=0>"+
	"<TBODY><TR><TD vAlign=center align=middle bgColor=#708FA9 height=16><B><FONT class=menu>.:: НОВОЕ ::.</FONT></B></TD></TR>"+
	//"<TR><TD vAlign=top bgColor=#5E7F9B height=20><FONT class=menu>Обновлен дизайн сайта</FONT> </TD></TR>"+

	"<TR><TD align=middle bgColor=#708FA9 height=16><FONT class=menu><B>.:: ЖЖ ::.</B></FONT> </TD></TR>"+
	"<TR><TD vAlign=top bgColor=#5E7F9B height=50><FONT class=menu>Сайтом почти не занимаюсь, ищите меня в <a href='http://www.livejournal.com/users/d_rat/' class=link><B>ЖЖ.</B></a>"+
	"<br><br><a href='"+ROOT+"phpBB2/index.php' class=link>"+
	"<IMG src='"+ROOT+"images/details.gif' border=0></A> </FONT></TD></TR>"+

	"<TR><TD align=middle bgColor=#708FA9 height=16><FONT class=menu><B>.:: Форум ::.</B></FONT> </TD></TR>"+
	"<TR><TD vAlign=top bgColor=#5E7F9B height=50><FONT class=menu>Теперь на сайте есть <a href='"+ROOT+"phpBB2/index.php' class=link><B>Форум!!!</B></a>"+
	"<br><br><a href='"+ROOT+"phpBB2/index.php' class=link>"+
	"<IMG src='"+ROOT+"images/details.gif' border=0></A> </FONT></TD></TR>"+


	"<TR><TD align=middle bgColor=#708FA9 height=16><FONT class=menu><B>.:: Цитатник ::.</B></FONT> </TD></TR>"+
	"<TR><TD vAlign=top bgColor=#5E7F9B height=50><FONT class=menu><a href='"+ROOT+"special/quote.html' class=link><B>Цитатник</B></a> - "+
	"избранные цитаты и высказывания <BR><A href='"+ROOT+"special/quote.html'><IMG src='"+ROOT+"images/details.gif' border=0></A> </FONT></TD></TR>"+


	"<TR><TD align=middle bgColor=#708FA9 height=16><FONT class=menu><B>.:: Фото-черновики ::.</B></FONT> </TD></TR>"+
	"<TR><TD vAlign=top bgColor=#5E7F9B height=50><FONT class=menu><form  method='GET' name='foto_some' action='"+ROOT+"special/foto_some.php'><B>Фото-черновики</B> c &nbsp;"+
	"<input type='text' name='from' size='3'> по <input type='text' name='to' size='3'>"+
	" <input type='submit' value='OK'></form> </FONT></TD></TR>"+

	"<TR><TD vAlign=center align=middle bgColor=#708FA9 height=16><FONT class=menu><B>.:: Ссылки ::.</B></FONT></TD></TR>"+
	"<TR><TD vAlign=top bgColor=#5E7F9B><table width='100%' border='0'><TBODY><TR><TD bgColor=#5E7F9B valign='top' align='center'>"+
	"<a href='http://www.pcdesign.ru' target='_blank'><img src='http://www.modding.ru/img/100.gif' alt='' border='0'></a>"+"</TD></TR>"+
	"<TR><TD vAlign=top align=middle bgColor=#5E7F9B><table width='100%' height='100%' border='0'><TBODY><TR>"+
	"<td valign='top'>");
}	
function Anonce2(){
	document.writeln("</td></TR><TR>"+
	"<TD height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>");
}

function SpFoto(fr, to){
	for (var i=fr; i<=to; i++) {
		document.writeln("<center><TABLE cellSpacing=1 cellPadding=3 width='80%' bgColor=#000000><TBODY><TR>"+
                        "    <TD bgColor=#708FA9 align='center' ><a href='../bigpic.php?path=special/img/img"+i+".jpg&alt= ' target='_blank'><font color='White'><B>img"+i+"</B></a></TD>"+
                        "    <TD bgColor=#708FA9 align='center' ><a href='../bigpic.php?path=special/img/img"+(i+1)+".jpg&alt= ' target='_blank'><font color='White'><B>img"+(i+1)+"</B></a></TD>"+
                        "    <TD bgColor=#708FA9 align='center' ><a href='../bigpic.php?path=special/img/img"+(i+2)+".jpg&alt= ' target='_blank'><font color='White'><B>img"+(i+2)+"</B></a></TD></TR>"+
                        "  <TR><td align='center' bgcolor='White'><a href='../bigpic.php?path=special/img/img"+i+".jpg&alt= ' target='_blank'><img src='img/img"+i+"s.jpg' border=0></a></td>"+
                        "      <td align='center' bgcolor='White'><a href='../bigpic.php?path=special/img/img"+(i+1)+".jpg&alt= ' target='_blank'><img src='img/img"+(i+1)+"s.jpg' border=0></a></td>"+
                        "      <td align='center' bgcolor='White'><a href='../bigpic.php?path=special/img/img"+(i+2)+".jpg&alt= ' target='_blank'><img src='img/img"+(i+2)+"s.jpg' border=0></a></td></TR>"+
                        "  <TR><td align='center' bgcolor='#708FA9'><a href='../bigpic.php?path=special/img/img"+i+".jpg&alt= ' target='_blank'>Открыть в новом окне</A></td>"+
                        "      <td align='center' bgcolor='#708FA9'><a href='../bigpic.php?path=special/img/img"+(i+1)+".jpg&alt= ' target='_blank'>Открыть в новом окне</A></td>"+
                        "      <td align='center' bgcolor='#708FA9'><a href='../bigpic.php?path=special/img/img"+(i+2)+".jpg&alt= ' target='_blank'>Открыть в новом окне</A></td>"+
						"  </TR></TBODY></TABLE></CENTER><BR>");
		i = i+2;
	}
                        

}