
if (top != self) {
top.location.href = location.href;
	}



	/*
//Clignotement 
function clignotement(){
    if (document.getElementById("MonElement").style.backgroundColor=="rgb(234, 0, 0)" || document.getElementById("MonElement").style.backgroundColor=="#EA0000" ){
       document.getElementById("MonElement").style.backgroundColor="#FF1C1C";
	   }
	   else{
       document.getElementById("MonElement").style.backgroundColor="#EA0000";
	   }
}
setInterval("clignotement()", 1000); var xhr = null; 

*/

function getXhr()
{
     if(window.XMLHttpRequest)xhr = new XMLHttpRequest(); 
else if(window.ActiveXObject)
  { 
  try{
     xhr = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e) 
     {
     xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
else 
  {
  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
  xhr = false; 
  } 
  
  return xhr;
}


function mon_compte()
{
	var valeur_src = document.getElementById('mon_compte').style.visibility;
	
	if(valeur_src == 'visible')
	{
	document.getElementById('mon_compte').style.visibility  ='hidden';
	}
	else{
	document.getElementById('mon_compte').style.visibility  ='visible';
	}

 }
 
 
 /**
	* Méthode qui sera appelée sur le click du bouton
	*/
	function authentification(){
	var pseudo =  document.getElementById('pseudo').value;
	var password =  document.getElementById('password').value;
	  document.getElementById('compte_meteorologic').innerHTML = "<center><br /><img src='images_design/icone/load-auth.gif' alt='Chargement' /><br /> <strong>Authentification ...</strong></center><br />";
		var xhr = getXhr()
		// On défini ce qu'on va faire quand on aura la réponse
		xhr.onreadystatechange = function(){

			  if(xhr.readyState == 4 && xhr.status == 200)
			  {
			    document.getElementById('compte_meteorologic').innerHTML = xhr.responseText;
			  }
}
		xhr.open("POST","programme-ajax/authentification.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send("pseudo="+pseudo+"&pass="+password+"");
	}
	

/**
	* Méthode qui sera appelée sur le click du bouton
	*/
	function authentification_grand(){
	var pseudo =  document.getElementById('pseudo_auth').value;
	var password =  document.getElementById('password_auth').value;
	  document.getElementById('compte_meteorologic_grand').innerHTML = "<center><br /><img src='images_design/icone/load.gif' alt='Chargement' /><br /> <strong>Authentification ...</strong></center><br />";
		var xhr = getXhr()
		// On défini ce qu'on va faire quand on aura la réponse
		xhr.onreadystatechange = function(){

			  if(xhr.readyState == 4 && xhr.status == 200)
			  {
			    document.getElementById('compte_meteorologic_grand').innerHTML = xhr.responseText;
			  }
}
		xhr.open("POST","programme-ajax/authentification_grand.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send("pseudo="+pseudo+"&pass="+password+"");
	}	
	
	function function_location(ancre){
	
	var retour = this.location.href+""+ancre+"";
	
	return retour;
	
	}
	
	/* changer shape */
		function change_mapshape(name,id){
	document.getElementById(""+id+"").src = name;
	}
	
	
		function change_calendar(date,type){
		var xhr = getXhr()
		// On défini ce qu'on va faire quand on aura la réponse
		xhr.onreadystatechange = function(){

			  if(xhr.readyState == 4 && xhr.status == 200)
			  {
			    document.getElementById('calendar').innerHTML = xhr.responseText;
			  }
}
		xhr.open("POST","programme-ajax/change_calendrier.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send("date="+date+"&type="+type+"");
	}
	

	
//Contenu page pour tutorial
function content_page(name){
		var xhr = getXhr()
		// On défini ce qu'on va faire quand on aura la réponse
		xhr.onreadystatechange = function(){

			  if(xhr.readyState == 4 && xhr.status == 200)
			  {
			    document.getElementById('content_change').style.visibility  ='visible';
			    document.getElementById('content_change').innerHTML = xhr.responseText;
			  }
}
		xhr.open("POST","programme-ajax/doc-ajax.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send("name="+name+"");
	}
	
	
//Affich or disparait
function affich_drop(affich,drop){
document.getElementById(affich).style.display ='block';
document.getElementById(drop).style.display ='none'; 

}




/**
	* Méthode qui sera appelée sur le click du bouton
	*/
	function inscription(){
	var pseudo =  document.getElementById('pseudo_compte').value;
	var password =  document.getElementById('password_compte').value;
	var email =  document.getElementById('email').value;
	  document.getElementById('form_inscription').innerHTML = "<center><br /><img src='images_design/icone/load.gif' alt='Chargement' /><br /> <strong>Inscription en cours ...</strong></center><br />";
		var xhr = getXhr()
		// On défini ce qu'on va faire quand on aura la réponse
		xhr.onreadystatechange = function(){

			  if(xhr.readyState == 4 && xhr.status == 200)
			  {
			    document.getElementById('form_inscription').innerHTML = xhr.responseText;
			  }
}
		xhr.open("POST","programme-ajax/inscription.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send("pseudo="+pseudo+"&pass="+password+"&email="+email+"");
	}	

















sfHover = function() {
	var sfEls = document.getElementById("navig").getElementsByTagName("LI");
	var SELECT = document.getElementsByTagName('select');
	
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className="sfhover";
			
			for(sIndex = 0; sIndex < SELECT.length; sIndex++)
			{
			SELECT[sIndex].style.visibility = 'hidden';
			}
		}
		sfEls[i].onmousemove=function() {
			this.className="sfhover";
			
			for(sIndex = 0; sIndex < SELECT.length; sIndex++){
			SELECT[sIndex].style.visibility = 'hidden';
			}			
		}
		sfEls[i].onmouseout=function() {
			//this.className="";
			this.className=this.className.replace(new RegExp("sfhover\\b"), "");
			
			for(sIndex = 0; sIndex < SELECT.length; sIndex++){
			SELECT[sIndex].style.visibility = 'visible';
			}			
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);






var Timer;
var Pas = 3;
function moveLayer(Sens) {
	var Objet=document.getElementById('contenucontent');

    if(parseInt(Objet.style.top) + (Pas*Sens)>0)  {
		clearTimeout(Timer);
	}
	else if(parseInt(Objet.style.top) + (Pas*Sens)<-(Objet.offsetHeight-document.getElementById("supportsupport").offsetHeight)) {
		clearTimeout(Timer);
	}
    else {
        Objet.style.top = (parseInt(Objet.style.top) + (Pas*Sens)) + "px";
	}
	Timer = setTimeout("moveLayer(" + Sens + ");", 30);
}
