var isVersionLight = false;

/* Scripts pour le menu */

function openSmenu (button, id) {
		if (button.className == 'On') {
			button.className = '';
			MM_changeProp(id,'','display','none');
		}
		else {
			button.className = 'On';
			MM_changeProp(id,'','display','block');
		}
	}

	function MM_changeProp(objId,x,theProp,theValue) { //v9.0
	  var obj = null; with (document){ if (getElementById)
	  obj = getElementById(objId); }
	  if (obj){
		if (theValue == true || theValue == false)
		  eval("obj.style."+theProp+"="+theValue);
		else eval("obj.style."+theProp+"='"+theValue+"'");
	  }
	}



/* /Scripts pour le menu */


/* Script pour le calendrier - AJAX*/
	function Ajax_Calendrier_ChangeMonthYear(sUrlBase, idEmission)
	{
		var mois 	= document.formulaireCalendrier.mois.options[document.formulaireCalendrier.mois.selectedIndex].value;
		var annee	= document.formulaireCalendrier.annee.options[document.formulaireCalendrier.annee.selectedIndex].value;
		//$('calendrier_ajax').innerHTML= '/emissions/lib_radio/v3.1/code/calendrier/calendrierAjax.asp?mois='+ mois.toString() + '&annee='+ annee.toString() +'&idEmission='+ idEmission.toString() +'&sUrlBase='+ sUrlBase;

		var ajax = new Request({
						method: 'get', 
						url: '/emissions/lib_radio/v3.1/code/calendrier/calendrierAjax.asp?mois='+ mois + '&annee='+ annee +'&idEmission='+ idEmission +'&sUrlBase='+ sUrlBase,
						headers: {'Accept': 'text/javascript, text/html, application/xml, text/xml,*/*'},
						encoding: "utf-8",
						onSuccess : function(responseText, responseXML){
										$('calendrier_ajax').fade('out');
										$('calendrier_ajax').innerHTML= responseText;
										$('calendrier_ajax').fade('in');
									} 
					});
		ajax.send();


	}

