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 = 'index.html';
	
	//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)
	//
	// bgOut,bgOver - transparent background color, opacity:[HTMLCOLOR]:[0-100]
	//
	//additem(link, target, iSize, alignment, content, menuToShow)
	//
	// content - rollover image (supports png), rollover:[URLROLLOVER]:[URLROLLOUT]:[WIDTH]:[HEIGHT]
	//
	//floatMenu(scrWidth, scrHeight, mrgLeft, adjustNum)
		
	// bottom menu bar
	menus[0] = new menu(36, "horizontal", 250,86, 0, 0, "", "", "Arial", 8, 
		"normal", "normal", "", "", 0, "", 0, "", false, false, true, false, 5, false, 0, 0, "black");
		menus[0].addItem("index.htm", "", 62, "left", "rollover:images/bttn_home.gif:images/bttn_home_mo.gif:62:36", 0);
		menus[0].addItem("company.htm", "", 82, "left", "rollover:images/bttn_company.gif:images/bttn_company_mo.gif:82:36", 1);
		menus[0].addItem("solutions.htm", "", 89, "left", "rollover:images/bttn_solutions.gif:images/bttn_solutions_mo.gif:89:36", 2);
		menus[0].addItem("segments_service_providers.htm", "", 83, "left", "rollover:images/bttn_segments.gif:images/bttn_segments_mo.gif:83:36", 3);
		menus[0].addItem("products_sim-authentication-server.htm", "", 86, "left", "rollover:images/bttn_products.gif:images/bttn_products_mo.gif:86:36", 4);
		menus[0].addItem("services.htm", "", 77, "left", "rollover:images/bttn_services.gif:images/bttn_services_mo.gif:77:36", 5);
		menus[0].addItem("partners.htm", "", 80, "left", "rollover:images/bttn_partners.gif:images/bttn_partners_mo.gif:80:36", 6);
		menus[0].addItem("news.php", "", 111, "left", "rollover:images/bttn_news.gif:images/bttn_news_mo.gif:111:36", 7);
		menus[0].addItem("contact.php", "", 90, "left", "rollover:images/bttn_contact.gif:images/bttn_contact_mo.gif:90:36", 0);
		menus[0].floatMenu(1280, 1024, 0, 0);
		
		//Company
		menus[1] = new menu(120, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[1].addItem("company.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Company Overview", 0);
		menus[1].addItem("company-board.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Board Members", 0);
		menus[1].addItem("company_management.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Management Team", 0);
		menus[1].addItem("company_awards.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Awards", 0);
		menus[1].addItem("company_careers.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Careers", 0);
		menus[1].addItem("company_privacy.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Privacy Policy", 0);
		
		//Solutions
		menus[2] = new menu(135, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[2].addItem("solutions.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Overview", 0);
		menus[2].addItem("solutions_mobile-data-offloading.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Mobile Data Offloading", 0);
		menus[2].addItem("solutions_hotspot.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Carrier-Class Wi-Fi", 0);
		menus[2].addItem("solutions_guest.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Guest Internet Access", 0);
		menus[2].addItem("solutions_3G-LTE-PCRF.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> 3G/LTE", 0);
		menus[2].addItem("solutions_wimax.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> WiMAX", 11);
		menus[2].addItem("solutions_interest.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Interest Form", 0);
		
		//Segments
		menus[3] = new menu(115, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[3].addItem("segments_service_providers.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Service Providers", 0);
		menus[3].addItem("segments_wifi-verticals.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Wi-Fi Verticals", 12);
		menus[3].addItem("segments_interest.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Interest Form", 0);
		
		//Product
		menus[4] = new menu(205, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");
		menus[4].addItem("products_sim-authentication-server.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo SIM Authentication Server", 0);
		menus[4].addItem("products_platforms_management.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo Service Management Platform", 0);
		menus[4].addItem("products_portal.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo Service Portal", 0);
		menus[4].addItem("products_access.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo Access Controller", 0);
		menus[4].addItem("products_guest_gateways.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> 3rd Party Controllers/Gateways", 0);
		menus[4].addItem("products_wimax-aaa-server.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX AAA+ Server", 0);
		menus[4].addItem("products_wimax-csn-system.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX CSN System", 0);
		 	

		menus[4].addItem("products_interest.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Interest Form", 0);
		
		//Services
		menus[5] = new menu(130, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[5].addItem("services.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Managed Services", 0);
		menus[5].addItem("services_professional.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Professional Services", 0);
		menus[5].addItem("services_support.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Support", 0);
		menus[5].addItem("services_interest.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Interest Form", 0);
		
		//Partners
		menus[6] = new menu(115, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[6].addItem("partners.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Our Partners", 0);
		menus[6].addItem("partners_program.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Become a Partner", 0);

		//News & Events
		menus[7] = new menu(115, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[7].addItem("news.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Announcements", 8);		
		menus[7].addItem("inthenews.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo In The News", 9);	
		menus[7].addItem("event.php", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Events", 10);
		
		var dateNow = new Date();
		var nFullYear = dateNow.getFullYear();
		var i = 0;
		//News & Events/Announcements
		menus[8] = new menu(80, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		
		for(i=nFullYear;i>=2001;i--) {
			menus[8].addItem("news.php?r=1&y="+i, "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Year "+i, 0);
		}
		
		//News & Events/Aptilo In The News
		menus[9] = new menu(80, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		for(i=nFullYear;i>=2001;i--) {
			menus[9].addItem("inthenews.php?r=1&y="+i, "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Year "+i, 0);
		}
		
		//News & Events/Events
		menus[10] = new menu(80, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		for(i=nFullYear;i>=2001;i--) {
			menus[10].addItem("event.php?r=1&y="+i, "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Year "+i, 0);
		}
		
		//Solutions & WiMAX
		menus[11] = new menu(160, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[11].addItem("wimax-aaa.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX AAA+", 0);
		menus[11].addItem("wimax-policy-engine.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX Policy Engine", 0);
		menus[11].addItem("wimax-prepaid.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX Prepaid Billing", 0);
		menus[11].addItem("wimax-provisioning.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX Provisioning", 0);
		menus[11].addItem("wimax-hotlining.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX Hotlining", 0);
		menus[11].addItem("wimax-web-selfcare.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo WiMAX WEB-Selfcare", 0);
		menus[11].addItem("fixed-wimax.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Aptilo Fixed WiMAX", 0);
		
		
		//Segments & wi-fi verticals
		menus[12] = new menu(160, "vertical", 0, 0, 0, 0, "opacity:#D6D7DE:100", "opacity:#ffffff:100", "Tahoma", 8, 
		"normal", "normal", "#000000", "#000000", 0, "#ffffff", 4, 0	, false, true, false, false, 0, false, 0, 0, "");	
		menus[12].addItem("segments_municipalities.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Municipalities", 0);
		menus[12].addItem("segments_enterprise.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Enterprise", 0);
		menus[12].addItem("segments_hospitality.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Hospitality", 0);
		menus[12].addItem("segments_healthcare.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Healthcare", 0);
		menus[12].addItem("segments_transportation.htm", "", 22 , "left", "<img src='images/bullet_menu.gif' width='10' height='8'> Transportation", 0);
	
} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.

