// This file is included in header.php, header_erde.php, header_fewo.php files one line above </head>
function VariablesTranslator(UrlString){
// NOTICE: if you make changes in this array you MUST make exactly the same changes in variables_translator_php.inc
    var VariablesArray = new Array();
/*
    var VariablesArray = new Array(
    "nurflug,tylko_lot",
    "termin,data_wyjazd",
    "ruecktermin,data_powrot",
    "verpflegung,wyzywienie",
    "zimmer,rodzaj_pokoju",
    "sportmoeglichkeiten,oferta_sportowa",
    "zielgebiets_kenner,id_regionu",
    "personen,podrozujacy",
    "formular,formularz",
    "detail,tryb",
    "sortierung,sortowanie",
    "hotelsortierung,sortowanie_hoteli",
    "quickf,szybkie_wyszukiwanie",
    "abflughafen,lotnisko_odlotu",
    "kategorie,kategoria_hotelu",
    "sportangebot,wybrana_oferta_sportowa",
    "familie_kinder,dla_rodziny"
    );
*/
/*
ALL KNOWN VARIABLES ARRAY:
"KID,CID",
"nurflug,flyonly",
"termin,triptime",
"te_g,triptime_imp",
"ruecktermin,returntime",
"rute_g,returntime_imp",
"verpflegung,feeding",
"vp_g,feeding_imp",
"zimmer,roomtype",
"zi_g,roomtype_imp",
"sportmoeglichkeiten,sportoffer",
"sm_g,sportoffer_imp",
"zielgebiets_kenner,destination_id",
"personen,traveller",
"anzahl_treffer_seite,anzahl_treffer_seite",
"engine,mode",
"formular,form",
"zielgebiets_kenner,destination_id",
"detail,detail",
"showresult,showresult",
"IFF,IFF",
"startposition,startposition",
"startposition_hotel,startposition_hotel",
"sortierung,sort",
"hotelsortierung,hotelsort",
"quickf,quicksearcher",
"agent,refferer",
"IFFOrt,IFFOrt",
"topRegion,topRegion",
"IDLand,IDLand",
"Laender_Ref_ID,Laender_Ref_ID",
"abflughafen,airport",
"ab_g,airport_imp",
"flugdauer,flugdauer",
"fl_g,fl_g",
"kategorie,hotelcategory",
"ka_g,hotelcategory_imp",
"sportangebot,sporttype",
"sp_g,sporttype_imp",
"familie_kinder,forfamily",
"fk_g,forfamily_imp",
"dauer,dauer",
"da_g,da_g",
"HotelBit,HotelBit",
"CRS,CRS",
"TVA,TVA",
"HBit,HBit"
*/
/*    var amp_mark = "";
    UrlStringOutput = new String(UrlString);
    //UrlStringSplit = UrlString.split("&");
    //for(c=0;c<UrlStringSplit.length;c++){
    for(a=0;a<VariablesArray.length;a++){
        VariablesArraySplit = VariablesArray[a].split(",");
        if(a>0) {
            amp_mark = "&";
        }
        UrlStringOutput = UrlStringOutput.replace(amp_mark+VariablesArraySplit[0]+"=",amp_mark+VariablesArraySplit[1]+"=");
    }
    //}
*/
//    return UrlStringOutput;
      return UrlString;
}

