 <!--
//Menu scrips v 2.4. (c) Mike Popov 2001, m_popov@mail.ru.
//Tested for Internet Explorer 4-5.5, Netscape Navigator 4-6, Opera 4-5.

var base=390;
MenuWidth=new Array(1);
MenuHeight=new Array(1);
var x,y,menu_x;
var detectMenu=false;
var comp=navigator.appName;
var vers=navigator.appVersion;
var IE=(comp.indexOf('Microsoft')>=0&&parseFloat(vers)>=4);
var NN=(comp.indexOf('Netscape')>=0&&vers.indexOf('4.')>=0);
var NN6=((comp.indexOf('Netscape')>=0&&parseFloat(vers)>=5)||(comp.indexOf('Mozilla/5.0')>=0&&!IE));
var OPERA=(comp.indexOf('Opera')>=0&&parseFloat(vers)>=4);
if (NN6) base-=200;

//Making pull down menu
function MakeMenu(Number,TextMenu,m_width,m_height,menu_color,menu_border) {
  if (IE||NN||NN6||OPERA) {
	MenuHeight[Number]=m_height;
	MenuWidth[Number]=m_width;

	if (IE||OPERA||NN6) {
		document.write('<span id="Menu'+Number+'" class=menu onMouseOut="detect('+Number+','+m_width+','+m_height+')" style="POSITION:absolute;width:'+m_width+'px;height:'+m_height+'px;TOP:-'+(m_height+200)+'px">');
	}
	if (NN) {
		document.write('<layer id="Menu'+Number+'" class=menu onMouseOut="detect('+Number+','+m_width+','+m_height+')" left="0" height="0" top="0" clip="0,5,'+(m_width+5)+','+(m_height+10)+'" visibility=hide>');
	}
	document.write('<img src="img/d.gif" width=1 height=5><table cellspacing=0 cellpadding=0 border=0><tr><td>');
	document.write('<table cellspacing=0 cellpadding=1 border=0 width='+m_width+' height='+m_height+'><tr><td align=center bgcolor='+menu_border+'><table width='+(m_width-2)+' height='+(m_height-2)+' bgcolor='+menu_color+' cellspacing=0 cellpadding=0 border=0>');
	document.write('<tr><td align=center valign=middle><table width='+(m_width-10)+' height='+(m_height-10)+' cellspacing=0 cellpadding=0 border=0><tr><td valign=top>'+TextMenu+'</td></tr></table></td></tr></table></td></tr></table></td>');
	document.write('<td width=5 valign=bottom><table width=5 height='+(m_height-5)+' cellspacing=0 cellpadding=0 border=0 background="img/bg12.gif"><tr><td>&nbsp;</td></tr></table></td></tr><tr><td colspan=2 align=right><table height=5 width='+m_width+' cellspacing=0 cellpadding=0 border=0 background="img/bg12.gif"><tr><td valign=top><img src="img/bg12.gif" width=2 height=2></td></tr></table></td></tr></table>');
	if (NN) {
		document.write('</layer>');
		document.layers['Menu'+Number].top=-m_height-30;
	}
	if (NN||NN6) {
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove=displayCoords;
	}
	if (IE||NN6||OPERA) {
		document.write('</span>');
	}
  }
}

//Reading mouse position for Netscape.
function displayCoords(e) {
	x=e.pageX;
	y=e.pageY;
}

//Spying for mouse over event from menu.
function detect(N,w,h) {
var do_hide=false;
		detectMenu=false;
		Menu(N,menu_x,-h-base);
}

//Showing menu with number N
function MenuShow(N,floor_n) {
  if (!detectMenu){
	menu_x=MenuWidth[N]/2;
	base_x=(screen.width-MenuWidth[N])/2-30;
	base_y=175+120*floor_n;
	Menu(N,base_x,base_y);
	detectMenu=true;
   }
}

//Show the menu with number N in x,y position
function Menu(N,x,y) {
	if (NN6||OPERA) {
           	document.getElementById('Menu'+N).style.top=y;
            document.getElementById('Menu'+N).style.left=x;
	}
	if (NN) {
            document.layers['Menu'+N].top=y;
     	      document.layers['Menu'+N].left=x;
	}
	if (IE) { 
		document.all('Menu'+N).style.top=y;
		document.all('Menu'+N).style.left=x; 
	}
}

function chIm(imgDocID,imgObjName) {
     if (document.images) 
          document.images [imgDocID]. src = eval(imgObjName + ".src")                      
}
//-->