/* arrays for bgcolors and font colors for out, over and down*/
var states = ['mout', 'mover', 'mdown'];
var bgpr = ['#EDD2AD', '#006600', '#006600']; 
var bgns = ['#EDD2AD', '#B07726', '#B07726']; 
var bgair = ['#F5F0DD', '#0066FF', '#0066FF']; 
var bgairhd = ['#EAF4FF', '#0066FF', '#0066FF']; 
var bgbio = ['#F5F0DD', '#009933', '#009933']; 
var bggeo = ['#F5F0DD', '#D2B767', '#D2B767'];
var bgsds = ['#F5F0DD', '#9933CC', '#9933CC']; 
var bgwtr = ['#F5F0DD', '#419CA7', '#419CA7']; 
var fontcolors = ['#000000', '#FFFFFF', '#FFFFFF']; 
var fontcolorspr = ['#006633', '#FFFFFF', '#FFFFFF']; 
var fontwts = ['normal', 'normal', 'bold']; 

/* 0=horizontal offset, 1= vertical offset, 2=item's width in pixels, 3=item's height in pixels */
/* Any item may have unlimited count of sub items. All sub items are defined using same rules as 
were used for creation of the item itself. */
var MENU_ITEMS = [
/* item structure for Nature & Science Menu */
 	[wrap_ns('Explore Nature'), 'http://www.nature.nps.gov/', [0, null, 170, 20]],
	[wrap_last0('Air'), '/air/index.cfm', [0, 20, 170, 20]],
	[wrap_bio('Biology'), 'http://www.nature.nps.gov/biology/', [0, 19, 170, 20]],
	[wrap_geo('Geology'), '/geology/index.cfm', [0, 19, 170, 20]],
	[wrap_sds('Natural Sounds'), 'http://www.nature.nps.gov/naturalsounds/', [0, 19, 170, 20]],
	[wrap_wtr('Water'), 'http://www.nature.nps.gov/water/', [0, 19, 170, 20]],
/* item structure for Air Quality Menu */
	[wrap_header('Explore Air:'), '/air/index.cfm', [0, 40, 170, 20]],

[wrap_arrow0('Air Quality In Parks'), '/air/permits/aris/index.cfm', [null, 19, 170, 20],
		[wrap_last('By Park'), '/air/permits/aris/index.cfm', [160, 5, 170, null]],
		[wrap_last('By Ecoregion'), '/air/permits/aris/networks/index.cfm', [null, null,170, null]],
		[wrap_last('Conditions &amp; Trends'), '/air/who/npsPerfMeasures.cfm', [null, null,170, null]], 
	],
	[wrap_arrow0('Basics'), '/air/AQBasics/index.cfm', [null, 19, 170, 20],    
		[wrap_arrow('Air Pollution Sources'), '/air/AQBasics/sources.cfm', [160, 5, 170, null],
			[wrap_last('Types of Sources'), '/air/AQBasics/sources.cfm#types', [160, 5, 170, null]],
			[wrap_last('Sources in Parks'), '/air/AQBasics/sources.cfm#parks', [null, null, 170, null]],
			[wrap_last('New Sources'), '/air/AQBasics/sources.cfm#new', [null, null, 170, null]]
		],
		[wrap_arrow('Effects of Air Pollution'), '/air/AQBasics/effects.cfm', [null, null, 170, null],
			[wrap_last('Visibility Effects'), '/air/AQBasics/visibility.cfm', [160, 5, 170, null]],
			[wrap_last('Ecological Effects'), '/air/AQBasics/ecologic.cfm', [null, null, 170, null]],
			[wrap_last('Human Health Effects'), '/air/AQBasics/human.cfm', [null, null, 170, null]],
			[wrap_last('Economic Effects'), '/air/AQBasics/economics.cfm', [null, null, 170, null]]
		],
		[wrap_last('Legal Background'), '/air/AQBasics/legalbackground.cfm', [null, null, 170, null]]
	],
	/*[wrap_last0('FAQs'), '/air/faq/index.cfm', [null, 19, 170, 20]], */
	[wrap_arrow0('Law & Policy'), '/air/regs/index.cfm', [null, 19, 170, 20],  
		[wrap_last('Laws & Regulations'), '/air/regs/laws_Regs.cfm', [160, 5, 170, null]],
		[wrap_last('Policy'), '/air/regs/policy_plan.cfm', [null, null, 170, null]], 
		[wrap_last('Partnerships'), '/air/regs/partnership.cfm', [null, null, 170, null]], 
		[wrap_last('Smoke Management'), '/air/regs/smokeFire.cfm', [null, null, 170, null]] 
	],
	[wrap_arrow0('Monitoring &amp; Data'), '/air/monitoring/index.cfm', [null, 19, 170, 20],
		[wrap_arrow('Current Data'), '/air/data/current/index.cfm', [160, 5, 170, null],
			[wrap_last('Hawaii Volcanoes NP'), '/air/webcams/parks/havocam/havocam.cfm', [160, 5, 170, null]],
			],																 
		[wrap_last('Visibility'), '/air/monitoring/vismon.cfm', [null, null, 170, null]],
		[wrap_last('Ozone & Meteorology'), '/air/Monitoring/network.cfm', [null, null,170, null]],
		[wrap_last('Wet Deposition &amp; Mercury'), '/air/Monitoring/wetmon.cfm', [null, null,170, null]],
		[wrap_last('Dry Deposition'), '/air/Monitoring/drymon.cfm', [null, null, 170, null]],
			 
	],
		[wrap_arrow0('Natural Lightscapes'), '/air/lightscapes/index.cfm', [null, 19, 170, 20],
		[wrap_last('Overview'), '/air/lightscapes/overview.cfm', [160, 5, 170, null]], 
		[wrap_last('Lightscape Management'), '/air/lightscapes/mgmt.cfm',[null, null, 170, null]],
		[wrap_last('Monitoring &amp; Data'), '/air/lightscapes/monitorData/index.cfm', [null, null, 170, null]],
 		[wrap_last('Outdoor Lighting'), '/air/lightscapes/lighting.cfm', [null, null, 170, null]],
		[wrap_last('Visitor Enjoyment'), '/air/lightscapes/visitor.cfm', [null, null, 170, null]],  
		[wrap_last('Who We Are'), '/air/lightscapes/team.cfm', [null, null, 170, null]]
	], 
	[wrap_arrow0('Permit Applications'), '/air/permits/index.cfm', [null, 19, 170, 20],
		[wrap_last('NPS Role'), '/air/permits/npsRole.cfm', [160, 5, 170, null]], /* overlapping, x coordinate */
		[wrap_last('Applicant Quick Steps'), '/air/permits/quickSteps.cfm',[null, null, 170, null]],
		[wrap_last('Related Info'), '/air/permits/relatedInfo.cfm', [null, null, 170, null]],
		[wrap_last('Class I Areas'), '/air/maps/classILoc.cfm', [null, null, 170, null]],
		[wrap_last('Class I Receptors'), '/air/maps/Receptors/index.cfm', [null, null, 170, null]]
	],
	[wrap_last0('Photos &amp; Multimedia'), '/air/multimedia/index.cfm', [null, 19, 170, 20]],
	[wrap_arrow0('Planning'), '/air/planning/index.cfm', [null, 19, 170, 20],
		[wrap_last('Internal Planning'), '/air/planning/index.cfm?tab=0#TabbedPanels1', [160, 5, 170, null]], 
		[wrap_last('External Planning'), '/air/planning/index.cfm?tab=1#TabbedPanels1',[null, null, 170, null]],
		[wrap_last('Condition Assessment'), '/air/planning/index.cfm?tab=2#TabbedPanels1', [null, null, 170, null]]
		],
	[wrap_last0('Publications'), '/air/Pubs/index.cfm', [null, 19, 170, 20]],
	/*[wrap_last0('Site Map'), '/air/sitemap2.cfm', [null, 19, 170, 20]],*/
	[wrap_arrow0('Studies'), '/air/Studies/index.cfm', [null, 19, 170, 20],
		[wrap_arrow('Ecological Assessments'), '/air/studies/ecological.cfm', [160, 5, 170, null],
			[wrap_last('Nitrogen &amp; Sulfur'), '/air/studies/NSdeposition.cfm', [160, 5, 170, null]],
			[wrap_last('Ozone'), '/air/studies/ecoOzone.cfm', [null, null, 170, null]],
			[wrap_last('Toxics &amp; Mercury'), '/air/studies/toxiceffects.cfm', [null, null, 170, null]],
			[wrap_last('Multi-Stressor'), '/air/studies/MStressor.cfm', [null, null, 170, null]]
		],
		[wrap_last('Visibility Assessments'), '/air/studies/visstudy.cfm', [null, null, 170, null]],
		[wrap_last('Ozone Studies'), '/air/studies/atmospheric.cfm', [null, null, 170, null]
		],
		
		[wrap_arrow('Emission Studies'), '/air/studies/otherstudy.cfm', [null, null, 170, null],
			[wrap_last('Yellowstone NP'), '/air/studies/yell/yellAQwinter.cfm', [160, 5, 170, null]]
		]
	],
	
	[wrap_last0('Students & Teachers'), '/air/edu/index.cfm', [null, 19, 170, 20]],
	[wrap_last0('Web Cameras'), '/air/WebCams/index.cfm', [null, 19, 170, 20]],
	[wrap_arrow0('Who We Are'), '/air/who/index.cfm', [null, 19, 170, 20],
		[wrap_last('Contacts'), '/air/who/npsStaff.cfm', [160, 5, 170, null]], /* overlapping, x coordinate */
		[wrap_last('Organization'), '/air/who/npsOrgChart.cfm',[null, null, 170, null]],
	],
	[wrap_pr('Find a Park'), 'http://www.nps.gov/findapark/index.htm', [0, 40, 170, 20]]
];

/* used for air menu flyout items that require an arrow - have left & right borders*/
function wrap_arrow (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgair[i] + '; border-top-color: #CCCCCC; border-top-style: solid; border-top-width: 1px; border-right-color: #CCCCCC; border-right-style: solid; border-right-width: 1px; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #CCCCCC; border-left-style: solid; border-left-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%" height="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td><td valign="middle" align="absmiddle"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: normal;">&raquo;</span></td></tr></table></td></tr></table>';
	    return res;
}
/* used for air menu flyout items that don't require an arrow - have left & right borders*/
function wrap_last (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgair[i] + '; border-top-color: #CCCCCC; border-top-style: solid; border-top-width: 1px; border-right-color: #CCCCCC; border-right-style: solid; border-right-width: 1px; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #CCCCCC; border-left-style: solid; border-left-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
/* used for air menu items that require an arrow on first level = 0*/
function wrap_arrow0 (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgair[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%" height="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td><td valign="middle" align="absmiddle"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: normal;">&raquo;</span></td></tr></table></td></tr></table>';
	    return res;
}
/* used for air menu items that don't require an arrow on first level = 0*/
function wrap_last0 (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgair[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
/* bio, geo, sounds, water menu items in nature & science menu*/
function wrap_bio (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgbio[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
function wrap_geo (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bggeo[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
function wrap_sds (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgsds[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
function wrap_wtr (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgwtr[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: ' + fontwts[i] + '; padding-left: 12px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}

/* used for top level header items - ns , air, profiles*/
function wrap_ns (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="background-color:' + bgns[i] + '; border-top-color: #B07726; border-top-style: solid; border-top-width: 1px; border-bottom-color: #B07726; border-bottom-style: solid; border-bottom-width: 1px;"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle"><span style="font-family: Arial, Helvetica, sans-serif; color:' + fontcolors[i] + '; font-size: 10pt; font-weight: bold; padding-left: 3px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
function wrap_header (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="background-color:' + bgairhd[i] + '; border-top-color: #0066FF; border-top-style: solid; border-top-width: 1px; border-bottom-color: #0066FF; border-bottom-style: solid; border-bottom-width: 1px;"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle"><span style="font-family: Arial, Helvetica, sans-serif; color:' + fontcolors[i] + '; font-size: 10pt; font-weight: bold; padding-left: 3px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}
function wrap_pr (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" style="background-color:' + bgpr[i] + '; border-top-color: #006633; border-top-style: solid; border-top-width: 1px; border-bottom-color: #006633; border-bottom-style: solid; border-bottom-width: 1px;"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle"><span style="font-family: Arial, Helvetica, sans-serif; color:' + fontcolorspr[i] + '; font-size: 10pt; font-weight: bold; padding-left: 3px; text-decoration: none;">' + text + '</span></td></tr></table></td></tr></table>';
	    return res;
}


/* not used for now ************************************************************************************************
function wrap_arrowrt (text) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:' + bgcolorsarw[i] + '; border-bottom-color: #CCCCCC; border-bottom-style: solid; border-bottom-width: 1px; padding-top: 0.1em; padding-bottom: 0.1em;"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td valign="middle" width="100%"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: normal; text-indent: 12px; text-decoration: none;">' + text + '</span></td><td valign="middle" align="absmiddle"><span style="font-family: Arial, Helvetica, sans-serif; color: ' + fontcolors[i] + '; font-size: 9pt; font-weight: normal;">&raquo;</span></td></tr></table></td></tr></table>';
	    return res;
}********************************************************************************************************************/

/*************************************code not used**************************************************/
/*					['Ozone Effects', '/air/AQBasics/ozone_effects.htm', [140, 5, 150, null]],
					['Deposition Effects', '/air/AQBasics/compounds.htm', [null, null,150, null]],
					['Toxic Effects', '/air/AQBasics/toxic.htm', [null, null,150, null]]
					
			],text-indent: 3px;*/
			
/*		[wrap_arrow('Data'), '/air/data/', [160, 5, 170, null],
			['Pollutant Data', '/air/data/netdata1.htm', [160, 5, 170, null]],
			['Monitoring Stations', '/air/data/netlist.htm', [null, null, 170, null]]
		],
*/
/*var bgcolorshd = ['#EAF4FF', '#0066FF', '#0066FF'];*/
/*var bgcolors = ['#F5F0DD', '#0066FF', '#0066FF'];*/ 
/* [wrap_blank('blank'),, [0, 20, 170, 20]],*/

/* 20050224
			[wrap_arrow('Clean Air Act/Regs'), '/air/regs/cleanAir.cfm', [null, null, 170, null],
				/* comment out, moved to right Info box*/
				/* [wrap_last('PSD'), '/air/regs/psd.htm', [160, 5, 170, null]],
				[wrap_last('Visibility'), '/air/regs/visibility.htm', [null, null, 170, null]],
				[wrap_last('Nonattainment'), '/air/regs/nonattain.htm', [null, null, 170, null]],
				[wrap_last('SIPs'), '/air/regs/sips.htm', [null, null, 170, null]]
			],*/
				
/********************************** ORIGINAL TIGRA MENU PRO FUNCTION CODE BELOW *********************************************/
/*function wrap_parent (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%">
		<tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '">
		<tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black">
		<span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="img/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12">
		</td></tr></table></td></tr></table>';
	return res;
} 
function wrap_child (text, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="Arial, Helvetica, sans-serif" color="#006633"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
	return res;
}*/
