// This .js file is the control interface for the Plants and Fungi Guide

var Info_Window=0;
var Key_Window=0;

var popupURL

function Close_Info_Window()
{
	if(Info_Window && !Info_Window.closed)
	{
		Info_Window.close();
	}
}

function Popup_Info_Window(popupURL) 
{
	// open the popup window
	if(Info_Window && !Info_Window.closed)
	{
		Info_Window.location=popupURL;
	}
	else
	{
		Info_Window = window.open(popupURL,"Info_Window",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');
		
		// set the opener if it's not already set.  it's set automatically
		// in netscape 3.0+ and ie 3.0+.
		if( navigator.appName.substring(0,8) == "Netscape" )
		{
			Info_Window.location = popupURL;
		}
	
		Info_Window.name="Info_Window";
		Info_Window.opener == window;
		Info_Window.opener.name="Control_Window"
		Info_Window.I_Came_From_Nothing=0
	}
	
} // function Popup_Info_Window(popupURL)

function Pop_Key(document)
{
	// open the Control window
	Key_Window = window.open("Dichotomous_Key.htm","Key_Window");
	Key_Window.focus();

} // function Pop_Index(document)

//if (Info_Window.open)
//{
//	Info_Window.location = Info_Window.location;
//	Info_Window.name="Info_Window";
//	Info_Window.focus();
//}
//else
//{
//	Popup_Info_Window("Dichotomous_Key_Instructions.htm");
//}
//
//this.name="Key_Window"
