/*******************************************************************/
/* sitescripts.js:	JavaScripts common to most pages on site.	   */
/*				By The Essential Connection						   */
/*				Copyright © 2003 - 2005, Sheldon J. Potter		   */
/*				All Rights Reserved.							   */
/*******************************************************************/


/********************************************************/
// Status Bar Messages	
/********************************************************/

/* Global Navigation */
var news_msg			= "Read the latest news about The Mya Gonzales Foundation";
var contacttop_msg		= "Contact us";
var contactbott_msg		= contacttop_msg;
var privacy_msg			= "Read our Privacy Policy";
var termsofuse_msg		= "Read our Terms of Use policy";

var home_msg			= "Return to site Home page";
var about_msg			= "Learn more The Mya Gonzales Foundation";
var programs_msg		= "Learn about our programs";
var partners_msg		= "Learn about our affiliations and partnerships";
var grants_msg			= "Learn about our grants";
var howhelp_msg			= "Learn how you can help The Mya Gonzales Foundation";
var resources_msg		= "Check out related resources";

/* Local Navigation */
var pgtop_msg = "Return to top of page";
var close_msg = "Close Window";


/* Other Navigation */
var tecnav_msg			= "Learn more about The Essential Connection (opens new window)";
var res_msg				= "Check out this resource (opens new window)";
var genlearnmore_msg	= "Learn more";
var genviewpg_msg		= "View this page";



/********************************************************/
// Navigation control rollover effects scripts 
/********************************************************/

/* disp_navinf():	Displays nav control highlight image and status bar 
  *				message for nav control calling the function. 
  *				Parameters: 	ctl_name - name of control
  *							stat_msg - string to display in status bar
  *				Checks for browser capability to deal with this before doing anything.
*/
function disp_navinf(ctl_name, stat_msg)
{
	//alert('disp_navinf entered. Message: ' + stat_msg + " Control Name: " + ctl_name);
	if (document.images)
	{
		document.images[ctl_name].src = eval(ctl_name + '_hl').src;
	}
	
	window.status = stat_msg;
	
	return true;
} 

/* rem_navinf():	Removes nav control rollover effects
  *				for nav control calling the function. 
  *				Parameters: 	ctl_name - name of control
  *				Checks for browser capability to deal with this before doing anything.
*/
function rem_navinf(ctl_name)
{
	//alert('rem_navinf entered. Control Name: ' + ctl_name);
	if (document.images)
	{
		document.images[ctl_name].src = eval(ctl_name + '_uh').src;
	}
	
	window.status = '';
	
	return true;
}

/********************************************************/
// Window Control scripts 
/********************************************************/

/* OpenPopUp(FileName, Features):	Open Pop Up Window & display a file
  *		Parameters: 	FileName -- Path & filename to open.
  *					Featires -- Window features requested
*/
function OpenPopUp(URL, WName, Features)
{
	//alert ("DEBUG: OpenPopUp");
	window.open(URL,WName,Features);

}

/* ShowPage(FileName):	Show a page in the parent window & refocus to parent window
  *		Parameters: 	FileName -- Full name of file to open.
*/
function ShowPage(FileName)
{
	opener.document.location = FileName
	opener.focus()
}