MyArray = new Array();

// University
MyArray[1] = "http://www.nus.edu.sg/registrar/calendar.html";
MyArray[2] = "";
MyArray[3] = "https://online.nus.edu.sg/DB/data/exam02_1/index.htm";
MyArray[4] = "http://www.nus.edu.sg/registrar/info/exam/btechspecial.html";
MyArray[5] = "http://www.nus.edu.sg/registrar/undergraduate/examresultsdates.html";

// Electronics Engineering
MyArray[11] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/bt_e_structure.html";
MyArray[12] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/EEModuleInfo.aspx";
MyArray[13] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/EEModuleSchedule.aspx";
MyArray[14] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/FYPGuidelines.html";
MyArray[15] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/MultimediaUsage.html";
MyArray[16] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/FYPFaq.html";
MyArray[17] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/InstructionsforSoftCopyThesis.html";
MyArray[18] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ThesisSubmissionDeadlines.html";
MyArray[19] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ProposalSelectionDates.html";
MyArray[20] = "http://btech.eng.nus.edu.sg/BTech/FYPEE/ApprovedProjectList.aspx";
MyArray[21] = "http://btech.eng.nus.edu.sg/BTech/FYPEE/StaffProposalList.aspx";
MyArray[22] = "http://btech.eng.nus.edu.sg/BTech/FYPEE/StudentProposalList.aspx";
MyArray[23] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ThesisFiles.zip";
MyArray[24] = "http://btech.eng.nus.edu.sg/BTech/ThesisEE/UploadThesis.aspx";
MyArray[25] = "http://btech.eng.nus.edu.sg/BTech/ThesisEE/ThesisCheck.aspx";

// Mechanical Engineering
MyArray[31] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/bt_m_structure.html";
MyArray[32] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/MEModuleInfo.aspx";
MyArray[33] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/MEModuleSchedule.aspx";
MyArray[34] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/bt_m_electives_faq.html";
MyArray[35] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/bt_m_fypLaboratory.html";
MyArray[36] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/FYPGuidelines.html";
MyArray[37] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/MultimediaUsage.html";
MyArray[38] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/FYPFaq.html";
MyArray[39] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/InstructionsforSoftCopyThesis.html";
MyArray[40] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ThesisSubmissionDeadlines.html";
MyArray[41] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ProposalSelectionDates.html";
MyArray[42] = "http://btech.eng.nus.edu.sg/BTech/FYPME/ApprovedProjectList.aspx";
MyArray[43] = "http://btech.eng.nus.edu.sg/BTech/FYPME/StaffProposalList.aspx";
MyArray[44] = "http://btech.eng.nus.edu.sg/BTech/FYPME/StudentProposalList.aspx";
MyArray[45] = "http://btech.eng.nus.edu.sg/BTech/FYPME/PresentationSchedule.aspx";
MyArray[46] = "http://btech.eng.nus.edu.sg/BTech/FYPInfo/ThesisFiles.zip";
MyArray[47] = "http://btech.eng.nus.edu.sg/BTech/ThesisME/UploadThesis.aspx";
MyArray[48] = "http://btech.eng.nus.edu.sg/BTech/ThesisME/ThesisCheck.aspx";

// Chemical Engineering
MyArray[61] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/bt_ch_structure.html";
MyArray[62] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/CHEModuleSchedule.aspx";
MyArray[63] = "http://btech.eng.nus.edu.sg/BTech/CourseInfo/CHEModuleInfo.aspx";

// Enrichment Modules
MyArray[81] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/Introduction.html";
MyArray[82] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/ModuleDescription.html";
MyArray[83] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/RegistrationValid.aspx";
MyArray[84] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/Cancellation.aspx" ;
MyArray[85] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/ClassCheck.aspx";
MyArray[86] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/PersonalCheck.aspx";
MyArray[87] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/Feedback.aspx";
MyArray[88] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/AbsenceReport.aspx";
MyArray[89] = "http://btech.eng.nus.edu.sg/BTech/Enrichment/ConfirmedCheck.aspx";

function View(id) {
self.name = "middle"; // names current window as "middle"
var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,resizable=0,width=600,height=300,top=200,left=150";
OpenWindow = window.open(MyArray[id], "remote", windowprops); // opens remote control
}

var TREE_NODES = [

	['Electronics Engineering', null, null,
		['Course Information/Resources', null, null,
			['Course Structure', 'Javascript:View(11)', null],
			['Module Information', 'Javascript:View(12)', null],
			['Overall Module Schedules', 'Javascript:View(13)', null],
			['Examination Time-Table (Semester 1)', 'Javascript:View(2)', null],
			['Examination Time-Table (Semester 2)', 'Javascript:View(3)', null],
			['Examination Time-Table (Special Term)', 'Javascript:View(4)', null],
			['Release Date of Examination Results', 'Javascript:View(5)', null],
			['Student Forms', 'WindowServices.html', null],
		],
		['Detailed Course Time-Table', null, null,
			['Semester 1 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem1Year1.doc', null],
			['Semester 1 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem1Year2.doc', null],
			['Semester 1 (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem1Electives.doc', null],
			['Semester 2 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem2Year1.doc', null],
			['Semester 2 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem2Year2.doc', null],
			['Semester 2 (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem2Electives.doc', null],
			['Special Term (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year1.doc', null],
			['Special Term (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year2.doc', null],
			['Special Term (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/EESem3Electives.doc', null],
		],
		['FYP Information', null, null,
			['Guidelines on Project', 'Javascript:View(14)', null],
			['Guidelines on Multimedia Usage', 'Javascript:View(15)', null],
			['Frequently Asked Questions on FYP', 'Javascript:View(16)', null],
			['Instructions for Thesis Preparation', 'Javascript:View(17)', null],
			['Thesis Submission Deadlines', 'Javascript:View(18)', null],
			['Project Proposal and Selection Dates', 'Javascript:View(19)', null],
		],
		['FYP Listings', null, null,
			['Approved Projects in Progress', 'Javascript:View(20)', null],
			['Projects Proposed by Staff', 'Javascript:View(21)', null],
			['Projects Proposed by Students', 'Javascript:View(22)', null],
		],
		['FYP Resources', null, null,
			['Download Thesis Files', 'Javascript:View(23)', null],
			['Upload Thesis', 'Javascript:View(24)', null],
			['Check Thesis Upload', 'Javascript:View(25)', null],
			['Student Forms (All FYP Related Forms)', 'WindowServices.html', null],
			['Contact Coordinator (Dr S Elangovan)', 'mailto:elegovan@nus.edu.sg', null],
		],
	],

	['Mechanical/Manufacturing Engineering', null, null,
		['Course Information/Resources', null, null,
			['Course Structure', 'Javascript:View(31)', null],
			['Module Information', 'Javascript:View(32)', null],
			['Overall Module Schedules', 'Javascript:View(33)', null],
			['Frequently Asked Questions on Elective Modules', 'Javascript:View(34)', null],
			['Examination Time-Table (Semester 1)', 'Javascript:View(2)', null],
			['Examination Time-Table (Semester 2)', 'Javascript:View(3)', null],
			['Examination Time-Table (Special Term)', 'Javascript:View(4)', null],
			['Release Date of Examination Results', 'Javascript:View(5)', null],
			['Student Forms', 'WindowServices.html', null],
		],
		['Detailed Course Time-Table', null, null,
			['Semester 1 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem1Year1.pdf', null],
			['Semester 1 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem1Year2.pdf', null],
			['Semester 1 (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem1Electives.pdf', null],
			['Semester 2 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem2Year1.pdf', null],
			['Semester 2 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem2Year2.pdf', null],
			['Semester 2 (Year 3)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem2Year3.pdf', null],
			['Semester 2 (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem2Electives.pdf', null],
			['Special Term (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year1.doc', null],
			['Special Term (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year2.doc', null],
			['Special Term (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/MESem3Electives.doc', null],
		],
		['FYP Information', null, null,
			['Guidelines on Laboratory Usage', 'Javascript:View(35)', null],
			['Guidelines on Project', 'Javascript:View(36)', null],
			['Guidelines on Multimedia Usage', 'Javascript:View(37)', null],
			['Frequently Asked Questions on FYP', 'Javascript:View(38)', null],
			['Instructions for Thesis Preparation', 'Javascript:View(39)', null],
			['Thesis Submission Deadlines', 'Javascript:View(40)', null],
			['Project Proposal and Selection Dates', 'Javascript:View(41)', null],
		],
		['FYP Listings', null, null,
			['Approved Projects in Progress', 'Javascript:View(42)', null],
			['Projects Proposed by Staff', 'Javascript:View(43)', null],
			['Projects Proposed by Students', 'Javascript:View(44)', null],
			['Projects Presentation Schedule', 'Javascript:View(45)', null],
		],
		['FYP Resources', null, null,
			['Download Thesis Files', 'Javascript:View(46)', null],
			['Upload Thesis', 'Javascript:View(47)', null],
			['Check Thesis Upload', 'Javascript:View(48)', null],
			['Student Forms (All FYP Related Forms)', 'WindowServices.html', null],
			['Contact Coordinator (Dr Ng Tuck Wah)', 'mailto:engngtw@nus.edu.sg', null],
		],
	],

	['Chemical Engineering', null, null,
		['Course Information', null, null,
			['Course Structure', 'Javascript:View(61)', null],
			['Module Information', 'Javascript:View(62)', null],
			['Overall Module Schedules', 'Javascript:View(63)', null],
			['Examination Time-Table (Semester 1)', 'Javascript:View(2)', null],
			['Examination Time-Table (Semester 2)', 'Javascript:View(3)', null],
			['Examination Time-Table (Special Term)', 'Javascript:View(4)', null],
			['Release Date of Examination Results', 'Javascript:View(5)', null],
			['Student Forms', 'WindowServices.html', null],
		],
		['Detailed Course Time-Table', null, null,
			['Semester 1 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem1Year1.doc', null],
			['Semester 1 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem1Year2.doc', null],
			['Semester 1 (Year 3)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem1Year3.doc', null],
			['Semester 1 (Year 4)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem1Year4.doc', null],
			['Semester 2 (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem2Year1.doc', null],
			['Semester 2 (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem2Year2.doc', null],
			['Semester 2 (Year 3)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem2Year3.doc', null],
			['Semester 2 (Year 4)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem2Year4.doc', null],
			['Special Term (Year 1)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year1.doc', null],
			['Special Term (Year 2)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/Sem3Year2.doc', null],
			['Special Term (Electives)', 'http://btech.eng.nus.edu.sg/BTech/CourseTimeTable/CHESem3Electives.doc', null],
		],
	],

	['Non-Examinable Enrichment Modules', null, null,
		['General Information', 'Javascript:View(81)', null],
		['Module Description', 'Javascript:View(82)', null],
		['Module Schedules & Enrolment', 'Javascript:View(85)', null],
		['Module Registration', 'Javascript:View(83)', null],
		['Module Cancellation', 'Javascript:View(84)', null],
		['Personal Registration Check', 'Javascript:View(86)', null],
		['Attendance Feedback', 'Javascript:View(87)', null],
		['Absence Report', 'Javascript:View(88)', null],
		['Confirmed Attendance Check', 'Javascript:View(89)', null],
	],

];


