// JavaScript Document

var params_meteo="type_meteo=marine&langue=fr&num_ville=174"; //pour la mto

function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=15; i++) {
		if (document.getElementById('pratique'+i)) {document.getElementById('pratique'+i).style.display='none';}
		if (document.getElementById('location'+i)) {document.getElementById('location'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function concatene_heberg(){
   valeur='';
   for (i=1;i<=3;i++){
   elmt = eval("document.getElementById('formulaire').catype"+i);
   if (elmt.checked){
    valeur = valeur + elmt.value +'; ';
	
	}
   }
   document.getElementById('formulaire').bevar1.value=valeur;
   //alert(valeur);
   }

function ajoutFavoris() 
{	
	if ( navigator.appName.substring(0,9) == "Microsoft" ) 
	{
	   window.external.AddFavorite("http://www.camping-moulin-de-leclis.fr","Camping Loire Atlantique- Moulin de l'Eclis" );
	} 
	else 
	{
	   window.sidebar.addPanel("Camping Loire Atlantique- Moulin de l'Eclis","http://www.camping-moulin-de-leclis.fr",false);
	}
}

function confirmation()
{
 if (confirm('Confirmez vous l\'envoie de ce formulaire ?\n Do you confirm the form sending ?')) return (true);
  
 return (false); 
}
function xretour()
{
history.back();
}

function showVVVivario() {
	if (!$('shadow')) {
		var s = document.createElement('div');
		s.id='shadow';
		s.style.width='800px';
		s.style.height='620px';
		s.style.padding='20px';
		s.style.border='4px solid #999999';
		s.style.backgroundColor='#ffffff';
		s.style.position='absolute';
		s.style.top='50%';
		s.style.left='50%';
		s.style.marginLeft='-420px';
		s.style.marginTop='-320px';
		document.body.appendChild(s);
		
		$('shadow').innerHTML += '<iframe width="760" height="550" scrolling="no" frameborder="0" src="../visites/vivario/visite-vivario.html"></iframe>';
		$('shadow').innerHTML += '<br /><br /><br /><a id="closeVVButton" href="#" onclick="hideVVVivario()">Fermer</a>';
		
		$('closeVVButton').style.fontSize = "18px";
		$('closeVVButton').style.color = "#87B339";
		$('closeVVButton').style.fontWeight = "bold";
	}
}

function hideVVVivario() {	
	if ($('shadow'))
		$('shadow').parentNode.removeChild($('shadow'));
}

function showVVAccueil() {
	if ($('VVAccueil').style.display == "none") {
		Effect.BlindDown($('VVAccueil'));
	} else {
		new Effect.Squish($('VVAccueil'));
	}
}

function hideVVAccueil() {	
	if ($('shadow'))
		$('shadow').parentNode.removeChild($('shadow'));
}