function slideDiv(divID) {
	Effect.toggle(divID,'slide');
	
	return false;
}

function changeTopMatch(idteam) {
	var xhr = getXhr();
	
	xhr.onreadystatechange = function() {
		if(xhr.readyState == 4 && xhr.status == 200) {
			document.getElementById('block_topmatch_back').innerHTML = xhr.responseText;
		}
		else {
			document.getElementById('block_topmatch_back').innerHTML = '<img src="./images/loader.gif" alt="" /> Chargement en cours...';
		}
	}
	
	xhr.open('GET','modules/news/ajax.php?op=loadTopMatchBlock&id='+escape(idteam),true);
	xhr.send(null);
}

function changeRoster(idteam) {
	var xhr = getXhr();
	
	xhr.onreadystatechange = function() {
		if(xhr.readyState == 4 && xhr.status == 200) {
			document.getElementById('block_roster_back').innerHTML = xhr.responseText;
		}
		else {
			document.getElementById('block_roster_back').innerHTML = '<img src="./images/loader.gif" alt="" /> Chargement en cours...';
		}
	}
	
	xhr.open('GET','modules/news/ajax.php?op=loadRosterBlock&id='+escape(idteam),true);
	xhr.send(null);
}

function changePlayer(idplayer,idteam) {
	var xhr = getXhr();
	
	xhr.onreadystatechange = function() {
		if(xhr.readyState == 4 && xhr.status == 200) {
			document.getElementById('block_roster_back').innerHTML = xhr.responseText;
		}
		else {
			document.getElementById('block_roster_back').innerHTML = '<img src="./images/loader.gif" alt="" /> Chargement en cours...';
		}
	}
	
	xhr.open('GET','modules/news/ajax.php?op=changePlayer&idplayer='+escape(idplayer)+'&idteam='+escape(idteam),true);
	xhr.send(null);
}