function open_info(n)
{
  info_.style.display ='none';
  info_0.style.display='none';
  info_10.style.display='none'; 
  info_1.style.display='none';
  info_2.style.display='none';
  info_3.style.display='none';
  info_4.style.display='none';
  eval("info_"+n+".style.display='block'");
}
function open_photo()
{
  photo_photo1.style.display='block';
  photo_photo2.style.display='block';
  photo_photo3.style.display='block';  
  photo_photol.style.display='block';
  photo_photor.style.display='block';
  sh_t.style.display='block';  
  sh_f.style.display='none';  
  show(0);
}
function close_photo()
{
  photo_fon.style.display='none';
  photo_photo.style.display='none';
  photo_photo1.style.display='none';
  photo_photo2.style.display='none';
  photo_photo3.style.display='none';  
  photo_photol.style.display='none'; 
  photo_photor.style.display='none'; 
  sh_t.style.display='none';  
  sh_f.style.display='block';  
}
function move_photo(id)
{
  if(id==2)
  {
  	pc.push(pc.shift());
  }		
  if(id==0)
  {
  	pc.unshift(pc.pop());
  }	
  show(0)
}
function show(id)
{
  photo_photo1.innerHTML='<div class="photo_img_m"><img onclick="JavaScript: show(1)" title="Посмотреть фото [Jewish Friends Club (JFC)]" src="photos/l_'+pc[0]+'.jpg"></div>';
  photo_photo2.innerHTML='<div class="photo_img_m"><img onclick="JavaScript: show(2)" title="Посмотреть фото [Jewish Friends Club (JFC)]" src="photos/l_'+pc[1]+'.jpg"></div>';
  photo_photo3.innerHTML='<div class="photo_img_m"><img onclick="JavaScript: show(3)" title="Посмотреть фото [Jewish Friends Club (JFC)]" src="photos/l_'+pc[2]+'.jpg"></div>';
  if(id!=0)
  {
  	photo_fon.style.display='block';
    photo_photo.style.display='block';
    photo_photo.innerHTML='<div class="photos_img photos_div"><img src="photos/b_'+pc[id-1]+'.jpg" title="Посмотреть фото [Jewish Friends Club (JFC)]"></div>';
  }
}

var menu_n=326;
function menu_on_off()
{
	for(i=0;i<menu_n;i++)
    menu_.style.top+=i;
}
//
function pos_img(w,h,num,a)
{
	switch(num)
	{
		case 0 : ml_=-20; mt=-2;  break;
		case 1 : ml_=-5;  mt=0;   break;
	}
	//
	if(w>300)
		ml = 244-w/2+150-ml_;
	else 
		ml = 244-ml_;
	//
	title_img.style.marginLeft=ml;
	title_img.style.marginTop=mt;	
	title_img.style.display='';
	//
	big_text.style.paddingLeft=ml+w;
	big_text_.style.display='';
}
//
function pos_p()
{
	ml=47;
	mt=87;
	//
	_p0.style.marginLeft=ml;
	_p0.style.marginTop=mt;	
	_p0.style.display='';
	//
	p.style.marginLeft=ml;
	p.style.marginTop=mt;	
	//p.style.display='';
}
function open_order()
{
  if(eval("_order.style.display=='none'"))
    eval("_order.style.display=''");
  else
    eval("_order.style.display='none'");
}