// JavaScript Document
<!--
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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v;
	}
}
//-->
function page_fc(){
	var leLien =  window.location.search.substring(3);
	var variables = leLien.split("&");
	var laPage = unescape(variables[0]);
	MM_showHideLayers(laPage,'','show');
}
// ouverture de pop up ----------------------------------------------------------------------------
function pop_fc(page,largeur,hauteur,options)
{
	var top=(screen.height-hauteur)/2+100;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function etiquette_fc(msg, titre) {
	var content ="<div align='center' style='background-color:#FF3300; color:#FFFFFF; border-bottom:dashed 2px #FFFFFF; font-variant:small-caps; font-weight:bold'>"+titre+"</div><br />"+msg;

if(navigator.appName.substring(0,3) == "Net"){
		document.captureEvents(Event.MOUSEMOVE);
		}
	document.onmousemove = get_mouse;
	
		leDiv = MM_findObj("plus");
		leDiv.innerHTML = content;
		leDiv.style.visibility = "visible";
}

function get_mouse(e) {

	var x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
	var y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
	leDiv.style.top = y+20;
	
	if (x >= 870)
		leDiv.style.left = 870-225;
	else {
		if (x <= 130)
			leDiv.style.left = 130-225;
		else
			leDiv.style.left = x-225;
	}
}
function vide_fc(){
	
	}
function invisible_fc() {
	leDiv.style.visibility = "hidden";
	document.onmousemove = "";
}
// ouverture, fermeture
function getE(id)
{
	if(document.getElementById) {
		return document.getElementById(id);
	} else if(document.all) {
		return document.all[id];
	} else return;
}

function openClose(id,mode)
{
	element = getE(id);
	img = getE('img_'+id);
	
	if(element.style) {
		if(mode == 0) {
			if(element.style.display == 'block' ) {
				element.style.display = 'none';
				img.src = 'images/icone_-_bleue.gif';
			} else {
				element.style.display = 'block';
				img.src = 'images/icone_+_bleue.gif';
			}
		} else if(mode == 1) {
			element.style.display = 'block';
			img.src = 'images/icone_+_bleue.gif';
		} else if(mode == -1) {
			element.style.display = 'none';
			img.src = 'images/icone_-_bleue.gif';
		}
	}
}

function mOpenClose(idArray,mode)
{
	for(var i=0;i<idArray.length;i++) {
		openClose(idArray[i],mode);
	}
}