// Russell Thompson
// Project: The Florida Mall Hotel
// Page: JavaScript Code All Pages
// April 2005 - v1.0

// this goTo works from all pages except index.html
// also see function goToFromIndex below
function goTo(theLocation) 
	{
		switch(theLocation)
		{
			case "overview":
				var theURL = "../index.html";
			break;

			case "accommodations":
				var theURL = "accommodations.html";
			break;

			case "meetings":
				var theURL = "meetings.html";
			break; 

			case "weddings":
				var theURL = "weddings.html";
			break; 

			case "ratesPackages":
				var theURL = "http://www.thefloridahotelorlando.com/pages/ratesPackages.html";
			break; 

			case "dining":
				var theURL = "dining.html";
			break; 

			case "servicesAmenities":
				var theURL = "servicesAmenities.html";
			break;

			case "areaInformation":
				var theURL = "areaInformation.html";
			break;

			case "mapsDirections":
				var theURL = "mapsDirections.html";
			break;

			case "Opportunities":
				var theURL = "opportunities.php";
			break;
			
			case "pressRoom":
				var theURL = "pressRoom.html";
			break;
			
			case "specials":
				var theURL = "specials.html";
			break;
			
			case "contactUs":
				var theURL = "contactUs.html";
			break;
			
			case "salesStaff":
				var theURL = "salesStaff.html";
			break;
			
			case "meetingFacilities":
				var theURL = "meetings_facilities.html";
			break;
			
			case "meetingServices":
				var theURL = "meetings_services.html";
			break;
			
			case "meetingMenus":
				var theURL = "meetings_menus.html";
			break;
			
			case "meetingRFP":
				var theURL = "rfp.html";
			break;
			
			case "weddingFacilities":
				var theURL = "wedding_facilities.html";
			break;
			
			case "weddingServices":
				var theURL = "wedding_services.html";
			break;
			
			case "weddingMenus":
				var theURL = "wedding_menus.html";
			break;
			
			case "weddingRequestBrochure":
				var theURL = "wedding_brochure.html";
			break;
			
			case "weddingHelpfulInformation":
				var theURL = "wedding_information.html";
			break;
		}
		window.location.href = theURL;
	}
	
	function goToFromIndex(theLocation) 
	{
		switch(theLocation)
		{
			case "overview":
				var theURL = "index.html";
			break;

			case "accommodations":
				var theURL = "pages/accommodations.html";
			break;

			case "meetings":
				var theURL = "pages/meetings.html";
			break; 

			case "weddings":
				var theURL = "pages/weddings.html";
			break; 

			case "ratesPackages":
				var theURL = "http://www.thefloridahotelorlando.com/pages/ratesPackages.html";
			break; 

			case "dining":
				var theURL = "pages/dining.html";
			break; 

			case "servicesAmenities":
				var theURL = "pages/servicesAmenities.html";
			break;

			case "areaInformation":
				var theURL = "pages/areaInformation.html";
			break;

			case "mapsDirections":
				var theURL = "pages/mapsDirections.html";
			break;

			case "Opportunities":
				var theURL = "pages/opportunities.php";
			break;
			
			case "specials":
				var theURL = "pages/specials.html";
			break;
			
			case "pressRoom":
				var theURL = "pages/pressRoom.html";
			break;
			
			case "contactUs":
				var theURL = "pages/contactUs.html";
			break;
			
			case "salesStaff":
				var theURL = "pages/salesStaff.html";
			break;
		}
		window.location.href = theURL;
	}
	
	function qualifiedGoTo(theLocation) 
	{
		switch(theLocation)
		{
			case "overview":
				var theURL = "http://www.thefloridamallhotel.com/index.html";
			break;

			case "accommodations":
				var theURL = "http://www.thefloridamallhotel.com/pages/accommodations.html";
			break;

			case "meetings":
				var theURL = "http://www.thefloridamallhotel.com/pages/meetings.html";
			break; 

			case "weddings":
				var theURL = "http://www.thefloridamallhotel.com/pages/weddings.html";
			break; 

			case "ratesPackages":
				var theURL = "http://reservations.ihotelier.com/crs/p_index.cfm?hotelid=4390";
			break; 

			case "dining":
				var theURL = "http://www.thefloridamallhotel.com/pages/dining.html";
			break; 

			case "servicesAmenities":
				var theURL = "http://www.thefloridamallhotel.com/pages/servicesAmenities.html";
			break;

			case "areaInformation":
				var theURL = "http://www.thefloridamallhotel.com/pages/areaInformation.html";
			break;

			case "mapsDirections":
				var theURL = "http://www.thefloridamallhotel.com/pages/mapsDirections.html";
			break;

			case "opportunities":
				var theURL = "http://www.thefloridamallhotel.com/pages/opportunities.php";
			break;
			
			case "specials":
				var theURL = "http://reservations.ihotelier.com/crs/p_index.cfm?hotelid=4390";
			break;
			
			case "pressRoom":
				var theURL = "http://www.thefloridamallhotel.com/pages/pressRoom.html";
			break;
			
			case "contactUs":
				var theURL = "http://www.thefloridamallhotel.com/pages/contactUs.html";
			break;
		}
		window.location.href = theURL;
	}
	
	function launchIt(theIt) 
	{

		self.name = "godWindow";
		switch(theIt)
		{
			case "capacityChart":
				var theURL = "capacity_popup.html";
			break;
		}
		var theOptions = "";
		newWindow = window.open(theURL, "demoWindow", theOptions);
	}
	
	function launchItSpecial(theIt)
	{
		switch(theIt)
		{
			case "capacityChart":
				self.name = "godWindow";
				var theURL = "capacity_popup.html";
				var theOptions = "resizable=yes,height=500,width=602,status=no,scrollbars=yes,toolbar=no,menubar=no";
				demoWindow = window.open(theURL, "demoWindow", theOptions);
			break;
		}
	}