// JavaScript Document
	function fNav(elem, bool) {
		if (elem != "") {
			if (bool) {
				document.getElementById(elem).style.backgroundPosition = 'left bottom';
			} else {
				document.getElementById(elem).style.backgroundPosition = 'left top';
			}
		}
	}
	
/*FONCTION POP INIT*/

gk=window.Event?1:0; // navigateurs Gecko ou IE
D=document;popup=encours=0

function pop()
{
    var myAs = document.getElementsByTagName('a');
    for (var a = 0; a < myAs.length; ++a) {
        // Si le lien a une classe de type pop
        if (myAs[a].className == 'pop') {
        // on extrait l'id de la popup à partir du href
            var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
			
        // si la popup existe on l'affiche (display block)
            if (pop) {       
                pop.style.display = 'none';
                myAs[a].onclick = function() {
                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
                    thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
                    return false;
                };
                // on efface la popup en cliquant dessus
                /*pop.onclick = function()
                {
                    this.style.display = 'none';
                };*/
            }
        }
		if (myAs[a].className == 'closepop') {
			var closepop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
			if (pop) {       
                pop.style.display = 'none';
                myAs[a].onclick = function() {
                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
                    thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
                    return false;
                };
            }
		}
    }
}



/*function montre result*/

function montre(id) {
var d = document.getElementById(id);
	for (var i = 0; i<=30; i++) {
		if (document.getElementById('sresult'+i)) {document.getElementById('sresult'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


window.onload = function(){
	pop();
    montre(); 
}




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')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}



function changeClass(MyElem, myClass) {
	var elem;
	if(document.getElementById) {
		 elem = document.getElementById(MyElem);
	} else if (document.all){
		 elem = document.all[MyElem];
	}
	elem.className = myClass;
}


function dierr(){
return true;
}