//Loops through the 6 featured tours and displays them if there is content in the heading
function hideTours() {
	for (i=1; i<=6; i++) {
		if (document.getElementById("tour_" + i + "_title").innerHTML != '') {
			document.getElementById("tour_" + i).style.display = "block";
		}
	}
}

//Generates a list of months and years (current and next) and populates the departure month drop down box on the search form
function InitializeDepartureMonthOptions() {
	var currentDate, currentYear, nextYear, currentMonth, selectElement, totalCurrentMonths;
	selectElement = document.form_tour_search.tour_departure_month;
	totalCurrentMonths = 0;
	departureMonths = new Array();
	months = new Array(12);
	months[1] = 'January';
	months[2] = 'February';
	months[3] = 'March';
	months[4] = 'April';
	months[5] = 'May';
	months[6] = 'June';
	months[7] = 'July';
	months[8] = 'August';
	months[9] = 'September';
	months[10] = 'October';
	months[11] = 'November';
	months[12] = 'December';
	currentDate = new Date();
	currentMonth = currentDate.getMonth() + 1;
	currentYear = currentDate.getYear();
	nextYear = currentYear + 1;
	for (i = currentMonth; i <= 12; i++) {
		totalCurrentMonths = totalCurrentMonths + 1;
		departureMonths[totalCurrentMonths] = months[i] + " " + currentYear;
	}
	for (i = 1; i <= 12; i++) {
		totalCurrentMonths = totalCurrentMonths + 1;
		departureMonths[totalCurrentMonths] = months[i] + " " + nextYear;
	}
	for (i=1; i<departureMonths.length; i++)   {
		selectElement.options[i] = new Option(departureMonths[i], departureMonths[i]);
	}
}
