
	/*  GetRotator(zoneId,appel comportement Ajax >> ajax.asp, ajax2.asp, ajax3.asp    */
	
	function GetRotator(zoneID, typeID){
	var xhr = getXhr();
	// On défini ce qu'on va faire quand on aura la réponse
	xhr.onreadystatechange = function(){
		// On ne fait quelque chose que si on a tout reçu et que le serveur est ok
		if(xhr.readyState == 4 && xhr.status == 200){
			leselect = xhr.responseText;
			if (document.getElementById('rotator_'+zoneID)){
			document.getElementById('rotator_'+zoneID).innerHTML = leselect;
			}
		}
	}
	xhr.open("POST","/portal_bandeaux/ajax"+typeID+".asp",true);
	xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhr.send('zoneid='+zoneID);
    }
	
	GetRotator(2, 1);
		
	function loadBody(){
		jQuery(function() {
			  jQuery('.slide2').ulslide({
					axis: 'y',
					autoslide: 4000,
					bnext: '#e2_next',
					bprev: '#e2_prev'
			  });
		});
		}
	$(document).ready(function(){
		setTimeout('loadBody()', 300);
	});	

