<!--  Activate Cloaking Device
function openImage(){
//Not yet implemented
 //return location.href;
}


function changeLanguage(){
  var path=location.href;
  var slashindx = path.indexOf("/portail_archives_en/");
  
  if (slashindx<1){/*Nous sommes en français et nous passerons à l'anglais */
    var slashindx = path.indexOf("/portail_archives_fr/");
    var filename = path.substring(slashindx+21,path.length);
    lfolder="portail_archives_en/";}
  else{/*Nous sommes en anglais et nous passerons au français */
    var filename = path.substring(slashindx+21,path.length);
    lfolder="portail_archives_fr/";}
      
  var newPath=path.substring(0, slashindx+1)+lfolder+filename;
  //alert(newPath);
  location.href=newPath;
}

function preloadImages() {
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}
// Deactivate Cloaking Device  -->


function toggleLayer( whichLayer ){ 
var elem, vis;  
if( document.getElementById ) 
	// this is the way the standards work    
	elem = document.getElementById( whichLayer );  
else if( document.all ) 
	// this is the way old msie versions work      
	elem = document.all[whichLayer];  
else if( document.layers ) 
	// this is the way nn4 works    
	elem = document.layers[whichLayer];  
	vis = elem.style;  
	// if the style.display value is blank we try to figure it out here  
	if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)    
	vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'block';  
	vis.display = (vis.display==''||vis.display=='block')?'block':'block';

}


function wrong(){
	alert('Ce n\'est pas la bonne reponse, essaie une autre fois!');
}

function right(id){
	toggleLayer(id);

}

