var w3c=document.getElementById && !document.all;
var ie=document.all;

if (ie||w3c) {
 // déclaration des variables uniquement pour IE vive microsoft ?!!
 var overlay2;
 var my_window2;
}


function affiche_overlay_window2(adresse_page){
	// creation de l'overlay et affichage de l'image
	montreoverlay2("<table class = 'image_calque ' valign = 'center' border = '0' align = 'center'><tr><td> &nbsp;</td></tr>");
	// creation de la fenętre
	montrefenetre2(adresse_page);
}


function montreoverlay2(text) {
  if (w3c||ie){
    overlay2 = document.all ? document.all["overlay2"] : document.getElementById ? document.getElementById("overlay2") : ""
	overlay2.innerHTML = text; // fixe le code HTML dans l'overlay balise (div)
    overlay2.style.visibility = "visible"; // modification du style

  }
}

function montrefenetre2(html) {
  if (w3c||ie){
    //affichage de la fenetre
	my_window2 = document.all ? document.all['window2'] : document.getElementById ? document.getElementById('window2') : ""
    my_window2.style.visibility = "visible";

	// affichage du corps de la fenętre (balise iframe)
    my_window2 = document.all ? document.all['contempwindow2'] : document.getElementById ? document.getElementById('contempwindow2') : ""
    my_window2.style.visibility = "visible";
    frames['contempwindow2'].location.href= html ;

  }
}




function cachetout2() {
	
	  
	if (w3c||ie){

	// masque la fenetre (balise div [window] )
	my_window2 = parent.document.getElementById('window2');
	my_window2.style.visibility = "hidden";

	// masque le contenu (balise iframe [contempwindow])
	my_window2 = parent.document.getElementById('contempwindow2'); 
	my_window2.style.visibility = "hidden";
		
	// masque l'overlay (balise div [overlay])
	my_window2 = document.all ? parent.document.all['overlay2'] : parent.document.getElementById ? parent.document.getElementById('overlay2') : ""
	my_window2.style.visibility = "hidden";

	}


}

