<!--

// DYNAMICALLY UPDATE MENUS

// Update menu if value is set
function checkHotel() {
if (document.Search.Category.value != '') {
hotelList();
}
}

// Update hotel list based on catgeory 
function hotelList() {

var hotel = document.Search.Hotel;
var category = document.Search.Category;
var categoryValue = document.Search.Category.value;
var type = multiChoice(document.Search.elements['HolidayType']);

// Create array
var hotels = new Array();
if (categoryValue == 'VAL') {
hotels[0]=['Disney\'s Value Hotels...|','-----------------------------------------------------|','Disney\'s All-Star Movies Resort|2501','Disney\'s All-Star Music Resort|2502','Disney\'s All-Star Sports Resort|2503','Disney\'s Pop Century Resort|2504']
}
else if (categoryValue == 'MOD') {
hotels[0]=['Disney\'s Moderate Hotels...|','-----------------------------------------------------|','Disney\'s Caribbean Beach Resort|7501','Disney\'s Coronado Springs Resort|7502','Disney\'s Port Orleans Resort - French Quarter|7503','Disney\'s Port Orleans Resort - Riverside|7504','Disney\'s Fort Wilderness Resort|5505']
}
else if (categoryValue == 'DLX') {
hotels[0]=['Disney\'s Deluxe Hotels...|','-----------------------------------------------------|','Disney\'s Animal Kingdom Lodge|8501','Disney\'s Beach Club Resort|8502','Disney\'s Boardwalk Inn|8503','Disney\'s Contemporary Resort|8504','Disney\'s Grand Floridian Resort & Spa|8505','Disney\'s Polynesian Resort|8506','Disney\'s Wilderness Lodge|8507','Disney\'s Yacht Club Resort|8508']
}
else if (categoryValue == 'HAH') {
hotels[0]=['Disney\'s Deluxe Villa Resorts...|','-----------------------------------------------------|','Disney\'s Beach Club Villas|5504','Disney\'s Boardwalk Villas|5501','Disney\'s Old Key West Resort|5502','Disney\'s Saratoga Springs Resort & Spa|5506','The Villas at Disney\'s Wilderness Lodge|5503','Bay Lake Tower At Disney\'s Contemporary Resort|5508','Disney\'s Animal Kingdom Villas - Kidani Village|5509']
}
else if (categoryValue == 'SWD') {
hotels[0]=['Other Select Walt Disney World Resort Hotels...|','-----------------------------------------------------|','Walt Disney World Dolphin Hotel|6502','Walt Disney World Swan Hotel|6501']
}
else if (categoryValue == 'GNB') {
hotels[0]=['Non-Disney Hotels...|','-----------------------------------------------------|','Embassy Suites (International Drive)|9503','Staybridge Suites (International Drive)|9502','Staybridge Suites (Lake Buena Vista)|9501','Royal Plaza (Downtown Disney)|4502','Quality Suites (Lake Buena Vista)|9507','Comfort Inn (Lake Buena Vista)|9509','Champions World Resort (Kissimmee)|9510','Holiday Villas (Kissimmee)|9513','Sheraton Vistana (Lake Buena Vista)|9514']
}
else { // Full list
// Check holiday type
if (type == 'HO') {
hotels[0]=['Search All Hotels...|','-----------------------------------------------------|','*** Disney\'s Value Hotels ***|','Disney\'s All-Star Movies Resort|2501','Disney\'s All-Star Music Resort|2502','Disney\'s All-Star Sports Resort|2503','Disney\'s Pop Century Resort|2504','-----------------------------------------------------|','*** Disney\'s Moderate Hotels ***|','Disney\'s Caribbean Beach Resort|7501','Disney\'s Coronado Springs Resort|7502','Disney\'s Port Orleans Resort - French Quarter|7503','Disney\'s Port Orleans Resort - Riverside|7504','Disney\'s Fort Wilderness Resort|5505','-----------------------------------------------------|','*** Disney\'s Deluxe Hotels ***|','Disney\'s Animal Kingdom Lodge|8501','Disney\'s Beach Club Resort|8502','Disney\'s Boardwalk Inn|8503','Disney\'s Contemporary Resort|8504','Disney\'s Grand Floridian Resort & Spa|8505','Disney\'s Polynesian Resort|8506','Disney\'s Wilderness Lodge|8507','Disney\'s Yacht Club Resort|8508','-----------------------------------------------------|','*** Disney\'s Deluxe Villa Resorts ***|','Disney\'s Beach Club Villas|5504','Disney\'s Boardwalk Villas|5501','Disney\'s Old Key West Resort|5502','Disney\'s Saratoga Springs Resort & Spa|5506','The Villas at Disney\'s Wilderness Lodge|5503','Bay Lake Tower At Disney\'s Contemporary Resort|5508','Disney\'s Animal Kingdom Villas - Kidani Village|5509']	
} else {
hotels[0]=['Search All Hotels...|','-----------------------------------------------------|','*** Disney\'s Value Hotels ***|','Disney\'s All-Star Movies Resort|2501','Disney\'s All-Star Music Resort|2502','Disney\'s All-Star Sports Resort|2503','Disney\'s Pop Century Resort|2504','-----------------------------------------------------|','*** Disney\'s Moderate Hotels ***|','Disney\'s Caribbean Beach Resort|7501','Disney\'s Coronado Springs Resort|7502','Disney\'s Port Orleans Resort - French Quarter|7503','Disney\'s Port Orleans Resort - Riverside|7504','Disney\'s Fort Wilderness Resort|5505','-----------------------------------------------------|','*** Disney\'s Deluxe Hotels ***|','Disney\'s Animal Kingdom Lodge|8501','Disney\'s Beach Club Resort|8502','Disney\'s Boardwalk Inn|8503','Disney\'s Contemporary Resort|8504','Disney\'s Grand Floridian Resort & Spa|8505','Disney\'s Polynesian Resort|8506','Disney\'s Wilderness Lodge|8507','Disney\'s Yacht Club Resort|8508','-----------------------------------------------------|','*** Disney\'s Deluxe Villa Resorts ***|','Disney\'s Beach Club Villas|5504','Disney\'s Boardwalk Villas|5501','Disney\'s Old Key West Resort|5502','Disney\'s Saratoga Springs Resort & Spa|5506','The Villas at Disney\'s Wilderness Lodge|5503','Bay Lake Tower At Disney\'s Contemporary Resort|5508','Disney\'s Animal Kingdom Villas - Kidani Village|5509','-----------------------------------------------------|','*** Other Select Walt Disney World Resort Hotels ***|','Walt Disney World Dolphin Hotel|6502','Walt Disney World Swan Hotel|6501','-----------------------------------------------------|','*** Non-Disney Hotels ***|','Embassy Suites (International Drive)|9503','Staybridge Suites (International Drive)|9502','Staybridge Suites (Lake Buena Vista)|9501','Royal Plaza (Downtown Disney)|4502','Quality Suites (Lake Buena Vista)|9507','Comfort Inn (Lake Buena Vista)|9509','Champions World Resort (Kissimmee)|9510','Holiday Villas (Kissimmee)|9513','Sheraton Vistana (Lake Buena Vista)|9514']
}
}
// Now update menu
hotel.options.length=0
for (i=0; i<hotels[0].length; i++)
hotel.options[hotel.options.length]=new Option(hotels[0][i].split('|')[0], hotels[0][i].split('|')[1])
}

// Change category menu based on holiday type
function hotelType() {
var category = document.Search.Category;
var categories = new Array();
var type = multiChoice(document.Search.elements['HolidayType']);
// Hotel Only
if (type == 'HO') {
categories[0]=['Search All Hotel Categories...|FLO','-----------------------------------------------------|FLO','Disney\'s Value Hotels|VAL','Disney\'s Moderate Hotels|MOD','Disney\'s Deluxe Hotels|DLX','Disney\'s Deluxe Villa Resorts|HAH']
}
// Hotel  Ticket
else {
categories[0]=['Search All Hotel Categories...|FLO','-----------------------------------------------------|FLO','Disney\'s Value Hotels|VAL','Disney\'s Moderate Hotels|MOD','Disney\'s Deluxe Hotels|DLX','Disney\'s Deluxe Villa Resorts|HAH','Other Select Walt Disney World Resort Hotels|SWD','Non-Disney Hotels|GNB']
}
// Now update menu
category.options.length=0
for (i=0; i<categories[0].length; i++)
category.options[category.options.length]=new Option(categories[0][i].split('|')[0], categories[0][i].split('|')[1])
// Update hotels menu
hotelList();
}

// Disable hotels menu for Tickets Only
function holidayType() {
var type = multiChoice(document.Search.elements['HolidayType']);
// Air Inclusive
if (type == 'FH') {
window.location = "/?HolidayType=FH"
}
// Ticket Only
else if (type == 'TO') {
document.Search.Adults.disabled = true;
document.Search.Children.disabled = true;
document.Search.Infants.disabled = true;
document.Search.Category.disabled = true;
document.Search.Hotel.disabled = true;
// Text should be grey
document.getElementById('HotelCategory').className = 'grey';
document.getElementById('HotelAges').className = 'grey';
document.getElementById('HotelInfants').className = 'grey';
document.getElementById('HotelChildren').className = 'grey';
document.getElementById('HotelAdults').className = 'grey';
document.getElementById('HotelPax').className = 'grey';
// Disable child ages
var i
for (i = 1; i <= childrenActive; i++) {
var activeDiv;
var activeText;
activeDiv = 'ChildAge' + i;
activeText = 'childText' + i;
document.getElementById(activeDiv).disabled = true;
document.getElementById(activeText).className = 'grey';
}
} else {
document.Search.Adults.disabled = false;
document.Search.Children.disabled = false;
document.Search.Infants.disabled = false;
document.Search.Category.disabled = false;
document.Search.Hotel.disabled = false;
// Text should be black
document.getElementById('HotelCategory').className = 'blue';
document.getElementById('HotelAges').className = 'blue';
document.getElementById('HotelInfants').className = 'black';
document.getElementById('HotelChildren').className = 'black';
document.getElementById('HotelAdults').className = 'black';
document.getElementById('HotelPax').className = 'blue';
// Enable child ages
var i
for (i = 1; i <= childrenActive; i++) {
var activeDiv;
var activeText;
activeDiv = 'ChildAge' + i;
activeText = 'childText' + i;
document.getElementById(activeDiv).disabled = false;
document.getElementById(activeText).className = 'black';
}
// Check category
hotelType();
}
}

// -->