//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 = '<img src="../img/LAarrowRightBlack.gif" width="8" height="11" alt="" border="0">';
mainMenu.m_dec = '';
mainMenu.m_vertical = true;
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, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Search',{'url':'/programs/nlpip/search.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('FAQ',{'url':'/programs/nlpip/faqs/index.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes', 'theHeight':30,'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Publications',{'url':'/programs/nlpip/publications.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
mainMenu.addItem ('-',{'url':'-','theHeight':15, 'theWidth':150},false);

mainMenu.addItem ('Introduction',{'url':'abstract.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);

mainMenu.addItem ('HW-CFL 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 ('What are the intended applications for HW-CFLs?',{'url':'intended-applications.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('  How does light output of HW-CFLs compare to other light sources?',{'url':'light-output.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How does lamp electric power compare to manufacturer claims?',{'url':'HWCFL-power.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How does efficacy of HW-CFLs compare to other light sources?',{'url':'HWCFL-efficacy.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How does lamp life of HW-CFLs compare to other light sources?',{'url':'HWCFL-life.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are the color properties of HW-CFLs?',{'url':'HWCFL-color.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How is performance affected by ambient temperature?',{'url':'HWCFL-thermal-performance1.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How does lamp orientation affect performance of HW-CFLs?',{'url':'HWCFL-lamp-orientation.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are the starting profiles of HW-CFLs?',{'url':'HWCFL-starting.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What should I consider when retrofitting a HW-CFL into a high-intensity discharge luminaire?',{'url':'HWCFL-retrofits.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What maintenance issues should I consider when using a HW-CFL?',{'url':'HWCFL-maintenance.asp','theHeight':34, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Overall, what are the benefits and drawbacks of HW-CFLs?',{'url':'HWCFL-benefits.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What HW-CFL products are available?',{'url':'HWCFL-products.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);

mainMenu.addItem ('Appendices',{'url':'', 'theHeight':30,'theWidth':150,'backgroundA':'url(img/arrowOver.gif)','background':'url(img/arrowUnder.gif)','txtacolor':'#FFFFFF','onclick':"location='abstract.asp'"},false);
		mainMenu.addItem ('Appendix A: Thermal testing of HW-CFLs',{'url':'HWCFL-appendix1-thermal.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Appendix B: Power and light output of HW-CFLs',{'url':'HWCFL-appendix2-power.asp','theHeight':20, 'theWidth':350,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);

mainMenu.addItem ('Resources',{'url':'resources.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Sponsors and Credits',{'url':'sponsorsCredits.asp', 'theHeight':30, 'theWidth':150,'backgroundA':'#990000','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':'#990000','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Legal Notices',{'url':'legalNotices.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Site Map',{'url':'sitemap.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);

mainMenu.doMenu();


if (document.layers){
	document.onMouseDown = hideMenus;
} else {
	document.body.onclick = hideMenus;
}
