var CLASSID = "";
function init()
{
	var URL = unescape(location.href);
	var xstart = URL.lastIndexOf("/") + 1;
	var xend = URL.length;
	CLASSID = URL.substring(xstart,xend);
	if(CLASSID=='') CLASSID = 'default.asp';
	
	//menu(size, orientation, x, y, offsetX, offsetY, bgOut, bgOver, fontFace, fontSize, 
	//	fontStyleOut, fontStyleOver, textColorOut, textColorOver, borderSize, borderColor, margin, showChar, 
	//	showOnClick, sepItems, isMainMenu, hasAnimations, animationType, hasShadow, sOffX, sOffY, shadowColor)
	//additem(link, target, iSize, alignment, content, menuToShow)
	//floatMenu(scrWidth, scrHeight, mrgLeft, adjustNum)
		
	// bottom menu bar
	menus[0] = new menu(7, "horizontal", 680,55, 0, 0, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[0].addItem("default.asp", "", 31, "left", "rollover:i/btn-home.gif:i/btn-home1.gif:31:7", 0);
		menus[0].addItem("", "", 10, "left", "rollover:i/btn-sep.gif:i/btn-sep.gif:10:7", 0);
		menus[0].addItem("imusites.html", "", 52, "left", "rollover:i/btn_imusites.png:i/btn_imusites2.png:52:8", 0);
		menus[0].addItem("", "", 10, "left", "rollover:i/btn-sep.gif:i/btn-sep.gif:10:7", 0);
		menus[0].addItem("sitemap.html", "", 41, "left", "rollover:i/btn-sitemap.gif:i/btn-sitemap1.gif:41:7", 0);
		menus[0].addItem("", "", 10, "left", "rollover:i/btn-sep.gif:i/btn-sep.gif:10:7", 0);
		menus[0].addItem("contact.html", "", 65, "left", "rollover:i/btn-contact.gif:i/btn-contact1.gif:65:7", 0);
		menus[0].floatMenu(1280, 1024, 0, 0);
		
		menus[1] = new menu(42, "horizontal", 350,79, 0, -5, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[1].addItem("pro-un-medicine.html", "", 166, "left", "rollover:i/btn-pros-trans.png:i/btn-pros1-trans.png:166:43", 3);
		menus[1].addItem("current-academic.html", "", 133, "left", "rollover:i/btn-current-trans.png:i/btn-current1-trans.png:133:42", 10);
		menus[1].addItem("about-profile-msg.html", "", 88, "left", "rollover:i/btn-about-trans.png:i/btn-about1-trans.png:88:42", 11);
		menus[1].addItem("partner-about-overview.html", "", 148, "left", "rollover:i/btn-partner-trans.png:i/btn-partner1-trans.png:148:42", 13);
		menus[1].addItem("faculty_member.asp", "", 121, "left", "rollover:i/btn-faculty-trans.png:i/btn-faculty1-trans.png:121:42", 15);
		menus[1].addItem("research-activity.html", "", 105, "left", "rollover:i/btn-research-trans.png:i/btn-research1-trans.png:105:42", 16);
		menus[1].floatMenu(1280, 1024, 0, 0);
		
		menus[2] = new menu(184, "horizontal", 151,0, 0, 0, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[2].addItem("default.asp", "", 199, "left", "rollover:i/logo-trans.png:i/logo-trans.png:199:184", 0);
		menus[2].floatMenu(1280, 1024, 0, 0);
		
		//Prospective Students
		menus[3] = new menu(166, "vertical", 0, 0, 1, 5, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[3].addItem("pro-un-medicine.html", "", 27 , "center", "Undergraduate", 4);
		menus[3].addItem("pro-post-msc.html", "", 27 , "center", "Postgraduate", 5);
		menus[3].addItem("pro-int-travel.html", "", 27 , "center", "International Students", 6);
		menus[3].addItem("pro-admission.html", "", 45 , "center", "Admission Process & Interviews", 0);
		menus[3].addItem("pro-financial-imu.html", "", 27 , "center", "Financial Assistance", 7);
		menus[3].addItem("pro-teach-bktjalil.html", "", 27 , "center", "Teaching Facilities", 8);
		menus[3].addItem("pro-accomodation.html", "", 27 , "center", "Accommodation", 0);
		menus[3].addItem("pro-student.html", "", 27 , "center", "Student Activities", 0);
		menus[3].addItem("pro-award.html", "", 27 , "center", "Awards & Achivements", 9);
		menus[3].addItem("pro-counselling.html", "", 27 , "center", "Counselling Service", 0);
		menus[3].addItem("faq.asp", "", 27 , "center", "FAQ", 0);
		menus[3].addItem("contact-requestinfo.html", "", 27 , "center", "Request Info", 0);

		//Prospective Students/Undergraduate
		menus[4] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[4].addItem("pro-un-medicine.html", "", 27 , "center", "Medicine", 0);
		menus[4].addItem("pro-un-dentistry.html", "", 27 , "center", "Dentistry", 0);
		menus[4].addItem("pro-un-pharmacy.html", "", 27 , "center", "Pharmacy", 0);
		menus[4].addItem("pro-un-chemistry.html", "", 27 , "center", "Pharmaceutical Chemistry", 0);
		menus[4].addItem("pro-un-nursing.html", "", 27 , "center", "Nursing", 0);
		menus[4].addItem("pro-un-nursingSci.html", "", 27 , "center", "Nursing Science", 0);
		menus[4].addItem("pro-un-bmed.html", "", 27 , "center", "BMed Sci", 0);
		menus[4].addItem("pro-un-medical.html", "", 27 , "center", "Medical Biotechnology", 0);
		menus[4].addItem("pro-un-nutrition.html", "", 27 , "center", "Nutrition & Dietetics", 0);
		menus[4].addItem("pro-un-psychology.html", "", 27 , "center", "Psychology", 0);
		menus[4].addItem("pro-un-bio.html", "", 27 , "center", "Biomedical Science", 0);
		menus[4].addItem("pro-un-chiro.html", "", 27 , "center", "Chiropractic", 0);
		menus[4].addItem("pro-un-entry.html", "", 27 , "center", "Entry Requirement", 0);
		menus[4].addItem("pro-un-fee.html", "", 27 , "center", "Fee Structure", 0);
		menus[4].addItem("pro-un-policy.html", "", 27 , "center", "Policy on Payment of Fees", 0);
		menus[4].addItem("pro-un-payment.html", "", 27 , "center", "Payment Information", 0);
		menus[4].addItem("download.html", "", 27 , "center", "Download Application Form", 0);

		//Prospective Students/Postgraduate
		menus[5] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[5].addItem("pro-post-msc.html", "", 40 , "center", "MSc / PhD - Medical Sciences / Community Health", 0);
		menus[5].addItem("pro-post-entry.html", "", 27 , "center", "Entry Requirement", 0);
		menus[5].addItem("pro-post-fee.html", "", 27 , "center", "Fee Structure", 0);
		menus[5].addItem("pro-post-policy.html", "", 27 , "center", "Policy on Payment of Fees", 0);
		menus[5].addItem("pro-post-payment.html", "", 27 , "center", "Payment Information", 0);
		menus[5].addItem("download.html", "", 27 , "center", "Download Application Form", 0);

		//Prospective Students/International Students
		menus[6] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[6].addItem("pro-int-travel.html", "", 27 , "center", "Travel & Immigration Guide", 0);
		menus[6].addItem("pro-int-prepare.html", "", 27 , "center", "Preparing Your Travel", 0);
		menus[6].addItem("pro-int-passvisa.html", "", 45 , "center", "Student Pass & Visa Processing", 0);
		menus[6].addItem("#", "", 27 , "center", "International Student Handbook", 0);
		
		//Prospective Students/Financial Assistance
		menus[7] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[7].addItem("pro-financial-imu.html", "", 27 , "center", "IMU Scholarships", 0);
		menus[7].addItem("pro-financial-aama.html", "", 45 , "center", "High Achiever and Merit <br/>Award", 0);
		menus[7].addItem("pro-financial-studyloan.html", "", 27 , "center", "Study Loans", 0);
		
		//Prospective Students/Teaching Facilities
		menus[8] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[8].addItem("pro-teach-bktjalil.html", "", 27 , "center", "Bukit Jalil", 0);
		menus[8].addItem("pro-teach-seremban.html", "", 27 , "center", "Seremban", 0);	
		menus[8].addItem("pro-teach-batupahat.html", "", 27 , "center", "Batu Pahat", 0);
		
		//Prospective Students/Awards & Achivements
		menus[9] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[9].addItem("pro-award.html", "", 27 , "center", "Year 2006 - current", 0);
		menus[9].addItem("pro-award2.html", "", 27 , "center", "Year 2001 - 2005", 0);	
		menus[9].addItem("pro-award3.html", "", 27 , "center", "Year 1996 - 2000", 0);

		//Current Student
		menus[10] = new menu(140, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[10].addItem("current-academic.html", "", 27 , "center", "Academic Calendar", 0);
		menus[10].addItem("current-exam.html", "", 27 , "center", "Exam Regulations", 0);	
		menus[10].addItem("current-exam-result.html", "", 27 , "center", "Release of Exam Results", 0);
		menus[10].addItem("http://www.imu.org.my", "_blank", 27 , "center", "IMU Alumni", 0);	
		menus[10].addItem("http://www.imu.edu.my/wireless", "_blank", 27 , "center", "IMU Wireless", 0);

		//About IMU
		menus[11] = new menu(140, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[11].addItem("about-profile-msg.html", "", 27 , "center", "Profile", 12);
		menus[11].addItem("about_news.asp", "", 27 , "center", "IMU in the News", 0);	
		menus[11].addItem("about_events.asp", "", 27 , "center", "Events at IMU", 0);
		menus[11].addItem("about-industrial.html", "", 27 , "center", "Industrial Partners", 0);
		menus[11].addItem("about-newsletter.html", "", 27 , "center", "Newsletter", 0);
		menus[11].addItem("about-family.html", "", 27 , "center", "Family Medicine Teacher", 0);	
		menus[11].addItem("about-uni.html", "", 27 , "center", "University Mechandise", 0);
		menus[11].addItem("about-job.html", "", 27 , "center", "Job Vacancies", 0);
		menus[11].addItem("contact-requestinfo.html", "", 27 , "center", "Request Info", 0);

		//About IMU/Profile
		menus[12] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[12].addItem("about-profile-msg.html", "", 27 , "center", "Message From The President", 0);		
		menus[12].addItem("about-profile-history.html", "", 27 , "center", "History Of the IMU", 0);
		menus[12].addItem("about-profile-aboutuni.html", "", 27 , "center", "About the University", 0);
		menus[12].addItem("about-profile-vision.html", "", 27 , "center", "Vision & Quality Policy", 0);
		menus[12].addItem("about-profile-macelogo.html", "", 27 , "center", "Mace & Logo", 0);
		menus[12].addItem("about-profile-principal.html", "", 27 , "center", "Principal Officers", 0);
		menus[12].addItem("about-profile-senate.html", "", 27 , "center", "Senate, PEAC & AC", 0);
		menus[12].addItem("about-profile-list.html", "", 27 , "center", "List of Honorary Recipients", 0);
		
		//Partner Universities
		menus[13] = new menu(166, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[13].addItem("partner-about-overview.html", "", 27 , "center", "About Partner Universities", 14);
		menus[13].addItem("partner-medical.html", "", 45 , "center", "Partner Medical Schools (PMS) Enrolment", 0);	
		menus[13].addItem("partner-dental.html", "", 45 , "center", "Partner Dental Schools (PDS) Enrolment", 0);


		//Partner Universities  About Partner Universities
		menus[14] = new menu(133, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[14].addItem("partner-about-overview.html", "", 27 , "center", "Overview", 0);
		menus[14].addItem("partner-about-aus.html", "", 27 , "center", "Australasia", 0);	
		menus[14].addItem("partner-about-ireland.html", "", 27 , "center", "Ireland", 0);	
		menus[14].addItem("partner-about-us.html", "", 27 , "center", "North America", 0);	
		menus[14].addItem("partner-about-uk.html", "", 27 , "center", "United Kingdom", 0);	

		//Faculty & Staff
		menus[15] = new menu(148, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[15].addItem("faculty_member.asp", "", 27 , "center", "Faculty Member", 0);
		menus[15].addItem("fs-senior.html", "", 27 , "center", "Senior Management", 0);	
		menus[15].addItem("fs-adminstration.html", "", 45 , "center", "Administration Departments", 0);

		//Research
		menus[16] = new menu(105, "vertical", 0, 0, 0, 0, "opacity:#d9ecfa:100", "opacity:#ffffff:95", "Arial", 8, 
		"normal", "normal", "#2e2500", "#2e2500", 1, "#ffffff", 5, 0	, false, true, false, false, 0, false, 0, 0, "");		
		menus[16].addItem("research-activity.html", "", 45, "center", "Research Activities", 0);
		menus[16].addItem("research-highlights.html", "", 45 , "center", "Research Highlights", 0);	
		menus[16].addItem("research-output.html", "", 27 , "center", "Research Output", 0);
		menus[16].addItem("research_projects.asp", "", 45 , "center", "Research Projects", 0);	
		menus[16].addItem("research-imu-publication.html", "", 27 , "center", "IMU Publications", 0);
		menus[16].addItem("research-imu-conference.html", "", 45 , "center", "IMU Conference Presentation", 0);	
		
		
} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.