function hmenuhover()
{
	if(!document.getElementById("hmenu"))
		return;
	var lis = document.getElementById("hmenu").getElementsByTagName("LI");
	for (var i=0;i<lis.length;i++)
	{
		lis[i].onmouseover=function(){this.className+=" iehover";}
		lis[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", hmenuhover);


//var closerek=GetCookie('count');
 var mainMenuSource = "" +
<!--Menu 1-->
" <table id=\"Menu0\" background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=170 cellpadding=0 cellspacing=0  onMouseOut=\"Hide(this)\" border=1> " +
" <tr><td> " +
"<table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\">" +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/news/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Новости</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/guestbook/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Гостевая книга</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/chat/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Чат</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/search/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Поиск по сайту</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/sendmail/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Написать письмо</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/poll/index.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Голосования</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +



" </table>" +
"</td></tr>" +
" </table> " +
<!--End-->

<!--Menu 2-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=170 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu02\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/info.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Информация</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/rules.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Правила приема</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/spec.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Специальности</b>&nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/quest.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Вопросы и ответы</b>&nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/dip.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Гос.диплом</b>&nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/abit/zayav.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Образцы</b>&nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->

<!--Menu 3-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=200 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu03\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/students/info.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Информация</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/students/rasp.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Расписание</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/students/uchebnik.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Учебные пособия</b> &nbsp; </a>" +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/students/metod.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Методички</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://stellus.rgotups.ru/\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Дистанционное обучение</b></a>" +
"</td><td>&nbsp;</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/students/lab.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Лабораторные работы</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->


<!--Menu 4-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=245 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu04\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/nauka/konf.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Конференции </b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/nauka/sbornik.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Студенческий сборник статей</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->

<!--Menu 5-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=250 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu05\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/adm.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Администрация</b></a>" +
"</td>"+
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/rca/rca.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Центр аттест.</b> </a>" +
"</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/ok.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Отдел кадров</b> </a>" +
"</td>"+
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/buh.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Бухгалтерия</b> </a>" +
"</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/uch.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Учебная часть</b></a>" +
"</td>"+
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/bible.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Библиотека</b> </a>" +
"</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/pk.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Прием.комиссия</b></a>" +
"</td>"+
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/labs/labs.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Лаборатории</b> </a>" +
"</td></tr> " +
"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/vc.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Выч.центр</b></a>" +
"</td>"+
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/otdel/fpk.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;ЦДПО</b> </a>" +
"</td></tr> " +
"<tr height=17> " +
"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->

<!--Menu 6-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=150 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu06\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/vc/project.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Разработки</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/vc/files.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Файловый архив</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/vc/admin.php\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Служебный вход</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +



"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->

<!--Menu 7-->
"<table background=\"http://www.pfrgotups.ru/bg_popmenu.gif\" width=160 cellpadding=0 cellspacing=0 onMouseOut=\"Hide(this)\" id=\"Menu07\" border=1> " +
"<tr valign=top><td><table cellpadding=0 cellspacing=0 id=\"Menu1\" style=\"position:relative\"><tr><td height=4 colspan=2></td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/lic.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Лицензия</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/histori.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;История</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/prepod/prepod.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Преподаватели</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/struct.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Структура</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/vipusk.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Наши выпускники</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/filials.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Линейные филиалы</b></a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/kultura.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Культурная жизнь</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/hotel.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Наше общежитие</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +


"<tr height=17> " +
"<td onMouseOver=\"HideMenu(openedSubMenu)\">&nbsp; <a href=\"http://www.pfrgotups.ru/filial/find.html\" class=\"popMenu\"><b>&bull;&nbsp;&nbsp;Как нас найти</b> &nbsp; </a>" +
"</td><td>&nbsp;</td></tr> " +

"<tr><td height=7 colspan=2></td></tr></table></td></tr></table> " +
<!--End-->


" <table width=100% cellpadding=0 cellspacing=0 border=0> " +
" <tr> " +
" <td colspan=3> " +
" </td> " +
" </tr> " +

" <tr> " +
" <td  width=100% nowrap> " +
" <font face=\"Verdana, Arial\" size=-2 color=\"white\"> " +


" 	&nbsp; <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/main.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu0')\"><b><font style=\"font-size:12px\">ГЛАВНАЯ</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/abit.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu02')\"><b>АБИТУРИЕНТУ</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/students.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu03')\"><b>СТУДЕНТУ</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/nauka.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu04')\"><b>НАУКА И ОБРАЗОВАНИЕ</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/otdel.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu05')\"><b>ПОДРАЗДЕЛЕНИЯ</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/vc.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu06')\"><b>&nbsp;&nbsp; ВЦ &nbsp;&nbsp;</b></a> | <a class=\"topMenu\" href=\"http://www.pfrgotups.ru/filial.html\" onMouseOver=\"HideMenu(openedMenu); ShowMenu('Menu07')\"><b>&nbsp; О ФИЛИАЛЕ</b></font></a>" +

" </td> " +
" </tr> " +

" <tr> " +
" <td  bgcolor=\"black\" colspan=3> " +
" </td> " +
" </tr> " +

" <tr> " +
" <td  colspan=3> " +
" </td> " +
" </tr> " +

" </table> ";


		var openedMenu = "";
 var openedSubMenu = "";
		var timeOutId;
		function ShowMenu(menuId) {
			document.all[menuId].style.visibility = "visible";
			document.all["Menu0"].style.left=((document.body.scrollWidth-700)/2)+0;
			document.all["Menu02"].style.left=((document.body.scrollWidth-700)/2)+76;
			document.all["Menu03"].style.left=((document.body.scrollWidth-700)/2)+176;
			document.all["Menu04"].style.left=((document.body.scrollWidth-700)/2)+253;
			document.all["Menu05"].style.left=((document.body.scrollWidth-700)/2)+419;
			document.all["Menu06"].style.left=((document.body.scrollWidth-700)/2)+542;
			document.all["Menu07"].style.left=((document.body.scrollWidth-700)/2)+540;
			if(menuId.indexOf('_') > 0)
 			openedSubMenu = menuId;
 else
 openedMenu = menuId;
		}
		
		function HideMenu(menuId) {
 if(menuId != "") 
 window.document.all[menuId].style.visibility = "hidden";
		}

		function Hide(src) {
 if(! src.contains(event.toElement) ){
 src.style.visibility = "hidden";
 if(openedSubMenu != "")
 window.document.all[openedSubMenu].style.visibility = "hidden";
 }
		}

function ChangeBgColor(popMenuId, color) {
			window.document.all[popMenuId].style.background = color;
}
 
 
 var upmenu=""+
" <map name=\"map01\">"+
"<area href=\"http://www.pfrgotups.ru/search/index.php\" alt=\"Поиск по сайту\" coords=\"680,19,695,35\">"+
"<area href=\"http://www.pfrgotups.ru/index.html\" alt=\"Титульная страница\" coords=\"680,0,695,16\">"+
"<area href=\"http://www.pfrgotups.ru/sendmail/index.php\" alt=\"Написать письмо\" coords=\"680,39,695,54\">"+
"</map>"+
" <a name=\"start\"></a>"+
"<table align=\"center\" height=\"25\" border=\"1\" width=\"700\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://www.pfrgotups.ru/bg_topmenu.jpg\">"+
"<tr><td> <SCRIPT language=JavaScript>WriteHtmlCode();</SCRIPT></td></tr>"+
"</table>"+
"<table align=\"center\" border=\"1\"  width=\"700\" cellpadding=\"0\" cellspacing=\"0\">"+
"<tr><td><img src=\"http://www.pfrgotups.ru/title2.jpg\" usemap=\"#map01\" alt=\"\" border=\"0\"></td></tr>"+
"</table>";

 


 var douwmenu=""+
 "<br>"+

 ""+
" <table align=\"center\" border=\"0\" width=\"700\" bgcolor=\"#000090\" cellpadding=\"0\" cellspacing=\"0\"><td></td></table> "+
"<table align=\"center\" border=\"0\" width=\"700\" cellpadding=\"0\" cellspacing=\"0\"> <td  align=\"center\" ><font style=\"font-size:16px\"> -&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/main.html\" onClick=\"window.location=links[today];return false\">главная</a>&nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/abit.html\" onClick=\"window.location=links[today];return false\">абитуриенту</a>&nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/students.html\" onClick=\"window.location=links[today];return false\">студенту</a> &nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/nauka.html\" onClick=\"window.location=links[today];return false\">наука и образование</a> &nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/otdel.html\" onClick=\"window.location=links[today];return false\">подразделения</a> &nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/vc.html\" onClick=\"window.location=links[today];return false\">в.ц.</a>&nbsp;-&nbsp;<BR>"+
"&nbsp;-&nbsp;<a href=\"http://www.pfrgotups.ru/filial.html\" onClick=\"window.location=links[today];return false\">о филиале</a> &nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/chat/index.php\" onClick=\"window.location=links[today];return false\">чат</a>&nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/guestbook/index.php\" onClick=\"window.location=links[today];return false\">гостевая книга</a> &nbsp;-&nbsp;"+
"<a href=\"http://www.pfrgotups.ru/search/index.php\" onClick=\"window.location=links[today];return false\">поиск по сайту</a> &nbsp;-&nbsp; </font>"+

"</td></table> <table align=\"center\" border=\"0\" width=\"600\" bgcolor=\"#000099\" cellpadding=\"0\" cellspacing=\"0\"><td></td>"+
"</table><table align=\"center\" border=\"0\" width=\"600\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"33%\" ><font color=\"#B0B0B0\" style=\"font-size:10px\">&reg;Поволжский филиал РГОТУПС 2009</font></td></td>"+
"<td width=\"33%\" align=\"center\">"+
"<img height=1 width=1 src=\"http://dd.c6.bf.a0.top.list.ru/counter?id=1011032\"/>"+
"<a target=_top href=\"http://top.mail.ru/jump?from=1011032\">"+
"<img SRC=\"http://dd.c6.bf.a0.top.list.ru/counter?id=1011032;t=84;l=1\" "+
"border=0 height=18 width=88 alt=\"Рейтинг Mail.ru\"></a>"+
"</td>"+
"<td width=\"33%\" align=\"right\"> &nbsp; </td></td></tr></table>"+
"<script>function stoperror(){return true}window.onerror=stoperror</script>"; 
 




var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}


//drag drop function for IE 4+////
/////////////////////////////////

var dragapproved=false

function drag_dropie(){
if (dragapproved==true){
document.all.showimage.style.pixelLeft=tempx+event.clientX-iex
document.all.showimage.style.pixelTop=tempy+event.clientY-iey
return false
}
}

function initializedragie(){
iex=event.clientX
iey=event.clientY
tempx=showimage.style.pixelLeft
tempy=showimage.style.pixelTop
dragapproved=true
document.onmousemove=drag_dropie
}


if (document.all){
document.onmouseup=new Function("dragapproved=false")
}

////drag drop functions end here//////


function GetCookie (name) { 
var arg = name + "="; 
var alen = arg.length; 
var clen = document.cookie.length; 
var i = 0; 
while (i < clen) {
var j = i + alen; 
if (document.cookie.substring(i, j) == arg) 
return getCookieVal (j); 
i = document.cookie.indexOf(" ", i) + 1; 
if (i == 0) break; 
} 
return null;
}
function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var expDays = 1;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}




function hidebox(){
closerek=amt();
if (document.all)
showimage.style.visibility="hidden"
else if (document.layers)
document.showimage.visibility="hide"
}





//var rand1 = 0;
//var useRand = 0;
//var yesmes=0;

//function textreklama() {
//var txtnum = texts.length - 1;
//do {var randnum = Math.random();
//rand1 = Math.round((txtnum - 1) * randnum) + 1;} 

//while (rand1 == useRand);
//useRand = rand1;
//document.write(texts[useRand]);}




//var win = null;
//function reklamacenter(){
//LeftPosition = (screen.width) ? (screen.width-400)/2 : 0;
//TopPosition = (screen.height) ? (screen.height-300)/2 : 0;
//document.write("<div id=\"showimage\" style=\"position:absolute;width:400px;left:");
//document.write(LeftPosition);
//document.write(";top:");
//document.write(TopPosition);
//document.write("\">");}






 var reklama=""+
"<SCRIPT language=JavaScript>reklamacenter();</SCRIPT>"+

"<table border=\"0\" width=\"400\" bgcolor=\"#90000\" cellspacing=\"1\" cellpadding=\"0\"> "+
"<tr><td width=\"100%\" ><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\"height=\"36\"><tr> "+
"<td height=\"20\" onMousedown=\"initializedragie()\" style=\"cursor:hand\" width=\"100%\"><ilayer width=\"100%\" onSelectStart=\"return false\"><layer width=\"100%\" onMouseover=\"dragswitch=1;drag_dropns(showimage)\" onMouseout=\"dragswitch=0\"><font face=\"Verdana\" "+
"color=\"#FFFFFF\"><strong><small>Объявление</small></strong></font></layer></ilayer></td> "+
"<td style=\"cursor:hand\"><a href=\"#\" onClick=\"hidebox();return false\"><img src=\"http://www.pfrgotups.ru/close.gif\" width=\"16\"  "+
"height=\"14\" border=0></a></td></tr><tr><td width=\"100%\" bgcolor=\"#FFFFFF\" style=\"padding:4px\" colspan=\"2\"> "+

"<SCRIPT language=JavaScript>textreklama();</SCRIPT>"+
"</td></tr></table></td></tr></table></div>";


function Writedownmenu(){
 document.write(douwmenu);
 }
 
function Writenews(){
document.write(news);
 }
 
 


 function Writeupmenu(){
  document.write(upmenu);
  
//if (closerek==null){amt();}
//if (texts[1] == "") {yesmes = 0} else {yesmes = 1}
// if (yesmes == 1){ 
 //if (closerek == null) {document.write(reklama);}
 //if (closerek == 1) {document.write(reklama);}
 //}

 }

 
 function WriteHtmlCode(){
 document.write(mainMenuSource);
 }
 

