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(0, "horizontal", 600,12, 0, 0, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[0].addItem("default.asp", "", 72, "left", "rollover:ni/top-home.gif:ni/top-home-o.gif:72:33", 0);
		menus[0].addItem("imusites.html", "", 90, "left", "rollover:ni/top-imusite.gif:ni/top-imusite-o.gif:90:33", 0);
		menus[0].addItem("sitemap.html", "", 84, "left", "rollover:ni/top-sitemap.gif:ni/top-sitemap-o.gif:84:33", 0);
		menus[0].addItem("contact.html", "", 87, "left", "rollover:ni/top-contactus.gif:ni/top-contactus-o.gif:87:33", 0);
		menus[0].floatMenu(1280, 1024, 0, 0);
		
		menus[1] = new menu(0, "horizontal", 350,79, 0, 39, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[1].addItem("pro-un-medicine.html", "", 173, "left", "rollover:ni/butt-prospective-students.gif:ni/butt-prospective-students-o.gif:173:38", 3);
		menus[1].addItem("current-academic.html", "", 140, "left", "rollover:ni/butt-current-students.gif:ni/butt-current-students-o.gif:140:38", 10);
		menus[1].addItem("about-profile-msg.html", "", 94, "left", "rollover:ni/butt-about-imu.gif:ni/butt-about-imu-o.gif:94:38", 11);
		menus[1].addItem("partner-about-overview.html", "", 156, "left", "rollover:ni/butt-partner-universities.gif:ni/butt-partner-universities-o.gif:156:38", 13);
		menus[1].addItem("faculty_member.asp", "", 81, "left", "rollover:ni/butt-faculty.gif:ni/butt-faculty-o.gif:81:38", 0);
		menus[1].addItem("research-activity.html", "", 115, "left", "rollover:ni/butt-research.gif:ni/butt-research-o.gif:115:38", 16);
		menus[1].floatMenu(1280, 1024, 0, 0);
		
		menus[2] = new menu(0, "horizontal", 155, 5, 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:ni/imu-logo.png:ni/imu-logo.png:195:108", 0);
		menus[2].floatMenu(1280, 1024, 0, 0);
		
		//Prospective Students
		menus[3] = new menu(166, "vertical", 0, 0, 1, 5, "opacity:#dddddd: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-facilities.html", "", 27 , "center", "Facilities", 0);
		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-graduates.html", "", 27 , "center", "Our Graduates", 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:#dddddd: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-chi-med.html", "", 27 , "center", "Chinese Medicine", 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:#dddddd: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-mosph.html", "", 40 , "center", "Master of Science<br>(Public 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:#dddddd: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:#dddddd: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:#dddddd: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:#dddddd: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 2010 - current", 0);
		menus[9].addItem("pro-award1.html", "", 27 , "center", "Year 2006 - 2009", 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:#dddddd: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("studentlogin.asp", "", 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://its.imu.edu.my", "_blank", 27 , "center", "ITS Department", 0);

		//About IMU
		menus[11] = new menu(140, "vertical", 0, 0, 0, 0, "opacity:#dddddd: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 Merchandise", 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(250, "vertical", 0, 0, 0, 0, "opacity:#dddddd: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 & Motto", 0);
		menus[12].addItem("about-profile-strategicplan.html", "", 27 , "center", "IMU Strategic Plan 2011-15", 0);
		menus[12].addItem("about-profile-principal.html", "", 27 , "center", "Principal Officer, Senate &amp; Senior Management", 0);
		menus[12].addItem("about-profile-senate.html", "", 27 , "center", "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:#dddddd: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);
		menus[13].addItem("partner-survey.html", "", 27 , "center", "Survey", 0);


		//Partner Universities  About Partner Universities
		menus[14] = new menu(133, "vertical", 0, 0, 0, 0, "opacity:#dddddd: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-aus1.html", "", 27 , "center", "Australasia", 0);	
		menus[14].addItem("partner-about-china.html", "", 27 , "center", "China", 0);
		menus[14].addItem("partner-about-ireland.html", "", 27 , "center", "Ireland", 0);	
		menus[14].addItem("partner-about-us1.html", "", 27 , "center", "North America", 0);	
		menus[14].addItem("partner-about-uk1.html", "", 27 , "center", "United Kingdom", 0);	

		//Faculty
		menus[15] = new menu(148, "vertical", 0, 0, 0, 0, "opacity:#dddddd: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(115, "vertical", 0, 0, 0, 0, "opacity:#dddddd: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", "", 27, "center", "Research Activities", 0);
		menus[16].addItem("research-highlights.html", "", 27 , "center", "Research Highlights", 0);	
		menus[16].addItem("research-output.html", "", 27 , "center", "Research Output", 0);
		menus[16].addItem("research_projects.asp", "", 27 , "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);	
		menus[16].addItem("https://krste.my/", "_blank", 95 , "center", "Knowledge Resources for Science and Technology Excellence", 0);
		
		
} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
