function dw(s) {
  document.write(s)
}

//  =================  //
//  ===  Courses  ===  //
//  =================  //

function courseEntryCreate(name, title, relURL, relSubDir) {
  this.name = name
  this.title = title
  this.relURL = relURL
  this.relSubDir = relSubDir
}

function labEntryCreate(when, where) {
  this.when = when
  this.where = where
}

function timeSlotEntryCreate(course, section, where, webLinks, textbook, prerequisites, semesterGrade, topics) {
  this.course = course
  this.section = section
  this.where = where
  this.webLinks = webLinks
  this.textbook = textbook
  this.prerequisites = prerequisites 
  this.semesterGrade = semesterGrade
  this.topics = topics
}

//  Terms
var FALL = 0
var SPRING = 1
var SUMMER = 2

//  Time Slots
var MAX_TIME_SLOT = 2
var TIME_SLOT_1 = 0
var TIME_SLOT_2 = 1
var TIME_SLOT_3 = 2

//  Class Table
var CLASS = new Array()
for (var term = FALL; term <= SUMMER; term++) CLASS[term] = new Array()

//  Lab Table
var LAB = new Array()
for (var term = FALL; term <= SUMMER; term++) LAB[term] = new Array()

//  What the time slots are called.
var HOURS = new Array()
for (term = FALL; term <= SUMMER; term++) HOURS[term] = new Array()

//  What the terms are called.
var TERM_NAME = new Array()
TERM_NAME[FALL] = 'Fall'
TERM_NAME[SPRING] = 'Spring'
TERM_NAME[SUMMER] = 'Summer'

//  Office Hours
var OFFICE_HOURS = new Array()

//  Special Days for All Sections
var SPECIAL_DAYS = new Array()
for (term = FALL; term <= SUMMER; term++) SPECIAL_DAYS[term] = new Array()

//  Section-Specific Special Days
var SECTION_SPECIAL_DAYS = new Array()
for (term = FALL; term <= SUMMER; term++) {
  SECTION_SPECIAL_DAYS[term] = new Array()
  for (time_slot = 0; time_slot <= MAX_TIME_SLOT; time_slot++) 
    SECTION_SPECIAL_DAYS[term][time_slot] = new Array()
}

//  Exams
var MAX_NUM_TIME_SLOTS = 3
var EXAM = new Array()
for (term = FALL; term <= SUMMER; term++) {
  EXAM[term] = new Array()
  for (timeSlot = TIME_SLOT_1; timeSlot < MAX_NUM_TIME_SLOTS; timeSlot++) EXAM[term][timeSlot] = new Array()
}

//  Define courses.
var MAT1214 = new courseEntryCreate("MAT 1214", "Calculus I", "mat1214.html", "mat1214")
var MAT1223 = new courseEntryCreate("MAT 1223", "Calculus II", "mat1223.html", "mat1223")
var MAT2213 = new courseEntryCreate("MAT 2213", "Calculus III", "mat2213.html", "mat2213")

var MAT3013 = new courseEntryCreate("MAT 3013", "Foundations of Mathematics", "mat3013.html", "mat3013")
var MAT3213 = new courseEntryCreate("MAT 3213", "Foundations of Analysis", "mat3213.html", "mat3213")

var MAT3243 = new courseEntryCreate("MAT 3233", "Calculus for Applications", "mat3243.html", "mat3243")
var MAT3633 = new courseEntryCreate("MAT 3633", "Numerical Analysis", "mat3633.html", "mat3633")
var MAT4213 = new courseEntryCreate("MAT 4213", "Real Analysis I", "mat4213.html", "mat4213")
var MAT5283 = new courseEntryCreate("MAT 5283", "Linear Algebra and Matrix Theory", "mat5283.html", "mat5283")
var MAT4223 = new courseEntryCreate("MAT 4223", "Real Analysis II", "mat4223.html", "mat4223")
var MAT5603 = new courseEntryCreate("MAT 5603", "Numerical Analysis", "mat5603.html", "mat5603")
var MAT4273 = new courseEntryCreate("MAT 4273", "Topology", "mat4273.html", "mat4273")


