//--------------------------------------------------------------------
// Module Name: Fees.js
// Created by:  G. Ajamian
// Copywrite of G. Ajamian and the Arabic Baptist Church.
//--------------------------------------------------------------------
//
// This script is used to centralize the fees and reduce the 
// number of database lookups. To be used by all pages
// requiring to display conference costs.
//
//--------------------------------------------------------------------



//--------------------------------------------------------------------
// var MayConf :	Global Variable
//	Which Conference? If May = true, else = false
//	Used in various places in registration
// 
// var 
//--------------------------------------------------------------------
var MayConf = false;


//--------------------------------------------------------------------
// Conference Costs
//--------------------------------------------------------------------
function SPlanRec (strPlanName, iUnder4, i4TO10, iOver10, strPlanDesc) {
	this.strPlanName = strPlanName;
	this.iUnder4 = iUnder4;
	this.i4TO10 = i4TO10;
	this.iOver10 = iOver10;
	this.strPlanDesc = strPlanDesc;
}
					
//	document.getElementById("RunTestScript").innerHTML = "test";


if (MayConf)
{
	// price package costs
	var aDormCost = [	new SPlanRec ("Friday Package",   0, 100, 150, "3 Nights / 8 Meals + Registration (Per Person)"), 
						new SPlanRec ("Saturday Package", 0, 85, 135, "2 Nights / 7 Meals + Registration (Per Person)")];
	var dormArraySize = 2;

	var aSuiteCost = [	new SPlanRec ("Friday Package",   0, 140, 205, "3 Nights / 8 Meals + Registration (Per Person)"),
						new SPlanRec ("Saturday Package", 0, 105, 185, "2 Nights / 7 Meals + Registration (Per Person)")];
	var suiteArraySize = 2;

	var aHotelCost = [	new SPlanRec ("Friday Lodging Cost", 0, 0, 340, "3 Night (Cost Per Room)"),
						new SPlanRec ("Friday Individual Cost", 0, 30, 75, "8 Meals + Registration (Cost Per Person)")];
	var hotelArraySize = 2;

	var aMealCost = [	new SPlanRec ("Meal Plan 1", 0, 33, 75, "8 Meals + Registration"),
						new SPlanRec ("Meal Plan 2", 0, 30, 70, "7 Meals + Registration"),
						new SPlanRec ("Breakfast", 0, 3, 6, "&nbsp;"),
						new SPlanRec ("Lunch", 0, 4, 9, "&nbsp;"),
						new SPlanRec ("Dinner", 0, 6, 11, "&nbsp;")];
	var mealArraySize = 5;

	// Misc Constants
	var cREGISTPERDAY = 10;
	var cREGISTRATION = 20;

	// misc housekeeping 
	var WhichConf	= "The Annual Arabic Baptist Church Conference";
	var WhichHoliday	= "Memorial Day Weekend";
	var ConfDates	= "May 28 - 31, 2010";
}

else
{
	var aDormCost = [	new SPlanRec ("Friday Package",   175, 175, 175, "3 Nights / 8 Meals + Registration (Per Person)")]; 

	var WhichConf	= "The Annual Sha-bee-beh Conference";
	var WhichHoliday	= "Labor Day Weekend";
	var ConfDates	= "September 3 - 6, 2010";
}


//--------------------------------------------------------------------
// Add delay to ensure values are getting loaded
//--------------------------------------------------------------------
var Done = new Date().getTime() + 50
 while (new Date().getTime() < Done) ;
