function statut(text) {
window.defaultStatus ='Mission Locale'
 //if(self.name==top.name) { location.href="index.html" }
}

var isMinIE5 = (navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0
var isMinIE6 = (navigator.appVersion.indexOf("6.") >= 0) ? 1 : 0
var isMoz    = ( navigator.appName =='Netscape' )




function getdElement(d,nm) {
  if(nm == '') return null;
  return d.getElementById?d.getElementById(nm):(d.all?d.all(nm):null)
}
function getElement(nm) { return getdElement(document,nm) }

function set800() {
 if (screen.availWidth) {   if (screen.availWidth>800) window.resizeTo(800,600)  }
}

var menuid=0
function setMenu(x,no) {
  if (no==6)
     var tmp = getElement('m'+5)
  else
      var tmp = getElement('m'+no)
  if (tmp) {
     x = tmp.offsetLeft; if (no==6) x+=4;
     x+= tmp.parentNode.offsetLeft+128;
  }
  var  pop = getElement('pop')
  if (pop) {
    if (menuid>0) window.clearTimeout(menuid)
     pop.style.display='none'
     var item = getElement('pop'+no)
     if (item) {
       pop.innerHTML = item.innerHTML;
       pop.style.display='block'
     }
     pop.style.left=x+'px';
  }
}
function setMenuBis() { if (menuid>0) window.clearTimeout(menuid); }
function setMenuOff() {
  if (menuid>0) window.clearTimeout(menuid)
  menuid=window.setTimeout('setMenu()',2000)
}
function closeMenu() { setMenu(); }

function setOn(no){
	setOff(no)
	var item=getElement('mnu'+no)
	if (item) item.className='mnuON'
}
function setOff(no){
 for ( var i=1; i<12; i++){
	var item=getElement('mnu'+i)
	if (item){ if (no!=i) item.className='mnuOFF' }
 }
}

function load() {
	if (document.images) {
		this.length=preload.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=preload.arguments[i];
		}
	}
}
function preload() {
// Cette fonction charge dans le cache toutes les images passées en paramètre
	var mesImages=new load("COMMUN/images/cadre/puce_tra.gif","COMMUN/images/cadre/coin_hg.gif","COMMUN/images/cadre/coin_hd.gif","COMMUN/images/cadre/coin_bd.gif","COMMUN/images/cadre/coin_bg.gif","COMMUN/images/plateau/picto_choisir.gif","COMMUN/images/plateau/picto_recherche.gif","COMMUN/images/plateau/picto_panier.gif")
}


var nouveau;
function photo(nom, width, height){
 if (nouveau) {	if ( !nouveau.closed ) nouveau.close(); }
 nouveau =window.open('','photo','height='+height+',width='+width+',status=no,toolbar=no,menubar=no,location=no');
 nouveau.document.write('<html><body onLoad="window.focus();" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" onclick="window.close()" scroll="no"><center><img src="'+nom+'" style="cursor:hand;" border="0" alt=""></center></body></html>');
}
function pop(nom, width, height){
 if (nouveau) {	if ( !nouveau.closed ) nouveau.close(); }
 nouveau =window.open(nom,'photo','height='+height+',width='+width+', scrollbars=yes, status=no,toolbar=no,menubar=no,location=no');
}

function stopError() { return true; }
 
//window.onerror = stopError;
window.onload=statut;






