function hideResults(id) {
    toggleDisplay(id+"Results");
    toggleDisplay(id+"Hide",id+"Show");
}

function showResults(id) {
    if ($(id+"Results").getAttribute("loaded") == "true") {
       toggleDisplay(id+"Results");
    } else {
       eval($(id+"Results").getAttribute("loadScript"));
    }
    toggleDisplay(id+"Hide",id+"Show");
}

function loadTripResults(type, cityId) {
    $(type+"Results").innerHTML = "<small>Loading...</small>";
    $(type+"Results").style.display = "block";
    new Effect.Pulsate(type+"Results");
    xajax_loadTripResults(cityId, type);
}

function loadUserResults(type, cityId) {
    $(type+"Results").innerHTML = "<small>Loading...</small>";
    $(type+"Results").style.display = "block";
    new Effect.Pulsate(type+"Results");
    xajax_loadUserResults(cityId, type);
}