// JavaScript Document
var semester = "FALL";

// this is the number of hours after NOON until the Problem Solving solution links are activated.  it could theoretically be a negative number as well.
setHourDelay(0);  	// starts at noon on MW, so need to delay until 5 pm on TR

// Make a link to the stellar home page (for gradebook, etc)
setStellar("http://stellar.mit.edu/S/course/8/fa09/8.02/");

// the scheduleMap defines the schedule type for each section, either MWF (Monday, Wednesday, Friday), or TRF (Tuesday, ThuRsday, Friday)
var scheduleMap = new Array();

scheduleMap["L01"] = "MWF";
//scheduleMap["L02"] = "MWF";
//scheduleMap["L03"] = "MWF";
//scheduleMap["L04"] = "MWF";
//scheduleMap["L05"] = "TRF";
//scheduleMap["L06"] = "TRF";
//scheduleMap["L07"] = "TRF";
//scheduleMap["L08"] = "TRF";
setNumSections(1);


// Insert start-of-term date here.
// Beware!!  Months are zero-indexed for date specifications!
// So January = month 0, December = Month 11.
// Years and days, however, are one-indexed.  So January 1st is month 0, day 1.
var startofterm = new Date(2009,8,6); //   Beginning date must be the sunday before the start of the term
var endofterm = new Date(2009,11,11); //    End date is one day after last day of classes

// "key dates" are specially marked on all section calendars with the string supplied in the functions below
var keyDates = new Array();
addKeyDate(new Date(2009,8,9), "FIRST DAY OF CLASSES");
addKeyDate(new Date(2009,9,1), "OPTIONAL:  Math (P)Review 32-082, 5-6 pm");
addKeyDate(new Date(2009,8,30), "EXAM 1");
addKeyDate(new Date(2009,9,9), "ADD DATE");
addKeyDate(new Date(2009,9,30), "EXAM 2");
addKeyDate(new Date(2009,9,16), "FAMILY WEEKEND");
addKeyDate(new Date(2009,10,18), "DROP DATE");
addKeyDate(new Date(2009,10,25), "EXAM 3");
addKeyDate(new Date(2009,11,9), "LAST DAY of CLASSES");
addKeyDate(new Date(2009,4,17), "FINAL EXAM WEEK");
addKeyDate(new Date(2009,4,18), "FINAL EXAM: 9am-12pm Johnson Track: upstairs");

// Initialize sections here
// Section method formats:
//FUNCTION: InitializeSection(sectionID,sched); 
//ARGUMENTS:
//sectionID is the section name as a string (ie. "L01")
//sched is the schedule type (ie. days that it meets) of that section, either "MWF" or "TRF"

//EXAMPLE:
//InitializeSection("L01","MWF");
function InitializeModules()
{
	modules[0] = new ClassModule("Review",0); 
	modules[1] = new ClassModule("Fields",1); 
	modules[2] = new ClassModule("Coulomb's Law",2); 
	modules[3] = new ClassModule("Electric Potential",3); 
	modules[4] = new ClassModule("Gauss' Law",4); 
	modules[5] = new ClassModule("Capacitors",5); 
	modules[6] = new ClassModule("Current and Resistance",6); 
	modules[7] = new ClassModule("Direct Current Circuits",7); 
	modules[8] = new ClassModule("Magnetic Fields",8);  
	modules[9] = new ClassModule("Sources of Magnetic Fields",9); 
	modules[10] = new ClassModule("Faraday's Law",10); 
	modules[11] = new ClassModule("Inductance and Energy in Magnetic Fields",11); 
	modules[12] = new ClassModule("Alternating Current Circuits",12); 
	modules[13] = new ClassModule("Maxwell's Equations and Electromagnetic Waves",13); 
	modules[14] = new ClassModule("Interference and Diffraction",14); 
}

InitializeModules();
NumModules = 14;

InitializeSection("L01", "MWF");

