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];}}
}
//--------------------------------------------------------------------------------------//
// Détection du type de Navigateur (Histoire d'être full compatible)                    //                                                             //
//--------------------------------------------------------------------------------------// 
function Is() {
    var agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns   = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2  = (this.ns && (this.major == 2));
    this.ns3  = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4  = (this.ns && (this.major >= 4));
    this.ns6  = (!document.all && document.getElementById);
    this.ie   = (agent.indexOf('msie') != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.ie5  = (document.all && document.getElementById);
    this.op3  = (agent.indexOf('opera') != -1);
}

var is = new Is();
//--------------------------------------------------------------------------------------//
// Variables pour la compatibilité Cross-Browser                                        //                                                             //
//--------------------------------------------------------------------------------------// 
if(is.ns6 || is.ie5) {
    doc = 'document.getElementById(';
	sty = ').style';
    styf = ').style.color=';	
    styb = ').style.backgroundColor=';
 } else if(is.ns4) {
    doc = 'window.document.';
	sty = 'style';	
    styf = 'style.color=';	
    styb = 'style.backgroundColor=';
} else if(is.ie4) {
    doc = 'document.all[';
	sty = '].style';	
	styf = ']style.color=';
    styb = ']style.backgroundColor=';
} else {
    alert('Attention, votre Browser est trop ancien pour profiter pleinement de ce site \n Allez vite chez www.microsoft.com ou www.netscape.com chercher quelque chose de plus récent...\nDans les deux cas, tout est gratuit');
}

function mouseMove(e) {
   var popis = new Is();
   if (popis.ns) {x=e.pageX; y=e.pageY}
   if (popis.ie) {x=event.x;y=event.y + parseInt(document.body.scrollTop)}
 //  alert("x="+x+"-y="+y);
   }
   
document.onmousemove = mouseMove;
if (is.ns4) document.captureEvents(Event.MOUSEMOVE);

function lion() {
   LienExtLyr = eval(doc + '"LienExt"' + sty);
   LienExtLyr.top = y-35;
   LienExtLyr.left= x-40;
   LienExtLyr.visibility = "visible";
   }

function lioff() {
   LienExtLyr = eval(doc + '"LienExt"' + sty);
   LienExtLyr.visibility = "hidden";
   }
   
function sendMain(tag) {
    resultat = "main.php?menu=" + tag;
    parent.Centre.location.href=resultat;
   }

document.write('<DIV ID="LienExt" STYLE="position:absolute; visibility:hidden; left: -30px; top: -30px;">'); 
document.write('  <TABLE WIDTH="90" BORDER="0" CELLPADDING="1" CELLSPACING=0 BGCOLOR="#333399"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR="#CCCCFF"><TR>'); 
document.write('<TD><FONT FACE="Arial,Helvetica" COLOR="#000000" SIZE="-2">&#8226;&#8226;&nbsp;Lien Externe&nbsp;&#8226;&#8226;</FONT></TD>'); 
document.write('</TR></TABLE></TD></TR></TABLE>'); 
document.write('</DIV>'); 
