function showFlight(_1){
if(_1==undefined){
$$(".flight").invoke("show");
}else{
$$(".flight").invoke("hide");
_1.split(",").each(function(fl){
Element.show("flight"+fl);
});
}
};
function showAirline(_3){
$$(".flight").each(function(fl){
Element.hide(fl);
});
$$(".data_airline").each(function(fl){
fl.innerHTML.split(",").each(function(al){
if(al==_3){
Element.show("flight"+fl.id.substring(13));
}
});
});
};
function showHowManyStops(_7){
$$(".flight").invoke("hide");
$$(".data_stops").each(function(fl){
if(_7==undefined){
if(fl.innerHTML>1){
Element.show("flight"+fl.id.substring(11));
}
}else{
if(_7==fl.innerHTML){
Element.show("flight"+fl.id.substring(11));
}
}
});
};
function makeTheTableHeadsHighlight(){
var _9=$$("#matrix tbody td");
for(var i=0;i<_9.length;i++){
_9[i].oldClassName=_9[i].className;
_9[i].onmouseover=function(){
Element.addClassName(this,"air_on");
th_col=$$("#matrix thead th."+this.oldClassName);
Element.addClassName(th_col[0],"air_on");
th_row=this.parentNode.getElementsBySelector("th");
Element.addClassName(th_row[0],"air_on");
};
_9[i].onmouseout=function(){
Element.removeClassName(this,"air_on");
th_col=$$("#matrix thead th."+this.oldClassName);
Element.removeClassName(th_col[0],"air_on");
th_row=this.parentNode.getElementsBySelector("th");
Element.removeClassName(th_row[0],"air_on");
};
}
};
function doCalendar(_b,_c,_d){
input1="f_depart_date";
input2="f_return_date";
region="es";
nCalendar=new myCalendar(_b,_c,region,input1,input2,_d);
nCalendar.makeMonth();
};
var ffrom;
var fto;
var cont=0;
var cont2=0;
window.onload=function(){
ffrom=new Ajax.Autocompleter("f_from","from_choices",site+"ticket/countries/ajax",{paramName:"value",minChars:1});
fto=new Ajax.Autocompleter("f_to","from_choices2",site+"ticket/countries/ajax",{paramName:"value",minChars:1});
};

