var typeActivites;
var categories;
var activites;
var destinations;
var regions;
var pays;
var continents;
var durees;
var enPromotion;
var photos;

function listTypeActivites() {
	photo1name = 'activitePhoto';
	photo2name = 'activitePhoto2';
	document.getElementById('introImage').style.display = "none";
	document.getElementById('activitePhotosRot'). style.display = "block";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(typeActivites.length) {
		for(var i = 0; i < typeActivites.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesByType(" + i +")'>" + textTA[Number(typeActivites[i].TYPEACTIVITEID)-1] + "</div>";
		}
	}
}

function listCategories() {
	document.getElementById('introImage').style.display = "none";
	document.getElementById('activitePhotosRot'). style.display = "block";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(categories.length) {
		for(var i = 0; i < categories.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesByCategorie(" + i +")'>" + textCat[Number(categories[i].CATEGORIEID)-1] + "</div>";
		}
	}
}

function listDestinations() {
	document.getElementById('activitePhotosRot'). style.display = "none";
	document.getElementById('destinationsDiv').style.display = "block";	
	document.getElementById('typeActivitesDiv').style.display = "none";
	document.getElementById('titreList').innerHTML = "";
	document.getElementById('introImage').src = "images/worldmap.jpg";
	document.getElementById('introImage').style.display = "block";
	showIntro();	
}

function listDureesEscapades() {
	document.getElementById('introImage').src = "images/activites/activite1.jpg";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(durees.length) {
		for(var i = 0; i < durees.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesEscapades(" + i +")'>" + textDuree[Number(durees[i].DUREETYPEID)-1] + "</div>";
		}
	}
}

function listCategoriesWeekend() {
	document.getElementById('introImage').src = "images/activites/activite1.jpg";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(categories.length) {
		for(var i = 0; i < categories.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesWeekend(" + i +")'>" + textCat[Number(categories[i].CATEGORIEID)-1] + "</div>";
		}
	}
}
function listSousMenuJournees() {
	document.getElementById('introImage').src = "images/activites/activite1.jpg";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(categories.length) {
		for(var i = 0; i < categories.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesJourneeCat(" + i +")'>" + textCat[Number(categories[i].CATEGORIEID)-1] + "</div>";
		}
	}
	typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<hr style='width: 150px; height: 1px; margin-left:-10px; margin-bottom: 15px'/>";
	if(typeActivites.length) {
		for(var i = 0; i < typeActivites.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesJourneeType(" + i +")'>" + textTA[Number(typeActivites[i].TYPEACTIVITEID)-1] + "</div>";
		}
	}
}

function listDureesCorporatifs() {
	document.getElementById('introImage').src = "images/activites/activite1.jpg";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(durees.length) {
		for(var i = 0; i < durees.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesCorporatifs(" + i +")'>" + textDuree[Number(durees[i].DUREETYPEID)-1] + "</div>";
		}
	}
}
function listDureesScolaires() {
	document.getElementById('introImage').src = "images/activites/activite1.jpg";
	showIntro();	
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "block";
	document.getElementById('titreList').innerHTML = "";
	var typeActivitesDiv = document.getElementById('typeActivitesDiv');
	typeActivitesDiv.innerHTML = "";
	if(durees.length) {
		for(var i = 0; i < durees.length; i++) {
			typeActivitesDiv.innerHTML = 
				typeActivitesDiv.innerHTML + "<div style='margin-bottom: 15px; cursor: pointer;' onclick='javascript:listActivitesScolaires(" + i +")'>" + textDuree[Number(durees[i].DUREETYPEID)-1] + "</div>";
		}
	}
}
function listVoyages() {	
}

function constructActivitesList() {
	showContent();
	var activiteListDiv = document.getElementById('activiteMainContent');	
	activiteListDiv.innerHTML = "";
	activiteListDiv.style.display = "block";
	if(!activites.length) {
		activiteListDiv.innerHTML = 
					activiteListDiv.innerHTML + "<div style='position: relative; margin-bottom: 5px; background-color: #FAFFA8; color: black; width: 507px; height: 135px;'>"
					 + "<font style='position: absolute; top: 50px; left: 20px;'>" + text.aucuneActivitee + "</font></div>";
	} else {
		for(var i = 0; i < activites.length; i++) {
			if(isEnglish) {
				activiteListDiv.innerHTML = 
					activiteListDiv.innerHTML + "<div style='position: relative; margin-bottom: 5px; background-color: #FAFFA8; color: black; width: 507px; height: 135px;'>"
					 + "<div style='position: absolute; width: 151px; height: 113px; top: 11px; left: 11px; overflow:hidden'><img src='images/activites/"+activites[i].IMAGE+"' style='width:264px; height: 113px;'/></div>"
					 + "<div style='position: absolute; left: 175px; top: 11px; width: 300px; height: 30px; overflow: hidden; font-weight: bold;'>" + activites[i].NOM_E +  " - " + activites[i].DESTINATION +"</div>"
					 + "<div style='position: absolute; left: 175px; top: 40px; width: 300px; height: 70px; overflow: hidden'>"+activites[i].DESCRIPTION_E+"</div>"
					 + "<a style='position: absolute; right: 10px; bottom: 10px; cursor: pointer;' onclick='showActiviteDetail("+i+")'>"+ text.informationReservation + "</a>"
					 + "</div>";
			} else {
				activiteListDiv.innerHTML = 
					activiteListDiv.innerHTML + "<div style='position: relative; margin-bottom: 5px; background-color: #FAFFA8; color: black; width: 507px; height: 135px;'>"
					 + "<div style='position: absolute; width: 151px; height: 113px; top: 11px; left: 11px; overflow:hidden'><img src='images/activites/"+activites[i].IMAGE+"' style='width:264px; height: 113px;'/></div>"
					 + "<div style='position: absolute; left: 175px; top: 11px; width: 300px; height: 30px; overflow: hidden; font-weight: bold;'>" + activites[i].NOM +  " - " + activites[i].DESTINATION +"</div>"
					 + "<div style='position: absolute; left: 175px; top: 40px; width: 300px; height: 70px; overflow: hidden'>"+activites[i].DESCRIPTION+"</div>"
					 + "<a style='position: absolute; right: 10px; bottom: 10px; cursor: pointer;' onclick='showActiviteDetail("+i+")'>"+ text.informationReservation + "</a>"
					 + "</div>";
			}
			
		}
	}
}

function showActiviteDetail(i) {	
	var activite = activites[i];
	showActiviteDetailContent(activite);
}

function showPromotionDetail(i) {
	showActiviteDetailContent(enPromotion[i]);
	showContent();
}

function showPhotoDetail() {
	showActiviteDetailContent(photos[currentPhotoID]);
	showContent();
}

function showActiviteDetailContent(activite) {
	var activiteMainContent = document.getElementById('activiteMainContent');	
	
	var activiteString = "";
		
	
	if(!isEnglish) {
		activiteString = "<div style='width: 507px; background-color: #FAFFA8;'>"
		+ "<div style='font-weight: bold; padding-top: 10px; margin-left: 10px; overflow: hidden; height: 15px;'>" + activite.NOM + " - " + activite.DESTINATION + "</div>"
		+ "<div style='overflow: hidden; margin-left: 10px; margin-top: 7px; width: 308px; height: 232px'><img src='images/activites/"+activite.IMAGE+"' style='width: 543px; height: 232px'></div>";
		activiteString = activiteString +"<div style='margin-top: 10px; height: 800px; overflow:auto; width: 308px; margin-left: 10px; '><PRE style='width: 308px'>" + activite.DESCRIPTION + "</PRE></div>";
	} else {
		activiteString = "<div style='width: 507px; background-color: #FAFFA8;'>"
		+ "<div style='font-weight: bold; padding-top: 10px; margin-left: 10px; overflow: hidden; height: 15px;'>" + activite.NOM_E + " - " + activite.DESTINATION + "</div>"
		+ "<div style='overflow: hidden; margin-left: 10px; margin-top: 7px; width: 308px; height: 232px'><img src='images/activites/"+activite.IMAGE+"' style='width: 543px; height: 232px'></div>";
		activiteString = activiteString +"<div style='margin-top: 10px; height: 800px; overflow:auto; width: 308px; margin-left: 10px; '><PRE style='width: 308px'>" + activite.DESCRIPTION_E + "</PRE></div>";
	}
	

	var imageStr = "";
	if(activite.REGIONID != "-1") {
		for(var i = 0; i < regions.length; i++) {
			if(regions[i].REGIONID == activite.REGIONID) {
				imageStr = regions[i].IMAGE;
				break;
			}
		}
	} else if(activite.PAYSID != "-1") {
		for(var i = 0; i < pays.length; i++) {
			if(pays[i].PAYSID == activite.PAYSID) {
				imageStr = pays[i].IMAGE;
				break;
			}
		}
	} else if(activite.CONTINENTID != "-1") {
		for(var i = 0; i < continents.length; i++) {
			if(continents[i].CONTINENTID == activite.CONTINENTID) {
				imageStr = continents[i].IMAGE;
				break;
			}
		}
	}
	
	activiteString = activiteString + "<img src='images/" + imageStr +"' style='position: absolute; top: 32px; right: 10px; width: 168px; height: 130px'/>"
	+ "<font style='position: absolute; top: 172px; height: 300px; width: 168px; left: 330px;'>" 
	+ "<b>" + text.lieu + " : </b> " + activite.DESTINATION + "<br><br>"
	+ "<b>"+ text.activites + " : </b>";
	for(var i = 0; i < activite.TYPEACTIVITES.length; i++) {
		activiteString = activiteString + textTA[Number(activite.TYPEACTIVITES[i])-1];
		if(i < (activite.TYPEACTIVITES.length-1) ) {
			activiteString = activiteString + ", ";
		}
	}
	activiteString = activiteString + "<br><br><b>"+ text.duree + " : </b>";
	
	if(Number(activite.DUREETYPEID) == 1) {
		activiteString = activiteString + activite.DUREE + " " + text.jours;
	} else {
		activiteString = activiteString + " " + textDuree[Number(activite.DUREETYPEID)-1];
	}
	
	activiteString = activiteString + "<br><br>"
	+ "<b>"+ text.difficulte + " : </b>" + textDiff[Number(activite.DIFFICULTEID)-1] + "<br><br>"
	+ "<b>"+ text.distance +  " : </b>" + activite.DISTANCE + " km ("+ (Number(activite.DISTANCE) * 0.621371192).toFixed(2) + " miles)<br><br>";
	
	if(activite.CONFORTS.length > 0) {
		activiteString = activiteString + "<b>"+ text.hebergement +  " : </b>";
		for(var i = 0; i < activite.CONFORTS.length; i++) {
			activiteString = activiteString + textConfort[Number(activite.CONFORTS[i])-1];
			if(i < (activite.CONFORTS.length-1) ) {
				activiteString = activiteString + ", ";
			}
		}
		activiteString = activiteString + "<br><br>";
	}
	
	activiteString = activiteString + "<b>"+ text.depart +  " : </b>" + activite.DEPARTDATE;
	if(activite.DEPARTHEURE.length > 0) {
		activiteString = activiteString + " " + text.a + " " + activite.DEPARTHEURE;
	}
	if(activite.DEPARTLIEU.length > 0) {
		activiteString = activiteString + " " + text.de + " " + activite.DEPARTLIEU;
	}
	if(activite.DEPARTLANGUE.length > 0) {
	 activiteString = activiteString + " en " + activite.DEPARTLANGUE;
	}
	activiteString = activiteString + "<br><br>"
	+ "<b>"+ text.retour +  " : </b>" + activite.ARRIVEEDATE;
	if(activite.ARRIVEEHEURE.length > 0) {
		activiteString = activiteString  + " " + text.a + " " + activite.ARRIVEEHEURE;
	} 
	if( activite.ARRIVEELIEU.length > 0) {
		activiteString = activiteString + " " + text.a + " " + activite.ARRIVEELIEU;
	}
	activiteString = activiteString + "<br><br>"
	+ "<b>"+ text.prix +  " : " + activite.PRIX + "$*</b><br>" + "<font style='font-size: 9px'>"
	+ text.prixPersonne;
	if(activite.HASSUPPLEMENT == "1") {
		activiteString = activiteString + " " + text.supplement + " " + activite.PRIXSUPPLEMENT + "$ " + text.pourOccupationSimple;
	}
	activiteString = activiteString + text.taxesNonIncluses + "</font><div style='margin-top: 15px; position: relative; height: 158px; width: 168px; border: 1px solid black; '>"	
	+ "<div style='position: absolute; width: 168px; height: 23px; background-color : #9C8F5B;'><font style='color: white; font-size: 18px; margin-left: 53px;'>" + text.reservation + "</font></div>" 
	+ "<div style='padding-left: 10px; padding-top: 30px;'>"
	+ "<img style='position: absolute; top: -8px; left: 9px;' src='images/valise.jpg'>"
	+ "<input id='resActiviteID' type='hidden' value='"+activite.ACTIVITEID+"'/>"
	+ "<input id='resActiviteNom' type='hidden' value='"+activite.NOM+"'/>"
	+ text.nom + "<br><input id='resNom' style='margin-bottom: 6px' type='text'/><br>"
	+ text.courriel+ "<br><input id='resCourriel' style='margin-bottom: 6px' type='text'/><br>"
	+ text.telephone + "<br><input id='resTelephone' style='margin-bottom: 6px' type='text'/><br>"
	+ "<input style='margin-top: 10px; margin-left: 60px' type='button' onclick='reserve()' value='"+ text.soumettre +"'>"
	+ "</div>"
	+ "</div>"
	+ "</font>";
	
	
	activiteMainContent.innerHTML = activiteString;
}

function buildDestinationHierarchy() {
	//div = document.getElementById('destinationsDiv');
	continents = destinations[0];
	pays = destinations[1];
	regions = destinations[2];
	
	
	for(var i = 0; i< continents.length; i++) {
		div = document.createElement('div');	
		div.setAttribute('id', 'continent' + continents[i].CONTINENTID);
		div.className = 'continent';
		//div.setAttribute('onclick', 'listActivitesByContinent('+continents[i].CONTINENTID+')');
		div.innerHTML = "<div onclick='listActivitesByContinent("+i+")'>" + textContinents[Number(continents[i].CONTINENTID)] + "</div>";
		document.getElementById('destinationsDiv').appendChild(div);
	}
	for(var i = 0; i< pays.length; i++) {
		div = document.createElement('div');	
		div.setAttribute('id', 'pays' + pays[i].PAYSID);
		div.className = 'pays';
		
		//div.setAttribute('onclick', 'listActivitesByPays('+pays[i].PAYSID+'); preventDefault(); return false;');
		div.innerHTML = "<div onclick='listActivitesByPays("+i+")'>" + textPays[Number(pays[i].PAYSID)] + "</div>";
		document.getElementById('continent' + pays[i].CONTINENTID).appendChild(div);
	}
	for(var i = 0; i< regions.length; i++) {
		div = document.createElement('div');	
		div.setAttribute('id', 'region' + regions[i].REGIONID);
		div.className = 'region';
		
		//div.setAttribute('onclick', 'listActivitesByRegion('+regions[i].REGIONID+'); preventDefault(); return false;');
		div.innerHTML = "<div onclick='listActivitesByRegion("+i+")'>" + textRegions[Number(regions[i].REGIONID)] + "</div>";
		document.getElementById('pays' + regions[i].PAYSID).appendChild(div);
	}
}

function showEnPromotion() {
	div = document.getElementById('enPromotionDiv');
	if(enPromotion == null || !enPromotion.length) {
		div.style.display = 'none';
	} else {
		div.style.display = 'block';
		var i =Math.floor(Math.random()*enPromotion.length);
		div.innerHTML = "<div onclick='showPromotionDetail("+i+")' style='cursor: pointer; text-align: center; color: white; position: absolute; width: 210px; height: 110px; top: 52px; left: 9px;'>"
		+ "<div style='width: 211px; height: 110px; overflow: hidden'><img src='images/activites/" + enPromotion[i].IMAGE + "' style='width: 260px; height: 110px;'/></div>"
		+ "<font style='font-size: 16px;'>" + text.prochaineDestination + "</font><br><font style='font-size: 18px;'>" + enPromotion[i].DESTINATION + "</font>"
		+ "</div>";
	}
}

var opacity = 1;
var showingSecond = true;
var currentPhotoID = 0;
var nextPhoto = 0;
var photo1name = "homepagePhoto";
var photo2name = "homepagePhoto2";

function showHomepagePhoto() {
	currentPhotoID = Math.floor(Math.random()*photos.length);
	document.getElementById(photo1name).src = "images/activites/" + photos[currentPhotoID].IMAGE;
	document.getElementById("activitePhoto").src = "images/activites/" + photos[currentPhotoID].IMAGE;
	currentPhotoID =Math.floor(Math.random()*photos.length);
	document.getElementById(photo2name).src = "images/activites/" + photos[currentPhotoID].IMAGE;
	document.getElementById("activitePhoto2").src = "images/activites/" + photos[currentPhotoID].IMAGE;
			
	rotatePhotos();
}
function prepareRotatePhotos() {
	currentPhotoID = nextPhoto;
	rotatePhotos();
}

function rotatePhotos() {
		var photo1 = document.getElementById(photo1name);
		var photo2 = document.getElementById(photo2name);		
		
		if(isIE()) {
			photo1.filters.alpha.opacity = opacity * 100
			photo2.filters.alpha.opacity = (1 - opacity) * 100
		} else {
			photo1.style.opacity = opacity;
			photo2.style.opacity = 1-opacity;
		}
		
			
		if(showingSecond) {
			opacity = opacity - 0.01;
			//photo1.style.zIndex = 99;
			//photo2.style.zIndex = 100;			
			if(opacity <= 0.0) {
				opacity = 0;
				showingSecond = false;
				nextPhoto = Math.floor(Math.random()*photos.length);	
				photo1.src = "images/activites/" +photos[nextPhoto].IMAGE;				
				setTimeout("prepareRotatePhotos()", 3000);
			}	else {
				setTimeout("rotatePhotos()", 50);
			}
		} else {
			opacity = opacity + 0.01;
			//photo2.style.zIndex = 99;
			//photo1.style.zIndex = 100;
			if(opacity >= 1.0) {
				opacity = 1;
				showingSecond = true;
				nextPhoto = Math.floor(Math.random()*photos.length);	
				photo2.src = "images/activites/" +photos[nextPhoto].IMAGE;				
				setTimeout("prepareRotatePhotos()", 3000);
			} else {
				setTimeout("rotatePhotos()", 50);
			}
		}
}

function showAddress() {
	showContent();
	hideSectionTitre();
	hideSubmenu();
	document.getElementById('titreList').innerHTML = text.contactezNous;
	var activiteListDiv = document.getElementById('activiteMainContent');
	activiteListDiv.innerHTML = "<div style='background-color : #faffa8; width: 478px; height: 730px; padding: 15px;'>" + text.contactezNousTexte + "</div>";
	
	/*activiteListDiv.innerHTML =	"<div style='background-color : #faffa8; width: 478px; padding: 15px;'>" + text.comptoirAventure + "<br>" + text.desJardins + "<br>"
	+ text.telephone + " : 418.977.9447<br>"
	+ text.sansFrais + " : 1.888.692.9965<br>"
	+ text.fax + " : 418.692.1950<br>"
	+ text.siteWeb + " : <a href='http://www.comptoiraventure.com'>www.comptoiraventure.com</a><br>"
	+ text.courriel + " : <a href='mailto:info@comptoiraventure.com'>info@comptoiraventure.com</a><br></div>";*/
}

function showEnews() {
	showContent();
	hideSectionTitre();
	hideSubmenu();
	document.getElementById('titreList').innerHTML = text.enews;
	var activiteListDiv = document.getElementById('activiteMainContent');
	activiteListDiv.innerHTML =	"<div style='background-color : #faffa8; width: 478px; padding: 15px;'>"
	+ text.entrezEmail + " <input type='text' id='enewsCourriel'</input>"
	+ "<input type='submit' value='"+text.envoyer+"' onclick='submitEnews(); return false;'/></div>";
}

function showConditions() {
	showContent();
	hideSectionTitre();
	hideSubmenu();
	var activiteListDiv = document.getElementById('activiteMainContent');
	if(isEnglish) {
		activiteListDiv.innerHTML =	"<iframe style='top: -51px; left: -228px; position: absolute; border: 0px; width: 736px; height: 600px' src='conditionsGenerales.html'/>";
	} else {
		activiteListDiv.innerHTML =	"<iframe style='top: -51px; left: -228px; position: absolute; border: 0px; width: 736px; height: 600px' src='conditionsGeneralesFR.html'/>";
	}
}

function showFAQ() {
	showContent();
	hideSectionTitre();
	hideSubmenu();
	document.getElementById('titreList').innerHTML = text.faq;
	var activiteListDiv = document.getElementById('activiteMainContent');
	activiteListDiv.innerHTML =	"<iframe style='border: none; background-color : #faffa8; height: 450px; width: 477px; padding: 15px;' src='listFAQ.php?lang="+lang+"'/>";
	//activiteListDiv.innerHTML =	"<iframe style='top: -51px; left: -228px; position: absolute; border: 0px; width: 736px; height: 600px' src='listFAQ.php?lang="+lang+"'/>";
}

function showAProposDeNous() {
	showContent();
	hideSectionTitre();
	hideSubmenu();
	document.getElementById('titreList').innerHTML = text.aProposDeNous;
	var activiteListDiv = document.getElementById('activiteMainContent');
	if(isEnglish) {
		activiteListDiv.innerHTML =	"<iframe style='top: -51px; left: -228px; position: absolute; border: 0px; width: 736px; height: 600px' src='aboutUs.html'/>";
	} else {
		activiteListDiv.innerHTML =	"<iframe style='top: -51px; left: -228px; position: absolute; border: 0px; width: 736px; height: 600px' src='aProposDeNous.html'/>";
	}
}

function showErreurReservation() {
	alert(text.erreurReservation);
}

function showReservationOK() {
	alert(text.envoyeeAvecSucces);
}

function showIntro() {	
	document.getElementById('activitesMainDiv').style.display="block";	
	document.getElementById('voyagesMainDiv').style.display="none";	
	document.getElementById('activiteIntro').style.display="block";			
	document.getElementById('activiteMainContent').style.display = "none";
}
function showContent() {
	document.getElementById('activitesMainDiv').style.display = "block";
	document.getElementById('voyagesMainDiv').style.display = "none";
	document.getElementById('activiteIntro').style.display="none";			
	document.getElementById('activiteMainContent').style.display = "block";
}

function hideSubmenu() {
	document.getElementById('destinationsDiv').style.display = "none";
	document.getElementById('typeActivitesDiv').style.display = "none";
	document.getElementById('titreList').innerHTML = "";
}

function hideSectionTitre() {
	document.getElementById('sectionTitreDiv').innerHTML = "";
}

function setSiteText(theText, theTextConfort, theTextTA, theTextDiff, theTextDuree, theTextCat) {
	text = theText;
	textConfort = theTextConfort;
	textTA = theTextTA;
	textDiff = theTextDiff;
	textDuree = theTextDuree;
	textCat = theTextCat;
}

function isIE() {
	return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}