// apparatus voor de Ajax xmlHTTP calls, voorkomt dat de mediaplayer herstart t.g.v. postbacks e.d.

function startLoading() {
	  Element.show('mainAreaLoading');
	  Element.hide('leftContent');
	}

function finishLoading() {
	  Element.show('leftContent');
	  setTimeout("Effect.toggle('mainAreaLoading');", 1000);
	}

function loadContent(id) {
	  startLoading();
	  new Ajax.Updater('leftContent', 'rpc.php', {method: 'post', postBody:'content='+ id +''});
	  finishLoading();
	}
