
			function getAjax(qsKey, qsValue) {
				
				 /**				 * This empties the results and shows the spinning indicator				 */				var container = $('results').addClass('ajax-loading');
				var log = $('log').empty();
				var fx = new Fx.Style(log, 'opacity').set(0);
									var url = "http://www.bodyartvillage.it/2008/ajax/?"+qsKey+"="+qsValue;				 				/**				 * The simple way for an Ajax request
				 * onComplete removes the spinner from the results and fades in the data				 */				new Ajax(url, {					method: 'get',					update: log,					onComplete: function() {						container.removeClass('ajax-loading');
						fx = new Fx.Style(log, 'opacity', { duration: 1000, wait:true, transition: Fx.Transitions.Quad.easeOut }).start(0, 1);					}				}).request();			};
			
			
				
			window.addEvent('domready', function() {
						
					getAjax('palestra','mercato');
						
			});
