/* 
	the format of the tree definition file is simple,
	you can find specification in the product documentation at:
	
	http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#hierarchy
*/
var CURRENT_ITEM = 'NONE';
var COMMON_ITEMS = 
[	
	['Home', '/content.html', {'tw':'content'},
 	 	['Data Retrieval', '/data/content.html', {'tw':'content'},
			['Event-based','/form/data/eventbased.html',{'tw':'content'}],
			['Station-based','/cgi-bin/sta_based',{'tw':'content'}],
			['AutoDRM','/AutoDRM/autodrm_info.html',{'tw':'content'}],
			['Download','/cgi-bin/data_download',{'tw':'content'}],
			['Utility','/data/util/util.html',{'tw':'content'}],
		],
 	 	['Infrasound Stations', '/infrastat/content.html', {'tw':'content'},
                        ['Stations','/infrastat/network/content.html', {'tw':'content'}],
                        ['Map','/infrastat/network/map.html', {'tw':'content'}],
                        ['Data Availability','/cgi-bin/show_avail?par_set=infrastat&mode=Yearly', {'tw':'content'}],
                        ['Plots','/infrastat/plots.html', {'tw':'content'}],
                ],
                ['Research Databases','/database/content.html', {'tw':'content'},
			['Infrasound','/cgi-bin/resdb_ent?dbtype_id=ISD',{'tw':'content'}],
			['Ground Truth','/cgi-bin/resdb_ent?dbtype_id=GTD',{'tw':'content'}],
			['Nuclear Explosion','/database/nedb/nedb_ent.html',{'tw':'content'}],
		],
		['Library','/documents/content.html', {'tw':'content'},
                        ['Infrasound Workshops', '/librarybox/infrabox/workshops.html',{'tw':'content'},
                               ['2009', 'http://www.finatec.org.br/eventos/itw2009/', {'tw':'_blank'}],
                               ['2008', '/librarybox/infrabox/ITW2008/index.html', {'tw':'content'}],
                               ['2007', '/librarybox/infrabox/ITW2007/index.htm', {'tw':'content'}],
                               ['2006', 'http://www.gi.alaska.edu/infrasound/ITW2006', {'tw':'_blank'}],
                               ['2005', 'http://www-dase.cea.fr/infrason/index.html', {'tw':'_blank'}],
                               ['2004', 'http://www.ga.gov.au/urban/infrasound', {'tw':'_blank'}],
                               ['2003', 'http://l2a.ucsd.edu/meeting/index.html', {'tw':'_blank'}],
                               ['2002', 'http://www.knmi.nl/~evers/itw02/presentations/pres.html', {'tw':'_blank'}],
                               ['2001', 'http://www.isla.hawaii.edu/meeting2001_program.html', {'tw':'_blank'}],
                        ],
	                ['Miscellaneous Items','/librarybox/misc.html', {'tw':'content'}],
		],
                ['Online Tools','/util/content.html', {'tw':'content'},
                        ['Color Selection Helper','/util/color_helper/',{'tw':'content'}],
                        ['Date and Time','/util/date_time/index.html',{'tw':'content'}],
                        ['Coordinate Translation','/util/coordinates/index.html',{'tw':'content'}],
                        ['Azimuth and Distance','/util/coordinates/azimuthDistance.html',{'tw':'content'}],
                ],
        ],
];

// function to highlight the selected items

function wrap(caption) {
   if (! CURRENT_ITEM) CURRENT_ITEM = 'NONE';
   return '<span class="' + (caption == CURRENT_ITEM ? 'mover' : 'mout') + '">' + caption + '</span>';
}
