
var rubrique_page="0";
var lettre_annuaire="0";
var menusurvol="0";


function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  neo=window.open(theURL,winName,features);
neo.window.focus();

//alert('test');
//winname.focus();
}


/*function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}*/

/*function MM_menu_on() { 
 var i,j=0,x,a=MM_menu_on.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; 
	if(!x.oSrc){ x.oSrc=x.src; }

temp=a[i+2];
temp2=temp.lastIndexOf(rubrique_page);
temp4=temp;
temp3=temp4.lastIndexOf('criteres');

//alert(rubrique_page);
if ((temp3>0)&&(rubrique_page=='recherche')){temp2=1;}
//alert(temp2+temp+rubrique_page+temp3);


if (temp2<0){x.src=a[i+2];}
}
}*/

//function initialise_menu_gauche(rubrique) {
//var img="bt_menu_"+rubrique;
//document.images[img].src="/francais/images/commun/bt_"+rubrique+"_s.jpg";}

function SelectPays(){

	document.forms["PAYS"].submit();
	
}


function SelectTheme()

	{
		document.forms["THEME"].submit();
	}

function MM_annuaire_on() { 
 var i,j=0,x,a=MM_annuaire_on.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; 
	if(!x.oSrc){ x.oSrc=x.src; }

temp=a[i+2];
temp3=lettre_annuaire.toLowerCase()+"_";
temp2=temp.lastIndexOf(temp3);
//temp4=temp;
//temp3=temp4.lastIndexOf('criteres');

//alert(rubrique_page);
//if ((temp3>0)&&(rubrique_page=='recherche')){temp2=1;}
//alert(temp2+temp3+temp);
//alert(x);

//x.src=a[i+2];

if (temp2<0){x.src=a[i+2];}
}

}


// Fonction d'extraction des paramètres sur l'url
// utilise dans la page annuaire pour savoir sur quelle lettre on est
	function TJSExtraireParam() {
		url = window.location.href;
		var exp=new RegExp("[&?]+","g");
		var exp2=new RegExp("[=]+","g");
		var tabNom=url.split(exp);
		var	tabParam=new Array();
		if (tabNom!=null) {
			for (var i=1;i<tabNom.length;i++){
				var tabTemp=tabNom[i].split(exp2);
//alert(tabTemp);
				tabParam[tabTemp[0]]=tabTemp[1];
			}
		}
		return tabParam;
	}


function initialise_menu_annuaire(lettre) {
var urlParam = TJSExtraireParam();
lettre_annuaire=urlParam["Lettre"];

//alert(lettre_annuaire);
var img="annuaire_"+lettre_annuaire;
//alert(img);
document.images[img].src="/francais/images/commun/alphabet/"+lettre_annuaire+"_s.jpg";

//if (rubrique=="recherche"){document.images['bt_menu_criteres'].src="/francais/images/commun/bt_criteres_s.jpg";}
}


function init_menu(new_id){
if(new_id!=0){
var cell="rub"+new_id;
rubrique_page=cell
//alert(this.id);
document.getElementById(cell).className="menuon";
}
}

function mouseover(new_id){
if(new_id!=0){
var cell="rub"+new_id;
menusurvol=cell
document.getElementById(cell).className="menuon";
}
}

function mouseout(){
if(menusurvol!=rubrique_page){
document.getElementById(menusurvol).className="menuoff";
}
}

