<!-- hide

var LessonSource = new Array(5)
LessonSource[0] =  "about.htm"
LessonSource[1] =  "object.htm"
LessonSource[2] =  "student.htm"
LessonSource[3] =  "resource.htm"
LessonSource[4] =  "material.htm"

var ModuleSource = new Array(6)
ModuleSource[0] =  "overview.htm"
ModuleSource[1] =  "standard.htm"
ModuleSource[2] =  "lessons.htm"
ModuleSource[3] =  "science.htm"
ModuleSource[4] =  "material.htm"
ModuleSource[5] =  "media.htm"

function GoToTop(pathadd)
{
	top.location = pathadd + "vtt.htm"
}

// This function goes to a certain section in the present module.
// NOT a different module.  Cross-module travel is apparently a no-no.

function Module(pathadd, module)
{
	// Default for an illegal value
	if ((module < 1) || (module > 6))
	{
		module = 1
	}

	top.location = pathadd + "z_" + ModuleSource[module-1];
}

function GoToLesson(pathadd, lesson)
{
	top.location = pathadd + "lesson" + lesson + "/z_" + LessonSource[0];
}

// Used to go directly to a given section in an external lesson

function Lesson(pathadd, lesson, section)
{
	// Default for an illegal value
	if ((section < 1) || (section > 5))
	{
		section = 1;
	}

	top.location = pathadd + "lesson" + lesson + "/z_" + LessonSource[section-1];
}

// Used to target an activity in an external lesson

function Activity(pathadd, lesson, activity)
{
	top.location = pathadd + "lesson" + lesson + "/z_act" + activity + ".htm";
}

// This is the function used by the individual lessons
// to go to their own activities (note fewer parameters)
// It also takes advantage of the fact that it is being called
// from the parent frameset of the current lesson, by sending
// a refresh command to the frameset's top frame and updating
// the content frame directly.  Less reloading this way.

function ActivityLocal(activity)
{
   if (activity == 0)
   {
      content.location = "about.htm";   
   }
   else
   {
	   content.location = "act"  + activity + ".htm";
   }
}

// A similar function to go to a lession section from
// within the same lesson.  Note that the section number
// refers to the button order along the menu bar, going
// from 1 to 5.  So to get to 'about', one would call
// this function as: "LessonLocal(1)"

function LessonLocal(section)
{
	// Default for an illegal value
	if ((section < 1) || (section > 5))
	{
		section = 1;
	}

	content.location = LessonSource[section-1];
}

// This function opens a PDF (or any other file you specify) residing in a
// folder called 'pdf' off the base path.  It creates a new window with
// no navigation toolbar, so the maximum allowable space can be used to
// display the file.

function open_handout(the_page)
{
   open(the_page,"Handout","alwaysLowered=0,alwaysRaised=0,,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=0");
}

// This function creates a small child window with
// content of the given glossary word definition.

function define(the_word, the_path)
{
   var the_name = the_path+'glossary/'+the_word+'.htm';
   
	open(the_name, the_word, 'toolbar=0,width=360,height=225,menubar=0,scrollbars=1,status=0,resizable=0,dependent=1');
}


// -->

