// JavaScript Document

function change(param,param2,param3){
document.getElementById(param).className='td2';
document.getElementById(param2).className='td1';
document.getElementById(param3).className='td1';
}
function startLoading() {
	  Element.show('mainAreaLoading');
	  Element.hide('mainAreaInternal');
	}
	function finishLoading() {
	  Element.show('mainAreaInternal');
	  setTimeout("Effect.toggle('mainAreaLoading');", 500);
	}

	function loadContent(id) {
		
	  startLoading();
	  new Ajax.Updater('mainAreaInternal', '/rpc.php', {method: 'post', postBody:'id='+ id +''});
	  finishLoading();
	}
