// le 20/02/2012 onload sur image
// le 16/02/2012 function page()
// le 15/02/2012 modif ask span sur oui , non
// le 01/02/2012 href mp3 , jpg
// le 26/01/2012

var D=document;
function did(id){return D.getElementById(id);}
function didH(id){return D.getElementById(id).innerHTML;}
function addEvent(obj,evType,fn,capt){
if(obj.addEventListener){obj.addEventListener(evType,fn,capt);return true;} // NS6+
else if(obj.attachEvent)obj.attachEvent("on"+evType,fn); // IE 5+
else {return false;}
}
function trim(string) {return string.replace(/(^\s*)|(\s*$)/g,'');}
function aleatoire(N){return (Math.floor((N+1)*Math.random()+1))-1;}
/// ajouter fonction indexof pour array
if (!Array.prototype.indexOf){
  Array.prototype.indexOf = function(elt /*, from*/){
    var len = this.length;
    var from = Number(arguments[1]) || 0;
    from = (from < 0) ? Math.ceil(from) : Math.floor(from);
    if (from < 0) from += len;
    for (; from < len; from++){
      if (from in this && this[from] === elt) return from;
    }
    return -1;
  };
}
//********************************************************************************************
var pathname=location.pathname;
var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(365*24*3600*1000));

function getCookieVal(offset){
    var endstr=D.cookie.indexOf (";", offset);
    if (endstr==-1) endstr=D.cookie.length;
    return unescape(D.cookie.substring(offset, endstr));
}

function GetCookie (name){
var arg=name+"=";
var alen=arg.length;
var clen=D.cookie.length;
var i=0;
while (i<clen){
      var j=i+alen;
      if (D.cookie.substring(i, j)==arg) return getCookieVal(j);
      i=D.cookie.indexOf(" ",i)+1;
      if (i==0) break;
      }
return null;
}

function SetCookie (name, value) {
// un cookie a besoin d'un nom, d'une valeur, d'un nom de domaine, d'une date d'expiration
    var argv=SetCookie.arguments;
    var argc=SetCookie.arguments.length;
    var expires=(argc > 2) ? argv[2] : null;
    var path=(argc > 3) ? argv[3] : null;
    var domain=(argc > 4) ? argv[4] : null;
    var secure=(argc > 5) ? argv[5] : false;
    D.cookie=name+"="+escape(value)+
        ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
        ((path==null) ? "" : ("; path="+path))+
        ((domain==null) ? "" : ("; domain="+domain))+
        ((secure==true) ? "; secure" : "");
}
//********************************************************************************************
function env_post(page,data){
if (data == undefined) data={};
var c="<form id=\"form_pour_post\" action=\""+page+"\" method=\"post\">";
for (var n in data) c+="<input type=\"hidden\" name=\""+n+"\" value=\""+data[n]+"\" />";
var NewDiv = D.createElement("DIV");
NewDiv.innerHTML=c+"</form>";
document.body.appendChild(NewDiv);
D.getElementById("form_pour_post").submit();
}
//********************************************************************************************
function get_window_info() {
   var db=!D.documentElement.clientWidth?D.body:D.documentElement;
   window_width=db.clientWidth;
   window_height=db.clientHeight;
   if (navigator.userAgent.indexOf("MSIE")>= 0){
      scroll_X=db.scrollLeft;
      scroll_Y=db.scrollTop;
   }else{
      scroll_X=pageXOffset;
      scroll_Y=pageYOffset;
   }
}
function center_div(obj_,IndeX){
var id_a = ( typeof (obj_)=='object') ? obj_ : D.getElementById( obj_);
if (!id_a) return(false);
if (IndeX == undefined) IndeX=50;
with (id_a.style){zIndex =-1;left="-2000px";top="-2000px";display="block";}
get_window_info();
top_a=(window_height/2)-(id_a.offsetHeight/2)+scroll_Y;
left_a=(window_width/2)-(id_a.offsetWidth/2)+scroll_X;
if (left_a<1) left_a=1;
if (top_a<1) top_a=1;
with(id_a.style){left=(left_a)+"px";top=(top_a)+"px";zIndex=IndeX}
}
//********************************************************************************************
var imgs=new Array();
var directory;
var Timeout_Galerie;
var opaVal;
var plus;
var IMAGE;
var cpt=0;
var tempoFixe=2000;
var autocentrerIMG=false; // au centre de l'écran (position:absolute)

function Obj_SetOpacity( obj_, opa_){
  //-- Recup l'objet 
  var Obj = ( typeof (obj_)=='object') ? obj_ : D.getElementById( obj_);
  //-- Si existe 
  if( Obj){ 
    if(D.all && !window.opera){Obj.style.filter = "alpha(opacity=" + opa_ + ")";}
    else{ 
      var Val = opa_/100; 
      Obj.style.setProperty( "-moz-opacity", Val, ""); 
      Obj.style.setProperty( "-khtml-opacity", Val, ""); 
      Obj.style.setProperty( "opacity", Val, ""); 
    } 
  } 
}

function move_opa(){
  clearTimeout(Timeout_Galerie);
  if (opaVal>100) plus=false;
  if (opaVal<1) plus=true;
  if (plus) opaVal+=2; else opaVal-=2;
  Obj_SetOpacity("ima", opaVal);
  if (opaVal >= 100) {Timeout_Galerie=setTimeout('move_opa()',tempoFixe);return(false);}
  if (opaVal <= 0) {changeimages();return(false);}
  Timeout_Galerie=setTimeout('move_opa()',25);
}

function centerIMG(){if (D.getElementById("ima").style.display!="none") center_div("ima",10);}

function openNewimg(){
if (galerie) show_chargement(false);
if (autocentrerIMG) centerIMG();
move_opa();
}

function changeimages(){
if (galerie) show_chargement();
clearTimeout(Timeout_Galerie);
if (cpt<0) cpt=imgs.length-1;
if (cpt>=imgs.length) cpt=0;
if (autocentrerIMG) {D.getElementById("ima").style.top="-2500px";D.getElementById("ima").style.left="-2500px";}
IMAGE=new Image(); IMAGE.src=directory+"/"+imgs[cpt];
D.images["ima"].src=IMAGE.src;
if (galerie) D.getElementById("info").innerHTML="&nbsp;&nbsp;&nbsp;"+(cpt+1)+"&nbsp;/&nbsp;"+imgs.length;
cpt++;
if (IMAGE.complete) {openNewimg();} else {IMAGE.onload = function(){openNewimg();}}
}

function start_page(step){
if (imgs=="") return(false);
if (!D.getElementById("ima")) return(false);
showpro();
if (galerie) D.getElementById("Pause").src="imgs/pause.png";
D.getElementById("ima").style.display="block";
if (step=='home') cpt=0;
if (step=='end') cpt=imgs.length-1;
if (step=='pred') cpt=cpt-2;
opaVal=0;plus=true;
Obj_SetOpacity("ima",opaVal);
changeimages();
}

function stop_page(){
if (!D.getElementById("ima")) return(false);
if (galerie) D.getElementById("Pause").src="imgs/pause_gris.png";
clearTimeout(Timeout_Galerie);
Obj_SetOpacity("ima",100);
}

function start_random(){cpt=aleatoire(imgs.length-1);start_page();}
//********************************************************************************************
var zoom;
var in_zoom;

function RecentreZoom(){
showpro();
if (!zoom) return(false);
if (!zoomAutocentre) return(false);
if (zoom.style.display!=="none") center_div(zoom);
}

function adjustIFrameSize(id){
var myIframe = D.getElementById(id);
if (myIframe.contentWindow.document.getElementById("contenu_iframe")){
   var h = myIframe.contentWindow.document.getElementById("contenu_iframe").offsetHeight;
   var w = myIframe.contentWindow.document.getElementById("contenu_iframe").offsetWidth;
   myIframe.style.height = h+"px"; OldDiv.style.height = h+"px";
   myIframe.style.width = w+"px";  OldDiv.style.width = w+"px";
}
myIframe.allowTransparency=true;myIframe.style.backgroundColor='transparent'; /* IE only */
myIframe.contentWindow.document.body.style.backgroundColor='transparent';
center_div(zoom);
show_chargement(false);
}

function iframe_pop(page,w,h,scroll,CLASSE,NotNoir,old){
if (CLASSE == undefined) CLASSE="IframePop";
OldDiv=in_zoom;
show_chargement(true);
fermer_pop();
if (!NotNoir) Noir(true);
if (scroll == undefined) scroll="no"; if (w == undefined) w=1; if (h == undefined) h=1;
var c='<iframe id="iframe" width="'+w+'" height="'+h+'" src="'+page+'" marginwidth="0" marginheight="0" frameborder="0" scrolling="'+scroll+'" onload=\'D.getElementById("zoom").style.display="block";adjustIFrameSize("iframe");\'></iframe>';
if (old) in_zoom.innerHTML="<div class='"+CLASSE+"'>"+c+"</div>"; else OldDiv=roundCORND(c,CLASSE,in_zoom);
}
//***********
function fermer_pop(){
clearTimeout(colse_mes);
if (D.getElementById('iframe')) D.getElementById('iframe').src="";
in_zoom.innerHTML="";
with (in_zoom.style){padding="0px";margin="0px";}
with (zoom.style){left="-2000px";top="-2000px";display="none";zIndex=-1;width="auto";}
D.getElementById("bt_fermer_pop").style.display="block";
zoomAutocentre=true;
Noir(false);
showpro();
show_chargement(false);
}

function voir_pop(c,CLASSE,NotNoir,old){
fermer_pop();
if (CLASSE == undefined) CLASSE="pop";
if (!NotNoir) Noir(true);
show_chargement(false);
if (old) in_zoom.innerHTML="<div class='"+CLASSE+"'>"+c+"</div>"; else roundCORND(c,CLASSE,in_zoom);
center_div(zoom);
try{D.getElementById("FirstInput").focus();} catch (error) {}
}
//***********
function ask_confirm_action(z,func,p,oui,non,CLASSE,NotNoir,old){
if (p == undefined) p=" ?";
if (oui == undefined) oui="Oui";
if (non == undefined) non="Non";
if (CLASSE == undefined) CLASSE="ask";
var c="<table border=\"0\" cellpadding=\"0\" cellspacing=\"5\">";
if (z!=="")c+="<tr><td align=\"center\" colspan=\"3\">"+z+p+"</td></tr>";
c+="<tr><td align=\"center\"><table width=\"80%\" border=\"0\" align=\"center\">";
c+="<tr><td align=\"right\" width=\"45%\"><span class=\"askBT\" onclick=\"this.style.visibility='hidden';"+func+";\">"+oui+"</span></td><td align=\"center\" width=\"10%\">|</td>";
c+="<td align=\"left\" width=\"45%\"><span class=\"askBT\" onclick=\"fermer_pop()\">"+non+"</span></td></tr>";
c+="</table></td></tr>";
c+="</table>";
if (old) voir_pop(c,CLASSE,NotNoir,true); else voir_pop(c,CLASSE,NotNoir);
}
//***********
var colse_mes;
function mes_pb(t,tempo,CLASSE,NotNoir,old){
clearTimeout(colse_mes);
if (tempo == undefined) tempo=4000;
if (CLASSE == undefined) CLASSE="mes_pb";
setTimeout('voir_pop("'+t+'","'+CLASSE+'",'+!NotNoir+','+old+');D.getElementById("bt_fermer_pop").style.display="none";colse_mes=setTimeout("fermer_pop()",'+tempo+');',200);;
}
//***********
sx=sy=px=py=e=ALTdHTML_h=ALTdHTML_w=0;
function controle_position(e){
if (!ALTdHTML) return(false);
get_window_info();
sx=scroll_X;sy=scroll_Y;
var evt = e || window.event;
px=evt.clientX+sx;py=evt.clientY+sy;
if (ALTdHTML.style.display!=="none") with (ALTdHTML.style){
     //if (px+ALTdHTML_w+26>window_width+sx) left=px-ALTdHTML_w-15+"px"; else left=px+10+"px";
     //if (py+ALTdHTML_h+15>window_height+sy) top=py-ALTdHTML_h-3+"px"; else top=py+14+"px";
     var right_bottom=false;
     if (px+ALTdHTML_w+10>window_width+sx) {left=window_width+sx-ALTdHTML_w+"px";right_bottom=true;} else left=px+10+"px";
     if (py+ALTdHTML_h+14>window_height+sy) {if (right_bottom) top=py-ALTdHTML_h-10+"px"; else top=window_height+sy-ALTdHTML_h+"px";} else top=py+14+"px";
}
return false;
}

var MENUPOPUP;
var TimeoutClosemenupop;
function closemenupop(){clearTimeout(TimeoutClosemenupop);TimeoutClosemenupop=setTimeout("MENUPOPUP.style.display='none';",1000);}
function menupopup(){
if (contenuMenuPopuP.length==0) return(false);
showpro();
if (!px) return(false);
clearTimeout(TimeoutClosemenupop);
var c="";
for (var i=0;i<(contenuMenuPopuP.length);i+=2) c+="<div onmousemove=\"clearTimeout(TimeoutClosemenupop);\" onmouseout=\"closemenupop()\" onclick=\""+contenuMenuPopuP[i+1]+"MENUPOPUP.style.display='none';\">"+contenuMenuPopuP[i]+"</div>";
MENUPOPUP.innerHTML="<div class=\"menupopup\" onmousemove=\"clearTimeout(TimeoutClosemenupop);\" onmouseout=\"closemenupop()\">"+c+"</div>";
with (MENUPOPUP.style){left=(px-10)+"px";top=(py-10)+"px";display="block";}
}

var ALTdHTML;
function showpro(txt,largeur,CLASSE,old){
if (!ALTdHTML) return(false);
if (txt==undefined) {
   with(ALTdHTML.style){display="none";left="-2000px";top="-2000px";width="auto";margin="0px";}
   ALTdHTML.innerHTML="";
   return(false);
}
if (largeur == undefined) largeur="0";
if (CLASSE == undefined) CLASSE="showpro";
if (old) {ALTdHTML.innerHTML="<div class='"+CLASSE+"'>"+txt+"</div>";var adj=0;} else {roundCORND(txt,CLASSE,ALTdHTML);var adj=16;}
if (largeur!=0) ALTdHTML.style.width=largeur+"px";
ALTdHTML.style.display="block";
ALTdHTML_w=ALTdHTML.offsetWidth+adj;
ALTdHTML_h=ALTdHTML.offsetHeight;
ALTdHTML.style.width=ALTdHTML_w-adj+"px";
}
//********************************************************************************************
function url(){
var c=D.URL;
for (var i=0;i<c.length;++i) if (c.charAt(i)=="?") return c.substr(0,i);
return c;
}

function page(){
var st=url();
st=st.split("/");
 return(st[st.length-1]);
}
//********************************************************************************************
time_out_debug=0;
function debug_(){clearTimeout(time_out_debug);D.getElementById("info_ajax").style.display='block';time_out_debug=setTimeout("D.getElementById('info_ajax').style.display='none';",1000);}

function post_msg(data,page) {
var objHttp = null;
if (window.XMLHttpRequest) objHttp = new XMLHttpRequest(); else if(window.ActiveXObject) objHttp = new ActiveXObject("Microsoft.XMLHTTP");
objHttp.open("POST",page, true);
objHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
objHttp.send(data);
objHttp.onreadystatechange= function(){
                            if (objHttp.readyState==4)
                               if (objHttp.status == 200){
                                  debug_(data);
                                  var reponse=trim(objHttp.responseText);
                                  debug_(reponse);
                                  if (reponse.indexOf("Erreur SQL")>=0) mes_pb(reponse); else setTimeout(reponse,1);
                                  }
                            }
}

//********************************************************************************************
function myParent(){var c=self.parent.document.URL.split("/");return c[c.length-1].split(".")[0];}
function myW(){var c=D.URL.split("/");return c[c.length-1].split(".")[0];}
//********************************************************************************************
var OldDiv=null;
function roundCORND(c,CLASSE,idfrom){
var id=idfrom;
var x=["0","-2","-2","-1","-1","-1","-1"];
var y=["1","1","1","1","2","2","2"];
id.style.padding="0px";id.style.margin="0px";
id.innerHTML="";
for (var i= 0; i < x.length; i++){
    var NewDiv = document.createElement("DIV");
    NewDiv.className=CLASSE;
    NewDiv.style.padding="0px";
    NewDiv.style.margin="0px "+x[i]+"px 0px "+x[i]+"px";
    NewDiv.style.borderTop="transparent "+y[i]+"px solid";
    NewDiv.style.borderBottom="transparent "+y[i]+"px solid";
    id.appendChild(NewDiv);
    id=NewDiv;
}
var NewDiv = document.createElement("DIV");
NewDiv.className=CLASSE;
NewDiv.innerHTML=c;
NewDiv.style.margin="-7px 6px -7px 6px";
id.appendChild(NewDiv);
idfrom.style.margin="0px "+(x.length+1)+"px 0px "+(x.length+1)+"px";
return(NewDiv);
}

function isrounded(){
ch=D.getElementsByTagName("div");
for (var i=0;i<ch.length;++i)
    if (ch[i].className.indexOf("ROUNDEDCORNR")>=0)
       roundCORND(ch[i].innerHTML,ch[i].className.split(" ")[0],ch[i]);
}
//********************************************************************************************
function ResizeNoir(){
if (D.getElementById("fondNoir").style.display!=="block") return(false);
get_window_info();
with (D.getElementById("fondNoir").style){width=(window_width+scroll_X)+"px";height=(window_height+scroll_Y)+"px";}
}

function Noir(etat){
if (etat) D.getElementById("fondNoir").style.display="block"; else D.getElementById("fondNoir").style.display="none";
ResizeNoir();
}
//********************************************************************************************
function get_pos(box) {
if (!box) return [20,20,20,20,20,20];
 var oLeft = 0; var oTop  = 0; box_old = box;
 do {oLeft += box.offsetLeft;oTop += box.offsetTop;box = box.offsetParent;}
 while (box && box.nodeName !== 'BODY');
//       top , right                      , bottom                     , left  ,height              ,width
return [ oTop, oLeft + box_old.offsetWidth, oTop + box_old.offsetHeight, oLeft ,box_old.offsetHeight,box_old.offsetWidth];
}

var zoomAutocentre=false;
function POP_POS(c,obj,CLASSE,WIDTH,old){
if (CLASSE == undefined) CLASSE="popPOS";
fermer_pop();
var pos=get_pos(obj);
if (old) in_zoom.innerHTML="<div class='"+CLASSE+"'>"+c+"</div>"; else roundCORND(c,CLASSE,in_zoom);
with (zoom.style) {
     if (WIDTH == undefined) width=pos[5]+"px"; else {if (WIDTH!=="auto")width=WIDTH+"px";}
     top=pos[0]+"px";left=pos[3]+"px";display="block";zIndex=100;}
zoomAutocentre=false;
try{D.getElementById("FirstInput").focus();} catch (error) {}
}
//********************************************************************************************
var floatX; var floatY; var lastX; var lastY; var floatlayer; var delayspeed=3;
function adjust(){
if (floatlayer.style.display=='none') return(false);
get_window_info();
if (lastX==-1 || delayspeed==0){lastX=scroll_X + floatX;lastY=scroll_Y + floatY;}
else{
 var dx=Math.abs(scroll_X+floatX-lastX);var dy=Math.abs(scroll_Y+floatY-lastY);
 var d=Math.sqrt(dx*dx+dy*dy);var c=Math.round(d/10);
 if (scroll_X+floatX>lastX) {lastX=lastX+delayspeed+c;};
 if (scroll_X+floatX<lastX) {lastX=lastX-delayspeed-c;};
 if (scroll_Y+floatY>lastY) {lastY=lastY+delayspeed+c;};
 if (scroll_Y+floatY<lastY) {lastY=lastY-delayspeed-c;};
}
floatlayer.style.left=lastX+"px";floatlayer.style.top=lastY+"px";
actif_fl=setTimeout('adjust()',50);
}

function define(){
get_window_info();
floatX=window_width-10-floatlayer.offsetWidth;
floatY=window_height-10-floatlayer.offsetHeight;
}

var FloatDiv="FloatDiv";
function InitFloat(){
floatlayer.innerHTML=D.getElementById(FloatDiv).innerHTML;
lastX=lastY=-1;
define();
adjust();
addEvent(window,"resize",define);
}
//********************************************************************************************
function lire_mp3(mp3){
var c='';
c+='<object type="application/x-shockwave-flash" data="dewplayer.swf" width="200" height="20">';
c+='<param name="wmode" value="transparent" />';
c+='<param name="movie" value="dewplayer.swf" />';
c+='<param name="flashvars" value="mp3='+mp3+'&autostart=1&showtime=0" />';
c+='</object>';
voir_pop(c,"mp3",true);
return false;
}

function play_mp3(){lire_mp3(this.href);return false;}

function openimgOK(){show_chargement(false);center_div(zoom);}
function PopImg(){
fermer_pop();
show_chargement(true);
var c="<img src=\""+this.href+"\" border=\"0\" onclick=\"fermer_pop();\" style=\"cursor:pointer;\" />";
ImOpened=new Image(); ImOpened.src=this.href;
roundCORND(c,'pop',in_zoom);
this.style.color=D.vlinkColor;
if (ImOpened.complete) {openimgOK();} else {ImOpened.onload = function(){openimgOK();}}
return(false);
}
//********************************************************************************************
function show_chargement(on){
if (on == undefined) on=true;
clearTimeout(actifBarreloder);
if (on==true) actifBarreloder=setTimeout('showBarreloder(true);',200); else showBarreloder(false);
}

function show_loader(){
fermer_pop();
clearTimeout(Timeout_Galerie);
D.body.style.backgroundColor='';
D.body.style.visibility="hidden";
showBarreloder(true);
D.getElementById("BarreLoader").style.visibility="visible";
}

function initloader(){
var ctt=0;
var nbcell=5;
D.write("<table id=\"BarreLoader\" border=\"0\">");
for (var i=0;i<nbcell;++i){D.write("<tr>");for (var j=0;j<nbcell;++j) {D.write("<td id=\"tdloader"+ctt+"\" class=\"LoaderTD1\"></td>");ctt++;}D.write("</tr>");}
D.write("</table>");
}

var actifBarreloder;var NOBarreloder=0;var BarreloderCLASS="LoaderTD2";
function showBarreloder(on){
clearTimeout(actifBarreloder);
if (on){
   center_div("BarreLoader",55);
   did("tdloader"+NOBarreloder).className=BarreloderCLASS;
   NOBarreloder++;
   if (NOBarreloder==25){NOBarreloder=0;if (BarreloderCLASS=="LoaderTD1") BarreloderCLASS="LoaderTD2"; else BarreloderCLASS="LoaderTD1";}
   actifBarreloder=setTimeout('showBarreloder(true)',40);
} else did("BarreLoader").style.display="none";
}

//********************************************************************************************
function IntitObjs(){
zoom=D.getElementById('zoom');
in_zoom=D.getElementById('in_zoom');
ALTdHTML=D.getElementById('ALTdHTML');
MENUPOPUP=D.getElementById('MENUPOPUP');
floatlayer=D.getElementById('floatlayer');
}

function IntitHref(){
var l=D.getElementsByTagName('a');
for (var i=0;i<l.length;++i){result=l[i].href.search(/jpg$|JPG$/);if(result!=-1)l[i].onclick=PopImg;}
var l=D.getElementsByTagName('a');
for (var i=0;i<l.length;++i){result=l[i].href.search(/mp3$|MP3$/);if(result!=-1)l[i].onclick=play_mp3;}
if (D.getElementById(FloatDiv)) InitFloat();
}

D.write('<div id="info_ajax">*</div>');
D.write('<div id="floatlayer"></div>');
D.write('<div id="fondNoir"></div>');
D.write('<div id="zoom"><div id="bt_fermer_pop" onclick="fermer_pop();" onmouseover="showpro(\'Fermer\')" onmouseout="showpro()"></div><div id="in_zoom"></div></div>');
D.write('<div id="ALTdHTML"></div>');
D.write('<div id="MENUPOPUP"></div>');
initloader();

D.onkeypress = function(evt){
  var evt = (evt) ? evt : ((event) ? event : null); 
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); 
  if ((evt.keyCode == 13) && (node.type=="text")) return(false);
} 

D.oncontextmenu = function(){menupopup();return(false);}
D.onselectstart = function(){return(false);}
D.ondragstart = function(){return(false);}

function voir_popOLD(c,CLASSE,NotNoir){voir_pop(c,CLASSE,NotNoir,true);}
function iframe_popOLD(page,w,h,scroll,CLASSE,NotNoir){iframe_pop(page,w,h,scroll,CLASSE,NotNoir,true);}
function showproOLD(txt,largeur,CLASSE){showpro(txt,largeur,CLASSE,true);}
function ask_confirm_actionOLD(z,func,p,oui,non,CLASSE,NotNoir){ask_confirm_action(z,func,p,oui,non,CLASSE,NotNoir,true);}
function mes_pbOLD(t,tempo,CLASSE,NotNoir,old){mes_pb(t,tempo,CLASSE,NotNoir,true);}
function POP_POSOLD(c,obj,CLASSE,WIDTH,old){POP_POS(c,obj,CLASSE,WIDTH,true);}

var galerie=false;
var contenuMenuPopuP=["Rafraîchir","location.assign(location.href);","A propos de...","voir_pop(D.getElementById('Apropos').innerHTML,null,false);"];
//contenuMenuPopuP = contenuMenuPopuP.concat(["stop_page","stop_page();","start_page","start_page();"]);

addEvent(window,"load",IntitHref);
addEvent(D,"mousemove",controle_position);
addEvent(window,"resize",RecentreZoom);
addEvent(window,"resize",ResizeNoir);
addEvent(window,"scroll",ResizeNoir);
IntitObjs();

