/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Function:		mapSwapLayer(Layer1,Layer2)
Description:	Toggles specified Layer1 off and Layer2 on or vice versa
Arguments:		none
Return:			
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function mapSwapLayer(Layer1,Layer2){
	var myMap = getMap();
	myMap.setAutoRefresh(false);
	if (myMap.getMapLayer(Layer1).getVisibility()){
		myMap.getMapLayer(Layer1).setVisibility(false);
		myMap.getMapLayer(Layer2).setVisibility(true);
	}
	else{
		myMap.getMapLayer(Layer2).setVisibility(false);
		myMap.getMapLayer(Layer1).setVisibility(true);
	}
	myMap.setAutoRefresh(true);
	myMap.refresh();
}	

