GeoXml.prototype.toggleContentsOL = function(i,show){
	if (show) {
		for (var i=0;i<this.markersArray.length;i++) {
			// put functionality here to switch all the layers on
			/* **********************
			CODE REQUIRED HERE 
			********************** */
		}
	}
	else {
		for (var i=0;i<this.markersArray.length;i++) {
			// put functionality here to switch all the layers off
			/* **********************
			CODE REQUIRED HERE 
			********************** */

		}
	}
}; // end of function 

function getMapOL() {
	//return the instance of the map varaible for the Open Layers map
	// in this case the variable is called 
	// for googleMaps the variable is called map

	/* **********************
	CODE REQUIRED HERE 
	********************** */

}



GeoXml.prototype.processOL = function (xmlDoc,title, desc) {
	// put the functionality to process the XML dataset here for open layers
	// the processing here will depend if it is a map layer or a search query

	// the processing here will depend if it is a map layer or a search query
	if (this.layerType == "map" ) {
		this.processMapResultsOL(xmlDoc);
	} //layertype is not map
	if (this.layerType == "search" ) {
		this.processSearchResultsOL(xmlDoc);
	}

	if (this.layerType == "globalSearch" ) {
		this.processGlobalSearchResultsOL(xmlDoc);
	}
}

GeoXml.prototype.processMapResultsOL = function (xmlDoc) {
	// handle the map data - display it on the map
	// note that each individual point, line or polygon object should be added to this.markersArray   - this stores all
	// the points, lines and polygons and can then be used by other code to switch off or all the layer
	// xmlDoc is the XML document returned by the call to the PHP code

	/* **********************
	CODE REQUIRED HERE 
	********************** */
	
	

}


GeoXml.prototype.processGlobalSearchResultsOL = function(xmlDoc) {
	//the function to display search results on the overview map (i.e. the map that lists all the minisites
	// xmlDoc is the XML document returned by the call to the PHP code

	/* **********************
	CODE REQUIRED HERE 
	********************** */


};


GeoXml.prototype.processSearchResultsOL = function(xmlDoc) {
	//function to handle search results on the minisite - i.e. create the list of results and also
	// the code that when the user clicsk on one item in the list this is centred on the map and info pops up for it
	// xmlDoc is the XML document returned by the call to the PHP code

	/* **********************
	CODE REQUIRED HERE 
	********************** */

}

function olVars() {

	// this is the equivalent function of gmapVars -and should be used to get the bounding box of the open layers map
	// returned format should be as for function gmapVars - i.e. a string for the bounding box also with the zoom

	// the returned string should take the format:
	//		ne=lat,lng&sw=lat,lng&zoom=zoomvalue
	// e.g.:	ne=1.281929,0.382893&sw=0.18281,2.818283&zoom=3
	/* **********************
	CODE REQUIRED HERE 
	********************** */

	// return XXX;
}

function moveMapSearchLocationOL(lat,lng) {
 	// set the map centre to the lat, lng location given
	/* **********************
	CODE REQUIRED HERE 
	********************** */
}
