
//////////////////////////////////   Titre des diapo

function TitreDefile() {
  titre = titre.substring (1,titre.length) + titre.substring(0, 1);
  document.title = titre;
  setTimeout("TitreDefile()", 300); }


//////////////////////////////////   Animation des diapo

function Diapo() {
  if (num == -1) {num = (picture.length-1);}
  if(document.getElementById) {document.getElementById("Diaporama").innerHTML ="<img src='"+ picture[num] + "'> "; num = num-1;}
  setTimeout("Diapo()", 4000); }


//////////////////////////////////   Appel des diapo

function Popup(page) {
  window.open(page,"popup","top=0,width=320,height=350,left=97,toolbar=false,scrollbars=false");}

function PopupC(page) {
  window.open(page,"popup","top=0,width=240,height=350,left=97,toolbar=false,scrollbars=false");}

function PopupR(page) {
  window.open(page,"popup","top=0,width=415,height=350,left=97,toolbar=false,scrollbars=false");}



//////////////////////////////////   Affichage d'un Pop-up à la taille de l'image

function PopupImage(img) {
  w=open("",'image','top=0,width=200,height=200,left=97, toolbar=no, resizable=yes');	
  w.document.write("<html><head><title>"+titre+"</title>"+"</head>");
  w.document.write("<META HTTP-EQUIV='imagetoolbar' CONTENT='no'>");
  w.document.write("<script language=javascript>function checksize()"
    + "{ if (document.images[0].complete)"
    + "{ window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();}"
    + "else { setTimeout('check()',250) }}");
  w.document.write("</script>");
  w.document.write("<body onload='checksize()' bgcolor='black' oncontextmenu='return false' ondragstart='return false'" 
    + "onselectstart='return false' onblur='window.close()'"
    + "leftMargin='0' topMargin='0' marginwidth='0' marginheight='0'>"+"<img src='"+img+"' border=0>");  
  w.document.write("</body>"+"</html>");
  w.document.close(); }

function PopupImageL(img) {
  w=open("",'image','top=0,width=200,height=200,left=97, toolbar=no, scrollbars=yes, resizable=yes');	
  w.document.write("<html><head><title>"+titre+"</title>"+"</head>");
  w.document.write("<META HTTP-EQUIV='imagetoolbar' CONTENT='no'>");
  w.document.write("<script language=javascript>function checksize()"
    + "{ if (document.images[0].complete)"
    + "{ window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();}"
    + "else { setTimeout('check()',250) }}");
  w.document.write("</script>");
  w.document.write("<body onload='checksize()' bgcolor='black' oncontextmenu='return false' ondragstart='return false'" 
    + "onselectstart='return false' onblur='window.close()'"
    + "leftMargin='0' topMargin='0' marginwidth='0' marginheight='0'>"+"<img src='"+img+"' border=0>");  
  w.document.write("</body>"+"</html>");
  w.document.close(); }

//////////////////////////////////   infobulle qui défile

if (!document.layers&&!document.all) event="test"

function showBulle(current,e,text){
  if (document.all&&document.readyState=="complete"){
    document.all.infobulle.innerHTML="<marquee style='border:1px solid black'>"+text+"</marquee>";
    document.all.infobulle.style.pixelLeft=event.clientX+document.body.scrollLeft+10;
    document.all.infobulle.style.pixelTop=event.clientY+document.body.scrollTop+10;
    document.all.infobulle.style.visibility="visible"; }
  else if (document.layers){
    document.infobulle.document.nsInfobulle.document.write("<b>"+text+"</b>");
    document.infobulle.document.nsInfobulle.document.close();
    document.infobulle.document.nsInfobulle.left=0;
    currentscroll=setInterval("scrollBulle()",100);
    document.infobulle.left=e.pageX+10;
    document.infobulle.top=e.pageY+10;
    document.infobulle.visibility="show"; }}

function hideBulle(){
  if (document.all) document.all.infobulle.style.visibility="hidden";
  else if (document.layers){clearInterval(currentscroll); document.infobulle.visibility="hidden" }}

function scrollBulle(){
  if (document.infobulle.document.nsInfobulle.left>=-document.infobulle.document.nsInfobulle.document.width) 
    document.infobulle.document.nsInfobulle.left-=5;
  else document.infobulle.document.nsInfobulle.left=150; }



