﻿// JavaScript Document
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// fonction pour afficher/cacher div
//function visibilite(thingId)
//{
// var i;
// var targetElement;
// targetElement = document.getElementById("divid" + thingId) ;
// if ( targetElement.style.display == "none") 
//     targetElement.style.display = "" ;
// else
//     targetElement.style.display = "none" ;
//}

//function show(_show)
//{
// var disp = (_show)? "" : "none";
// for ( var i=1; i<=3; i++)
// {
//  document.getElementById("divid" + i).style.display = disp;
// }
//}
//
//
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}


//fonction afichage popup (infobulle)
function GetId(id)
{
return document.getElementById(id);
}
var z=false; // La variable i nous dit si la bulle est visible ou non
 
function move(e) {
  if(z) {  // Si la bulle est visible, on calcul en temps reel sa position ideale
    if (navigator.appName!="Microsoft Internet Explorer") { // Si on est pas sous IE
    GetId("curseur").style.left=e.pageX + -90+"px";
    GetId("curseur").style.top=e.pageY + 20+"px";
    }
    else { // Modif proposé par TeDeum, merci à  lui
    if(document.documentElement.clientWidth>0) {
GetId("curseur").style.left=-90+event.x+document.documentElement.scrollLeft+"px";
GetId("curseur").style.top=20+event.y+document.documentElement.scrollTop+"px";
    } else {
GetId("curseur").style.left=-90+event.x+document.body.scrollLeft+"px";
GetId("curseur").style.top=20+event.y+document.body.scrollTop+"px";
         }
    }
  }
}
 
function montre(text) {
  if(z==false) {
  GetId("curseur").style.visibility="visible"; // Si il est cacher (la verif n'est qu'une securité) on le rend visible.
  GetId("curseur").innerHTML = text; // on copie notre texte dans l'élément html
  z=true;
  }
}
function cache() {
if(z==true) {
GetId("curseur").style.visibility="hidden"; // Si la bulle est visible on la cache
if (navigator.appName!="Microsoft Internet Explorer") { // Si on est pas sous IE
    GetId("curseur").style.left=-1000+"px";
    GetId("curseur").style.top=-1000+"px";
    }
    else { // Modif proposé par TeDeum, merci à  lui
    if(document.documentElement.clientWidth>0) {
GetId("curseur").style.left=-1000+"px";
GetId("curseur").style.top=-1000+"px";
    } else {
GetId("curseur").style.left=-1000+"px";
GetId("curseur").style.top=-1000+"px";
         }
    }
  }
  z=false;
}

document.onmousemove=move; // dès que la souris bouge, on appelle la fonction move pour mettre à jour la position de la bulle.


//Script pour afficher une image aléatoire en haut de la page
function image() {
};

image = new image();
number2 = 0;

// imageArray
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut001.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut002.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut003.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut004.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut005.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut006.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut007.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut008.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut009.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut010.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut011.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut012.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut013.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut014.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut015.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut016.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut017.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut018.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut019.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut020.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut021.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut022.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut023.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut024.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut025.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut026.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut027.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut028.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut029.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut030.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut031.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut032.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut033.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut034.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut035.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut036.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut037.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut038.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut039.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut040.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut041.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut042.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut043.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut044.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut045.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut046.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut047.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut048.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut049.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut050.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut051.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut052.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut053.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut054.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut055.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut056.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut057.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut058.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut059.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut060.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut061.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut062.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut063.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut064.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut065.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut066.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut067.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut068.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut069.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut070.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut071.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut072.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut073.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut074.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut075.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut076.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut077.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut078.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut079.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut080.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut081.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut082.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut083.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut084.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut085.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut086.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut087.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut088.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut089.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut090.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut091.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut092.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut093.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut094.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut095.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut096.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut097.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut098.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut099.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut100.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut101.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut102.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut103.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut104.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut105.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut106.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut107.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut108.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut109.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut110.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut111.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut112.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut113.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut114.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut115.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut116.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut117.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut118.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut119.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut120.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut121.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut122.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut123.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut124.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut125.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
image[number2++] = "<img src='http://www.kalysteo.com/image/haut/haut126.JPG' border='0' alt='Kalysteo.com' title='Kalysteo.com' id='image_haut' height='160' width='850' />"
// keep adding items here...

increment2 = Math.floor(Math.random() * number2);
//FIN Script pour afficher une image aléatoire en haut de la page

//Script pour afficher un site Corse aléatoire en haut de la page
function textephoto() {
};

textephoto = new textephoto();
number = 0;

// textephotoArray
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/capcorse/site-capcorse.php'>Cap Corse<br /><img src='http://www.kalysteo.com/image/phcapcorse.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/agriates/site-agriates.php'>Désert des Agriates<br /><img src='http://www.kalysteo.com/image/phagriates.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/asco/site-asco.php'>Vallée de l'Asco<br /><img src='http://www.kalysteo.com/image/phasco.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/bonifato/site-bonifato.php'>Cirque de Bonifato<br /><img src='http://www.kalysteo.com/image/phbonifato.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/calvi/site-calvi.php'>Calvi<br /><img src='http://www.kalysteo.com/image/phcalvi.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/canonica/site-canonica.php'>La Canonica<br /><img src='http://www.kalysteo.com/image/phcanonica.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/corte/site-corte.php'>Corte<br /><img src='http://www.kalysteo.com/image/phcorte.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/fango/site-fango.php'>Vallée du Fango<br /><img src='http://www.kalysteo.com/image/phfango.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/ilerousse/site-ilerousse.php'>L'Ile Rousse<br /><img src='http://www.kalysteo.com/image/philerousse.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/lancone/site-lancone.php'>Défilé du Lancone<br /><img src='http://www.kalysteo.com/image/phlancone.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/murato/site-murato.php'>Eglise San Michele de Murato<br /><img src='http://www.kalysteo.com/image/phmurato.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/nino/site-nino.php'>Lac de Nino<br /><img src='http://www.kalysteo.com/image/phnino.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/popolasca/site-popolasca.php'>Aiguilles de Popolasca<br /><img src='http://www.kalysteo.com/image/phpopolasca.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/restonica/site-restonica.php'>Vallée de la Restonica<br /><img src='http://www.kalysteo.com/image/phrestonica.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/saintflorent/site-saintflorent.php'>Saint-Florent<br /><img src='http://www.kalysteo.com/image/phsaintflorent.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/scalasantaregina/site-scalasantaregina.php'>Scala Santa Regina<br /><img src='http://www.kalysteo.com/image/phscalasantaregina.jpg' height='87px' width='130px' border='0'></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/stretteetinzeca/site-stretteetinzeca.php'>Défilés des Strette et Inzeca<br /><img src='http://www.kalysteo.com/image/phstretteetinzeca.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/tavignano/site-tavignano.php'>Gorges du Tavignano<br /><img src='http://www.kalysteo.com/image/phtavignano.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/villagesbalanins/site-villagesbalanins.php'>Villages Balanins<br /><img src='http://www.kalysteo.com/image/phvillagesbalanins.jpg' height='87px' width='130px' border='0'></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/aitone/site-aitone.php'>Cascades d'Aïtone<br /><img src='http://www.kalysteo.com/image/phaitone.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/arragio/site-arragio.php'>Castellu d'Arragio<br /><img src='http://www.kalysteo.com/image/pharragio.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/bavella/site-bavella.php'>Aiguilles de Bavella<br /><img src='http://www.kalysteo.com/image/phbavella.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/bonifacio/site-bonifacio.php'>Bonifacio<br /><img src='http://www.kalysteo.com/image/phbonifacio.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/campomoro/site-campomoro.php'>Campomoro<br /><img src='http://www.kalysteo.com/image/phcampomoro.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/caporosso/site-caporosso.php'>Capo Rosso<br /><img src='http://www.kalysteo.com/image/phcaporosso.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/cappertusato/site-cappertusato.php'>Cap Pertusato<br /><img src='http://www.kalysteo.com/image/phcappertusato.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/cargese/site-cargese.php'>Cargèse<br /><img src='http://www.kalysteo.com/image/phcargese.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/cauria/site-cauria.php'>Site mégalithique de Cauria<br /><img src='http://www.kalysteo.com/image/phcauria.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/palaggiu/site-palaggiu.php'>Site mégalithique de Palaggiu<br /><img src='http://www.kalysteo.com/image/phpalaggiu.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/filitosa/site-filitosa.php'>Site mégalithique de Filitosa<br /><img src='http://www.kalysteo.com/image/phfilitosa.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/ileslavezzi/site-ileslavezzi.php'>Iles Lavezzi<br /><img src='http://www.kalysteo.com/image/phileslavezzi.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/ilessanguinaires/site-ilessanguinaires.php'>Iles Sanguinaires<br /><img src='http://www.kalysteo.com/image/philessanguinaires.jpg' height='87px' width='130px' border='0'></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/oriucanni/site-oriucanni.php'>Oriu de Canni<br /><img src='http://www.kalysteo.com/image/phoriucanni.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/ospedale/site-ospedale.php'>L'Ospédale<br /><img src='http://www.kalysteo.com/image/phospedale.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/palombaggia/site-palombaggia.php'>Plage de la Palombaggia<br /><img src='http://www.kalysteo.com/image/phpalombaggia.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/piana/site-piana.php'>Calanche de Piana<br /><img  src='http://www.kalysteo.com/image/phpiana.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/piantarella/site-piantarella.php'>Plage de la Piantarella<br /><img src='http://www.kalysteo.com/image/phpiantarella.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/pisciadigallo/site-pisciadigallo.php'>Cascade Piscia di Gallo<br /><img src='http://www.kalysteo.com/image/phpisciadigallo.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/polischellu/site-polischellu.php'>Cascades du Polischellu<br /><img src='http://www.kalysteo.com/image/phpolischellu.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/porto/site-porto.php'>Porto<br /><img src='http://www.kalysteo.com/image/phporto.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/purcaraccia/site-purcaraccia.php'>Cascades de la Purcaraccia<br /><img src='http://www.kalysteo.com/image/phpurcaraccia.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/hautecorse/radule/site-radule.php'>Cascades de la Radule<br /><img src='http://www.kalysteo.com/image/phradule.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/roccapina/site-roccapina.php'>Roccapina<br /><img src='http://www.kalysteo.com/image/phroccapina.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/rondinara/site-rondinara.php'>Plage de la Rondinara<br /><img src='http://www.kalysteo.com/image/phrondinara.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/sartene/site-sartene.php'>Sartène<br /><img src='http://www.kalysteo.com/image/phsartene.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/scandola/site-scandola.php'>Réserve naturelle de Scandola<br /><img src='http://www.kalysteo.com/image/phscandola.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/tavera/site-tavera.php'>Tavera<br /><img src='http://www.kalysteo.com/image/phtavera.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
//textephoto[number++] = "<a style='text-decoration:none' href='http://www.kalysteo.com/corsedusud/voilemariee/site-voilemariee.php'>Cascade du Voile de la Mariée<br /><img src='http://www.kalysteo.com/image/phvoilemariee.jpg' height='87px' width='130px' border='0' alt='' title='' /></a>"
// keep adding items here...
increment = Math.floor(Math.random() * number);
//FIN Script pour afficher un site Corse aléatoire en haut de la page


// Script pour afficher menu horizontal
/* iubito's menu - http://iubito.free.fr/prog/menu.php - configuration du javascript */

/* true = le menu sera vertical, à gauche.
   false = le menu sera horizontal, en haut. */
var vertical = false;

/* Centrer le menu ? (true/false).
	Centre horizontalement ou verticalement suivant le mode choisi. */
var centrer_menu = false;

/* On est obligé de définir une largeur pour les menus.
	Pour mettre des menus de largeurs différentes :
	var largeur_menu = new Array(largeur menu1, largeur menu2, largeur menu3...)
	Il faut faire attention à mettre autant de valeurs que de nombre de menu !
	Attention, si vous êtes en menu vertical, mettez une largeur fixe (pas de Array) !
	*/
var largeur_menu = 107;

/* En mode vertical, on a besoin de connaître la hauteur de chaque menu.
	Même si les "cases" ne sont pas dimensionnées en hauteur.
	Ajustez cette variable si les menus sont trop rapprochés ou espacés en vertical.
	Pour mettre des menus de hauteurs différentes :
	var hauteur_menu = new Array(hauteur menu1, hauteur menu2, hauteur menu3...)
	Il faut faire attention à mettre autant de valeurs que de nombre de menu !
	Attention, si vous êtes en menu horizontal, mettez une largeur fixe (pas de Array) !
	*/
var hauteur_menu = 0;

/* En mode horizontal.
	Largeur des sous-menus, pour IE uniquement, les autres navigateurs respectent la largeur
	auto. Mettez "auto" uniquement si vous êtes sûr d'avoir mis des   à la place des
	espace dans les items !
	Pour mettre des sous-menus de largeurs différentes :
	var largeur_sous_menu = new Array(largeur1, largeur2...).
	Il faut faire attention à mettre autant de valeurs que de menus.
	Si un menu n'a pas de sous-menus, il faut mettre quand même quelque chose !
	Il est possible de mettre "auto" dans certaines colonnes, à condition de respecter la
	consigne ci-dessus.
	*/
var largeur_sous_menu = 200;
/* var largeur_sous_menu = new Array(0,200,200,0,0,200,0,0) */

/* Pour les navigateurs connaissant la largeur automatique (s'adapte au contenu), cette
	option (active par défaut) permet d'avoir une largeur automatique. En cas contraire
	(false), les sous menus auront la largeur largeur_sous_menu. */
var largeur_auto_ssmenu = true;

/* ... pour mettre un peu d'espace entre les menus ! */
var espace_entre_menus = 3;


/* position du menu par rapport au haut de l'écran ou de la page.
	0 = le menu est tout en haut. en px */
var top_menu = 0;
/* En version horizontale.
	position des sous-menus par rapport au haut de l'écran ou de la page. Il faut prévoir
	la hauteur des menus, donc ne pas mettre 0 et faire "à tâton". en px */
var top_ssmenu = top_menu + 43;

/* Position gauche du menu, en px. */
var left_menu = 0;
/* En version verticale.
	Position des sous-menus par rapport au bord gauche de l'écran. */
var left_ssmenu = largeur_menu+2;

/* Quand la souris quitte un sous-menu, si le sous-menu disparait immédiatement,
	cela gêne l'utilisateur. Alors on peut mettre un délai avant disparition du sous-menu.
	500 ms c'est bien :-) */
var delai = 650; // en milliseconde

/* En version horizontale.
	Comme le menu peut se superposer avec le texte de la page, il est possible de faire
	descendre un peu la page (on augmente la marge du haut) pour aérer un peu la page,
	une quarantaine de pixel c'est pas mal. en px*/
var marge_en_haut_de_page = top_menu + 3;
/* En version verticale.
	On décale le document à droite pour pas que le menu le superpose. */
var marge_a_gauche_de_la_page = largeur_menu + 10;


/* Mettez à true si vous souhaitez que le menu soit toujours visible.
	Mettez false si vous ne le souhaitez pas, dans ce cas le menu "disparaîtra" quand vous
	descendrez dans la page. */
var suivre_le_scroll=false;

/* Pour IE uniquement, les balises <select> passent toujours au-dessus du menu, donc
	par défaut on cache les listes déroulantes quand le menu est ouvert, puis on les fait
	réapparaître à la fermeture du menu. Pour empêcher ça, mettre à false. */
var cacher_les_select=false;


var nbmenu = 0; //Auto-calculé
var timeout; //ne pas toucher, c'est pour déclarer la variable
var agt = navigator.userAgent.toLowerCase();
var isMac = (agt.indexOf('mac') != -1);
var isOpera = (agt.indexOf('opera') != -1);
var IEver = parseInt(agt.substring(agt.indexOf('msie ') + 5));
var isIE = ((agt.indexOf('msie')!=-1 && !isOpera && (agt.indexOf('webtv')==-1)) && !isMac);
var isIE5win = (isIE && IEver >= 5);
var isIE5mac = ((agt.indexOf('msie') != -1) && isMac);
var isSafari = (agt.indexOf('safari') != -1);

//pour enlever les "px" pour faire des calculs...
var reg = new RegExp("px", "g");

// onScroll pour Internet Explorer, le position:fixed fait ce boulot pour les autres navigateurs
// qui respectent les normes CSS...
window.onscroll = function()
{
	if (suivre_le_scroll && (isIE || isIE5mac))
	{
		if (isIE5mac) document.getElementById("conteneurmenu").style.visibility="hidden";
		var cumul=0;
		for(i1=1;i1<=nbmenu;i1++)
		{
			var scrollTop = (document.documentElement&&document.documentElement.scrollTop
								?document.documentElement.scrollTop
								:document.body.scrollTop);
			if (!vertical) {
				document.getElementById("menu"+i1).style.top = scrollTop + top_menu + "px";
				if (document.getElementById("ssmenu"+i1))//undefined
					document.getElementById("ssmenu"+i1).style.top = scrollTop + top_ssmenu + "px";
			} else {
				document.getElementById("menu"+i1).style.top = scrollTop
							+(((i1-1)*espace_entre_menus)+cumul+1+top_menu)+"px";
				if (document.getElementById("ssmenu"+i1))//undefined
					document.getElementById("ssmenu"+i1).style.top = scrollTop
							+(((i1-1)*espace_entre_menus)+cumul+1+top_menu)+"px";
				cumul += isFinite(hauteur_menu)?hauteur_menu:hauteur_menu[i1-1];
			}
		}
		if (isIE5mac) document.getElementById("conteneurmenu").style.visibility="visible";
	}
}

function preChargement()
{
	if (document.getElementById("conteneurmenu"))
		document.getElementById("conteneurmenu").style.visibility="hidden";
}

function Chargement() {
	
	//Compte nbmenu
	nbmenu = 0;
	while (document.getElementById("menu"+(nbmenu+1)))
		nbmenu++;
	
	document.getElementById("conteneurmenu").style.visibility="hidden";
	trimespaces();
	with(document.body.style) {
		if (!vertical) marginTop=marge_en_haut_de_page+"px";
		else		   marginLeft=marge_a_gauche_de_la_page+"px";
	}
	
	positionne();
	CacherMenus();
	
	//pour Safari, qui a du mal à afficher le menu parfois, le fait de changer la taille
	//des caractères corrige le problème. Merci Stol ! http://iubito.free.fr/forum/read.php?id=705&f=2
	if(isSafari)
		document.getElementById('conteneurmenu').style.fontSize='10px';
	
	// comme on a évité le clignotement, maintenant on fait apparaître le menu ;-)
	document.getElementById("conteneurmenu").style.visibility='';
}
window.onresize = Chargement;

/*
 * Place les éléments du menu correctement, au chargement, au scroll, au redimensionnement
 * de la fenêtre
 */
function positionne() {
	//Calcul hauteur et largeur fenêtre compatible avec certains doctypes IE
	var largeur_fenetre;
	if (document.documentElement && document.documentElement.clientWidth) {
		largeur_fenetre = document.documentElement.clientWidth;
	} else if (document.body && document.body.clientWidth) {
		largeur_fenetre = document.body.clientWidth;
	} else if (window.innerWidth) {
		largeur_fenetre = window.innerWidth;
	}

	var hauteur_fenetre;
	if (document.documentElement && document.documentElement.clientHeight) {
		hauteur_fenetre = document.documentElement.clientHeight;
	} else if (document.body && document.body.clientHeight) {
		hauteur_fenetre = document.body.clientHeight;
	} else if (window.innerHeight) {
		hauteur_fenetre = window.innerHeight;
	}

	if (centrer_menu) {
		if (!vertical) {
			var largeur_totale = espace_entre_menus * (nbmenu-1);
			if (isFinite(largeur_menu))
				largeur_totale += largeur_menu * nbmenu;
			else {
				for (i = 1; i <= nbmenu; i++)
					largeur_totale += largeur_menu[i-1];
			}
			left_menu = (largeur_fenetre - largeur_totale)/2;
		} else {
			var hauteur_totale = espace_entre_menus * (nbmenu-1);
			if (isFinite(hauteur_menu))
				hauteur_totale += hauteur_menu * nbmenu;
			else {
				for (i = 1; i <= nbmenu; i++)
					hauteur_totale += hauteur_menu[i-1];
			}
			top_menu = (hauteur_fenetre - hauteur_totale)/2;
		}
	}
	
	//Menus
	var cumul = 0;
	for(i=1;i<=nbmenu;i++) {
		with(document.getElementById("menu"+i).style) {
			if (!vertical) {
				top=top_menu+"px";
				left=(((i-1)*espace_entre_menus)+cumul+1+left_menu)+"px";
			} else {
				top=(((i-1)*espace_entre_menus)+cumul+1+top_menu)+"px";
				left=left_menu+"px";
			}
			if (!suivre_le_scroll || isIE || isIE5mac)
				position="absolute";
			else position="fixed";
			//if (vertical) height=hauteur_menu+"px";
			margin="0";
			zIndex="2";
			if (vertical || isFinite(largeur_menu))
				width=largeur_menu+"px";
			else
				width=largeur_menu[i-1]+"px";
			if ((!vertical && isFinite(largeur_menu)) || (vertical && isFinite(hauteur_menu))) {
				cumul += (!vertical?largeur_menu:hauteur_menu);
			}
			else {
				cumul += (!vertical?largeur_menu[i-1]:hauteur_menu[i-1]);
				if (vertical) height=hauteur_menu[i-1]+"px";
			}
		}
	}
	
	//Sous-menus
	cumul = 0;
	for(i=1;i<=nbmenu;i++) {
		if (document.getElementById("ssmenu"+i))//undefined
		{
			with(document.getElementById("ssmenu"+i).style) {
				if (!suivre_le_scroll || isIE || isIE5mac)
					position="absolute";
				else position="fixed";
				if (!vertical) {
					top=top_ssmenu+"px";
					left=(((i-1)*espace_entre_menus)+cumul+1+left_menu)+"px";
				} else {
					left=left_ssmenu+"px";
					top=(((i-1)*espace_entre_menus)+cumul+1+top_menu)+"px";
				}
				if (isIE || isOpera || isIE5mac || !largeur_auto_ssmenu) {
					if (isFinite(largeur_sous_menu))
						width = largeur_sous_menu+(largeur_sous_menu!="auto"?"px":"");
					else
						width = largeur_sous_menu[i-1]+(largeur_sous_menu[i-1]!="auto"?"px":"");
				}
				else width = "auto";
				if (!vertical && !isIE5mac) {
					//repositionnement si déborde à droite
					if ((width != "auto")
						&& ((left.replace(reg,'').valueOf()*1 + width.replace(reg,'').valueOf()*1) > largeur_fenetre))
						left = (largeur_fenetre-width.replace(reg,'').valueOf())+"px";
				}
				margin="0";
				zIndex="3";
			}
		}
		if ((!vertical && isFinite(largeur_menu)) || (vertical && isFinite(hauteur_menu))) {
			cumul += (!vertical?largeur_menu:hauteur_menu);
		}
		else {
			cumul += (!vertical?largeur_menu[i-1]:hauteur_menu[i-1]);
		}
	}
}


function MontrerMenu(strMenu) {
	AnnulerCacher();
	CacherMenus();
	if (document.getElementById(strMenu))//undefined
		with (document.getElementById(strMenu).style)
			visibility="visible";
	SelectVisible("hidden",document.getElementsByTagName('select'));
}

function CacherDelai() {
	timeout = setTimeout('CacherMenus()',delai);
}
function AnnulerCacher() {
	if (timeout) {
		clearTimeout(timeout);
	}
}
function CacherMenus() {
	for(i4=1;i4<=nbmenu;i4++) {
		if (document.getElementById("ssmenu"+i4))//undefined
			with(document.getElementById("ssmenu"+i4).style)
				visibility="hidden";
	}
	SelectVisible("visible",document.getElementsByTagName('select'));
}

function trimespaces() {
	//Contourne un bug d'IE5/win... il ne capte pas bien les css pour les <li>, donc on les vire !
	if(isIE5win) {
		for(i2=1;i2<=nbmenu;i2++) {
			if (document.getElementById("ssmenu"+i2))//undefined
				with(document.getElementById("ssmenu"+i2))
					innerHTML = innerHTML.replace(/<LI>|<\/LI>/g,"");
		}
	}
}

function SelectVisible(v,elem) {
	if (cacher_les_select && (isIE||isIE5win))
		for (var i3=0;i3<elem.length;i3++) elem[i3].style.visibility=v;
}
// FIN Script pour afficher menu horizontal

// script1 pour afficher menu vertical
// Browser Detect Lite  v2.1.4
// http://www.dithered.com/javascript/browser_detect/index.html
// modified by Chris Nott (chris@NOSPAMdithered.com - remove NOSPAM)


function BrowserDetectLite() {
   var ua = navigator.userAgent.toLowerCase(); 

   // browser name
   this.isGecko     = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
   this.isMozilla   = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
   this.isNS        = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
   this.isIE        = ( (ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) ); 
   this.isSafari    = (ua.indexOf('safari') != - 1);
   this.isOpera     = (ua.indexOf('opera') != -1); 
   this.isKonqueror = (ua.indexOf('konqueror') != -1 && !this.isSafari); 
   this.isIcab      = (ua.indexOf('icab') != -1); 
   this.isAol       = (ua.indexOf('aol') != -1); 
   
   // spoofing and compatible browsers
   this.isIECompatible = ( (ua.indexOf('msie') != -1) && !this.isIE);
   this.isNSCompatible = ( (ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
   
   // browser version
   this.versionMinor = parseFloat(navigator.appVersion); 
   
   // correct version number
   if (this.isNS && this.isGecko) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) );
   }
   else if (this.isIE && this.versionMinor >= 4) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
   }
   else if (this.isMozilla) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );
   }
   else if (this.isSafari) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) );
   }
   else if (this.isOpera) {
      if (ua.indexOf('opera/') != -1) {
         this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) );
      }
      else {
         this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) );
      }
   }
   else if (this.isKonqueror) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) );
   }
   else if (this.isIcab) {
      if (ua.indexOf('icab/') != -1) {
         this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab/') + 6 ) );
      }
      else {
         this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab ') + 6 ) );
      }
   }
   
   this.versionMajor = parseInt(this.versionMinor); 
   this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 );
   
   // dom support
   this.isDOM1 = (document.getElementById);
   this.isDOM2Event = (document.addEventListener && document.removeEventListener);
   
   // css compatibility mode
   this.mode = document.compatMode ? document.compatMode : 'BackCompat';

   // platform
   this.isWin   = (ua.indexOf('win') != -1);
   this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
   this.isMac   = (ua.indexOf('mac') != -1);
   this.isUnix  = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1)
   this.isLinux = (ua.indexOf('linux') != -1);
   
   // specific browser shortcuts
   this.isNS4x = (this.isNS && this.versionMajor == 4);
   this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
   this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7);
   this.isNS4up = (this.isNS && this.versionMinor >= 4);
   this.isNS6x = (this.isNS && this.versionMajor == 6);
   this.isNS6up = (this.isNS && this.versionMajor >= 6);
   this.isNS7x = (this.isNS && this.versionMajor == 7);
   this.isNS7up = (this.isNS && this.versionMajor >= 7);
   
   this.isIE4x = (this.isIE && this.versionMajor == 4);
   this.isIE4up = (this.isIE && this.versionMajor >= 4);
   this.isIE5x = (this.isIE && this.versionMajor == 5);
   this.isIE55 = (this.isIE && this.versionMinor == 5.5);
   this.isIE5up = (this.isIE && this.versionMajor >= 5);
   this.isIE6x = (this.isIE && this.versionMajor == 6);
   this.isIE6up = (this.isIE && this.versionMajor >= 6);
   
   this.isIE4xMac = (this.isIE4x && this.isMac);
}
var browser = new BrowserDetectLite();
// FIN script1 pour afficher menu vertical

// script2 pour afficher menu vertical
/*
Author   : bieler batiste
Company  : doSimple : http://www.dosimple.ch
send me a mail for more informations : faden@PASDEPOURRIELaltern.org - remove ( PASDEPOURRIEL )

Short javascript function to create and handle a CSS navigation menu

Copyright (C) 2004  Bieler Batiste

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

// the timeout for the menu
var timeout = 500;

// not very clean but simple
// the function can be run in the HTML for faster display
// window.onload=initMenu;

// creat timeout variables for list item
// it's for avoid some warning with IE
for( var i = 0; i < 100; i++ )
{
    eval("var timeoutli" + i + " = false;");
}

// this fonction apply the CSS style and the event
function initMenu()
{
    // a test to avoid some browser like IE4, Opera 6, and IE Mac
    if ( browser.isDOM1 
    && !( browser.isMac && browser.isIE ) 
    && !( browser.isOpera && browser.versionMajor < 7 )
    && !( browser.isIE && browser.versionMajor < 5 ) )
    {
        // get some element
        var menu = document.getElementById('menud'); // the root element
        var lis = menu.getElementsByTagName('li'); // all the li
        
        // change the class name of the menu, 
        // it's usefull for compatibility with old browser
        menu.className='menud';
        
        // i am searching for ul element in li element
        for ( var i=0; i<lis.length; i++ )
        {
            // is there a ul element ?
            if ( lis.item(i).getElementsByTagName('ul').length > 0 )
            {        
                // improve IE key navigation
                if ( browser.isIE )
                {
                    addAnEvent(lis.item(i),'keyup',show);
                }
                // link events to list item
                addAnEvent(lis.item(i),'mouseover',show);
                addAnEvent(lis.item(i),'mouseout',timeoutHide);
                addAnEvent(lis.item(i),'blur',timeoutHide);
                addAnEvent(lis.item(i),'focus',show);
                
                // add an id to list item
                lis.item(i).setAttribute( 'id', "li"+i );
            }
        }
    }
}

function addAnEvent( target, eventName, functionName )
{
    // apply the method to IE
    if ( browser.isIE )
    {
        //attachEvent dont work properly with this
        eval('target.on'+eventName+'=functionName');
    }
    // apply the method to DOM compliant browsers
    else
    {
        target.addEventListener( eventName , functionName , true ); // true is important for Opera7
    }
}
    
// hide the first ul element of the current element
function timeoutHide()
{
    // start the timeout
    eval( "timeout" + this.id + " = window.setTimeout('hideUlUnder( \"" + this.id + "\" )', " + timeout + " );");
}

// hide the ul elements under the element identified by id
function hideUlUnder( id )
{   
    document.getElementById(id).getElementsByTagName('ul')[0].style['visibility'] = 'hidden';
}

// show the first ul element found under this element
function show()
{
    // show the sub menu
    this.getElementsByTagName('ul')[0].style['visibility'] = 'visible';
    var currentNode=this;
    while(currentNode)
    {
            if( currentNode.nodeName=='LI')
            {
                currentNode.getElementsByTagName('a')[0].className = 'linkOver';
            }
            currentNode=currentNode.parentNode;
    }
    // clear the timeout
    eval ( "clearTimeout( timeout"+ this.id +");" );
    hideAllOthersUls( this );
}

// hide all ul on the same level of  this list item
function hideAllOthersUls( currentLi )
{
    var lis = currentLi.parentNode;
    for ( var i=0; i<lis.childNodes.length; i++ )
    {
        if ( lis.childNodes[i].nodeName=='LI' && lis.childNodes[i].id != currentLi.id )
        {
            hideUlUnderLi( lis.childNodes[i] );
        }
    }
}

// hide all the ul wich are in the li element
function hideUlUnderLi( li )
{
    var as = li.getElementsByTagName('a');
    for ( var i=0; i<as.length; i++ )
    {
        as.item(i).className="";
    }
    var uls = li.getElementsByTagName('ul');
    for ( var i=0; i<uls.length; i++ )
    {
        uls.item(i).style['visibility'] = 'hidden';
    }
} 
// FIN script2 pour afficher menu vertical

// script pour charger iframe
function changeFrame() {
    var oIframe = document.getElementById("laframe");
    var oDoc = (oIframe.contentWindow ||  
oIframe.contentDocument);
    if (oDoc.document) {
        oDoc = oDoc.document;
    }
    //oDoc.body.style.display = "none";// pour test visuel, illico presto
	var hauteur_body=oDoc.body.offsetHeight;
document.getElementById('laframe').style.height=hauteur_body+50+'px';
    return true;
}

window.onload = changeFrame;
// FIN script pour charger iframe

// Ewindow
// Version 0.0  Initial version 
// Version 0.1  10/10/2006 Added E_STYLE_7 
// Version 0.2  17/05/2007 Added .isHidden() and .supportsHide()
// Version 0.3  14/09/2007 added .zindex()


      function EStyle(stemImage, stemSize, boxClass, boxOffset) {
        this.stemImage = stemImage;
        this.stemSize = stemSize;
        this.boxClass = boxClass;
        this.boxOffset = boxOffset;
        //this.border = border;
        
        // Known fudge factors are:
        // Firefox (1.0.6 and 1.5)    5, -1
        // IE 6.0                     0, -1
        // Opera 8.54                 3, -1
        // Opera 9 prev               4, -1
        // Netscape (7.2, 8.0)        5, -1
        // Safari                     5, -1        
        
        var agent = navigator.userAgent.toLowerCase();
        
        var fudge = 5;  // assume Netscape if no match found
       
        if (agent.indexOf("opera") > -1) {
          fudge = 3;
        }   
        if (agent.indexOf("firefox") > -1) {
          fudge = 5;
        }   
        if (agent.indexOf("safari") > -1) {
          fudge = 5;
        }   
        if ((agent.indexOf("msie") > -1) && (agent.indexOf("opera") < 1)){
          fudge = 0;
        }
        this.fudge = fudge;
      }
      
      var E_STYLE_1 = new EStyle("stem1.png", new GSize(81,87),  "estyle1", new GPoint(-30,87-3));
      var E_STYLE_2 = new EStyle("stem2.png", new GSize(81,87),  "estyle2", new GPoint(-30,87-1));
      var E_STYLE_3 = new EStyle("stem3.png", new GSize(81,87),  "estyle3", new GPoint(-30,87-10));
      var E_STYLE_4 = new EStyle("stem3.png", new GSize(81,87),  "estyle4", new GPoint(-30,87-10));
      var E_STYLE_5 = new EStyle("stem1.png", new GSize(81,87),  "estyle5", new GPoint(-30,87-3));
      var E_STYLE_6 = new EStyle("stem6.png", new GSize(100,50), "estyle6", new GPoint(100-2,20));
      var E_STYLE_7 = new EStyle("stem7.png", new GSize(24,24),  "estyle2", new GPoint(-10,23));
	  var E_STYLE_8 = new EStyle("stem7.png", new GSize(24,24),  "estyle8", new GPoint(-100,4));


      function EWindow(map,estyle) {
        // parameters
        this.map=map;
        this.estyle=estyle;
        // internal variables
        this.visible = false;
        // browser - specific variables
        this.ie = false;
        var agent = navigator.userAgent.toLowerCase();
        if ((agent.indexOf("msie") > -1) && (agent.indexOf("opera") < 1)){ this.ie = true} else {this.ie = false}
      } 
      
      EWindow.prototype = new GOverlay();

      EWindow.prototype.initialize = function(map) {
        var div1 = document.createElement("div");
        div1.style.position = "absolute";
        map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div1);
        var div2 = document.createElement("div");
        div2.style.position = "absolute";
        div2.style.width = this.estyle.stemSize.width+"px";
        map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div2);
        this.div1 = div1;
        this.div2 = div2;
      }

      EWindow.prototype.openOnMap = function(point, html, offset) {
        this.offset = offset||new GPoint(0,0);
        this.point = point;
        this.div1.innerHTML = '<div class="' + this.estyle.boxClass + '"><nobr>' + html + '</nobr></div>';
        if (this.ie && this.estyle.stemImage.toLowerCase().indexOf(".png")>-1) {
          var loader = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.estyle.stemImage+"', sizingMethod='scale');";
          this.div2.innerHTML = '<div style="height:' +this.estyle.stemSize.height+ 'px; width:'+this.estyle.stemSize.width+'px; ' +loader+ '" ></div>';
        } else {
          this.div2.innerHTML = '<img src="' + this.estyle.stemImage + '" width="' + this.estyle.stemSize.width +'" height="' + this.estyle.stemSize.height +'">';
        }
        var z = GOverlay.getZIndex(this.point.lat());
        this.div1.style.zIndex = z;
        this.div2.style.zIndex = z+1;
        this.visible = true;
        this.show();
        this.redraw(true);
      }
      
      EWindow.prototype.openOnMarker = function(marker,html) {
        var vx = marker.getIcon().iconAnchor.x - marker.getIcon().infoWindowAnchor.x;
        var vy = marker.getIcon().iconAnchor.y - marker.getIcon().infoWindowAnchor.y;
        this.openOnMap(marker.getPoint(), html, new GPoint(vx,vy));
      }
      

      EWindow.prototype.redraw = function(force) {
        if (!this.visible) {return;}
        var p = this.map.fromLatLngToDivPixel(this.point);
        this.div2.style.left   = (p.x + this.offset.x) + "px";
        this.div2.style.bottom = (-p.y + this.offset.y -this.estyle.fudge) + "px";
        this.div1.style.left   = (p.x + this.offset.x + this.estyle.boxOffset.x) + "px";
        this.div1.style.bottom = (-p.y + this.offset.y + this.estyle.boxOffset.y) + "px";
      }

      EWindow.prototype.remove = function() {
        this.div1.parentNode.removeChild(this.div1);
        this.div2.parentNode.removeChild(this.div2);
        this.visible = false;
      }

      EWindow.prototype.copy = function() {
        return new EWindow(this.map, this.estyle);
      }

      EWindow.prototype.show = function() {
        this.div1.style.display="";
        this.div2.style.display="";
        this.visible = true;
      }
      
      EWindow.prototype.hide = function() {
        this.div1.style.display="none";
        this.div2.style.display="none";
        this.visible = false;
      }
      
      EWindow.prototype.isHidden = function() {
        return !this.visible;
      }
      
      EWindow.prototype.supportsHide = function() {
        return true;
      }

      EWindow.prototype.zindex = function(zin) {
        var z = GOverlay.getZIndex(this.point.lat());
        this.div1.style.zIndex = z+zin;
        this.div2.style.zIndex = z+1+zin;
      }

