MyArray = new Array();

//general
MyArray[1] = "http://btech.eng.nus.edu.sg/btech/Map/btechmap.html";
MyArray[2] = "http://btech.eng.nus.edu.sg/BTech/Communications/NoticesList.aspx";
MyArray[3] = "http://btech.eng.nus.edu.sg/BTech/Communications/ActivitiesList.aspx";
MyArray[4] = "http://btech.eng.nus.edu.sg/BTech/feedback/feedback.aspx";
MyArray[5] = "http://btech.eng.nus.edu.sg/btech/Information/bcapsystem.html";
MyArray[6] = "http://btech.eng.nus.edu.sg/btech/Information/ImportantPointsforStudents.html";
MyArray[7] = "http://btech.eng.nus.edu.sg/btech/Information/RegistrationSchedules.html";
MyArray[8] = "http://btech.eng.nus.edu.sg/btech/Information/AbolishResit.html";
MyArray[9] = "http://btech.eng.nus.edu.sg/btech/Information/HonoursClassification.html";
MyArray[10] = "http://btech.eng.nus.edu.sg/btech/Information/PlagiarismWarning.html";

// forms
MyArray[21] = "http://btech.eng.nus.edu.sg/BTech/FYPEE/ProjectSelection.aspx";
MyArray[22] = "http://btech.eng.nus.edu.sg/BTech/FYPEE/StudentProposal.aspx";
MyArray[23] = "http://btech.eng.nus.edu.sg/BTech/FYPME/ProjectSelection.aspx";
MyArray[24] = "http://btech.eng.nus.edu.sg/BTech/FYPME/StudentProposal.aspx";

// facilities
MyArray[41] = "http://btech.eng.nus.edu.sg/BTech/Student/DirectoryListEE.aspx";
MyArray[42] = "http://btech.eng.nus.edu.sg/BTech/Student/DirectoryListME.aspx";
MyArray[43] = "http://btech.eng.nus.edu.sg/BTech/Student/DirectoryListCHE.aspx";
MyArray[44] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactCheckEE.aspx";
MyArray[45] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactCheckME.aspx";
MyArray[46] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactCheckCHE.aspx";
MyArray[47] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactUpdateEE.aspx";
MyArray[48] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactUpdateME.aspx";
MyArray[49] = "http://btech.eng.nus.edu.sg/BTech/Student/ContactUpdateCHE.aspx";

// resources
MyArray[61] = "http://btech.eng.nus.edu.sg/btech/Information/cap.html";
MyArray[62] = "http://btech.eng.nus.edu.sg/BTech/Information/OpenUniversityResources.html";
MyArray[63] = "http://www.eng2.nus.edu.sg/btech/staff/formstaffcheck.html";
MyArray[64] = "http://www.eng2.nus.edu.sg/btech/staff/infostaffcheck.html";
MyArray[65] = "http://btech.eng.nus.edu.sg/BTech/Information/WordCount.html";

// 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 = [

	['General Resources', null, null,
		['The BTech Bulletin', 'http://btech.eng.nus.edu.sg/btech/bulletin/bulletin-header.html', null],
		['Finding Us', 'Javascript:View(1)', null],
		['Enquiries', 'mailto:btechadmin@nus.edu.sg', null],
		['Notices', 'Javascript:View(2)', null],
		['Activities', 'Javascript:View(3)', null],
		['Feedback/Suggestions', 'Javascript:View(4)', null],
	],
	['Important Information for Students', null, null,
		['Frequently Asked Questions on CAP System', 'Javascript:View(5)', null],
		['CAP Honours Classification', 'Javascript:View(9)', null],
		['Important Notice to Students', 'Javascript:View(6)', null],
		['Registering, Adding and/or Dropping Modulues', 'Javascript:View(7)', null],
		['Abolishment of Resit Exams', 'Javascript:View(8)', null],
		['Plagiarism Warning', 'Javascript:View(10)', null],
	],
	['Student Forms', null, null,
		['On-Line Forms', null, null,
			['FYP Selection (Electronics Engineering)', 'Javascript:View(21)', null],
			['FYP Proposal (Electronics Engineering)', 'Javascript:View(22)', null],
			['FYP Selection (Mech & Mfg Engineering)', 'Javascript:View(23)', null],
			['FYP Proposal (Mech & Mfg Engineering)', 'Javascript:View(24)', null],
		],
		['On-Line Forms (Enrichment Module)', null, 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],
		],
		['Requests and Declarations', null, null,
			['Module Registration Form', 'http://btech.eng.nus.edu.sg/btech/forms/ModuleRegForm.doc', null],
			['Application for Withrawal Form', 'http://btech.eng.nus.edu.sg/btech/forms/WithdrawalForm.doc', null],
			['Letter of Certification of Student Status', 'http://btech.eng.nus.edu.sg/btech/forms/StudentStatusForm.doc', null],
			['Withdraw FYP Thesis From Public Domain', 'http://btech.eng.nus.edu.sg/btech/forms/FYPThesisProtectionForm.doc', null],
			['Adding/Dropping of Modules Form', 'http://btech.eng.nus.edu.sg/btech/forms/AddDropForm.doc', null],
			['Leave of Absence Form', 'http://btech.eng.nus.edu.sg/btech/forms/LeaveOfAbsenceForm.doc', null],
			['Module Registration Form', 'http://btech.eng.nus.edu.sg/btech/forms/ModuleRegForm.doc', null],
			['FYP Declaration Form (Starting Project)', 'http://btech.eng.nus.edu.sg/btech/forms/FYPStartForm.doc', null],
			['FYP Declaration Form (Ending Project)', 'http://btech.eng.nus.edu.sg/btech/forms/FYPStudentDeclarationForm.doc', null],
		],
		['Claims', null, null,
			['Purchase Request', 'http://btech.eng.nus.edu.sg/btech/forms/PurchaseRequestForm.doc', null],
			['Reimbursement of Materials - Design (Mechanical)', 'http://btech.eng.nus.edu.sg/btech/forms/ReimbursementMaterialFormTM3101.doc', null],
			['Reimbursement of Materials - TE3202 (Electronics)', 'http://btech.eng.nus.edu.sg/btech/forms/ReimbursementMaterialFormTE3202.doc', null],
			['Project Expenditure - Consumables (Electronics)', 'http://btech.eng.nus.edu.sg/btech/forms/ProjectExpenditureClaimFormEE.doc', null],
			['Project Expenditure - Consumables (Mechanical)', 'http://btech.eng.nus.edu.sg/btech/forms/ProjectExpenditureClaimFormME.doc', null],
			['Project Expenditure - Fabrication (Mechanical)', 'http://btech.eng.nus.edu.sg/btech/forms/ProjectFabricationClaimFormME.doc', null],
			['Project Expenditure - Fabrication (Electronics)', 'http://btech.eng.nus.edu.sg/btech/forms/ProjectFabricationClaimFormEE.doc', null],
		],
	],
	['Student Resources', null, null,
		['Student Pictoral Directory', null, null,
			['Electronics Engineering', 'Javascript:View(41)', null],
			['Mechanical & Manufacturing Engineering', 'Javascript:View(42)', null],
			['Chemical Engineering', 'Javascript:View(43)', null],
		],
		['Check Contact Information', null, null,
			['Electronics Engineering', 'Javascript:View(44)', null],
			['Mechanical & Manufacturing Engineering', 'Javascript:View(45)', null],
			['Chemical Engineering', 'Javascript:View(46)', null],
		],
		['Update Contact Information', null, null,
			['Electronics Engineering', 'Javascript:View(47)', null],
			['Mechanical & Manufacturing Engineering', 'Javascript:View(48)', null],
			['Chemical Engineering', 'Javascript:View(49)', null],
		],
		['Cumulative Average Point (CAP) Projector', 'Javascript:View(61)', null],
		['Open University Learning Resources', 'Javascript:View(62)', null],
		['Word Count Calculator', 'Javascript:View(65)', null],
	],
	['Academic Staff Forms & Resources', null, null,
		['Academic Staff Forms (Restricted)', 'Javascript:View(63)', null],
		['Academic Staff Resources (Restricted)', 'Javascript:View(64)', null],
	],
];


