//
// - Calcule la date du jour
//
var d=new Date();
weekday= new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
monthname= new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","ao&ucirc;t","septembre","octobre","novembre","d&eacute;cembre");
// Ensure correct for language. English is "monday, january 1 - 2004"
var TODAY = weekday[d.getDay()] + " " + d.getDate() + " " + monthname[d.getMonth()] + " " + d.getFullYear() + "&nbsp;&nbsp;&nbsp;&nbsp;";
//
// - Diverses fonctions
//
function retailler(x,y) {
 var larg = (document.body.clientWidth);
 var haut = (document.body.clientHeight);
 if (larg<=920) {
  this.resizeTo(920,haut);
 }
 var larg = (document.body.clientWidth);
 var haut = (document.body.clientHeight);
 if (haut<=780) {
  this.resizeTo(larg,780);
 }
// self.moveTo(0,0);
 zoomInit();
}
//
// - zoom sur le texte
//
function zoomInit() {
  document.getElementById('contenuNormal').style.fontSize="13px";
}

function zoom(tag) {
 var tailleactuelle;
 if (document.getElementById("contenuNormal").style.fontSize) {
  tailleactuelle=document.getElementById("contenuNormal").style.fontSize;
 }
 else
 {
  document.getElementById('contenuNormal').style.fontSize="13px";
 }
 if (tag == "p") {
  elem = document.getElementById("contenuNormal").style.fontSize;
  elem = parseInt(elem)+1+"px";
  document.getElementById("contenuNormal").style.fontSize=elem;
 }
 else {
  elem = document.getElementById("contenuNormal").style.fontSize;
  elem = parseInt(elem)-1+"px";
  document.getElementById("contenuNormal").style.fontSize=elem;
 }
}
//
// - Souvenirs de l inauguration
//
function openInauguration() {
 window.open('ZsouvenirsCDV.html','Inauguration', 'width=450, height=500,top=100, left = 100, resizable=yes,  toolbar=false, scrollbars=false, status=false');
}
//
// - Video
//
function openVideo() {
 window.open('zVideoCDV.html','Video', 'width=240, height=196,top=100, left = 100, resizable=yes,  toolbar=false, scrollbars=false, status=false');
}
//
// - Carte GM
//
function openGM() {
 window.open('ZGroupeMaison.html','GM', 'width=1090, height=470,top=10,left=10, resizable=yes,  toolbar=false, scrollbars=false, status=false');
}
//
// - Calendrier
//
function openCalendrier() {
 window.open('http://www.centredevie.ch/cal2/month.php','Calendrier', 'width=280, height=300,top=10,left=10, resizable=yes,  toolbar=false, scrollbars=false, status=false');
}
//
// - Plan d acces
//
function ouvrePlan(page) {
 window.open(page,'perso', 'width=495, height=345, top=10, left=10, resizable=yes,  toolbar=false, scrollbars=false, status=false');
}
