//javascript mapb_menu_def.js

if (document.layers) {
	var newWindowWidth = window.innerWidth;
}
else if(document.all){
	var newWindowWidth = document.body.clientWidth;
}
else if(document.getElementById){
	var newWindowWidth = window.innerWidth;
}

var finalSPosition = newWindowWidth/2-380;

if (finalSPosition <= 15){
	finalSPosition = 15
}

mainMenu = new Menu ('mainMenu',finalSPosition,220);

//mainMenu.m_dec = '|';
//mainMenu.m_dec = '<img src="../img/LAarrowRightBlack.gif" width="8" height="11" alt="" border="0">';
mainMenu.m_dec = '';
mainMenu.m_vertical = true;
//mainMenu.sm_color  = 'url(img/icon_printer.gif)'; // Item color of submenus
//mainMenu.sm_a_color  = 'url(img/icon_printer.gif)'; // Item color when mouseOver
mainMenu.txt_color  = '#000000';  // Color of initial menu
mainMenu.txt_a_color  = '#FFFFFF'; // Item color of submenus

//Menu definition
mainMenu.addItem ('NLPIP Home',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='/programs/nlpip/index.asp'"},false);

	mainMenu.addItem ('Technologies',{'url':'/programs/nlpip/technologies.asp','target':'_blank','winOptions':'width=770, toolbar=yes, standard=yes, location=yes, status=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Search',{'url':'/programs/nlpip/search.asp','target':'_blank','winOptions':'width=770, toolbar=yes, standard=yes, location=yes, status=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('FAQ',{'url':'/programs/nlpip/faqs/index.asp','target':'_blank','winOptions':'width=770, toolbar=yes, standard=yes, location=yes, status=yes, resizable=yes, scrollbars=yes', 'theHeight':30,'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Publications',{'url':'/programs/nlpip/publications.asp','target':'_blank','winOptions':'width=770, toolbar=yes, standard=yes, location=yes, status=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},true);
mainMenu.addItem ('-',{'url':'-','theHeight':15, 'theWidth':150},false);
mainMenu.addItem ('MH Lamps Q & A',{'url':'', 'theHeight':30,'theWidth':150,'backgroundA':'url(img/arrowOver.gif)','background':'url(img/arrowUnder.gif)','txtacolor':'#FFFFFF','onclick':"location='abstract.asp'"},false);

		mainMenu.addItem ('Introduction',{'url':'abstract.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How do metal halide lamps work?',{'url':'work.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is the difference between quartz and ceramic arc tubes?',{'url':'differenceQuartzCeramic.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is the difference between probe-start and pulse-start?',{'url':'differenceProbePulse.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Why do MH lamps require a ballast?',{'url':'requireBallast.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What types of ballasts are available for MH lamps?',{'url':'ballastTypes.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What effect does burning postion have?',{'url':'burningPosition.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are warm-up and restrike times?',{'url':'restrikeTimes.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are some important characteristics of MH lamps?',{'url':'characteristics.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Are mid-wattage MH lamps cost effective?',{'url':'costEffective.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How well do MH lamps work in retrofitting?',{'url':'retroFit.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What safety issues should specifiers consider?',{'url':'safetyIssues.asp','theHeight':30, 'theWidth':250,'backgroundA':'#660066','txtacolor':'#FFFFFF'},true);
		
mainMenu.addItem ('Appendix',{'url':'appendix.asp','theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Resources',{'url':'resources.asp','theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Sponsors and Credits',{'url':'sponsorsCredits.asp', 'theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Glossary',{'url':'glossary.asp', 'target':'_blank','winOptions':'status=no, toolbar=no, resizable=yes, location=no, scrollbars=yes, width=780, height=500','theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Legal Notices',{'url':'legal.asp','theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Site Map',{'url':'sitemap.asp','theHeight':30, 'theWidth':150,'backgroundA':'#660066','txtacolor':'#FFFFFF'},false);

mainMenu.doMenu();

//control
if (document.layers){
	document.onMouseDown = hideMenus;
} else {
	document.body.onclick = hideMenus;
}
