
	/*  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(1, 1);

	function loadBody(){
		jQuery(function() {
			  jQuery('.slide1').ulslide({
					axis: 'y',
					autoslide: 4000
			  });
		});
		$('li').hover(function(){
			$(this).find(">ul").show();
		}, function(){
			$(this).find(">ul").hide();
		});
	}
	
    $(document).ready(function(){
		setTimeout('loadBody()', 600);
	});	

