///////// Fonction pour affichage image id="ouverture-deco" aleatoire ////////////

	function get_img_alea(taille){
		// dupplication de la premiere valeur pour ne pas fausser la probabilite
		Array_lst_img_deco[Array_lst_img_deco.length] = Array_lst_img_deco[0]; 
		chx_img_alea = Math.round(Math.random() * (Array_lst_img_deco.length-2));

		// test si img ou flash
		if(Array_lst_img_deco[chx_img_alea].indexOf(".swf") == -1){
			document.getElementById("overture-deco").innerHTML = '<img alt="' + Array_lst_alt_deco[chx_img_alea] + '" src="' + Array_lst_img_deco[chx_img_alea] + '" >' ;
		}else{
			if(taille != 'taille_2'){
				var taille_flash = "width=968 height=240";
			}else{
				var taille_flash = "width=726 height=240";
			}	
			
			FlashObject(Array_lst_img_deco[chx_img_alea], "overture-deco", taille_flash, "transparent", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ,"7", "overture-deco");
		}
	}		


//COMMUN
var rubrique = 'offres_spe';

		function checkville(){
			if (document.sofitelform.hotel_ou_ville.value==""||document.sofitelform.hotel_ou_ville.value==null) 
			{
				alert("Veuillez saisir une destination.");
			}  
			else 
			{
			document.sofitelform.submit();
			} 
		}
		
		var theEmail = '';
		var libelleMail = 'Adresse e-mail';
		
		function subscribe_mailing(rubrique){
			top.document.location.href="http://www.sofitel.com/mailing_list.svlt?action=SUBSCRIBE&site=SOF,PMO,AEC|ALL&email=XXXX"
		}
		
		function supprime_libelle(){
			if(libelleMail==document.mailform.email.value){
				document.mailform.email.value='';
			}
		}
		function MM_openBrWindow(theURL,winName,features) {
			window.open(theURL,winName,features);
		}		

// CULTURE TRAVEL

// GOLF HOTEL

// GOURMET RESTAURANT

// HOTEL EARLY BREAK

	// Recuperation des id
		function getElement(id){
			if(document.getElementById) {
				return document.getElementById(id);
			} else if(document.all) {
				return document.all[id];
			} else return;
		}
		// Initialisation au demarrage
		/*window.onload = function() { 
			dates_init(document.sofitelform);						// Initialisation du moteur chouchou
			getElement("nb_nuit").selectedIndex		= 0;				// Initialisation du nombre de nuit
		};*/
		
	var message_alerte ='Réservez votre hôtel Sofitel au minimum 15 jours à l\’avance';
	
// HOTEL SHORT BREAK

// INDEX

d_maxStay="23";

// LUXURY HOTEL STAY

// ROMANTIC GETAWAY

// THERMAL SPA

// ici message fr d'alerte si pas d'hotel sélectionner
var message = "Merci de sélectionner un hôtel";
var sje = "jours";
var snt = "nuits";

// liste des hotel 2 jours
var sej2jrs = new Array();
	sej2jrs.push(new Array("Merci de sélectionner un hôtel", "0", "0"));
   sej2jrs.push(new Array("> FRANCE", "0", "0"));
	sej2jrs.push(new Array("Sofitel Thalassa Miramar Biarritz", "2049", "SOF"));
	sej2jrs.push(new Array("Sofitel Thalassa Porticcio", "0587", "SOF"));
  	 sej2jrs.push(new Array("Sofitel Thalassa Quiberon", "0557", "SOF"));
	sej2jrs.push( new Array("Sofitel Thalassa Les Célestins Vichy", "3241", "SOF"));
	
// liste des hotel 6 jours
var sej6jrs = new Array();
	sej6jrs.push(new Array("Merci de sélectionner un hôtel", "0", "0"));
   sej6jrs.push(new Array("> FRANCE", "0", "0"));
	sej6jrs.push(new Array("Sofitel Thalassa Miramar Biarritz", "2049", "SOF"));
	sej6jrs.push(new Array("Sofitel Thalassa Porticcio", "0587", "SOF"));
   	sej6jrs.push(new Array("Sofitel Diététique Quiberon", "0562", "SOF"));
	sej6jrs.push(new Array("Sofitel Thalassa Quiberon", "0557", "SOF"));
	sej6jrs.push(new Array("Sofitel Thalassa Les Célestins Vichy", "3241", "SOF"));


// liste des hotel 7 jours
var sej7jrs = new Array();
	sej7jrs.push(new Array("Merci de sélectionner un hôtel", "0", "0"));
   sej7jrs.push(new Array("> MAROC", "0", "0"));
	sej7jrs.push(new Array("Sofitel Thalassa Essaouira", "2967", "SOF"));
	sej7jrs.push(new Array("Sofitel Thalassa Marina Smir", "2959", "SOF"));	
   sej7jrs.push(new Array("> PORTUGAL", "0", "0"));
	sej7jrs.push(new Array("Sofitel Thalassa Vilalara", "2987", "SOF"));

var theme = 'ressourcer';
// Affichage aleatoire flash + jpg associe
// nombre de flashs alternant : mySources.length
// nombre d'images associees au flash n : mySources[n-1]

// WEEKEND

// WELLNESS HOTEL

