<!--
var the_timeout1;
var the_timeout2;
var the_timeout3;
var the_timeout4;
var the_timeout5;

var min_top = 100;
var max_top = 126;

var rychlost_dolu = 6;
var rychlost_hore = 6;


var krok = 20; //interval na dalsi cyklus

var idem_hore1 = 0;
var idem_hore2 = 0;
var idem_hore3 = 0;
var idem_hore4 = 0;
var idem_hore5 = 0;



/************************************** DOLE 1 ****************************************************/

function chod_dolu1()
{
  window.document.bee1.src = "images/referencie2.gif";
  
  var new_top;
  

  
  var the_style1 = getStyleObject("obr1");
  
  if (the_style1 && idem_hore1 == 0)
  {
	    var current_top = parseInt(the_style1.top);
	
		new_top = current_top + rychlost_dolu;
		
		if (new_top > max_top) new_top = max_top;
 
		

		if (document.layers) 
		{
		  the_style1.top = new_top;
		}
		else 
		{  
		  the_style1.top = new_top + "px";
		}
		   
		if (new_top == max_top) 
		{
			clearTimeout(the_timeout1); 
			return false;
		}


		the_timeout1 = setTimeout('chod_dolu1();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** HORE 1 ****************************************************/

function chod_hore1()
{
  window.document.bee1.src = "images/referencie2.gif";
  
  var new_top;
  

  var the_style1 = getStyleObject("obr1");
  
  idem_hore1 = 1;
  
  if (the_style1)
  {
	    var current_top = parseInt(the_style1.top);
	
		new_top = current_top - rychlost_hore;

		if (new_top < min_top) new_top = min_top;
		

		if (document.layers) 
		{
		  the_style1.top = new_top;
		}
		else 
		{  
		  the_style1.top = new_top + "px";
		}

		if (new_top == min_top) 
		{
			clearTimeout(the_timeout1);
			idem_hore1 = 0; 
			window.document.bee1.src = "images/referencie.gif";


			return false;
		}

		the_timeout1 = setTimeout('chod_hore1();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** DOLE 2 ****************************************************/

function chod_dolu2()
{
  window.document.bee2.src = "images/firma2.gif";
  
  var new_top2;
  

  var the_style2 = getStyleObject("obr2");
  
  if (the_style2 && idem_hore2 == 0)
  {
	    var current_top2 = parseInt(the_style2.top);
	
		new_top2 = current_top2 + rychlost_dolu;
		
		if (new_top2 > max_top) new_top2 = max_top;
 

		if (document.layers) 
		{
		  the_style2.top = new_top2;
		}
		else 
		{  
		  the_style2.top = new_top2 + "px";
		}

		if (new_top2 == max_top) 
		{
			clearTimeout(the_timeout2); 
			return false;
		}
		   
		the_timeout2 = setTimeout('chod_dolu2();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** HORE 2 ****************************************************/

function chod_hore2()
{
  window.document.bee2.src = "images/firma2.gif";
  
  var new_top2;
  

  var the_style2 = getStyleObject("obr2");
  
  idem_hore2 = 1;
  
  if (the_style2)
  {
	    var current_top2 = parseInt(the_style2.top);
	
		new_top2 = current_top2 - rychlost_hore;

		if (new_top2 < min_top) new_top2 = min_top;
		
		
		if (document.layers) 
		{
		  the_style2.top = new_top2;
		}
		else 
		{  
		  the_style2.top = new_top2 + "px";
		}

		if (new_top2 == min_top) 
		{
			clearTimeout(the_timeout2);
			idem_hore2 = 0; 
			window.document.bee2.src = "images/firma.gif";
			return false;
		}
		   
		the_timeout2 = setTimeout('chod_hore2();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** DOLE 3 ****************************************************/

function chod_dolu3()
{
  window.document.bee3.src = "images/galeria2.gif";
  
  var new_top3;
  

  var the_style3 = getStyleObject("obr3");
  
  if (the_style3 && idem_hore3 == 0)
  {
	    var current_top3 = parseInt(the_style3.top);
	
		new_top3 = current_top3 + rychlost_dolu;
		
		if (new_top3 > max_top) new_top3 = max_top;
 

		if (document.layers) 
		{
		  the_style3.top = new_top3;
		}
		else 
		{  
		  the_style3.top = new_top3 + "px";
		}

		if (new_top3 == max_top) 
		{
			clearTimeout(the_timeout3); 
			return false;
		}

		the_timeout3 = setTimeout('chod_dolu3();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** HORE 3 ****************************************************/

function chod_hore3()
{
  window.document.bee3.src = "images/galeria2.gif";
  
  var new_top3;
  

  var the_style3 = getStyleObject("obr3");
  
  idem_hore3 = 1;
  
  if (the_style3)
  {
	    var current_top3 = parseInt(the_style3.top);
	
		new_top3 = current_top3 - rychlost_hore;

		if (new_top3 < min_top) new_top3 = min_top;
		
		
		if (document.layers) 
		{
		  the_style3.top = new_top3;
		}
		else 
		{  
		  the_style3.top = new_top3 + "px";
		}
		   
		if (new_top3 == min_top) 
		{
			clearTimeout(the_timeout3);
			idem_hore3 = 0; 
			window.document.bee3.src = "images/galeria.gif";
			return false;
		}

		the_timeout3 = setTimeout('chod_hore3();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** DOLE 4 ****************************************************/

function chod_dolu4()
{
  window.document.bee4.src = "images/produkty2.gif";
  
  var new_top4;
  

  var the_style4 = getStyleObject("obr4");
  
  if (the_style4 && idem_hore4 == 0)
  {
	    var current_top4 = parseInt(the_style4.top);
	
		new_top4 = current_top4 + rychlost_dolu;
		
		if (new_top4 > max_top) new_top4 = max_top;
 
	
		if (document.layers) 
		{
		  the_style4.top = new_top4;
		}
		else 
		{  
		  the_style4.top = new_top4 + "px";
		}

		if (new_top4 == max_top) 
		{
			clearTimeout(the_timeout4); 
			return false;
		}

		the_timeout4 = setTimeout('chod_dolu4();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** HORE 4 ****************************************************/

function chod_hore4()
{
  window.document.bee4.src = "images/produkty2.gif";
  
  var new_top4;
  

  var the_style4 = getStyleObject("obr4");
  
  idem_hore4 = 1;
  
  if (the_style4)
  {
	    var current_top4 = parseInt(the_style4.top);
	
		new_top4 = current_top4 - rychlost_hore;

		if (new_top4 < min_top) new_top4 = min_top;
		
		
		if (document.layers) 
		{
		  the_style4.top = new_top4;
		}
		else 
		{  
		  the_style4.top = new_top4 + "px";
		}
		   
		if (new_top4 == min_top) 
		{
			clearTimeout(the_timeout4);
			idem_hore4 = 0; 
			window.document.bee4.src = "images/produkty.gif";
			return false;
		}

		the_timeout4 = setTimeout('chod_hore4();',krok);  //po 10 milisekundach sa spravý další krok
  }
}

/************************************** DOLE 5 ****************************************************/

function chod_dolu5()
{
  
  window.document.bee5.src = "images/kontakty2.gif"; 
  
  var new_top5;
  

  var the_style5 = getStyleObject("obr5");
  
  if (the_style5 && idem_hore5 == 0)
  {
	    var current_top5 = parseInt(the_style5.top);
	
		new_top5 = current_top5 + rychlost_dolu;
		
		if (new_top5 > max_top) new_top5 = max_top;
 
	
		if (document.layers) 
		{
		  the_style5.top = new_top5;
		}
		else 
		{  
		  the_style5.top = new_top5 + "px";
		}
		   
		if (new_top5 == max_top) 
		{
			clearTimeout(the_timeout5); 
			return false;
		}

		the_timeout5 = setTimeout('chod_dolu5();',krok);  //po 10 milisekundach sa spravý další krok
  }
}


/************************************** HORE 5 ****************************************************/

function chod_hore5()
{
  window.document.bee5.src = "images/kontakty2.gif";
  
  var new_top5;
  

  var the_style5 = getStyleObject("obr5");
  
  idem_hore5 = 1;
  
  if (the_style5)
  {
	    var current_top5 = parseInt(the_style5.top);
	
		new_top5 = current_top5 - rychlost_hore;

		if (new_top5 < min_top) new_top5 = min_top;
		

	
		if (document.layers) 
		{
		  the_style5.top = new_top5;
		}
		else 
		{  
		  the_style5.top = new_top5 + "px";
		}

		if (new_top5 == min_top) 
		{
			clearTimeout(the_timeout5);
			idem_hore5 = 0;
			window.document.bee5.src = "images/kontakty.gif";
			return false;
		}

		the_timeout5 = setTimeout('chod_hore5();',krok);  //po 10 milisekundach sa spravý další krok
  }
}
// -->