<!--
function openDetail(codeid) {
 var options='menubar=no,scrollbars=yes,resizable=no,status=no,width=770,height=800,toolbar=no,directories=no,location=no';
 var howto = window.open('fiche_galerie_plus.aspx?codeid='+codeid,'expo',options);
 if(howto.window.focus){howto.window.focus();}
}
  
function openImg(codeid, pathimg) {
 var options='menubar=no,scrollbars=yes,resizable=no,status=no,width=620,height=500,toolbar=no,directories=no,location=no';
 var howto = window.open('fiche_galerie_img.aspx?codeid='+codeid+'&pathimg='+pathimg,'expoimg',options);
 if(howto.window.focus){howto.window.focus();}
}

function openEvt(codeid) {
 var options='menubar=no,scrollbars=yes,resizable=no,status=no,width=620,height=500,toolbar=no,directories=no,location=no';
 var howto = window.open('fiche_galerie_evt.aspx?codeid='+codeid,'evt',options);
 if(howto.window.focus){howto.window.focus();}
}


function hideall() {
 hidediv('divExpo');
 hidediv('divMap');
}

function setdivExpo() {
 hideall();
 showdiv('divExpo');
 document.getElementById('linkExpo').style.color = '#000000';
 document.getElementById('linkMap').style.color = '#888888'; 
}

function setdivMap() {
 hideall();
 showdiv('divMap');
 document.getElementById('linkMap').style.color = '#000000';
 document.getElementById('linkExpo').style.color = '#888888'; 
}


function hidediv(layer_ref) { 
state = 'none'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
} 


function showdiv(layer_ref) { 
state = 'block'; 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza = document.getElementById(layer_ref); 
hza.style.display = state; 
} 
}
//-->

