var processing_update = false;
var current_menuitem = 999;
document.observe('dom:loaded', function() {
$$('#splash_menu a').each(function(h, indx) {
	$(h).on('click', function(e){
		if(current_menuitem != indx) {
			current_menuitem = indx;
			if(!processing_update) {
				processing_update = true;
				new Ajax.Updater('contentsWrapper', '/staticfiles/2011splash/ajax.php', {
						parameters	: { 'id' : indx }
					,	onComplete	: function() {
							processing_update = false;
						}
				});
			}
			Event.stop(e);
		}
	});
});
});
