function setVisible(id)
{
  for(i=1;i < div_visible_ids.length;i++)
  document.getElementById(div_visible_ids[i]).style.display = 'none';

  if(document.getElementById(id))
  document.getElementById(id).style.display = 'block';
}
    
  /*
  var i=1;
  var width_left=0;
  var count=cnt;
  if(count>0)
	document.getElementById("prev").style.cursor="pointer";
  if(count<2)
	document.getElementById("next").style.cursor="pointer";
  
  if (cnt>0)
  	var width_left=290*cnt;


  var j=1;
  var width_rigth=0;
  if (cnt>0)
  	var width_rigth=-290*cnt;
  	
  */
  
function move_left(position_left, container_id, srcoll_id)
{
 
  if (count>0)
  {
    ml=position_left*i-width_left;
    document.getElementById(srcoll_id).style.left = ml;
    i++;
    count--;
    j=1;
    width_rigth=ml;
	document.getElementById("next").style.cursor="pointer";
  }
  
  if(count<=0)
    document.getElementById("prev").style.cursor="normal";
}

	
function move_rigth(position_rigth, container_id, srcoll_id)
{ 
   if(count<=1)
  { 
    mr=position_rigth*j+width_rigth;
    document.getElementById(srcoll_id).style.left = mr; 
    j++;
    count++;
    i=1;
    width_left=(-mr);
    document.getElementById("prev").style.cursor="pointer";
 }

  if(count>=2)
    document.getElementById("next").style.cursor="normal";
}


function podsvetka(obj)
{
obj.className='over'
}

function nepodsvetka(obj)
{
obj.className='out'
}
function do_click(obj) {
	window.location = obj.all.tags("a")[0].href;
}