var COUNT1 = 8;
var COUNT2 = 8;
var COUNT3 = 8; 
var NM1 = "autumn";
var NM2 = "winter";
var NM3 = "spring"; 
var newWin=null;

function winClose(){ if(newWin!=null) if (!newWin.closed)newWin.close();}

function showUpMenu(){
if (screen.width>800){
document.writeln('<tr>');
document.writeln('<td width=\"1\" bgcolor="#000000"><img border=\"0\" src=\"../zero.gif\" width=\"1\" height=\"1\"></td>');
document.writeln('<td bgcolor="#000000\" width=\"699\" colspan=\"5\"><img border="0" src=\"../zero.gif\" width=\"10\" height=\"1\"></td>');
document.writeln('<td width=\"1\" bgcolor=\"#000000\"><img border=\"0\" src=\"../zero.gif\" width=\"1\" height=\"1\"></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td width=\"1\" bgcolor=\"#000000\"><img border=\"0\" src=\"../zero.gif\" width=\"1\" height=\"1\"></td>');
document.writeln('<td align=\"center\" bgcolor=\"#FFCC66\" width="233"><img border=\"0\" src=\"../autumn.jpg\" vspace=\"6\" width=\"215\" height=\"149\">');
document.writeln('</td>');
document.writeln('<td bgcolor=\"#000000\" width=\"1\"><img border=\"0\" src=\"../zero.gif\" width=\"1\" height=\"3\"></td>');
document.writeln('<td align="center" bgcolor=\"#A2C7E1\" width=\"231\"><img border=\"0\" src=\"../winter.jpg\" vspace=\"6\" width=\"215\" height=\"149\"></td>');
document.writeln('<td bgcolor=\"#000000\" width=\"1\"><img border=\"0\" src=\"../zero.gif\" width="1" height=\"3\"></td>');
document.writeln('<td align=\"center\" bgcolor=\"#B3FFB3\" width=\"233\"><img border=\"0\" src=\"../spring.jpg\" width=\"215\" height="149" vspace=\"6\"></td>');
document.writeln('<td width=\"1\" bgcolor=\"#000000\"><img border="0" src=\"../zero.gif\" width=\"1\" height=\"1\"></td>');
document.writeln('</tr>');
}
}
//Открываем новое окно для просмтра картинок большого размера
function ShowImage(im,w,h){
if(newWin!=null) if (!newWin.closed)newWin.close();
var top = (screen.height-h)/2;
var left = (screen.width-w)/2;
var windstatus;
windstatus='width='+w+',height='+h+',top='+top+',left='+left+',status=no,resizable=no,scrollbars=no';
newWin=window.open('','',windstatus);
newWin.document.open();
newWin.document.writeln('<html>');
newWin.document.writeln('<head>');
newWin.document.writeln('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">');
if (navigator.appName.indexOf("Netscape")!= -1) newWin.document.writeln('<title></title>');
else newWin.document.writeln('<title>Лирический Политехнический</title>');
newWin.document.writeln('</head>');
newWin.document.writeln('<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">');
newWin.document.writeln('<div align=\"center\">');
newWin.document.writeln('<center>');
newWin.document.writeln('<table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\">');
newWin.document.writeln('<tr>');
newWin.document.writeln('<td align=\"center\"><A HREF=\"javascript:close()\"><img border=\"0\" src=\"'+im+'.jpg\" width=\"'+w+'\" height=\"'+h+'\"></A></td>');
newWin.document.writeln('</tr>');
newWin.document.writeln('</table>');
newWin.document.writeln('</center>');
newWin.document.writeln('</div>');
newWin.document.writeln('</body>');
newWin.document.writeln('</html>');
newWin.document.close();
}

//Создаем навигацию по страницам
function ShowLink(nm,index,count,pref1,pref2,tp){
	var stLink = "";
	if (tp==1){
		if (index==1)stLink = "<A HREF=\""+pref1+"index.html\">&lt;&lt;</A>";
		else  stLink = "<A HREF=\""+nm+(index-1)+".html\">&lt;&lt;</A>";
		}
	for( var i = 1; i <=count; i++) {
		if (index == i) stLink = stLink+" [<b>"+i+"</b>]";
 		else  stLink = stLink+" [<A HREF=\""+pref2+nm+i+".html\">"+i+"</A>]";
		}
	if (tp==1){
		if (index==count) stLink = stLink+" <A HREF=\""+pref1+"index.html\">&gt;&gt;</A>";
		else  stLink = stLink+" <A HREF=\""+nm+(index+1)+".html\">&gt;&gt;</A>"; 
		}
	return stLink;                          
}
