function affiche_div(valDiv){
  var valDiv;
  document.getElementById(valDiv).style.display="block";
}

function enlever_div(valDiv){
  var valDiv;
  document.getElementById(valDiv).style.display="none";
}

function chngcol(valCol){
  var valCol;
  if (document.getElementById(valCol).style.backgroundColor=="") document.getElementById(valCol).style.backgroundColor="#DDE0E5";
  else document.getElementById(valCol).style.backgroundColor="";
}

function swap_m(img_name,to_what,nochange) {
	if (nochange=='') {
		var swap, towhat;
		swap	= eval('document.images.'+img_name);
		towhat='/fr/_img/'+to_what+'.gif';
		swap.src	= towhat;
	}
}

//--- ROLLOVER / ROLLOUT
function Roll(nameimg,val){
	var tmp = document.getElementById(nameimg);
	tmp.src=val;
}

function swap_n(img_name,to_what,nochange) {
	//alert("swap = "+img_name+" en = "+to_what);
	if (nochange=='') {
		var swap, towhat;
		swap	= eval('document.images.'+img_name);
		towhat= to_what;
		swap.src	= towhat;
	}
}
function popp(data,w,h){
	if (!w || !h){
		w=800;
		h=750;
	}
	t=(screen.height-h)/2;
	l=(screen.width-w)/2;
	var Win = window.open(data,'','width='+w+',height='+h+',top='+t+',left='+l+',location=no, statusbar=no, directories=no, resizable=yes, menubar=no, toolbar=no, scrollbars=yes, outerHeight =0, outerWidth = 0');
	Win.focus();
}

var theDoc = document;
var y;
var hr;

function open_it(max,name,hm)
{
	if (hm<0) return;
	maxi = max;
	divname = name;
	act = theDoc.getElementById(divname).style.height;
	act2 = parseInt(act);

	if (act2>=maxi) { clearTimeout(tempoO); theDoc.getElementById(divname).style.height=maxi+"px"; return; };

	y = ((act2-1)+hm);
	hr = hm-1;
	theDoc.getElementById(divname).style.height=y+"px";
	tempoO = setTimeout('open_it(maxi,divname,hr)', 30);
}

function divmenu2(ic,divID,divHeight,nQuest)
{
  
  var questions = nQuest;
   if (theDoc.getElementById(divID).style.display!="")
	{
		for (i=1;i<(questions+1);i++)
		{
			eval ("document.getElementById('imp_div_"+i+"').style.display='none';");
			eval ("document.getElementById('div_"+i+"').className='faq';");
			eval ("document.getElementById('txt_"+i+"').className='faqlink';");
		}
		theDoc.getElementById(divID).style.display="";		
		theDoc.getElementById("div_"+ic).className="faq_on";
		theDoc.getElementById("txt_"+ic).className="faqlink_on";

		if (navigator.platform.indexOf("Mac") != 0)
		{
			theDoc.getElementById(divID).style.height="0";
			speed = ((divHeight/12.5)+8);
			open_it(divHeight,divID,speed)
		}
	}
   else 
   {
	theDoc.getElementById(divID).style.display="none";  
   }
}