// Load the clicked Township in the Main SVG Map Area
function loadTshp (target_id) {
	//Switch the main frame to the selected page
    expLevel = 1;
	township = eval(target_id.substr(1,2));
	range = eval(target_id.substr(6,1));
	svgMapSrc = baseURL + "T" + township + "S_R" + range + "W/" + target_id + '.svgz';
	/* window.alert("Target:"+target_id+"\nTownship:"+township+"\nRange:"+range+"\nMapID:"+mapId); */
	loadSVGMap (svgMapSrc);

	hilite_id = target_id;
	var svgdoc = document.LOCMAP.getSVGDocument();
	showSVG (svgdoc, target_id, false);

	showLocation (template1);
	/* window.alert("MapID: " + svgMapSrc + "\nSection " + section); */
	return true;
  }

// Show the township on user rollover
function show_Tshp (target_id) {
	var svgdoc = getSVGDoc ();

    showSVG (svgdoc, target_id, false);

    // Propagate the event to other handlers.
    return true;
}

// Show the township on user rollover
function hide_Tshp (target_id) {
	var svgdoc = getSVGDoc ();

    if (target_id == tshp_lcid) return true;

    hideSVG (svgdoc, target_id, false);

    // Propagate the event to other handlers.
    return true;
}

// Function to start the process of loading the selected township
function goto_Tshp (target_id) {

    getSVGLocation();

	var svgdoc = getSVGDoc ();

    expLevel = 1;

    hideSVG (svgdoc, tshp_lcid, false);

    if (showSVG (svgdoc, target_id, false)) {
        tshp_lcid = target_id;
        loadTshp (target_id);
        }

    // Propagate the event to other handlers.
    return true;
}