function AfficheMenu(url, x, y)
        {
            document.write('<object data="'+url+'" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'">\n');
			document.write('<param name="quality" value="high" />\n');
			document.write('<param name="loop" value="false" />\n');
 			document.write('<param name="bgcolor" value="#FFFFFF" />\n');
			document.write('<param name="movie" value="'+url+'"/>\n');
			document.write('<param name="wmode" value="transparent">\n');
			document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n');
			document.write('<!--[if IE]>\n');
			document.write('	<EMBED src="'+url+'" loop=false quality=best scale=exactfit bgcolor=#FFFFFF  WIDTH="'+x+'" HEIGHT="'+y+'" NAME="Menu" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent">\n');
			document.write('	</EMBED> \n');
			document.write('<![endif]-->\n');
    	    document.write('</object>\n');			
        }
function AfficheFlash(url, x, y)
        {
            document.write('<object data="'+url+'" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'">\n');
			document.write('<param name="quality" value="high" />\n');
			document.write('<param name="loop" value="true" />\n');
 			document.write('<param name="bgcolor" value="#000000" />\n');
			document.write('<param name="movie" value="'+url+'"/>\n');
			document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n');
			document.write('<!--[if IE]>\n');
			document.write('	<EMBED src="'+url+'" loop=true quality=best scale=exactfit bgcolor=#FFFFFF  WIDTH="'+x+'" HEIGHT="'+y+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">\n');
			document.write('	</EMBED> \n');
			document.write('<![endif]-->\n');
    	    document.write('</object>\n');			
        }


        // Patch pour IE qui ne reconnait pas les hover sur les listes
        sfHover = function() {
          var sfEls = document.getElementById('MenuDHTML').getElementsByTagName('LI');
          for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
              this.className+=' sfhover';
            }
            sfEls[i].onmouseout=function() {
              this.className=this.className.replace(' sfhover', '');
              
            }
          }
          
        }
        if (window.attachEvent) window.attachEvent('onload', sfHover);
        

// ------------ Pour aligner le pied de page en bas de page ...
function getWindowHeight() {
    var windowHeight=0;
    if (typeof(window.innerHeight)=='number') {
        windowHeight=window.innerHeight;
    }
    else {
     if (document.documentElement&&
       document.documentElement.clientHeight) {
         windowHeight = document.documentElement.clientHeight;
    }
    else {
     if (document.body&&document.body.clientHeight) {
         windowHeight=document.body.clientHeight;
      }
     }
    }
    return windowHeight;
}

function validformaction( f )
{
	f.action= '#';
}

function setFooter( content, footer) {
    if (document.getElementById) {
        var windowHeight=getWindowHeight();
        if (windowHeight>0) {
            var contentHeight=
            document.getElementById( content ).offsetHeight;
            var footerElement=document.getElementById( footer );
            var footerHeight=footerElement.offsetHeight;
        if (windowHeight-(contentHeight+footerHeight)>=0) {
            footerElement.style.position='relative';
            footerElement.style.top=
            (windowHeight-(contentHeight+footerHeight))+'px';
        }
        else {
            footerElement.style.position='static';
        }
       }
      }
}

window.onload = function() {
setFooter( "PAGE","Foot2" );
}
window.onresize = function() {
setFooter( "PAGE", "Foot2");
}
// ----------------- fin de l'alignement du pied de page
