<!--
/*********************************************************************************
*                                                                                *
* Frameset Selector Javascript                                                   *
*                                                                                *
* Filename: frameset_selector.js                                                 *
*                                                                                *
*********************************************************************************/

// change main_frame_page to your default frame page
//var main_frame_page = "http://www.stmarysmendlesham.org.uk/new/main.php";
//var main_frame_page = "http://localhost/testphp/stmarys_menu/main.php";  
var main_frame_page = "main.html";  
var blank = " ";   // blank page
var content;

/*********************************************************************************
* INFORMATION: Regarding the LOCATION Property.                                  *  
*                                                                                *
* The location property stores information about the current URL                 *
* location.protocol   is used to extract the protocol part of the URL (i.e.http:)*
* location.hostname   is used to extract the host name of the URL                *
*                     (i.e. www.microsoft.com)                                   *
* location.port       is used to extract the port number of the URL              *
* location.pathname   is used to extract the filename part of the URL:           *
* location.search     is used to extract the query portion of the URL, i.e. the  *
*                     bit after any "?"                                          *
*                                                                                *
* (if query string ('?' after URL) set content variable to what follows the '?'  *
* otherwise, start fresh by setting content variable to table_of_contents page.) *
*********************************************************************************/

if (location.search)
  {
  // there is something after the "?" so extract it
	content = location.search.substring(1, location.search.length);
	}
else
  {
	// set the content variable to contain the main frame page
  content = main_frame_page;
	}

function fillFrame()
  {
	  parent.main.location.href = content;
  }
/*******************************************************************************
* End of Frameset Javascript                                                   *
*******************************************************************************/
-->