﻿/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Function:		HideLegend()
Description:	event handler to show / hide the legend
Arguments:		none
Return:			none
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function hideLegend(maxWidth){
	var myMap = top.main.getMap();
	if (myMap.LayersViewWidth == 0){
		myMap.LayersViewWidth = maxWidth;
	}else{
		myMap.LayersViewWidth = 0;
	}
}

