ball_blue=new Image();
ball_blue.src="../../images/ball.gif";

ball_yell=new Image();
ball_yell.src="../../images/yell.gif";


function menu()
{
var labo=new Array();
labo[0]=["общие сведения","../../ru/labs/labs.php"];
labo[1]=["лаборатория &nbsp;алгебры и теории чисел","../../ru/labs/algebra.php"];
labo[2]=["лаборатория &nbsp;мат.анализа","../../ru/labs/mathan.php"];
labo[3]=["лаборатория &nbsp;мат.логики","../../ru/labs/logic.php"];
labo[4]=["лаборатория &nbsp;мат. проблем геофизики","../../ru/labs/geophys.php"];
labo[5]=["лаборатория &nbsp;мат. проблем физики","../../ru/labs/phys.php"];
labo[6]=["лаборатория &nbsp;мат.физики","../../ru/labs/mathphys.php"];
labo[7]=["лаборатория &nbsp;стат.методов","../../ru/labs/stats.php"];
labo[8]=["лаборатория &nbsp;теории представлений<br> и вычислительной математики","../../ru/labs/repres.php"];
labo[9]=["лаборатория &nbsp;геометрии и топологии","../../ru/labs/topologie.php"];

var stat=new Array();
stat[0]=["алфавитный список сотрудников<br>(должности, степени, лаборатории<br> и номера телефонов)"];
stat[1]=["А-В","../../ru/staff/staff.php"];
stat[2]=["Г-И","../../ru/staff/staff_1.php"];
stat[3]=["К","../../ru/staff/staff_2.php"];
stat[4]=["Л-О","../../ru/staff/staff_3.php"];
stat[5]=["П-Р","../../ru/staff/staff_4.php"];
stat[6]=["С","../../ru/staff/staff_5.php"];
stat[7]=["Т-Я","../../ru/staff/staff_6.php"];
stat[8]=["аспиранты","../../ru/staff/postgr.php"];

var bib=[["расписание работы,<br>поиск журналов и статей,<br>публикации сотрудников,<br>архивы статей,<br>издательства,<br>электронные библиотеки,<br>электронные журналы,<br>'Алгебра и Анализ',<br>'Записки семинаров ПОМИ',<br>препринты ПОМИ"]];

var institut=[["издательский сектор,<br>история института,<br>ПОМИ поток,<br>клубы ПОМИ,<br>видеотека"]];

var dissert=[["диссертационный совет Д.002.202.01,<br>авторефераты"]];

var sem=new Array();
sem[0]=["анонсы семинаров","../../ru/seminars/seminars.php"];
sem[1]=["список семинаров ПОМИ","../../ru/seminars/seminars.php"];
sem[2]=["расписание семинаров по дням недели","../../ru/seminars/day_lu.php"];
sem[3]=["занятость аудиторий","../../ru/seminars/room.php"];

var ssylki=[["математика в Петербурге,<br>в России и за рубежом<br>"]];

wind("english",[["English version"]],20,110,110,30);
wind("title",[["Возврат на главную страницу"]],160,140,180,30);
wind("news",[["новости"]],110,140,90,30);
wind("intern",[["информация для сотрудников института"]],110,150,255,30);
wind("adress",[["контактная информация"]],175,178,170,30);
wind("admin",[["администрация ПОМИ и ММИ"]],175,198,220,30);
wind("council",[["состав Ученого Совета института"]],175,220,220,30);
windref("labs",labo,175,170,250,32);
windstaff("staff",stat,175,218,250,100);
windref("seminars",sem,175,240,250,28);
wind("lib",bib,175,220,200,175);
wind("inst",institut,175,290,150,85);
wind("act",dissert,175,340,250,40);
wind("annonces",[["анонсы конференций"]],90,365,150,25);
wind("facilts",ssylki,90,375,200,45);
wind("MMI",[["Международный Математический Институт им.Эйлера"]],175,460,255,45);
wind("MMIconf",[["конференции, проводимые в ММИ им.Эйлера"]],175,510,255,45);
wind("wran",[["Российская академия наук"]],175,620,200,30);

}

var mover=0;
var tmstaff;
var tmseminars;
var tmlabs;

function wind(id,txt,left,top,width,height)
{
document.write("<div id=\""+id+"\"");
document.write("style=\"position: absolute;");
document.write("left: "+left+"px; top: "+top+"px; width: "+width+"px; height: "+height+"px;");
document.write("display: none;\"");
document.write("<center>");
document.write("<table cellspacing=0 cellpadding=0 border=2>");
for(i=0;i<txt.length;i++)
   {
	document.write("<tr><td id=col"+i+" valign=center align=center width="+width+" height="+height+" bgcolor=\"#e9f9ff\">");
	document.write("<font class=\"T12\">");
	document.write(txt[i]);
	document.write("</font>");
	document.write("</td></tr>");
   }
document.write("</table></center>");
document.write("</div>");
}

function windref(id,txt,left,top,width,height)
{
if(id=='labs') var ball='ball4';
else var ball='ball7';
var im='../../images/yell_l.gif';
var im1='../../images/ball_l.gif';

document.write("<div id=\""+id+"\"");
document.write("style=\"position: absolute;");
document.write("left: "+left+"px; top: "+top+"px; width: "+width+"px; height: "+height+"px;");
document.write("display: none;\"");
document.write("onMouseOver=\"this.style.display='';mover=1; "+ball+".src='"+im+"';\" ");
document.write("onMouseOut=\"this.style.display='none';mover=0;"+ball+".src='"+im1+"';\">");
document.write("<center>");
document.write("<table cellspacing=0 cellpadding=0 border=2>");
for(i=0;i<txt.length;i++)
   {
	document.write("<tr><td id=col"+i+" valign=center align=center width="+width+" height="+height+" bgcolor=\"#e9f9ff\">");
	document.write("<font class=\"T12\">");
	document.write("<a class=\"menu\" href="+txt[i][1]+">"+txt[i][0]+"</a>");
	document.write("</font>");
	document.write("</td></tr>");
   }
document.write("</table></center>");
document.write("</div>");
}

function windstaff(id,txt,left,top,width,height)
{
var wd=width/7.0;
var ball='ball5';
var im='../../images/yell_l.gif';
var im1='../../images/ball_l.gif';

document.write("<div id=\""+id+"\"");
document.write("style=\"position: absolute;");
document.write("left: "+left+"px; top: "+top+"px; width: "+width+"px; height: "+height+"px;");
document.write("display: none;\"");
document.write("onMouseOver=\"this.style.display='';mover=1; "+ball+".src='"+im+"';\" ");
document.write("onMouseOut=\"this.style.display='none';mover=0;"+ball+".src='"+im1+"';\">");
document.write("<center>");
document.write("<table cellspacing=0 cellpadding=0 border=2>");
document.write("<tr><td valign=center align=center width="+width+" height="+height+" bgcolor=\"#e9f9ff\">");
document.write("<table cellspacing=0 cellpadding=0 border=0>");
document.write("<tr><td valign=center align=center>");
document.write("<font class=\"T12\">"+txt[0]+"</font>");
document.write("</td></tr>");
document.write("<tr><td valign=center align=center>");
document.write("<table cellspacing=5 cellpadding=2 border=0>");
document.write("<tr>");
for(i=1;i<txt.length-1;i++)
   {
	document.write("<td valign=center align=center width="+wd+">");
	document.write("<a class=\"menu\"  href="+txt[i][1]+">"+txt[i][0]+"</a>");
	document.write("</td>");
   }
document.write("</tr>");
document.write("</table>");
document.write("<tr><td valign=center align=center bgcolor=\"#e9f9ff\">");
document.write("<a class=\"menu\" href="+txt[i][1]+">"+txt[i][0]+"</a>");
document.write("</td></tr>");
document.write("</table>");
document.write("</td></tr>");
document.write("</table></center>");
document.write("</div>");
}


function timerstaff()
{
var s=200;
tmstaff=setTimeout("effac('staff')",s);
}

function timerlabs()
{
var s=200;
tmlabs=setTimeout("effac('labs')",s);
}

function timerseminar()
{
var s=200;
tmseminars=setTimeout("effac('seminars')",s);
}



function okno(id)
{
var el=document.getElementById(id);

clearTimeout(tmstaff);
clearTimeout(tmlabs);
clearTimeout(tmseminars);
mover=0;
effac("labs");
effac("staff");
effac("seminars");
el.style.display="";
}

function newcolor(id)
{
var el=document.getElementById(id);
el.bgcolor="yellow";
}


function effac(id)
{
var el=document.getElementById(id);
if(!mover) el.style.display="none";
}


