function highlight(which,color){
//Подсветка ссылок на левой панели
	if (document.all||document.getElementById)
		which.style.backgroundColor=color
}


function MeNu(puti){
// загрузка ссылок на левую панель

document.write("<span style='cursor: hand'><li><a href='"+puti+"news/sc/schotnews.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Школьные&nbsp;новости</a></li></span>" );

document.write("<span style='cursor: hand'><li><a href='"+puti+"schedule.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Расписание&nbsp;уроков</a></li></span>" );

document.write("<span style='cursor: hand'><li><strong><a href='http://seredka.schsite.ru' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Электронный&nbsp;журнал</a></strong></li></span>" );

document.write("<span style='cursor: hand'><li><a href='"+puti+"teachers/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Наш&nbsp;коллектив</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://mudroe-gosudarstvo.blogspot.com/' target='_blank' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Библиотека</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"vip/index.php' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Наши&nbsp;выпускники</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"abiturient/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Абитуриентам</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"faq/index.php' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>FAQ&nbsp;(Вопрос/ответ)</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"project_sc.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Проектно-исследова-<br>тельская&nbsp;деятельность</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"monit.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Мониторинг</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"kpmo/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>КПМО</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"mo.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Метод.&nbsp;объединения</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"prof.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Предпрофильное<br>обучение</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"vosp.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Воспитательная&nbsp;работа</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"museum.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Школьный&nbsp;музей</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"referat/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Коллекция&nbsp;рефератов</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.ucoz.ru/dir/' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Каталог&nbsp;сайтов</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.ucoz.ru/load/' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Каталог&nbsp;файлов</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"security/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Безопасность&nbsp;файлов</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.freehostia.com/wiki/doku.php' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Wiki&nbsp;Школа</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='"+puti+"fotofile/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Фотоальбом</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.ucoz.ru/blog/' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Школьный&nbsp;блог</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.communityhost.ru/' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Форум</a></li></span>");

document.write("<span style='cursor: hand'><li><a href='http://seredka.forum24.ru/' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'>Гостевая&nbsp;книга<br></a></li></span>");


//document.write("</ul><fieldset><legend class='podpis'>Wap-версия&nbsp;сайта:</legend><center><span style='cursor: hand'><img src='"+puti+"images/mobile.gif'width=16 height=16 title='Wap-версия сайта'>&nbsp;<a href='http://seredka.wen.ru/' target=blank onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'><span style='color:#c70000'><strong>seredka.wen.ru</strong></span></a></span></center></fieldset><br>");

document.write("<fieldset><legend class='podpis'>RSS:</legend><center><span style='cursor: hand'><a href='http://feedex.net/feed/seredka.pskovedu.ru/news/rss/rss.xml' target=blank><img src='"+puti+"images/rss.jpeg'width=34 height=11 title='RSS' border='0'></a></span></center></fieldset>");
}


//Верхние кнопки
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Button1_over = newImage("images/Button1-over.gif");
		Button2_over = newImage("images/Button2-over.gif");
		Button3_over = newImage("images/Button3-over.gif");
		Button4_over = newImage("images/Button4-over.gif");
		mail_over = newImage("images/mail-over.gif");
		preloadFlag = true;
	}
}


function banner(put) {
//Баннеры 

// 9 Мая
document.write("<A HREF='http://9may.ru' title='Кто не уважает прошлое, тот лишен будущего!' target=blank><IMG SRC='"+put+"banner/victory.jpg' width='100' height='100' border='0' ALT='Кто не уважает прошлое, тот лишен будущего!'><BR><HR></A>");

//0 Rambler Top100
document.write("<a href='http://top100.rambler.ru/home?id=1095093'><img src='http://counter.rambler.ru/top100.cnt?1095093' alt='Rambler Top100' width=1 height=1 border=0></a>");
// http://www.pskov.ru
document.write("<A HREF='http://www.pskov.ru' title='Официальный сайт Псковской области' target=blank><IMG SRC='"+put+"banner/pskov.gif' width='88' height='31' border='0' ALT='Официальный сайт Псковской области'><BR><HR></A>");
// http://www.pskovedu.ru
document.write("<A HREF='http://www.pskovedu.ru' title='Образовательный портал Псковской области' target=blank><IMG SRC='"+put+"banner/pskovedu.gif' width='88' height='31' border='0' ALT='Образовательный портал Псковской области'><BR><HR></A>");
// Vkontakte
//document.write("<a href='http://vkontakte.ru/club3698921' title='Наша школа В Контакте' target='_blank' ><IMG SRC='"+put+"banner/vkontakte.gif' alt='Наша школа В Контакте' width='88' height='31' border='0'><BR><HR></a>");
// Kaspersky
document.write("<a href='http://www.kasperskyacademy.com' title='Школа Касперского' target='_blank' ><IMG SRC='"+put+"banner/kaspersky.gif' alt='Школа Касперского' width='100' height='30' border='0'><BR><HR></a>");
// web-resurs.ru
//document.write("<a href='http://www.web-resurs.ru/best_school/' target='_blank'><img src='http://www.web-resurs.ru/img/konkurs.gif' alt='Kонкурс лучших интернет сайтов' title='Kонкурс лучших интернет сайтов'  width='88' height='31' border='0'><BR><HR></a>");
// DMOZ
document.write("<a href='http://search.dmoz.org/cgi-bin/search?search=seredka.pskovedu.ru&all=yes&cs=UTF-8&cat=World%2FRussian' target=_blank title='dmoze — Open Directory Project'><img src='"+put+"banner/dmoz.gif' alt='dmoze — Open Directory Project' width='88' height='31' border='0'><BR><HR></a>");
// Rambler Top100
document.write("<a href='http://top100.rambler.ru/home?id=1095093' title='Rambler Top100' target=_blank><img src='http://top100-images.rambler.ru/top100/banner-88x31-rambler-gray2.gif' alt='Rambler Top100' width=88 height=31 border=0><BR><HR></a>");
// AllBest
document.write("<a href='http://allbest.ru/union/d/a/?n=74052&c=19' target=_blank><img src='http://allbest.ru/union/i/fc/19g.png' width=88 height=31 alt='Союз образовательных сайтов' title='Союз образовательных сайтов' border=0><BR><HR></a>");
//KMindex
//document.write('<a href="http://click.kmindex.ru/?uid=117271"><img '+'src="http://counting.kmindex.ru/19.gif?uid=117271&r='+escape(document.referrer)+
//'&'+Math.random()+'" width="88" height="12" border="0"><BR><HR></a>')
// Рейтинг liveinternet
document.write("<a href='http://www.liveinternet.ru/click' target=_blank><img src='http://counter.yadro.ru/hit?t26.2;r" + escape(document.referrer) + ((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + ";u" + escape(document.URL) +";i" + escape("Жж"+document.title.substring(0,80)) + ";" + Math.random() + "' border=0 width=88 height=15 alt='' title='LiveInternet: показано число посетителей за сегодня'><BR><HR></a>");
// Рейтинг @Mail.ru
document.write("<a target=_blank href='http://top.mail.ru/jump?from=1228054'><img src='http://dd.cb.b2.a1.top.list.ru/counter?id=1228054;t=99' border=0 height=18 width=88 alt='Рейтинг@Mail.ru' title='Рейтинг@Mail.ru'/><BR><HR></a>");

// Наши друзья
document.write("<a href='"+put+"friends/index.html' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'><span class='our'>Наши&nbsp;друзья<span></a>");

// Наша кнопка
document.write("&nbsp;|&nbsp;<a href='"+put+"banner.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'><span class='our'>Наша&nbsp;кнопка<span></a>");
}


function inform(){
document.write("<center><a href='http://npstoik.ru/vio/' target='_blank'><img src='http://npstoik.ru/img/adv/vio_animated.gif' width='100' height='100' border='0' alt='Интернет-альманах Вопросы информатизации образования. Опыт, практика, перспектива'></a> </center>");
}

function copyright(){
document.write ("©&nbsp;Smirnov,&nbsp;2007")
var today=new Date()
var y=today.getYear()
if (y < 1000)  y+=1900
if (y>2007) document.write ('-'+y)
}

function bannernet(){
document.write("<script type='text/javascript'>google_ad_client = 'pub-5163730970231073'; google_ad_slot = '2500411789';google_ad_width = 468;google_ad_height = 60;</script>");
document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
//document.write("<center><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' title='title' width='553' height='83'><param name='movie' value='http://www.ict.edu.ru/img/prize_edu2008.swf'><param name='quality' value='high'><embed src='http://www.ict.edu.ru/img/prize_edu2008.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='553' height='83'></object></center>");
//document.write("<span class='zag1'>23 апреля 2009 года в 16<sup>30</sup></span><br><span class='red'>состоится</span><br>");
//document.write("<a href='http://seredka.pskovedu.ru/private.htm' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'><span class='zag1'><strong>общешкольное родительское собрание.</strong></span></a>");
//document.write("<span class='zag1'>5 февраля 2010 года в 18<sup>00</sup></span><br><span class='red'>состоится</span><br>");
//document.write("<a href='http://seredka.pskovedu.ru/vip/index.php' onMouseover=highlight(this,'#a4d3eb') onMouseout='highlight(this,document.bgColor)'><span class='zag1'><strong>Вечер встречи выпускников Серёдкинской школы.</strong></span></a>");
///var userid = 424;
///var rndnum = Math.round(Math.random() * 1000);
///document.write("<A HREF='http://193.232.24.150/lcgi-bin/banner.cgi?href&ID"
///+ userid + "&" + rndnum + "' target='_blank'>");
///document.write("<IMG SRC='http://193.232.24.150/lcgi-bin/banner.cgi?img&ID"
///+ userid + "&" + rndnum + "' width=468 height=60 Alt='School banner network' border=0></A>");
///document.write("<br><a href='http://www.lyceum.edu.ru/banner/' target=_blank><span class='podpis9'>School&nbsp;banner&nbsp;network</span></a>")
}


function lastupd(){
document.write("<div align='right'><font color='#FFFFFF'>Последние изменения:&nbsp;<strong>");
var d=new Date(document.lastModified);
var s="";
var y="";
if (d.getDate()<10) {s="0"} s=s+d.getDate()+".";
if (d.getMonth()<9) {s=s+"0"};
if (d.getYear()<200) {y=d.getYear()+1900};
if (d.getYear()>200) {y=d.getYear()};
var s=s+(d.getMonth()+1)+"."+y;
document.write(s+'&nbsp;</strong>г.</font></div>');
}