var arg=window.location.search;
//var chemin = "http://localhost/OT_Uzes/sitefr/";
var chemin = "http://www.uzes-tourisme.com/sitefr/";


function fen01() {
//	var neofe = window.open ("/OTUzes/sitefr/meteo.htm","","height=50,width=80");
	var neofe = window.open ("/sitefr/meteo.htm","","height=50,width=80");
}
 
function fenEnvirons() {
	var neofe = window.open ("/sitefr/plans/uzege.html","","height=560,width=670");
	neofe.focus();
}

function ChangImg(imgName,sens) {
     imgOn = eval(imgName+sens+".src");
     document [imgName].src = imgOn;
}


function OuvFenFiche(page, nom,haut,larg,param) {
     mafenetre = window.open(page,nom,param);
     mafenetre.resizeTo(715,550);
     //mafenetre.document.close();
     mafenetre.focus();
}

function aujour() {
	var aujou = new Date ();		// récupère la date
	var chi = aujou.getDate();		// chiffre du jour
	var day = aujou.getDay();		// jour de la semaine
	var moi = aujou.getMonth();		// mois de l'année
	var an = aujou.getFullYear();	// année

	var liste = new Array();	// donne un nom au jour de la semaine
	liste = ["dim","lun","mar","mer","jeu","ven","sam"];
	var mois = new Array();		//donne un nom au mois de l'année
	mois = ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];

	document.write("<b>"+liste[day]+" "+chi+" "+mois[moi]+" "+an+"<br>");
}


function legend() {
        var neofe = window.open ("legende.htm","","height=188,width=480");
}

function change_url(url) {
     document.location.href = chemin+url;
}


/*  
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
//document.onselectstart = new Function("return false");

