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]=["Research","../../eng/labs/labs.php"];
labo[1]=["Algebra and Number Theory","../../eng/labs/algebra.php"];
labo[2]=["Geometry and Topology","../../eng/labs/topologie.php"];
labo[3]=["Mathematical Analysis","../../eng/labs/mathan.php"];
labo[4]=["Mathematical Logic","../../eng/labs/logic.php"];
labo[5]=["Mathematical Physics","../../eng/labs/mathphys.php"];
labo[6]=["Mathematical Problems of Geophysics","../../eng/labs/geophys.php"];
labo[7]=["Mathematical Problems of Physics","../../eng/labs/phys.php"];
labo[8]=["Representation Theory and <br>Computational Mathematics","../../eng/labs/repres.php"];
labo[9]=["Statistical Methods","../../eng/labs/stats.php"];

var stat=new Array();
stat[0]=["Alphabetical listing of all members<br>(name, position and e-mail)"];
stat[1]=["A-C","../../eng/staff/staff.php"];
stat[2]=["D-I","../../eng/staff/staff_1.php"];
stat[3]=["Ê","../../eng/staff/staff_2.php"];
stat[4]=["L-O","../../eng/staff/staff_3.php"];
stat[5]=["P-R","../../eng/staff/staff_4.php"];
stat[6]=["S","../../eng/staff/staff_5.php"];
stat[7]=["T-Z","../../eng/staff/staff_6.php"];
stat[8]=["Post Graduate students","../../eng/staff/postgr.php"];

var activities=[["Journals publish by PDMI,<br>PDMI's preprints"]];

var institut=[["History of PDMI, Related Information"]];

var sem=[["List of PDMI's seminars"]];

var ssylki=[["Mathematics in St.Petersburg and RAS"]];

wind("ru",[["Russian version"]],20,110,110,30);
wind("title",[["Back to the Home Page"]],160,140,180,30);
wind("adress",[["Contact Information"]],110,142,150,30);
wind("inst",institut,110,159,230,30);
wind("admin",[["Administrative Offices"]],175,190,220,30);
windref("labs",labo,175,170,250,22);
windstaff("staff",stat,175,208,250,100);
wind("seminars",sem,100,255,200,30);
wind("activities",activities,100,270,200,50);
wind("links",ssylki,100,290,260,30);
wind("MMI",[["Euler International Mathematical Institute "]],178,385,255,45);
wind("MMIconf",[["Conferences and Workshops organized by the Euler Institute"]],178,425,255,45);

}

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";
}

