<!--
ns = (!document.all && document.getElementById)
ie = (document.all)? true:false
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
	if(ns){
		mouseX = e.pageX;
		mouseY = e.pageY;
	}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MostraLayer(quale){
		if(quale==1)testo='<a href="home_fr.htm">Accueil.</A>'
		if(quale==2)testo='<a href="progetto_fr.htm">Le Projet Interreg III A - \'AQUA\'</A>'
		if(quale==3)testo='- <a href="http://www.regione.piemonte.it/" target="_blank">Regione Piemonte</a><br>- <a href="avigliana_fr.htm">Parco Naturale dei Laghi di Avigliana</a><br>- <a href="troncea_fr.htm">Parco Naturale Val Troncea</a><br>- <a href="orsiera_fr.htm">Parco Naturale Orsiera Rocciavré e Riserve di Chianocco</a><br>- <a href="po_torinese_fr.htm">Parco Fluviale del Po Torinese</a><br>- <a href="gran_bosco_fr.htm">Parco Naturale Gran Bosco di Salbertrand</a><br>- <a href="riserve_cuneesi_fr.htm">Ente di gestione Parchi e Riserve Naturali Cuneesi</a><br>- <a href="po_cuneese_fr.htm">Parco Fluviale del Po Cuneese</a><br>- <a href="alpi_marittime_fr.htm">Parco Naturale Alpi Marittime</a><br>- <a href="mercantour_fr.htm">Parc national du Mercantour</a><br>- <a href="csp_fr.htm">Conseil Superieur de la Peche</a>'
		if(quale==4)testo='<a href="lavori_fr.php">Les Travaux déjà effectués.</a><br><a href="lavori_fr.php?parco=avigliana">Avigliana</a><br><a href="lavori_fr.php?parco=troncea">Val Troncea</a><br><a href="lavori_fr.php?parco=rocciavre">Orsiera Rocciavré</a><br><a href="lavori_fr.php?parco=po_to">Po Torinese</a><br><a href="lavori_fr.php?parco=salbertrand">Salbertrand</a><br><a href="lavori_fr.php?parco=cuneesi">Riserve Cuneesi</a><br><a href="lavori_fr.php?parco=po_cu">Po Cuneese</a><br><a href="lavori_fr.php?parco=a_mari">Alpi Marittime</a><br><a href="lavori_fr.php?parco=merc">Mercantour</a><br><a href="lavori_fr.php?parco=peche">Conseil Superieur de la Peche</a>'
		if(quale==5)testo='<a href="database_fr.htm">La Base de données</a><br><a href="demo.exe">Téléchargement de la démonstration.</a>'
		if(quale==6)testo='<a href="news_fr.php">Nouvelles sur le projet.</a>'
		if(quale==7)testo='<a href="links_fr.php">Autres sites d\'intérêt.</A>'
		html = '<table width="100%" height="100%" border="1" cellspacing="1" cellpadding="2" bordercolor="#CCCCCC" bgcolor="#000066"><tr><td style="border-top: 1px solid #CCCCCC; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC"><div align="left"><font face="Vedana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b>'+testo+'</b></font></div></td></tr></table>'
		if(ie){
			if(quale==1)ax = document.images.Image1.offsetLeft;
			if(quale==2)ax = document.images.Image2.offsetLeft;
			if(quale==3)ax = document.images.Image3.offsetLeft;
			if(quale==4)ax = document.images.Image4.offsetLeft;
			if(quale==5)ax = document.images.Image5.offsetLeft;
			if(quale==6)ax = document.images.Image6.offsetLeft;
			if(quale==7)ax = document.images.Image7.offsetLeft;
		ay = document.images.Image1.offsetTop;
		document.all("Layer1").style.left=ax+277;
		document.all("Layer1").style.top=ay+113;
		document.all("Layer1").innerHTML=html
		document.all("Layer1").style.visibility='visible';
		}
		else if(ns){
		tempY = document.images["Image1"].y+15;
			if(quale==1)tempX = document.images["Image1"].x;
			if(quale==2)tempX = document.images["Image2"].x;
			if(quale==3)tempX = document.images["Image3"].x;
			if(quale==4)tempX = document.images["Image4"].x;
			if(quale==5)tempX = document.images["Image5"].x;
			if(quale==6)tempX = document.images["Image6"].x;
			if(quale==7)tempX = document.images["Image7"].x;
		document.getElementById("Layer1").style.left= tempX;
		document.getElementById("Layer1").style.top= tempY;
		document.getElementById("Layer1").innerHTML=html;
		document.getElementById("Layer1").style.visibility="visible";
		}
}

function NascondiLayer(obj, e) {
  var toEl;
  if (window.event) toEl = window.event.toElement;
  else if (e.relatedTarget) toEl = e.relatedTarget;
  if ( obj != toEl && !contained(toEl, obj) ) obj.style.visibility = "hidden";
}

function contained(oNode, oCont) {
  if (!oNode) return; // in case alt-tab away while hovering (prevent error)
  while ( oNode.parentNode ) {
    oNode = oNode.parentNode;
    if ( oNode == oCont ) return true;
  }
  return false;
}
function RicercaD(){
	if(document.frmRicercaD.txtRicerca.value==''){
		alert('Inserire una parola chiave per la ricerca!     ')
	}else{
		document.frmRicercaD.action='lavori_fr.php';
		document.frmRicercaD.submit();
	}
}
function Cancella(quale){
	if(quale==1){
		document.frmLogin.txtNome.value='';
	}
}
function Conferma(){
	if(document.frmLogin.txtNome.value!=''&&document.frmLogin.txtNome.value!='nome'&&document.frmLogin.txtPass.value!=''&&document.frmLogin.txtPass.value!='password'){
		document.frmLogin.action='verifica_fr.php';
		document.frmLogin.submit();
	}else{
		alert('Insérer le nom d\'usager et le mot de passe      ');
	}
}
//-->
