//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,190);

//mainMenu.m_dec = '|';
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, 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 ('T5 Fluorescent Q&A',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
	mainMenu.addItem ('See All Questions',{'url':'allquestions.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);

	mainMenu.addItem ('Physical Characteristics',{'url':'','background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','theHeight':30, 'theWidth':150},false);
		mainMenu.addItem ('What are T5 lamps?',{'url':'pc1.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are T5 HO Lamps?',{'url':'pc2.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Can a T5 lamp replace a T12 or T8 lamp?',{'url':'pc3.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Do T5 lamps need special ballasts?',{'url':'pc4.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Is it possible to dim T5 lamps?',{'url':'pc5.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Is there any difference in...?',{'url':'pc6.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Does a T5 lamp give as much light...?',{'url':'pc7.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How long do T5 lamps last?',{'url':'pc8.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Do T5 lamps have better lumen maintenance ...?',{'url':'pc9.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Do T5 luminaires perform better?',{'url':'pc10.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Does a two-lamp luminaire using T5 . . .?',{'url':'pc11.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Are T5 lamps good for the environment?',{'url':'pc12.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Do T5 lamps start more slowly than T8 lamps?',{'url':'pc13.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);

mainMenu.addItem ('Economic Issues',{'url':'','background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','theHeight':30, 'theWidth':150},false);
	mainMenu.addItem ('What are the common trade names for T5 lamps?',{'url':'ei1.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Do price and availability prevent consumers...?',{'url':'ei2.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('What is the economic benefit of T5 systems?',{'url':'ei3.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	
	mainMenu.addItem ('Design and Application',{'url':'','background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','theHeight':30, 'theWidth':150},true);
		mainMenu.addItem ('What are good applications for T5 lamps?',{'url':'da1.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are the advantages and disadvantages. . .?',{'url':'da2.asp','theHeight':30, 'theWidth':200,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
//mainMenu.addItem ('Case Studies',{'url':'publications.cfm','theHeight':30, 'theWidth':150},false);

//mainMenu.addItem ('Print this Article',{'url':'pdf/LAT5webView.pdf','target':'_blank','winOptions':'width=700, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30, 'theWidth':150,'backgroundA':'url(img/printable.gif)','txtacolor':'#FFFFFF'},false);

mainMenu.addItem ('Resources',{'url':'','theHeight':30, 'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('References',{'url':'references.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('Acknowledgements',{'url':'ack.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
	mainMenu.addItem ('NLPIP 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 ('Sponsors and Credits',{'url':'sponsors.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=700, height=500','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Legal Notices',{'url':'legal.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.addItem ('Help',{'url':'help.asp','theHeight':30, 'theWidth':150,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);

mainMenu.doMenu();

//mainMenu.youAreHere ('yah',0,0,0,0,'You are here','#000000');

//control
if (document.layers){
	document.onMouseDown = hideMenus;
} else {
	document.body.onclick = hideMenus;
}
