function operations_link(vstr_Section){

	var lstr_LocationBuffer = document.location.href;
	var marr_LocationSegments = lstr_LocationBuffer.split("#");
	var lstr_NewLocation = "";
	var lint_Count = 0;
	
	for(lint_Count = 0;lint_Count < marr_LocationSegments.length-1; lint_Count ++){
		lstr_NewLocation+= marr_LocationSegments[lint_Count];
	}
	lstr_NewLocation+= "#" + vstr_Section;

	goto(lstr_NewLocation);
	operations_highlight("id-operations-" + vstr_Section + "-tab");
}

function operations_map_init(){
	var lstr_LocationBuffer = document.location.href;
	var larr_LocationSegments = lstr_LocationBuffer.split("#");
	var lstr_Section = larr_LocationSegments[larr_LocationSegments.length-1];
	switch(lstr_Section){
		case "overview":
			operations_link(lstr_Section);
			break;
			
		case "system-maps":
			operations_link(lstr_Section);
			break;
			
		case "contacts":
			operations_link(lstr_Section);
			break;
			
		default:
			operations_link("overview");
	}
		
	
}

function operations_highlight(vobj_ElementId){

	document.getElementById("id-operations-overview").style.display = "none";
	document.getElementById("id-operations-system-maps").style.display = "none";
	document.getElementById("id-operations-contacts").style.display = "none";

	document.getElementById("id-operations-overview-tab").className = document.getElementById("id-operations-overview-tab").className.replace("highlight","idle");
	document.getElementById("id-operations-system-maps-tab").className = document.getElementById("id-operations-system-maps-tab").className.replace("highlight","idle");
	document.getElementById("id-operations-contacts-tab").className = document.getElementById("id-operations-contacts-tab").className.replace("highlight","idle");


	switch (vobj_ElementId){
		case "id-operations-overview-tab":
			document.getElementById("id-operations-overview").style.display = "block";
			document.getElementById("id-operations-overview-tab").className = document.getElementById("id-operations-overview-tab").className.replace("idle","highlight");
			break;
		case "id-operations-system-maps-tab":
			document.getElementById("id-operations-system-maps").style.display = "block";
			document.getElementById("id-operations-system-maps-tab").className = document.getElementById("id-operations-system-maps-tab").className.replace("idle","highlight");
			break;
		case "id-operations-contacts-tab":
			document.getElementById("id-operations-contacts").style.display = "block";
			document.getElementById("id-operations-contacts-tab").className = document.getElementById("id-operations-overview-tab").className.replace("idle","highlight");
			break;
	}
}
