/**
 * @author Joe Ray Gregory
 */

 	var go_ajax = function (element, updateid, column) {
		var to_update = $(updateid);
		$$(element+' a').each(function(el){
			el.onclick = function() {
				var url = el.href;
				var urlextend = url+"?request="+column;
				var fadeout = to_update.effect('opacity').start(1, 0)
				
				fadeout.addEvent('onComplete', function(e) {
					new Ajax(urlextend, {
						method: 'post',
						update: to_update,
						onRequest: function() {
						},
						onComplete: function(response) { 
							//location.hash = '#'+escape(url);
							to_update.effect('opacity').start(0, 1);
						}
					}).request();
				});
				return false;
			}
		});
	}
