
function AllGeo(id) {
    $("#"+id).toggle(
	function () {
    $(this).value="Спрятать все";
  },
  function () {
    $(this).value="Показать все";
  }

	);
}

function doAllGeo( id )
{
	oblink="a_"+id;
    d=document.getElementById(oblink);
	if ( d.innerHTML == 'Спрятать остальные' ) 
	{ d.innerHTML ='Показать остальные'; 
		$("#"+id).hide("slow");
	}
	else 
	{
		   document.getElementById(oblink).innerHTML ='Спрятать остальные';
		$("#"+id).show("slow");
		
//		if (oblink!='a_land0')
//		{
//			document.getElementById('a_land0').innerHTML ='Показать остальные'; 
//			$("#land0").hide("fast");
//		}
//		if (oblink!='a_city0')
//		{
//			document.getElementById('a_city0').innerHTML ='Показать остальные'; 
//			$("#city0").hide("fast");
//		}
//		if (oblink!='a_city1')
//		{
//			document.getElementById('a_city1').innerHTML ='Показать остальные'; 
//			$("#city1").hide("fast");
//		}		

		
    }
    //d=getElementById(id);
	//d.styel.height='';
	
 //alert(document.getElementById(id).style.height)

}

function doContinue(id)
{
 $("#tickets_"+id).toggle("slow");
	
}
function doShow(id)
{

 $("#tickets_"+id).show("slow");
}
function doShowAirport(id)
{
 $("#tickets_"+id).show("slow");
  $("#tickets_"+id+"z").show("slow");
}
function doShowFast(id)
{
 $("#tickets_"+id).show("fast");
}
function doShowSFast(id)
{
 $("#tickets_"+id).show("superfast");
}
function doHide(id)
{
 $("#tickets_"+id).hide("slow");
}
function doHideFast(id)
{
 $("#tickets_"+id).hide("fast");
}
function doHideFast1(id)
{
 $("#"+id).hide("fast");
}
function doHideFastAll(n,max)
{
 for (i=1; i<=max; i++)
 { 
    if (i!=n) {
	   $("#tickets_"+i).hide("fast");
	   $("#tickets_"+i+"z").hide("fast");
	}   
 }	 
}

function doHideSFast(id)
{
 $("#tickets_"+id).hide("superfast");
}

function doShowMultiCity_tmeout(s)
{
  //  alert(s+'!' );
  s=s+'';

  if (s.indexOf(',')>0)
  {  
  s1=s.split(',');

	  for (i=0; i<s1.length; i++)
	  {
		 doShowFast(s1[i]+'z'); 
		 doShowFast(s1[i]); 
	  }  
  }
   else
  {
 
        doShowFast(s+'z'); 
		doShowFast(s);  
		
  }  

    //document.getElementById("reclama").style.display="block";
}

function doShowMultiCity(s)
{
 //document.getElementById("reclama").style.display="none";

 ident1 = window.setTimeout("doShowMultiCity_tmeout('"+s+"');", 500); 	
}

 


function sc(name,s){
	 document.cookie = name+"="+s+"; path=/;";
	 
	 return true;
}

