//--------------------------------------
// HL_Scripts - Contains scripts used by the Hotel Liberty home page.
//
// Author: Jesse Jimz (jesse.jimz@gmail.com)
// Created: 08/02/2008
// Last Modified: 08/05/2008
//----------------------------------------

// VARS
//__________________________________
var pageLobby = 'views360/lobby.html';
var pageExterior = 'views360/exteriorS.html';
var page2Bed = 'views360/2bed.html';
var pageKing = 'views360/king.html';
var termsPage = 'terms.html';
var privacyPage = 'privacy.html';

var CheckoutUrl = '../checkout_jesse.php';

// FUNCTIONS
//__________________________________
function PopLobby360View()
{
	this.open(pageLobby,'LobbyWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=480,height=550');
}

function PopExterior360View()
{
	this.open(pageExterior,'LobbyWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=480,height=550');
}

function Pop2Bed360View()
{
	this.open(page2Bed,'LobbyWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=480,height=550');
}

function PopKing360View()
{
	this.open(pageKing,'LobbyWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=480,height=550');
}

function PopTerms()
{
	this.open(termsPage,'TermsWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=500,height=600');
}

function PopPrivacy()
{
	this.open(privacyPage,'TermsWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=500,height=600');
}

// Pops the reservation make page. Receiving tempRoomID, _arriveDate, _numNights, tempTotAmount, tempTaxAmount
function PopResMakePage(theUrlData)
{
	//DEBUG
	//window.alert("Received data from the Flash App!");	
	
	CheckoutUrl = CheckoutUrl+theUrlData;
	//window.alert(CheckoutUrl);
	
	this.open(CheckoutUrl,'CheckoutWindow','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=600,height=450');
}

function ShowAlert(theMessage)
{
	window.alert(theMessage);
}