mover = new Array();
mout = new Array();

	for(m=1;m<11;m++) {
		mover[m] = new Image()
		mout[m] = new Image()
		}

	for(m=1;m<11;m++) {
		mover[m].src = "images/m2_" +m+ "a.gif"
		mout[m].src = "images/m2_" +m+ ".gif"
		}

	function mOn(mn) {
		document["m"+mn].src = mover[mn].src;
	}

	function mOff(mn) {
		document["m"+mn].src = mout[mn].src;
	}

function check_mail_form()
{
    if (mail_form.f_fio.value == "" ) { alert( "Укажите Ф.И.О." ); mail_form.f_fio.focus(); return false;  }
    if (mail_form.f_mail.value == "" ) { alert( "Укажите E-mail" ); mail_form.f_mail.focus(); return false;  }
mail_form.submit();
}
	
var opened = -1, active = -1;
x = new Array (195,-6,-6,175,204,-6,-6,167,-6,166,-6,152,-6,226,0)
y = new Array (162,-7,-7,130,114,-7,-7,149,-7,178,-7,245,-7,146,0)
function go(){
  var n = document.forms[0].submenu.options.selectedIndex
  if (n > 0) {
    i(--n); show(n)
  }
}
function i(n){
  document.getElementById('sprite').style.left = x[n];
  document.getElementById('sprite').style.top = y[n];
  document.getElementById('sprite').style.visibility = 'visible';
  active = n;
}
function show(n){
  if (opened > -1) eval("document.getElementById('m" + opened + "').style.visibility = 'hidden'");
  eval("document.getElementById('m" + n + "').style.visibility = 'visible'");
  opened = n;
}
function hide(){
  document.getElementById('sprite').style.visibility = 'hidden';
  if (opened > -1) eval("document.getElementById('m" + opened + "').style.visibility = 'hidden'");
  opened = -1;
}


function RunFlash_map()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="710" height="1020" id="map1" align="top">\n');
document.write('<param name="allowScriptAccess" value="sameDomain">\n');
document.write('<param name="movie" value="swf/map.swf"><param name="quality" value="high" /><param name="bgcolor" value="#ffffff"><embed src="swf/map.swf" quality="high" bgcolor="#ffffff" width="710" height="1020" name="map" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');
document.write('</object>\n');
}


function RunFlash_region(nr)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="710" height="1020" id="map" align="top">\n');
document.write('<param name="allowScriptAccess" value="sameDomain">\n');
document.write('<param name="movie" value="swf/reg/region'+nr+'.swf"><param name="quality" value="high" /><param name="bgcolor" value="#ffffff"><embed src="swf/reg/region'+nr+'.swf" quality="high" bgcolor="#ffffff" width="710" height="1020" name="map" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');
document.write('</object>\n');
}

function sMenu(param, param1, class_) {
var targetId, srcElement, targetElement;

        if (class_ == "Outline") {
                targetId = param + "details";
                targetElement = document.getElementById(targetId);
                if (targetElement.style.display == "none") {
                targetElement.style.display = "";
                id = param + "img";
//                document.images[id].src = "images/a1_2.gif";
                } else {
                targetElement.style.display = "none";
                id = param + "img";
//                document.images[id].src = "images/a1_1.gif";
                }
        }else{
                id = param + "details";
                document.all[id].style.display = "";
                id = param + "img";
                document.images[id].src = "images/a1_2.gif";
        }
}
