// Load the selected Section in the SVGMAP Document Area
function loadSection (target_id) {
	if (expLevel == 1) {
		//Store current location for location map
		locMapSrc = svgMapSrc;
		expLevel = 2;
		loadLocMap ();
		goto_Ref (target_id);
		}
	//Switch the main frame to the selected page
	var mapId = baseURL + "T" + township + "S_R" + range + "W/" + target_id + '.svgz';
	loadSVGMap (mapId);
	var section = target_id.substr(5,2);
	section = eval(section);
	showLocation (template2);
	/* window.alert("MapID: " + mapId + "\nSection " + section); */
}

// Show the selected township on user rollover
function show_Ref (target_id) {
	var svgdoc = getSVGDoc ();

	showSVG (svgdoc, target_id, false);
	// Propagate the event to other handlers.
	return true;
}

// Hide the selected township on user rollover
function hide_Ref (target_id) {
	var svgdoc = getSVGDoc ();

	if (target_id == section_lcid) return true;

	hideSVG (svgdoc, target_id, false);
	// Propagate the event to other handlers.
	return true;
}

// Function to begin the process of loading the selected township
function goto_Ref (target_id) {
	var svgdoc = getSVGDoc ();

	hideSVG (svgdoc, section_lcid, false);
        loadMsgOn();
	if (showSVG (svgdoc, target_id, false)) {
		section_lcid = target_id;
	if (expLevel == 1) {
	    expLevel = 2; // Section Level
	    locMapSrc = svgMapSrc;
	    loadLocMap ();
	    }
		loadSection (target_id);
		}
    getSVGLocation();
	showData ('Called from goto_Ref');
	// Propagate the event to other handlers.
	hilite_id = target_id;
	return true;
}