<!--
	var ns4 = (document.layers)? true:false;   //NS 4 
   	var ie4 = (document.all)? true:false;   //IE 4 
   	var dom = (document.getElementById)? true:false;   //DOM 
   
   	function BrowserSniff() {
		this.dom = (document.getElementById) ? true : false;
		this.ns4 = (document.layers) ? true : false;
		this.ie = (document.all) ? true : false;
		this.ie4 = this.ie && !this.dom;
		}
   
   	var browser = new BrowserSniff();

function ChangeMenuAction(NomDivMenu,ContenuAsp) {
	
	var TheContenu
		TheContenu = ContenuAsp;

	if (this.browser.dom && eval("window.document.getElementById('"+ NomDivMenu +"')") != undefined) {
		if (eval("window.document.getElementById('"+ NomDivMenu +"')").className != 'cachediv' ) { 
		 		eval("window.document.getElementById('"+ NomDivMenu +"')").className = 'cachediv';
		 		TheContenu = "";
		} else {
				eval("window.document.getElementById('"+ NomDivMenu +"')").className = 'montrediv';
			}
		eval("window.document.getElementById('"+ NomDivMenu +"')").innerHTML = TheContenu;
		}

	if (this.browser.ie4 && eval("window.document.all['"+ NomDivMenu +"']") != undefined)
		{
		if (eval("window.document.formchoixnotation."+ NomDivMenu +"").className != 'cachediv' )
			{ 
		 	eval("window.document."+ NomDivMenu +"").className = 'cachediv';
		 	TheContenu = "";
			}
			else 
			{
			eval("window.document."+ NomDivMenu +"").className = 'montrediv';
			}
		eval("window.document.all['"+ NomDivMenu +"']").innerHTML = TheContenu;
		}

	if (this.browser.ns4 && eval("window.document.layers['"+ NomDivMenu +"']") != undefined) {
		if (eval("window.document.layers['"+ NomDivMenu +"']").className != 'cachediv' ) { 
		 		eval("window.document.layers['"+ NomDivMenu +"']").className = 'cachediv';
		 		TheContenu = "";
		} else {
				eval("window.document.layers['"+ NomDivMenu +"']").className = 'montrediv';
			}
		eval("window.document.layers['"+ NomDivMenu +"']").innerHTML = TheContenu;
		}
	}

function openwindow(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

var win = window;    
var n   = 0;
function findInPage(str) {
  var txt, i, found;
  if (str == "")
    return false;
  if (NS4) {
    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;
    if (n == 0)
      alert('"'+str+'" est introuvable');
  }
  if (ie4) {
    txt = win.document.body.createTextRange();
    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }
    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }
    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }
      else
        alert('"'+str+'" est introuvable');
    }
  }
  return false;
}
function PopupImage(img,nomimage) { 
titre="Agrandissement"; 
w=open("",'image','top=30,left=100,width=500,height=500,toolbar=no,scrollbars=no,resizable=no'); 
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+85); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onBlur='window.close()' leftMargin=0 topMargin=0 marginwidth=0 bgcolor=#000000 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='"+nomimage+"'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
}


function decode_lien_mail(cadresse){
	//fonction code adresse mail
	pattern = /^([^&]*)ç([^&]*)$/;
	adresse_tab = cadresse.match(pattern);
	adresse = adresse_tab[1] + "@" + adresse_tab[2] + "</a>";
	return adresse
}

function adresse_mail(adresse){
	document.write(decode_lien_mail(adresse));
}

function decode_mail(cmail){
	//fonction code mail
	pattern = /^([^&]*)ç([^&]*)$/;
	mail_tab = cmail.match(pattern);
	mail = mail_tab[1] + "@" + mail_tab[2];
	return mail
}

function A_HREF_mail(mail){
	document.write("<a name=\"\" href=\"mailto:" + decode_mail(mail) + "\">");
}

function A_HREF_mail_class(mail){
	document.write("<a  href=\"mailto:" + decode_mail(mail) + "\">");
}

		var t;			
		t = 10;

	function changerTaille(modif) {
		t = t + modif;
		document.getElementsByTagName("body")[0].style.fontSize = t + "pt";		
	} 	


//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}


window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

-->
