var gDateRange = "RANGE1";
$(pageSetup);
function pageSetup() {
try {


var fromCode = getQueryValue("from").toLowerCase();

if(fromCode) {

$("#deals").click(function() {setFocus("DEALS");});
$("#dealsTab").click(function() {setFocus("DEALS");});

$("#hotels").click(function() {setFocus("HOTELS");});
$("#hotelsTab").click(function() {setFocus("HOTELS");});


hideAllFares();








$("input[name='travelDateSelect']").click(function() { refreshPrices(); });


refreshPrices()

}

var flightHeight = $(".flightsPod .podBody").height();
$(".hotelsPod .podBody").css('height', flightHeight);

}

catch(e) {

alert(e.toString());
}
}
function isPostPin() {
var isPostpin = false;
if(document.nav_form.logintype.value != 'public') {
isPostpin = true;
}
return(isPostpin);
}
function hideAll()
{
}
function outputData()
{
}
function hideAllFares()
{

$("#cityFares div").hide();
}
function refreshPrices()
{
var departureTimeSpan = $("input[name='travelDateSelect']:checked").val();
if( departureTimeSpan == "travelDates1" )
{
gDateRange = "RANGE1";
}
else if( departureTimeSpan == "travelDates2" )
{
gDateRange = "RANGE2";
}
hideAllFares();

if( gDateRange == "RANGE1" )
{
$("#allDates1").show();
$("#allDates1 div").show();
}
else if( gDateRange == "RANGE2" )
{
$("#allDates2").show();
$("#allDates2 div").show();
}
}
$(document).ready(function() {
if(isPostPin()) {
$("#ecLogin").hide();
}
});

