function popup (adresse, largeur, hauteur)
{
	window.open (adresse,"","width="+largeur+",height="+hauteur+",location=no,resizable=yes,scrollbars=no,status=no");
}

function popup_photo(adresse, largeur, hauteur)
{
	largeur =largeur +20;
	hauteur =hauteur +20;
	window.open(adresse,"","width="+largeur+",height="+hauteur+",resizable=no,scrollbars=no");
}

function imprime_fenetre()
{
	bV = parseInt (navigator.appVersion)
	if (bV >= 4) window.print()
}

function AfficheImage(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin,langage) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="")
	{
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;
	
	if(w<740)
	{
		var lift=0.90;
	}
	if(w>=740 & w<835){
		var lift=0.91;
	}
	if(w>=835){
		var lift=0.93;
	}
	if (imageWidth>w)
	{
		byFactor = w / imageWidth;
		imageWidth = w;
		imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj)
	{
		byFactor = h / imageHeight;
		imageWidth = (imageWidth * byFactor);
		imageHeight = h;
	}
	
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;
	
	if (imageHeight>scrHeight)
	{
		imageHeight=imageHeight*lift;
		imageWidth=imageWidth*lift;
	}
	
	var posLeft=0;
	var posTop=0;
	
	if (hugger == "hug image")
	{
		if (hugMargin == "")
		{
			hugMargin = 0;
		}
		var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
		if (scrHeightTemp < scrHeight)
		{
			scrHeight = scrHeightTemp;
		}
		var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
		if (scrWidthTemp < scrWidth)
		{
			scrWidth = scrWidthTemp;
		}
	
		if (scrHeight<100){scrHeight=100;}
		if (scrWidth<100){scrWidth=100;}
	
		posTop =  ((h-(scrHeight/lift)-adj)/2);
		posLeft = ((w-(scrWidth)-adj)/2);
	}
	
	if (imageHeight > (h*lift)-adj || imageWidth > w-adj)
	{
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);
	scrWidth = parseInt(scrWidth);
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1)
	{
		var args= new Array();
		args[0]='parent';
		args[1]=imageName;
		var i ; document.MM_returnValue = false;
		for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	}
	else
	{
		var title1 = "";
		var title2 = "";
		var tooltip = "";
		var scrHeight1 = scrHeight;
		if (alt != "")
		{
			title1 = ' [' +alt+ ']';
			title2 = '<h3 align="center"><font color="#FFFFFF">- '+alt+' -</font></h3>';
			scrHeight1+=30;
		}

		if (langage=='fr')
			tooltip = "Cliquez ici pour fermer la fen&ecirc;tre";
		else if (langage=='en')
			tooltip = "Click here to close the window";
		else if (langage=='es')
			tooltip = "Haga click aqu&iacute; para cerrar la ventana";
		else if (langage=='de')
			tooltip = "Klicken Sie an die Bilder, um das Fenster zu schlie&szlig;en";

		newWindow = window.open("vide.htm","",'location=0,status=0,width='+imageWidth+',height='+imageHeight+',left='+posLeft+',top='+posTop);
		newWindow.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><title>Gite de la Cascade"+title1+'</title></head><body style="margin:0px;" bgcolor='+bgcolor+' onClick="self.close()">');
		newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="" title="'+tooltip+'">');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
}

function AfficheImage2(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="")
	{
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;
	
	if(w<740)
	{
		var lift=0.90;
	}
	if(w>=740 & w<835){
		var lift=0.91;
	}
	if(w>=835){
		var lift=0.93;
	}
	if (imageWidth>w)
	{
		byFactor = w / imageWidth;
		imageWidth = w;
		imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj)
	{
		byFactor = h / imageHeight;
		imageWidth = (imageWidth * byFactor);
		imageHeight = h;
	}
	
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;
	
	if (imageHeight>scrHeight)
	{
		imageHeight=imageHeight*lift;
		imageWidth=imageWidth*lift;
	}
	
	var posLeft=0;
	var posTop=0;
	
	if (hugger == "hug image")
	{
		if (hugMargin == "")
		{
			hugMargin = 0;
		}
		var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
		if (scrHeightTemp < scrHeight)
		{
			scrHeight = scrHeightTemp;
		}
		var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
		if (scrWidthTemp < scrWidth)
		{
			scrWidth = scrWidthTemp;
		}
	
		if (scrHeight<100){scrHeight=100;}
		if (scrWidth<100){scrWidth=100;}
	
		posTop =  ((h-(scrHeight/lift)-adj)/2);
		posLeft = ((w-(scrWidth)-adj)/2);
	}
	
	if (imageHeight > (h*lift)-adj || imageWidth > w-adj)
	{
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);
	scrWidth = parseInt(scrWidth);
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1)
	{
		var args= new Array();
		args[0]='parent';
		args[1]=imageName;
		var i ; document.MM_returnValue = false;
		for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	}
	else
	{
		var title1 = "";
		var title2 = "";
		var scrHeight1 = scrHeight;
		if (alt != "")
		{
			title1 = ' [' +alt+ ']';
			title2 = '<h3 align="center"><font color="#FFFFFF">- '+alt+' -</font></h3>';
			scrHeight1+=30;
		}
		newWindow = window.open("vide.htm","",'location=0,status=0,width='+imageWidth+',height='+imageHeight+',left='+posLeft+',top='+posTop);
		newWindow.document.write("<html><head><title>Gite de la Cascade"+title1+'</title></head><body style="margin:0px;" bgcolor='+bgcolor+' onClick="self.close()">');
		newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="" title="Cliquez sur l\'image pour fermer la fen&ecirc;tre" >');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
}

function AfficheAnimationSatellite(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin,langage) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="")
	{
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;
	
	if(w<740)
	{
		var lift=0.90;
	}
	if(w>=740 & w<835){
		var lift=0.91;
	}
	if(w>=835){
		var lift=0.93;
	}
	if (imageWidth>w)
	{
		byFactor = w / imageWidth;
		imageWidth = w;
		imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj)
	{
		byFactor = h / imageHeight;
		imageWidth = (imageWidth * byFactor);
		imageHeight = h;
	}
	
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;
	
	if (imageHeight>scrHeight)
	{
		imageHeight=imageHeight*lift;
		imageWidth=imageWidth*lift;
	}
	
	var posLeft=0;
	var posTop=0;
	
	if (hugger == "hug image")
	{
		if (hugMargin == "")
		{
			hugMargin = 0;
		}
		var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
		if (scrHeightTemp < scrHeight)
		{
			scrHeight = scrHeightTemp;
		}
		var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
		if (scrWidthTemp < scrWidth)
		{
			scrWidth = scrWidthTemp;
		}
	
		if (scrHeight<100){scrHeight=100;}
		if (scrWidth<100){scrWidth=100;}
	
		posTop =  ((h-(scrHeight/lift)-adj)/2);
		posLeft = ((w-(scrWidth)-adj)/2);
	}
	
	if (imageHeight > (h*lift)-adj || imageWidth > w-adj)
	{
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);
	scrWidth = parseInt(scrWidth);
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1)
	{
		var args= new Array();
		args[0]='parent';
		args[1]=imageName;
		var i ; document.MM_returnValue = false;
		for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	}
	else
	{
		var title1 = "";
		var title2 = "";
		var tooltip = "";
		var scrHeight1 = scrHeight;
		if (alt != "")
		{
			title1 = ' [' +alt+ ']';
			title2 = '<h3 align="center"><font color="#FFFFFF">- '+alt+' -</font></h3>';
			scrHeight1+=30;
		}

		if (langage=='fr')
			tooltip = "Cliquez ici pour fermer la fen&ecirc;tre";
		else if (langage=='en')
			tooltip = "Click here to close the window";
		else if (langage=='es')
			tooltip = "Haga click aqu&iacute; para cerrar la ventana";
		else if (langage=='de')
			tooltip = "Klicken Sie an die Bilder, um das Fenster zu schlie&szlig;en";

		newWindow = window.open("vide.htm","",'location=0,status=0,width='+imageWidth+',height='+imageHeight+',left='+posLeft+',top='+posTop);
		newWindow.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><title>Gite de la Cascade"+title1+'</title></head><body style="margin:0px;" bgcolor='+bgcolor+' onClick="self.close()">');
		newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="" title="'+tooltip+'">');
		newWindow.document.write('<div style="position:absolute; left:355px; top:435px; width:50px; height:50px; z-index:5;"><img src="images/ressources/point_meteo.png"></div>');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
}

function calculer_itineraire (formulaire)
{
	var localite = formulaire.localite.value;
	var adresse = "http://www.viamichelin.com/viamichelin/fra/dyn/controller/ItiWGPerformPage?strStartCity="+localite+"&strDestCity=Salles-la-Source";
	window.open (adresse,"");
}

function flag_over2 (langage)
{
	var image = null;
	var id_image = "texte_bienvenue";
	var imagesrc = "";

	if (langage == "fr")
	{
		imagesrc = "images/divers/texte_bienvenue.jpg";
	}
	else if (langage == "en")
	{
		imagesrc = "images/divers/texte_welcome.jpg";
	}
	else if (langage == "es")
	{
		imagesrc = "images/divers/texte_bienvenidos.jpg";
	}

	if (document.getElementById)
	{
		image = document.getElementById (id_image);
	}
	else if (document.all)
	{
		image = document.all [id_image];
	} 

	if (image)
	{
		image.src = imagesrc;
	}
}
		
function flag_over (langage, extension)
{
	if (!extension)
		extension = '';

	var o_image = null;
	var o_drapeau = null;
	var id_image = "texte_bienvenue";
	var id_drapeau = "drapeau_"+langage;
	var src_image = "images/divers/texte_bienvenue_"+langage+".jpg";
	var src_drapeau = "images/divers/drapeau_accueil_"+extension+langage+"_h.jpg";

	if (document.getElementById)
	{
		o_image   = document.getElementById (id_image);
		o_drapeau = document.getElementById (id_drapeau);
	}
	else if (document.all)
	{
		o_image = document.all [id_image];
		o_drapeau = document.all [id_drapeau];
	} 

	if (o_image)
		o_image.src = src_image;
		
	if (o_drapeau)
		o_drapeau.src = src_drapeau;
}
		
function flag_out (langage, extension)
{
	if (!extension)
		extension = '';

	var o_image = null;
	var id_image = "texte_bienvenue";
	var id_drapeau = "drapeau_"+langage;
	var src_image = "images/divers/texte_bienvenue_fr.jpg";
	var src_drapeau = "images/divers/drapeau_accueil_"+extension+langage+".jpg";

	if (document.getElementById)
	{
		o_image   = document.getElementById (id_image);
		o_drapeau = document.getElementById (id_drapeau);
	}
	else if (document.all)
	{
		o_image = document.all [id_image];
		o_drapeau = document.all [id_drapeau];
	} 

	if (o_image)
		o_image.src = src_image;

	if (o_drapeau)
		o_drapeau.src = src_drapeau;
}

function flag_over_small (langage)
{
	var image = null;
	var id_image = "";
	var imagesrc = "";

	if (langage == "fr")
	{
		id_image = "flag_fr_small";
		imagesrc = "images/drapeau_francais_petit.png";
	}
	else if (langage == "en")
	{
		id_image = "flag_en_small";
		imagesrc = "images/drapeau_anglais_petit.png";
	}
	else if (langage == "es")
	{
		id_image = "flag_es_small";
		imagesrc = "images/drapeau_espagnol_petit.png";
	}
	else if (langage == "de")
	{
		id_image = "flag_de_small";
		imagesrc = "images/drapeau_allemand_petit.png";
	}

	if (document.getElementById)
		image = document.getElementById (id_image);
	else if (document.all)
		image = document.all [id_image];

	if (image)
		image.src = imagesrc;
}
		
function flag_out_small (langage)
{
	var image = null;
	var id_image = "";
	var imagesrc = "";
	
	if (langage == "fr")
	{
		id_image = "flag_fr_small";
		imagesrc = "images/drapeau_francais_petit_clair.png";
	}
	else if (langage == "en")
	{
		id_image = "flag_en_small";
		imagesrc = "images/drapeau_anglais_petit_clair.png";
	}
	else if (langage == "es")
	{
		id_image = "flag_es_small";
		imagesrc = "images/drapeau_espagnol_petit_clair.png";
	}
	else if (langage == "de")
	{
		id_image = "flag_de_small";
		imagesrc = "images/drapeau_allemand_petit_clair.png";
	}

	if (document.getElementById)
		image = document.getElementById (id_image);
	else if (document.all)
		image = document.all [id_image];

	if (image)
		image.src = imagesrc;
}

var timerID = 0;
var state = true;
var id_information = "information";
var image_information = null;
var image_src_on  = "";
var image_src_off = "images/divers/vide.gif";
var texte_information = null;
var texte_src_on  = "";
var texte_src_off = "";
var delay_on  = 1000;
var delay_off = 500;

var nb_digits = 4;
var timer_digit = new Array (nb_digits);
var id_digit = new Array (nb_digits);
var o_digit = new Array (nb_digits);
var state_digit = new Array (nb_digits);
var src_digit_on = new Array (nb_digits);
var src_digit_off = "images/ressources/led.gif";

function UpdateTimer_image()
{
	var timerval = 0;

	if (timerID)
	{
		clearTimeout(timerID);
		clockID = 0;
	}

	if (image_information)
	{
		state = ! state;
		if (state)
		{
			image_information.src  = image_src_on;
			timerval = delay_on;
		}
		else
		{
			image_information.src  = image_src_off;
			timerval = delay_off;
		}
	}
	
	timerID = setTimeout("UpdateTimer_image()", timerval);
}

function UpdateTimer_texte()
{
	var timerval = 0;

	if (timerID)
	{
		clearTimeout(timerID);
		clockID = 0;
	}

	if (texte_information)
	{
		state = ! state;
		if (state)
		{
			texte_information.innerHTML  = texte_src_on;
			timerval = delay_on;
		}
		else
		{
//			texte_information.innerHTML = texte_src_off;
			texte_information.innerHTML = '<span style="color:#D8CEB3;text-decoration:none;">' + texte_src_on + '</span>'
			timerval = delay_off;
		}
	}
	
	timerID = setTimeout("UpdateTimer_texte()", timerval);
}

function UpdateTimer_digit(i)
{
	var timerval = 0;

	if (timer_digit[i])
		clearTimeout(timer_digit[i]);

	if (o_digit[i])
	{
		state_digit[i] = ! state_digit[i];
		if (state_digit[i])
		{
			o_digit[i].src = src_digit_on[i];
			timerval = (Math.random()*10000); // 1-10 secondes
		}
		else
		{
			o_digit[i].src = src_digit_off;
			timerval = Math.random()*200; // 0-200 millisecondes;
		}
	}
	
	timer_digit[i] = setTimeout("UpdateTimer_digit("+i+")", timerval);
}

function Start_texte()
{
	if (document.getElementById)
		texte_information = document.getElementById (id_information);
	else if (document.all)
		texte_information = document.all [id_information];

	if (texte_information)
	{
		texte_src_on = texte_information.innerHTML;
		timerID = setTimeout("UpdateTimer_texte()", delay_on);
	}
}

function Start_image()
{
	if (document.getElementById)
		image_information = document.getElementById (id_information);
	else if (document.all)
		image_information = document.all [id_information];

	if (image_information)
	{
		image_src_on = image_information.src;
		timerID = setTimeout("UpdateTimer_image()", delay_on);
	}
}

function Start_digit()
{
	var timerval = 0;
	id_digit = "digit_";

	if (document.getElementById)
	{
		for (i = 1; i < nb_digits; i++)
			o_digit[i] = document.getElementById (id_digit+i);
	}
	else if (document.all)
	{
		for (i = 1; i < nb_digits; i++)
			o_digit[i] = document.all [id_digit+i];
	}

	for (i = 1; i < nb_digits; i++)
	{
		if (o_digit[i])
		{
			src_digit_on[i] = o_digit[i].src;
			timerval = Math.random()*5000; // 0-5 secondes
			timer_digit[i] = setTimeout("UpdateTimer_digit("+i+")", timerval);
		}
	}
}

function Stop()
{
	for (i = 1; i < nb_digits; i++)
	{
		if (timer_digit[i])
		{
			clearTimeout(timer_digit[i]);
			timer_digit[i] = 0;
		}
	}
}

function genemail (sender)
{
	var c6 = 'fr';
	var c5 = 'gite-de-la-cascade';
	var c4 = 'tact';
	var c3 = 'con';
	var c2 = 'ilto';
	var c1 = 'ma';

	sender.href = c1 + c2 + ':' + c3 +c4 + '@' + c5 + '.' + c6;
}

function genemail_livredor (sender, name, adress1, adress2)
{
	var c2 = 'ilto';
	var c1 = 'ma';

	sender.href = c1 + c2 + ':' + name + ' <' + adress1 + '@' + adress2 + '>';
}

function change_fields (id_field, defvalue, onclick)
{
	var ofield = null;

	if (document.getElementById)
		ofield = document.getElementById (id_field);
	else if (document.all)
		ofield = document.all [id_field];

	if (onclick == 1)
	{
		if (ofield.value == defvalue)
			ofield.value = "";
	}
	else
	{
		if (ofield.value == "")
			ofield.value = defvalue;
	}
}

function change_facultatif2 (value_demande)
{
	var ofield_commentaire = null;
	var ofield_dates = null;
	
	var id_commentaire = "id_commentaire";
	var id_dates = "id_dates";
	
	var texte_facultatif = " (facultatif)";

	if (document.getElementById)
	{
		ofield_commentaire = document.getElementById (id_commentaire);
		ofield_dates = document.getElementById (id_dates);
	}
	else if (document.all)
	{
		ofield_commentaire = document.all [id_commentaire];
		ofield_dates = document.all [id_dates];
	}

	ofield_commentaire.innerHTML = "<br>"+((value_demande != "renseignements")?"<strong>Commentaire</strong>"+texte_facultatif:"<strong>Votre message</strong>");
	ofield_dates.innerHTML = "<br><strong>Dates de votre s&eacute;jour</strong>"+((value_demande != "renseignements")?"":texte_facultatif);
}

function change_facultatif2 (value_demande, texte_dates, texte_commentaire, texte_facultatif)
{
	var ofield_dates = null;
	var ofield_commentaire = null;
	
	var id_dates = "id_dates";
	var id_commentaire = "id_commentaire";
	
	texte_facultatif = " ("+texte_facultatif+")";

	if (document.getElementById)
	{
		ofield_dates = document.getElementById (id_dates);
		ofield_commentaire = document.getElementById (id_commentaire);
	}
	else if (document.all)
	{
		ofield_dates = document.all [id_dates];
		ofield_commentaire = document.all [id_commentaire];
	}

	ofield_dates.innerHTML = "<br><strong>"+texte_dates+"</strong>"+((value_demande != "renseignements")?"":texte_facultatif);
	ofield_commentaire.innerHTML = "<br>"+((value_demande != "renseignements")?("<strong>"+texte_commentaire+"</strong>"+texte_facultatif):("<strong>"+texte_commentaire+"</strong>"));
}

function place_curseur (id_field)
{
	var ofield = null;

	if (document.getElementById)
		ofield = document.getElementById (id_field);
	else if (document.all)
		ofield = document.all [id_field];
		
	ofield.focus();
}

function change_image (nom, index)
{
	var index_image = 0;
	var tableau_images = new Array;
	tableau_images["automne"] = new Array;
	tableau_images["automne"][++index_image] = "Récolter les citrouilles du jardin, finalement tellement plus faciles<br>à débusquer que les oeufs de Pâques !";
	tableau_images["automne"][++index_image] = "Admirer la nature qui s'ébroue délicatement le matin,<br>au rythme de la brume émergeant des arbres.";
	tableau_images["automne"][++index_image] = "Observer les feuilles de quinquéfolia s'empourprer<br>chaque jour de plus en plus.";
	tableau_images["automne"][++index_image] = "Se laisser doucement carresser par les derniers rayons de soleil d'un bel après-midi,<br>comme Kâmion et Balou savent si bien le faire.";

	var o_image = null;
	var o_texte = null;
	var id_image = "id_image_"+nom;
	var id_texte = "id_texte_"+nom;

	if (document.getElementById)
	{
		o_image = document.getElementById (id_image);
		o_texte = document.getElementById (id_texte);
	}
	else if (document.all)
	{
		o_image = document.all [id_image];
		o_texte = document.all [id_texte];
	}

	o_image.src = "images/photos/"+nom+"_"+index+".jpg";
	o_texte.innerHTML = tableau_images[nom][index];
}

var texte_traduit = new Array;
var texte_traduit_actif = new Array;

function affiche_traduction (id_texte, texte_original)
{
	var o_texte = null;

	if (document.getElementById)
		o_texte = document.getElementById (id_texte);
	else if (document.all)
		o_texte = document.all [id_texte];

	if (!texte_traduit[id_texte])
		texte_traduit[id_texte] = o_texte.innerHTML;

	if (!texte_traduit_actif[id_texte])
		o_texte.innerHTML = texte_original;
	else
		o_texte.innerHTML = texte_traduit[id_texte];
		
	texte_traduit_actif[id_texte] = !(texte_traduit_actif[id_texte]);
}

var drapeau_src = new Array;
var drapeau_actif = new Array;

function change_drapeau (id_drapeau, drapeau_alternatif_src)
{
	var o_drapeau = null;

	if (document.getElementById)
		o_drapeau = document.getElementById (id_drapeau);
	else if (document.all)
		o_drapeau = document.all [id_drapeau];

	if (!drapeau_src[id_drapeau])
		drapeau_src[id_drapeau] = o_drapeau.src;

	if (!drapeau_actif[id_drapeau])
		o_drapeau.src = drapeau_alternatif_src;
	else
		o_drapeau.src = drapeau_src[id_drapeau];

	drapeau_actif[id_drapeau] = !(drapeau_actif[id_drapeau]);
}

function navigateur (cadre)
{
	for (icadre = 1; icadre <= 3; ++icadre)
	{
		var o_titre = null;
		var o_soustitre = null;
		var id_titre = "id_titre_"+icadre;
		var id_soustitre = "id_soustitre_"+icadre;
	
		if (document.getElementById)
		{
			o_titre = document.getElementById (id_titre);
			o_soustitre = document.getElementById (id_soustitre);
		}
		else if (document.all)
		{
			o_titre = document.all [id_titre];
			o_soustitre = document.all [id_soustitre];
		}

		if (icadre == cadre)
		{
			o_titre.style.visibility = 'visible';
			o_soustitre.style.visibility = 'visible';
		}
		else
		{
			o_titre.style.visibility = 'hidden';
			o_soustitre.style.visibility = 'hidden';
		}
	}
}
