var store = new Array();
store[0] = new Array(
	'Select Hotel','/contact_us.html',
	'Inquire','/contact_us.html'
);
store[1] = new Array(
	'Select Hotel','/contact_us.html',
    'Abu Dhabi','/hotels/uae/abu_dhabi/index.html',
	'Ajman','/hotels/uae/ajman/index.html',
	'Al Ain','/hotels/uae/al_ain/index.html',
	'Jumeirah Dubai','/hotels/uae/dubai/jumeirah/index.html',
	'Deira Dubai','/hotels/uae/dubai/deira_dubai/index.html',
	'Bur Dubai','/hotels/uae/dubai/bur_dubai/index.html',
	'Sheikh Zayed Dubai','/hotels/uae/dubai/sheikh_zayed/index.html',
	'Desert Area Dubai','/hotels/uae/dubai/desert_area/bab_al_shams/index.html',
	'Jebel Ali Dubai','/hotels/uae/dubai/jebel_ali/index.html',
	'Karama Dubai','/hotels/uae/dubai/karama/karama_hotel/index.html',
	'Fujairah','/hotels/uae/fujairah/index.html',
	'Ras Al Khaiman','/hotels/uae/ras_al_khaiman/index.html',
	'Sharjah','/hotels/uae/sharjah/index.html',
	'Umm Al Quwain','/hotels/uae/umm_al_quwain/index.html');

store[2] = new Array(
	'Select Hotel','/contact_us.html',
	'Baa Atoll ','/hotels/maldives/baa_atoll/index.html',
	'Dhaalu Atoll ','/hotels/maldives/dhaalu_atoll/index.html',
	'Faafu Atoll ','/hotels/maldives/faafu_atoll/index.html',
	'Lhaviyani Atoll ','/hotels/maldives/lhaviyani_atoll/index.html',
	'Meemu Atoll ','/hotels/maldives/meemu_atoll/index.html',
	'North Ari Atoll ','/hotels/maldives/north_ari_atoll/index.html'
);
store[3] = new Array(
	'Select Hotel','/contact_us.html',
	'Boracay','/hotels/philippines/boracay/index.html',
	'Makati','/hotels/philippines/makati/index.html',
	'Manila','/hotels/philippines/manila/index.html'
);
store[4] = new Array(
	'Select Hotel','/contact_us.html',
	'Inquire','/contact_us.html'
);

function init()
{
	optionTest = true;
	lgth = document.forms[0].second.options.length - 1;
	document.forms[0].second.options[lgth] = null;
	if (document.forms[0].second.options[lgth]) optionTest = false;
}


function populate()
{
	if (!optionTest) return;
	var box = document.forms[0].first;
	var number = box.options[box.selectedIndex].value;
	if (!number) return;
	var list = store[number];
	var box2 = document.forms[0].second;
	box2.options.length = 0;
	for(i=0;i<list.length;i+=2)
	{
		box2.options[i/2] = new Option(list[i],list[i+1]);
	}
}

function go()
{
	if (!optionTest) return;
	box = document.forms[0].second;
	destination = box.options[box.selectedIndex].value;
	if (destination) top.location.href = destination;
}
