function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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; }
}
var RUBRIQUE = '';
var delai = 0;
var menuActif = ''; 
function menuOut()
{
  if( RUBRIQUE != 'Accueil' )
  {
    delai = setTimeout( 'menuEffacer()', 25 );
  }
  return false;
}
function menuOver( menu )
{
  if( RUBRIQUE != 'Accueil' )
  {
    clearTimeout(delai);
    if( menu != menuActif )
    {
      document.getElementById(menu+'SousMenu').style.height='auto';
      document.getElementById(menu+'Vide').style.height='11px';
	  menuActif = menu;
    }
  }
  return false;
}
function menuEffacer()
{
  document.getElementById(menuActif+'SousMenu').style.height='0px';
  document.getElementById(menuActif+'Vide').style.height='35px';
  menuActif='';
}

function animFlash( anim, w, h)
{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + w + '" height="' + h + '"><PARAM name="movie" value="' + anim + '"><PARAM name="quality" value="high"><EMBED src="' + anim + '" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></EMBED></OBJECT>');
}

function displayVideo( config, w, h)
{
	document.write('<object type="application/x-shockwave-flash" data="../anim/player_flv_maxi.swf" width="' + w + '" height="' + h + '"><param name="movie" value="../anim/player_flv_maxi.swf" /><param name="FlashVars" value="config=' +  config + '" /></object>');
//	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'"><PARAM name="movie" value="../anim/player_flv_maxi.swf"><param name="FlashVars" value="config=' + config + '" /><PARAM name="quality" value="high"><EMBED src="../anim/player_flv_maxi.swf" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" width="320" height="240"></EMBED></OBJECT>');
}