//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,200);

//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':'#006600','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':'#006600','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':'#006600','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':'#006600','txtacolor':'#FFFFFF'},true);
mainMenu.addItem ('-',{'url':'-','theHeight':15, 'theWidth':150},false);
mainMenu.addItem ('MR16 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 ('What are MR16 Lamps?',{'url':'whatAreMR16.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are important characteristics?',{'url':'performance.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Can a MR16 lamp replace a reflectorized lamp?',{'url':'reflectorizedLamps.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are the advantages of using MR16 lamps?',{'url':'advantages.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are the disadvantages of using MR16 lamps?',{'url':'disadvantages.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What do I need to know about MR16 lamps?',{'url':'needToKnow01.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How much do MR16 lamps cost?',{'url':'cost.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Which MR16 lamp is the most appropriate?',{'url':'appropriate.asp','theHeight':30, 'theWidth':200,'backgroundA':'#006600','txtacolor':'#FFFFFF'},true);
		
mainMenu.addItem ('Resources',{'url':'resources.asp','theHeight':30, 'theWidth':150,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Sponsors and Credits',{'url':'sponsorsCredits.asp', 'theHeight':30, 'theWidth':150,'backgroundA':'#006600','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':'#006600','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Legal Notices',{'url':'legal.asp','theHeight':30, 'theWidth':150,'backgroundA':'#006600','txtacolor':'#FFFFFF'},false);
mainMenu.addItem ('Site Map',{'url':'sitemap.asp','theHeight':30, 'theWidth':150,'backgroundA':'#006600','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;
}
