function slide_left(promotka_width)
{	 var promotka = document.getElementById('promotka');
	 var okno_promotki_width = promotka.parentNode.clientWidth;
	 var px_int = parseInt(promotka.style.left);
	if (!( (px_int + promotka_width) < okno_promotki_width))
	{ 
	  promotka.style.left =  (px_int - 56)+'px';
	}
}
function slide_right(promotka_width)
{ 	var promotka = document.getElementById('promotka');
	 var okno_promotki_width = promotka.parentNode.clientWidth;
	var px_int = parseInt(promotka.style.left);
	if (!(px_int >=0))
	{ 
	  promotka.style.left =  (px_int + 56)+'px';
	}
}
function slide_click(position,promotka_n,  promotka_width)
{
 	var promotka = document.getElementById('promotka');
	var okno_promotki_width = promotka.parentNode.clientWidth;	 
	var i = position;
	var j = 0;
	var sk;
	sk = 3 - position;
	px_int = 60 * sk;
	promotka.style.left =  (px_int)+'px';
	for (j; j < promotka_n; j++)
	{
		if (j==i)
		{
			document.getElementById('elpro_' + j).style.border = '2px solid #FF6600';
			document.getElementById('elpro_' + j).style.opacity = '0.75';
			$("#pic_container_"+j).css("display", "block");	
			$("#picTitle_container_"+j).css("display", "block");	
		}
		else
		{
			document.getElementById('elpro_' + j).style.border = '';
			document.getElementById('elpro_' + j).style.opacity = '1';
			$("#pic_container_"+j).css("display", "none");	
			$("#picTitle_container_"+j).css("display", "none");	
		}
		
	}
	
	
	// 
	
}
 function ok_button_over()
  {  	var button = document.getElementById('ok_button');
  	button.style.background = 'url(images/buttons/go_light.gif) no-repeat'; 
  }
  
  function ok_button_out()
  {  	var button = document.getElementById('ok_button');
  	button.style.background = 'url(images/buttons/go_dark.gif) no-repeat'; 
  }
