function setCurrentClass(site)
{
    var url  = window.location.href.toString();
    var menu = document.getElementById("menu");
    var list = menu.childNodes;
    for (var i = 0; i < list.length; i++) 
    {
        if(list[i].tagName == "LI")
        {
            var link = list[i].childNodes[0];
            if(link.tagName == "A")
            {
                if(link.href == "http://www." + site + "/" || link.href == "http://" + site + "/" 
                    || link.href.indexOf("index.html") != -1)
                {
                    if(url.indexOf("index.html") != -1 || url == "http://www." + site + "/" || url == "http://" + site + "/")
                    {
                        link.className = "current";
                        break;
                    }
                }
                else
                {
                    if(url.indexOf(link.href) != -1)
                    {
                        link.className = "current";
                        break;
                    }
                }
            }
        }
    }
}

function showCities(id) {
  //var citiesWindow = window.open("cities/"+id,"citiespwin","width=500,height=480,left=400,top=50,scrollbars=yes,menubar=no");
  var citiesWindow = window.open("city/" + id + ".htm","citiespwin","width=500,height=480,left=400,top=50,scrollbars=yes,menubar=no");
  citiesWindow.focus();
}


$(document).ready(function(){
    $("#form-submit").click(function(){
        $("#flight-search").submit();
    });
});
