function hidesearchtips() { 

	document.getElementById('searchtips').style.display = "none"; 

}

function showsearchtips() { 

	document.images["plusminussearchtips"].src = contextPath + "/img/v1/minus.gif"; 

} 

function showsearchtips() { 

if (document.getElementById('searchtips').style.display == "none") 
  { 
	document.getElementById('searchtips').style.display = "block"; 
	document.images["plusminussearchtips"].src = contextPath + "/img/v1/minus.gif"; 
  } else 
  { 
  	document.getElementById('searchtips').style.display = "none"; 
  	document.images["plusminussearch2"].src = contextPath + "/img/v1/plus.gif"; 
  } 
}


function switchbox(fen, nb_fen) {
   for (i = 0; i < nb_fen; i++) {
      id_cible = "fen" + i;      
      cible = document.getElementById(id_cible);
      id_fl_cible = "fen-fl" + i;  
      fl_cible = document.getElementById(id_fl_cible);
      if (i == fen) {
         if (cible.style.display == "none"){
            cible.style.display="";
            fl_cible.src= contextPath + "/img/v1/minus.gif";
         } else {
            cible.style.display="none";
            fl_cible.src= contextPath + "/img/v1/plus.gif";
         }
      } else {
      	 cible.style.display = "none";
         fl_cible.src= contextPath + "/img/v1/plus.gif";
      }	      
   }  
}




function switchOneObject (obj) {
	var e1 = document.getElementById(obj);
	e1_p = "src" +  obj; 
	var e1_picture = document.getElementById(e1_p);
	if ( e1.style.display == "none" ) {
		e1.style.display = '';
		e1_picture.src= contextPath + "/img/v1/minus.gif";
	}
	else {
		e1.style.display = "none";
		e1_picture.src= contextPath + "/img/v1/plus.gif";
	}
}

var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=400,width=200');
	if (window.focus) {newwindow.focus()}
}




