var blocactif = '1';
function affiche_bloc (num) {
if (document.all) { 

	var obj=document.all['bloc' + blocactif]
	var objbou=document.all['bout' + blocactif]
	
	if (obj.style.display=='')
	{
	blocactif ='';
	obj.style.display='none';
		with (objbou.style) {
			color='#666666';
			borderRight='1px solid black';
			borderLeft='';
			borderTop='';
			borderBottom='';
			fontWeight='';
		}
	}
	
	var obj2=document.all['bloc' + num]
	var objbou2=document.all['bout' + num]
	
	if (obj2.style.display=='none')
	{
	obj2.style.display='';
	blocactif =num;
		with (objbou2.style) {
			color='#000000';
			borderRight='';
			borderLeft='1px solid black';
			borderTop='1px solid black';
			borderBottom='1px solid black';
			fontWeight='bold';
		}
	}
	
		
}
else
{


	var obj=document.getElementById('bloc' + blocactif)
	var objbou=document.getElementById('bout' + blocactif)
	
	if (obj.style.display=='')
	{
	blocactif ='';
	obj.style.display='none';
		with (objbou.style) {
			color='#666666';
			borderRight='1px solid black';
			borderLeft='0px';
			borderTop='0px';
			borderBottom='0px';
			fontWeight='';
		}
	}
	
	var obj2=document.getElementById('bloc' + num)
	var objbou2=document.getElementById('bout' + num)
	
	if (obj2.style.display=='none')
	{
	obj2.style.display='';
	blocactif =num;
		with (objbou2.style) {
			color='#000000';
			borderRight='0px';
			borderLeft='1px solid black';
			borderTop='1px solid black';
			borderBottom='1px solid black';
			fontWeight='bold';
		}
	}

}
}
function PopUp(url, width, height) { 

window.open(url, "_blank", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",left=200,top=0" );
} 

function changeImage (pFieldObject, pValue, pImgObject, Numero) {
		//pFieldObject.value = pValue;
		pImgObject.src = 'IMAGES/DIAPO' + Numero + '.jpg';
		pImgObject.alt = pvalue;
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

function OpenWindow(url, PageToSend, width, height) { 
	desktopURL = url 
	var desktop = window.open( desktopURL + "?page_to_send=" + PageToSend, "_blank", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width="+width+",height="+height+"" );

} 
