// Parametrage de la zone d'affichage des sousmenus
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // cache le ou les layers en fonction de la position de la souris
  if ( tempX > 133 || tempY < 120 || tempY > 285){MM_showHideLayers('menu1','','hide')}
  if ( tempX < 133 || tempX > 247 || tempY < 120 || tempY > 220){MM_showHideLayers('menu2','','hide')}
  if ( tempX < 247 || tempX > 425 || tempY < 120 || tempY > 220){MM_showHideLayers('menu3','','hide')}
  if ( tempX < 421 || tempX > 634 || tempY < 120 || tempY > 260){MM_showHideLayers('menu4','','hide')}

   if ( tempX < 634 || tempX > 759 || tempY < 120 || tempY > 280){MM_showHideLayers('menu6','','hide')} 
     if ( tempX < 754 || tempX > 950 || tempY < 120 || tempY > 230){MM_showHideLayers('menu5','','hide')} 
    if ( tempX < 754 || tempX > 950 || tempY < 120 || tempY > 200){MM_showHideLayers('menu7','','hide')} 
  
  
  return true
}


	
	function MM_showHideLayers() { //v3.0 fonction pour cacher les sous-menus
	
	  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 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 navRoll(obj,on)
{
	if(on) {
		obj.style.backgroundColor='#461143';
	} else {
		obj.style.backgroundColor='#6e1143';
	}
}


function subNavRoll(obj,on)
{
	if(on) {
		obj.style.backgroundColor='#d2d3c3';
	} else {
		obj.style.backgroundColor='#feffed';
	}
}

function go(page,newwin)
{
        if(page) {
                if(newwin) {
                        window.open(page);
                } else {
                        location.href=page;
                }
        }
}