// ************************************************************
// Présenation d'un cadre au mouvement de la souris
// ************************************************************

// 1] Détection du navigateur
	var ns4=(document.layers)? true:false;
	var ns6=(document.getElementById)? true:false;
	var ie4=(document.all)? true:false;
	var ie5=false;
	if(ie4){
		if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
			ie5=true;
		}
		if(ns6){
			ns6=false;
		}
	}

var x=0; var y=0;

if (ns4) { document.captureEvents(Event.MOUSEMOVE); }
document.onmousemove = foncAlt;

// 2] Mouvement de la souris - cadre version 1
function showAlt(txt,intro) {
	var coulBord = "#000000";
	var coulFond = "#99CCFF";
	var coulTxt = "#000000";
	contenu = '<table style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; border: '+coulBord+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; background-color: '+coulFond+'" width="10" border="0" cellspacing="1" cellpadding="1"><tr><td nowrap><font style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: '+coulTxt+'">';
	if (intro) {
		contenu=contenu+'La météo sur <b>'+unescape(txt)+'</font></td></tr></table> ';
	} else {
		contenu=contenu+unescape(txt)+'</font></td></tr></table> '; }
	creaAlt(contenu);
}

// 2bis] Mouvement de la souris - Cadre version 2
function showPro(txt) {
	var coulBord = "#FFC60A";
	var coulFond = "#FFEBAA";
	var coulTxt = "#000000";
	contenu = '<table width="245" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; border: '+coulBord+'; border-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; background-color: '+coulFond+'" border="0" cellspacing="1" cellpadding="4"><tr><td><font style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: '+coulTxt+'">'+unescape(txt)+'</font></td></tr></table> ';
	creaAlt(contenu);
}

// 3] Création du contenu du layer
function creaAlt(contenu) {
	if (ie4 || ie5) {
		window.ALTdHTML.innerHTML=contenu;
		window.ALTdHTML.style.visibility='visible';
	}
  if (ns4) {
		document.layers["ALTdHTML"].document.write(contenu);
		document.layers["ALTdHTML"].document.close();
		document.layers.ALTdHTML.visibility='show';
	}
  if (ns6) {
		document.getElementById("ALTdHTML").innerHTML=contenu;
		document.getElementById("ALTdHTML").style.visibility='visible';
  }
}

// 4] Positionner le layer
function foncAlt(evt) {
	if (ie4 || ie5) {
		x=event.clientX; y=event.clientY+document.body.scrollTop;
	  	window.ALTdHTML.style.left=x+10;
	  	window.ALTdHTML.style.top=y+14;
	}
	if (ns4) {
		x = (navigator.appName.substring(0,3) == "Net") ? evt.pageX : event.x+document.body.scrollLeft;
		y = (navigator.appName.substring(0,3) == "Net") ? evt.pageY : event.y+document.body.scrollTop;
		document.layers.ALTdHTML.left=x+10;
		document.layers.ALTdHTML.top=y+14;
	}
	if (ns6) {
		x=evt.clientX+document.body.scrollLeft; y=evt.clientY+document.body.scrollTop;
	  	document.getElementById("ALTdHTML").style.left=x+10;
	  	document.getElementById("ALTdHTML").style.top=y+14;
	}
}

// 5] Effacer le layer
function hideAlt() {
	if (ie4 || ie5) {
		window.ALTdHTML.style.visibility='hidden';
		window.ALTdHTML.innerHTML="";
	}else if (ns4) {
		document.layers.ALTdHTML.visibility='hide';
		document.layers["ALTdHTML"].document.write("");
		document.layers["ALTdHTML"].document.close();
	}else if (ns6) {
		document.getElementById("ALTdHTML").style.visibility='hidden';
		document.getElementById("ALTdHTML").innerHTML="";
	}
}

