function sideNavGo(id) {
	$(id).style.visibility = 'hidden';
	new Ajax.Request('eventSearch.php',
	{
		method:'post', parameters: {"startDate": $("datestart").getValue(), "endDate": $("dateend").getValue(), "categories": categoriesString, "recurring": recurring},
		onSuccess: function(transport){
			var response = transport.responseText || "no response text";
			//alert("Success! \n\n" + response);
		
			$("infovis").empty();
			
			var tm = new TM.Squarified({	
				//Color: { allow:true, minValue: -100, maxValue: 100,	minColorValue: [0, 0, 0], maxColorValue: [255, 255, 255]};
			});

			response = response.evalJSON();
			TM.Squarified.implement({   
			  'setColor': function(json) {   
				return json.data.$color; 
			  }   
			});
		  tm.loadJSON(response);
		},
		onFailure: function(){ alert('Please adjust the dates of your query...') }
	  });
}

