// This is the "Database" for now

var Statuses = ["icon-present.gif","icon-absent.gif","icon-late.gif"];

//	0			1				2			3   4	  5		  6		  7	   8	     9			10			11	  12
// Name, presence index, alert indicator, sex, dob, weight, height, eyes, hair,  allergies, medications, address,note
var Students = [["Anderson, Billy", 0, true, "Male", "Aug-11-1992", "55 kg", "160 cm", "Brown", "Blonde", "Aspirin", "Amox once every 6 month", "48 Maple Road<br />Apt. 401<br />Kanata, ON, K1K 1E6", "Billy is sick and will not be in class for the rest of the week"], 
				["Arsenault, Joan", 0, false], 
				["Baker, Robert", 0, false], 
				["Carlson, Donny", 0, false], 
				["Davidson, Brent", 0, false], 
				["Davies, Karen", 0, false], 
				["Finch, Madison", 0, false], 
				["Findlay, Ian", 0, false], 
				["Finner, Mike", 0, false], 
				["Fisher, Andrew", 0, false], 
				["Georgeous, Samir", 0, false], 
				["Hemerald, Susanna", 0, false], 
				["Klench, Hesus", 0, false], 
				["Morrolle, Rita", 0, false], 
				["Peterson, Patric", 0, false], 
				["Ronaldo, Rosa", 0, false], 
				["Silvesti, Robert", 0, false], 
				["Taurent, John", 0, false],
				["Twist, Oliver", 0, false], 
				["Tresur, Micha", 0, false], 
				["Zennert, Maria", 0, false]];

// title, alert level, date, time, location, subject, message, phone number, confirm attendance indicator
var Bulletin = [["Meeting tonight", 1, "Mar 22", "7:00 pm", "Auditorium", "Bus Service", "Bus drivers with special education and noon-time runs will no longer be contacting the students personally prior to classes start-up.", "0001", true], 
				["Field trip registration", 0, "Mar 21", "All day", "C1034", "Field trip", "The cost is 5 dollars, donations are welcome. Lots of chocolates for sale.", "0002"], 
				["Volunteers needed", 0, "from Mar 21", "", "C1034", "Yard cleaning", "Contact: Mr. Ricardo. Hours 9:00 am to 2:30 pm. References will be available.", "0003"], 
				["Lost keys", 1, "Mar 21", "", "First floor", "Begging to return", "Please people!!! Return my keys for generous reward of $5 (five dollars) if you found them! Or my dad will kill me!<br />Ricardo Jr.", "0003"], 
				["Safety seminar", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["New coffee machine", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Parking lot security", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Your lights are on", 0, "Mar 21", "2h and counting", "Parking lot", "Lights on", "Nissan Versa licence plate XLS&nbsp;213. Turn off your lights, save the battery!!", "0004"], 
				["Car for sale", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Art gallery", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Lock down updates", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["McGill Idol: register", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Cheerleaders needed", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Italian bistro opened", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["CSI series: new", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Smoking detectors", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["New gym hours", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Mrs Jackson's funeral", 0, "Mar 21", "-", "-", "-", "-", "0004"], 
				["Free stuff at the pit", 0, "Mar 21", "-", "-", "-", "-", "0004"]];

var Rooms =	   [["Meeting Room 105", "Conference", "12 max", "Wireless", "Yes", "Mar 22, 10:30am<br />Mar 22, 11:30am<br />Mar 22, 2:30pm<br />Mar 22, 7:30pm<br />Mar 23, 10:30am"],
				["Meeting Room 106", "", "12 max", "Cable", "Yes", ""],
				["Meeting Room 107", "", "12 max", "Cable", "Yes", ""],
				["Meeting Room 108", "", "12 max", "Cable", "Yes", ""],
				["Theater A", "", "12 max", "Cable", "Yes", ""],
				["Theater B", "", "12 max", "Cable", "Yes", ""],
				["Main Auditorium", "", "12 max", "Cable", "Yes", ""],
				["Staff Lounge", "", "12 max", "Cable", "Yes", ""],
				["Gym", "", "12 max", "Cable", "Yes", ""]];

// name, grade_label, presence_status("unknown", "busy", "away", "online", "offline"), extension
var Staff =	   [["Annmarie Adams", "Arch.1103", "busy", "2"],
				["Brent Snow", "SYTAcom", "away", "1"],
				["Catherine Bleau", "Engl.1103", "offline", "3"],
				["Prof. Gerald Ratzer", "Comp.Sci.301", "online", "4"],
				["Hannah Michalska", "Eng.1107", "unknown", "5"],
				["Henry G. Leighton", "Sci.1100", "away", "2"],
				["Prof. James Cline", "Phys.1101", "online", "2"],
				["John Boisvert", "Eng.1101", "offline", "2"],
				["Dr. Kevin Waschke", "Med.301", "offline", "2"],
				["Lisa Jahnson", "Comp.Sci.1109", "online", "2"],
				["Louisa Peres", "Comp.Sci.1109", "busy", "2"],
				["Patric Hughes", "Comp.Sci.1102", "away", "2"],
				["Ralph Curtis", "Comp.Sci.1108", "unknown", "2"],
				["Robert Salvatori", "Comp.Sci.1105", "offline", "2"],
				["Rosa Ritazza", "Comp.Sci.1104", "busy", "2"],
				["Steve Hart", "Comp.Sci.11010", "online", "2"],
				["Steven Klanch", "Comp.Sci.11011", "away", "2"],
				["Susanna Hemera", "Comp.Sci.1109", "away", "2"],
				["Tom Sawer", "Comp.Sci.1102", "unknown", "2"],
				["Zurab Osser", "Comp.Sci.1131", "unknown", "2"]
			   ];
				
//=== CANNED BROADCASTS AND DISTRESS MESSAGES =========================================================================

// This is the list of announce-only voicemail numbers. The first item is default,
// it is dialed in case level 2 or 3 alert (broadcast) or duress
// has an empty number
// extension, description
var VoicemailNumbers = [["1730", "siren"],
						["1720", "fire"],
						["1710", "bomb"],
						["1730", "gun"]];
// Do not delete!
var DefaultNumber = VoicemailNumbers[0][0];


// CannedAlerts and CannedDuresses MUST BE OF THE SAME STRUCTURE!!!

// Only level 2 or 3 alerts will dial the voicemail number!!!

// level (1,2,3; 3 being the most serious), subject, message, image_url, index_in_VoicemailNumbers
var CannedAlerts = 
			   [
				[3, "Fire!", "EVACUATE the building by the nearest safe exit.<br />DO NOT use the lifts.", "images/map.gif",							1],
				[3, "Bomb Threat", "Please leave the building immediately. See the map below for evacuation path.", "images/map.gif",					2],
				[3, "Gun Threat", "Lockdown! Lock all doors immediately.", "",																			3],
				[1, "Intruder", "There is a stranger wandering in the school building. A reward of $1000 for those who catch him.", "",					0],
				[1, "Lock Down", "Due to severe weather conditions the school is locking down starting right now.", "images/header-image.gif",			0],
				[1, "Storm Warning", "Baby Katrina is somewhere near Brookstreet. Beware!", "",															0],
				[1, "Flood Warning", "Oh, come on, not again!..<br />I just bought a new car.<br />BTW don't bother swimming to school either.", "",	0],
				[1, "Medical Emergency", "Immediate medical assistance needed!", "",																	0],
				[1, "School Closure", "The school will be closed during March break on the following days:<br />March 3 to March 7.<br />Please ensure students remove all personal items as there will not be any access to the building during this period.", "",0]
			   ];

// level (1,2,3; 3 being the most serious), subject, message, image_url, index_in_VoicemailNumbers 
var CannedDuresses = 
			   [
				[1, "Send Security", "The room has requested security presence. All available security guards please proceede into this room for immediate assistance.", "",0],
				[1, "Send Medical Help", "There is a medical emergency in progress. Immediate medical attention needed.", "",												0],
				[1, "Monitor this Room", "The room has requested close monitoring due to emergency situation in progress. Immediate attention needed.", "",					0],
				[1, "Start Recording", "The room has requested to start recording due to the current dangerous situation.", "",												0]
			   ];


