

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}




function ouvrir_fichemetierNL(f){


		what="http://www.ada-online.be/nl/2/fiches/"+f+".asp"
		fiche=window.open(what,"","width="+((screen.width/3)*3)+",height="+((screen.height/4)*3)+",toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}


function ouvrir_fichemetierFR(f){


		what="http://www.ada-online.be/fr/2/fiches/"+f+".asp"
		fiche=window.open(what,"","width="+((screen.width/3)*3)+",height="+((screen.height/4)*3)+",toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
function ouvrir_fichesphp(f){


		what="fmetier/"+f+".php3"
		fiche=window.open(what,"","width="+((screen.width/3)*3)+",height="+((screen.height/4)*3)+",toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
				

		
function ouvrir_intervisteFR(f){
		what="http://www.ada-online.be/fr/2/fiches/"+f+".asp"
		fiche=window.open(what,"","width="+((screen.width/3)*2)+",height="+((screen.height/4)*3)+",toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
var fichier=null;
function aprire_popup_videoNL(f){
		quale= "http://www.ada-online.be/pages/"+f
fichier=window.open(quale,"","width=600,height=310,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
var fichier=null;
function aprire_popup_videoFR(f){
		quale= "http://www.ada-online.be/pages/"+f
fichier=window.open(quale,"","width=600,height=310,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}			

var fichier=null;
function aprire(f){
		quale= f
fichier=window.open(quale,"","width="+((screen.width/3)*2)+",height="+((screen.height/4)*3)+"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
var fichier=null;

function aprireginette(f){
		quale= f
fichier=window.open(quale,"","width=550,height=300,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}

var fichier=null;
function aprireQuiz(f){
		quale= f
fichier=window.open(quale,"","width="+(screen.width-100)+",height="+(screen.height-100)+"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
var fichier=null;
function aprirejeux(f){
		quale= f
fichier=window.open(quale,"","width=800,height=500,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
var fichier=null;
function aprirepiccolo(f){
		quale= f
fichier=window.open(quale,"","width="+((screen.width/2)*1)+",height="+((screen.height/5)*2)+"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
var fichier=null;
function aprirequizmet(f){
		quale= f
fichier=window.open(quale,"","width="+((screen.width/4)*3)+",height="+((screen.height/5)*4)+"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}

var fichier=null;
function aprireMascotte(f){
		quale= f
fichier=window.open(quale,"","width=270,height=600,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}		
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
var fichier=null;
function ouvrir_doc(f){
		quale= "http://www.ada-online.be/pages/"+f
fichier=window.open(quale,"","width=800,height=450,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	
		}
function fermer(f){
		if (f) {
			f.close();
		}
		}
		
function aprinote(f){
		quale= f
fichier=window.open(quale,"","width="+((screen.width/5)*2)+",height="+((screen.height/5)*2)+"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");}

function fermer(f){
		if (f) {
			f.close();
		}
		}
		
// on cherche d'abord combien d'images se trouvent sur la page
function nbimages() {
nbimg = document.images.length;

// la variable 'nbimg' est rendue accessible pour les autres fonctions
return nbimg;
}

function infos() {
for ( i=0; i <= nbimg-1; i++) {

// il faut créer autant d'éléements de formulaire qu'il y a d'image et les nommer avec un numéro en commençant par '0' (ici 'info' + numéro)
emplacement = eval('document.formulaire.info' + i);

// on affiche dans la zone de texte toutes les informations possible de l'image
emplacement.value = "Bordure : " + document.images[i].border + '\n';
emplacement.value += "Chargement termine : " + document.images[i].complete + '\n';
emplacement.value += "Hauteur : " + document.images[i].height + '\n';
emplacement.value += "Espace horizontal : " + document.images[i].hspace + '\n';
emplacement.value += "Source basse : " + document.images[i].lowsrc + '\n';
emplacement.value += "Nom : " + document.images[i].name + '\n';
emplacement.value += "Source : " + document.images[i].src + '\n';
emplacement.value += "Espace vertical : " + document.images[i].vspace + '\n';
emplacement.value += "Largeur : " + document.images[i].width;
}
}




		



