var IS_OLD_BROWSER = false;

if ( ( navigator.appVersion.indexOf( "1." ) == 0 ) || 
	( navigator.appVersion.indexOf( "2." ) == 0 ) )
	IS_OLD_BROWSER = true;

ONE_AT_A_TIME = true; 
BULLET_IMG_WIDTH = 14;
BULLET_IMG_HEIGHT = 19;
/* add comments that are on multiple lines */
// comment out a line
// comment out a line

var M0 = new TreeMenu( 'M0' );

//	ATE( M0, 'index.html', 'Home' );

	var Intro = new TreeMenu( 'Intro' );
	ATE( M0, 'intro.html', 'Introduction', Intro );
		ATE( Intro, 'usingjvvjr.html', 'Technical Information' );
//		ATE( Intro, 'bkgdinfo.html', 'Background Info.' );
//		ATE( Intro, 'philosophy.html', 'Philosophy' );
//		ATE( Intro, 'bibref.html', 'Bib. & References' );
		ATE( Intro, 'credits.html', 'Credits/Copyright' );
//		ATE( Intro, 'presentations.html', 'Presentations & Pubs.' );


	var science = new TreeMenu( 'science' );
	ATE( M0, 'science.html', 'Science Background', science );

//		ATE( gps, 'gpsapp.html', 'GPS: Applications', gps );

		var gps = new TreeMenu( 'gps' );
		ATE( science, 'gpsapp.html', 'GPS: Applications', gps );
//				ATE( gps, 'gpsactive.html', 'Active Tectonics' );
//				ATE( gps, 'gpscrustal.html', 'Crustal Deform.' );
				ATE( gps, 'gpsed.html', 'Educational Outreach' );
//				ATE( gps, 'gpsemerg.html', 'Emergency Response' );
				ATE( gps, 'gpsintraplate.html', 'Intraplate Deform.' );
				ATE( gps, 'gpsdeep.html', 'Deep Earth Dynamics' );
				ATE( gps, 'gpspridig.html', 'Plate Rigidity' );
				ATE( gps, 'gpspolar.html', 'Polar Studies/Glac.' );
				ATE( gps, 'gpsplatebound.html', 'Plate Boundary Zone' );
//				ATE( gps, 'gpstect.html', 'Tectonic Geomorph.' );
				ATE( gps, 'gpsvmonit.html', 'Volcano Monitoring' );
//				ATE( gps, 'gpsvstudies.html', 'Volcano Studies' );



	var tools = new TreeMenu( 'tools' );
	ATE( M0, 'tools.html', 'Tools & Programs', tools );

		ATE( tools, 'jvvjrtool.html', 'JVV Jr. Overview' );
		ATE( tools, 'javascript:LinkFocus( "http://jules.unavco.org/VoyagerJr/Earth", "jvvjrwindow" )', 'Open the JVV, Jr.' );
//		ATE( tools, 'javascript:LinkFocus( "http://jules.unavco.ucar.edu/", "jvvwindow" )', 'Open the JVV' );
		ATE( tools, 'esvtool.html', 'ESV Jr. Overview' );
		ATE( tools, 'javascript:LinkFocus( "http://jules.unavco.org/VoyagerJr/EarthScope", "jvvjrwindow" )', 'Open the ESV, Jr.' );
		ATE( tools, 'javascript:LinkFocus( "http://www.dpc.ucar.edu/earthscopeVoyager/JVV_Jr/didyouknow/index.html", "jvvjrwindow" )', 'Did You Know' );

		
		var calc = new TreeMenu( 'calc' );
		ATE( tools, '', 'Calculators', calc );

			ATE( calc, 'http://sps.unavco.org/crustal_motion/dxdt/nnrcalc/', 'Global Plate Motion');
			ATE( calc, 'http://sps.unavco.org/crustal_motion/dxdt/nnrcalc/', 'Relative Plate Motion' );


	var curr = new TreeMenu( 'curr' );
	ATE( M0, 'curr.html', 'Curriculum', curr );

		var pt = new TreeMenu( 'pt' );
		ATE( curr, 'pt.html', 'Plate Tectonics', pt );

			ATE( pt, 'pt_t1.html', 'Plate Boundaries' );

			ATE( pt, 'pt_t2.html', 'Eqs. & Volcanoes' );

			ATE( pt, 'pt_t3.html', 'Absolute Plate Motion' );

			ATE( pt, 'pt_t4.html', 'Relative Plate Motion' );

				var pt_tables = new TreeMenu( 'pt_tables' );
				ATE( pt, 'pt_tables.html', 'Tables', pt_tables );
					ATE( pt_tables, 'pt_table1.html', 'Table 1' );
					ATE( pt_tables, 'pt_table2.html', 'Table 2' );
					ATE( pt_tables, 'pt_table3.html', 'Table 3' );
					ATE( pt_tables, 'pt_table4.html', 'Table 4' );

			ATE( pt, 'ptbkgd.html', 'Background Info.' );

			ATE( pt, 'javascript:LinkFocus( "http://jules.unavco.org/VoyagerJr/Earth", "jvvjrwindow" )', 'Open the JVV, Jr.' );



//			ATE( pt, '', 'Teacher Guide' );


//			ATE( pt, 'javascript:LinkFocus( "teacherGuide/tindex.html", "teacher" )', 'Teacher Guide' );


	ATE( M0, 'glossary.html', 'Glossary' );


	ATE( M0, 'mailto:jvvjr@dpc.ucar.edu', 'Email Us' );


function ShowMenus() {

	if ( !IS_OLD_BROWSER ) {

		if ( IS_DHTML_BROWSER ) {

			Logo();
			Display( M0 );
      document.writeln( '<table width="100%" border="0" cellspacing="0" cellpadding="0"><td width=164><img src="' + SITE_BASE + 'images/blank.gif" width="164" height="1"></td><td valign=top width="90%">' );
      document.writeln( '<table width="100%" border="1" cellpadding="14" cellspacing="0"><td bgcolor="#FEF4E2" valign="top">' );
		}
		else {

			Logo();
			document.writeln( '<table width="100%" border="0" cellspacing="0" cellpadding="0"><td valign=top>' );
			Display( M0, '_top' );      
      document.writeln( '</td><td valign=top>' );
      document.writeln( '<table width="100%" border="1" cellpadding="14" cellspacing="0"><td bgcolor="#FEF4E2" valign="top">' );
		}
	}
  else
  	document.writeln( '<b>This site requires a version 3.0+ browser to function fully!</b>' );
}

function Logo() {

	document.writeln( '<div class="logoPos"><a href="index.html"><img src="' + SITE_BASE + 'images/edSiteLogo.jpg" width="140" height="94" border="0"></a></div>');	
}

function ClosePage() {

	if ( !IS_OLD_BROWSER ) {

		document.writeln( '</td></table></td></table>' );
	}	
}



