//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_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='http://www.lrc.rpi.edu/programs/NLPIP/index.asp'"},false);

	mainMenu.addItem ('Technologies',{'url':'http://www.lrc.rpi.edu/programs/NLPIP/technologies.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150},false);
	mainMenu.addItem ('Search',{'url':'http://www.lrc.rpi.edu/programs/NLPIP/search.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150},false);
	mainMenu.addItem ('FAQ',{'url':'http://www.lrc.rpi.edu/programs/NLPIP/faqs/index.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes', 'theHeight':30,'theWidth':150},false);
	mainMenu.addItem ('Publications',{'url':'http://www.lrc.rpi.edu/programs/NLPIP/publications.asp','target':'_blank','winOptions':'width=770, toolbar=yes, resizable=yes, scrollbars=yes','theHeight':30,'theWidth':150},true);
mainMenu.addItem ('-',{'url':'-','theHeight':15, 'theWidth':150},false);
mainMenu.addItem ('LED Lighting 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 ('General Information',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
		mainMenu.addItem ('Introduction',{'url':'abstract.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is the difference between indication and illumination?',{'url':'indicationIllumination.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is an LED?',{'url':'whatIsAnLED.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What determines the color of an LED?',{'url':'color.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What makes LEDs suitable for illumination applications?',{'url':'illuminationApplications.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How is white light made with LEDs?',{'url':'whiteLight.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Which method for creating white light is best?',{'url':'whiteLightMethod.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Will LEDs achieve high light output?',{'url':'lightOutput.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is an LED lighting system?',{'url':'lightingSystem.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	mainMenu.addItem ('Electrical Properties',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
		mainMenu.addItem ('What are the electrical characteristics of LEDs?',{'url':'electricalCharacteristics.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Why is it important to control the current through an LED?',{'url':'controlCurrent.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is an LED driver?',{'url':'LEDDriver.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Can LEDs be dimmed?',{'url':'dimmedLEDs.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Does dimming LEDs cause color shifts?',{'url':'dimmingColorShifts.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Does dimming LEDs decrease their lamp life?',{'url':'dimmingLampLife.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	mainMenu.addItem ('Thermal Properties',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
		mainMenu.addItem ('How are LEDs affected by heat?',{'url':'heat.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Why is heat sinking important for LEDs?',{'url':'heatSinking.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What types of heat sinking materials are used in LED lighting systems?',{'url':'heatSinkingMaterials.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	mainMenu.addItem ('Optical Properties',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
		mainMenu.addItem ('How much light do LEDs produce?',{'url':'lightProduced.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Are LEDs available in different beam distributions?',{'url':'beamDistributions.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Are LEDs inherently directional light sources?',{'url':'directionalLightSources.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Does higher luminous intensity mean higher light output?',{'url':'luminousIntensityLightOutput.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What is the life of LEDs?',{'url':'life.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Do all LEDs have the same lumen maintenance characteristics?',{'url':'lumenMaintenance.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Are ther color variations among LEDs?',{'url':'colorVariations.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How large can color variations be for acceptable use?',{'url':'acceptableVariations.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	mainMenu.addItem ('Applications',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},false);
		mainMenu.addItem ('How do the color rendering characteristics compare to other light sources?',{'url':'renderingCharacteristics.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('How are LEDs packaged into systems for lighting applications?',{'url':'packaged.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Where might LEDs be found in the future?',{'url':'futureLEDs.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('Which applications are LEDs expected to be energy-efficient alternatives?',{'url':'energyEfficient.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},true);
	mainMenu.addItem ('Availability',{'url':'', 'theHeight':30,'theWidth':150,'background':'url(img/arrowUnder.gif)','backgroundA':'url(img/arrowOver.gif)','txtacolor':'#FFFFFF','onclick':"location='index.asp'"},true);
		mainMenu.addItem ('What are some LED devices that are available?',{'url':'devicesAvailability.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are some LED drivers that are available?',{'url':'driversAvailability.asp', 'theHeight':30, 'theWidth':300,'backgroundA':'#990000','txtacolor':'#FFFFFF'},false);
		mainMenu.addItem ('What are some LED lighting systems that are available?',{'url':'lightingSystemsAvailability.asp', 'theHeight':30, 'theWidth':300,'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=700, 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();

//mainMenu.youAreHere ('yah',0,0,0,0,'You are here','#000000');

//control
if (document.layers){
	document.onMouseDown = hideMenus;
} else {
	document.body.onclick = hideMenus;
}
