//----------------------
// impression
//---------------------
function PosiImp(impr) 
{
if (document.all)
{var xMax = screen.width, yMax = screen.height;}
else
{var xMax = window.outerWidth, yMax = window.outerHeight;}
var w = 750;
var h = (yMax - 100);
window.open(impr,'detail',
'width='+w+',height='+h+',screenX=0,screenY=0,top=0,left=0,scrollbars=yes,menubar=yes');
}
/******************************************************************************
* CenterWinFix pour le plan                                                                 *
*                                                                             *
* Ouvrir fenêtre modale avec taille fixe (dans fonction) et centrer                                *
*                                                                             *
******************************************************************************/

//-----------------------------------------------------------
// Paramètres : page(htm), nom
//------------------------------------------------------------
function CenterWinFix(mapagec,monnomc) {
var w=426, h=240;
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 800, yMax=600;
var xOffset =(xMax)?(xMax-w)/2:100, yOffset =(yMax)?(yMax-h)/2:100;
var yOffset = yOffset - 100;
window.open(mapagec,monnomc,
'width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}
/******************************************************************************
* CenterWinPho pour les photos                                                                *
*                                                                             *
* Ouvrir fenêtre modale avec taille fixe (dans fonction) et centrer                                *
*                                                                             *
******************************************************************************/
//-----------------------------------------------------------
// Paramètres : page(htm), nom
//------------------------------------------------------------
function CenterWinPho(mapagec,monnomc) {
var w=366, h=256;
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 800, yMax=600;
var xOffset =(xMax)?(xMax-w)/2:100, yOffset =(yMax)?(yMax-h)/2:100;
window.open(mapagec,monnomc,
'width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}
/******************************************************************************
* CenterWinLiv                                                                 *
*                                                                             *
* Ouvrir fenêtre modale avec taille fixe (dans fonction) et centrer                                *
*                                                                             *
******************************************************************************/

//-----------------------------------------------------------
// Paramètres : néant
//------------------------------------------------------------
function CenterWinLiv(nom,page) {
var w=790, h=458;
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 800, yMax=600;
var xOffset =(xMax)?(xMax-w)/2:100, yOffset =(yMax)?(yMax-h)/2:100;
window.open(nom,page,
'width='+w+',height='+h+',screenX=0,screenY=0,top=0,left=0');
}

//-----------------------------------------------------------
// Pour conformite w3c
//------------------------------------------------------
  function trouvestyle(idf) { 
    if (document.getElementById) {
      return document.getElementById(idf).style;
    } else if (document.all) {
      return document.all[idf].style;
    } else if (document.layers) {
      return document.layers[idf];
    } else { return null }
  }
function newstyle(idf,prop,value) {
     var objet_style= trouvestyle(idf);
     if(objet_style) 
        eval( 'objet_style.' + prop + '="' + value+ '"' );
  }  
function hovermexj(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images/mexpicjour_ani.gif)'
}				
function restauremexj(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images/mexpicjour_01.gif)'
} 
function hovermexs(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images_soir/mexpic_soir.gif)'
}				
function restauremexs(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images_soir/mexpic_soir01.gif)'
} 
function hoverbrj(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images/bras_jour024.gif)'
}				
function restaurebrj(idf) {
var stylem=trouvestyle(idf);
if(stylem)  stylem.backgroundImage='url(images/bras_jourbase.gif)'
} 
function hovermenu(idf) {
var stylem=trouvestyle(idf); /*objet "style" du bouton"*/
if(stylem) {
    stylem.backgroundColor='#d96';
    stylem.borderBottomColor='#cca';
    stylem.borderLeftColor='black';
    stylem.borderTopColor='black';}
}


