$(document).ready(function() {

	$(".ajax").live("click", function(event) {

		if (this.rel != 'nofollow') {
			var updatediv = 'div' + this.rel;
		} else {
			var updatediv = 'div' + this.id;
		}

		$.get(this.href, {
			'output' : 'ajax'
		}, function(data) {
			$('#' + updatediv).html(data).hide().fadeIn('slow');
		});
		return false;
	});

});
