<!--


      function show_hide_1() 
      { 
      var obj1='menu_div_1';
      var obj2='menu_div_2';
          if (document.getElementById(obj1).style.display == 'none') 
              {
              document.getElementById(obj1).style.display = ''; 
              document.getElementById(obj2).style.display = 'none'; 
              }
          else 
          	  {
              document.getElementById(obj1).style.display = 'none';
              document.getElementById(obj2).style.display = 'none';
              }
      } 

	function show_hide_2() 
      { 
      var obj1='menu_div_1';
      var obj2='menu_div_2';
          if (document.getElementById(obj2).style.display == 'none') 
              {
              document.getElementById(obj2).style.display = ''; 
              document.getElementById(obj1).style.display = 'none'; 
              }
          else 
          	  {
              document.getElementById(obj2).style.display = 'none';
              document.getElementById(obj1).style.display = 'none';
              }
      } 



function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
rol_02_over = newImage("images/rol_02-over.gif");
temp_01_1 = newImage("images/rol_03-over.gif");
temp_01_1 = newImage("images/temp_01_1.jpg");
temp_02_1 = newImage("images/temp_02_1.jpg");
temp_03_1 = newImage("images/temp_03_1.jpg");
preloadFlag = true;
}
}

      function show_hide(obj) 
      { 
          if (document.getElementById(obj).style.display == 'none') 
              document.getElementById(obj).style.display = ''; 
          else 
              document.getElementById(obj).style.display = 'none'; 
      } 
  
 	var evt = null;

function initPage() { 
	document.onmousemove = test;
} 
 
 
 
var  top1=160
var  top2=160
var  top3=160
// sp задаёт скорость 
var sp=-2


var x;
var y;
  
function test() {
	var evt = (evt) ? evt : ((window.event) ? event : null);
	x = evt.clientX;
	y = evt.clientY;
	return ;
	}
		
  
  
  
      



function Layer_Open1() 
{ 
if (top1<161 && top1>10)
{
if (y>182&&y<336)
{
if (x>248&&x<494)
{
top1+=sp;
document.all.Layer1.style.top=top1;
if (top1<160 && top1>=10) setTimeout(" Layer_Open1()",2);
}
}
}
} 


function Layer_Open2() 
{ 
if (top2<161 && top2>10)
{
if (y>182&&y<336)
{
if (x>494&&x<740)
{
top2+=sp 
document.all.Layer2.style.top=top2

if (top2<160 && top2>=10) setTimeout(" Layer_Open2()",2) 
}
}
}
} 

function Layer_Open3() 
{ 
if (top3<161 && top3>30)
{
if (y>182&&y<336)
{
if (x>740&&x<986)
{
top3+=sp 
document.all.Layer3.style.top=top3

if (top3<160 && top3>=10) setTimeout(" Layer_Open3()",2) 
}
}
}
} 

function Layer_Close1() 
{ 
 top1=160;
document.all.Layer1.style.top=top1;
} 

function Layer_Close2() 
{ 
 top2=160;
document.all.Layer2.style.top=top2;
} 

function Layer_Close3() 
{ 
 top3=160;
document.all.Layer3.style.top=top3;
} 
function Layer_Close() 
{ 
 top1=160;
document.all.Layer1.style.top=top1;
 top2=160;
document.all.Layer2.style.top=top2;
 top3=160;
document.all.Layer3.style.top=top3;
} 


 var bV=parseInt(navigator.appVersion);
 NS4=(document.layers) ? true : false;
 IE4=((document.all)&&(bV>=4)) ? true : false;
 DOM=(!document.layers && !document.all && bV>=4) ? true : false; // A hack to guess if the browser supports the DOM
 capable = (NS4 || IE4 || DOM) ? true : false;

 document.write("<style type='text/css'>");
 if (NS4) document.write(".child {visibility:hidden}");
  else if(IE4) document.write(".child {display:none}");
 document.write("</style>");

 function showAll() {
  for (i=firstInd; i<document.layers.length; i++) {
    whichEl = document.layers[i];
    whichEl.visibility = "show";
  }
 }

 function getIndex(el) {
  ind = null;
  for (i=0; i<document.layers.length; i++) {
    whichEl = document.layers[i];
    if (whichEl.id == el) {
      ind = i;
      break;
    }
  }
  return ind;
 }

 function arrange() {
   nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
   for (i=firstInd+1; i<document.layers.length; i++) {
     whichEl = document.layers[i];
     if (whichEl.visibility != "hide") {
       whichEl.pageY = nextY;
       nextY += whichEl.document.height;
     }
   }
 }

 function InitIt(){
  if(IE4) {
   tempColl = document.all.tags("DIV");
   for (i=0; i<tempColl.length; i++) {
    if (tempColl(i).className == "child") tempColl(i).style.display = "none";
   }
  } else
  if (NS4) {
    for (i=0; i<document.layers.length; i++) {
      whichEl = document.layers[i];
      if (whichEl.id.indexOf("tab") != -1) whichEl.visibility = "hide";
    }
    arrange();
  }
 }

 function ExpandDiv(el){
  if (NS4){
   whichEl = eval("document." + el);
   if (whichEl) if (whichEl.visibility == "hide") whichEl.visibility = "show"; else whichEl.visibility = "hide";
  } else
  if (IE4) if (document.all(el)) if (document.all(el).style.display=="block") document.all(el).style.display="none"; else document.all(el).style.display="block";
 }

 function InitItOnLoad(){
  InitIt();
  ExpandDiv('sec1');
 }

 ImgTmp=new Image();
 ImgTmp.src="images/loading.gif";

 function ImgChange(imgname){
  document.images["main"].width=0;
  document.images["main"].height=0;
  document.images["areaimage"].src="images/loading.gif";
  document.images["areaimage"].src=imgname;
  document.images["areaimage"].width=423;
  document.images["areaimage"].height=389;
 }

 function MainImgChange(){
  document.images["areaimage"].width=0;
  document.images["areaimage"].height=0;
  document.images["main"].width=423;
  document.images["main"].height=389;
 }

onload = InitItOnLoad;
