var navigateur = "";
if ( navigator.userAgent.indexOf('MSIE 6.0') != -1 ) navigateur = "MOD"; 
else navigateur= "NOMOD"

function getWindowHeight() {
 var windowHeight = 0;
   if (typeof(window.innerHeight) == 'number') {
        windowHeight = window.innerHeight;
   }
        else {
          if (document.body && document.body.clientHeight) {
            windowHeight = document.body.clientHeight;
        }
        else {
          if (document.documentElement && document.documentElement.clientHeight) {
            windowHeight = document.documentElement.clientHeight;
          }
        }
   }
 return windowHeight;
}
if (navigateur=="NOMOD") {
function setFooter(nav) {
  if (document.getElementById) {
     var windowHeight = getWindowHeight();
     if (windowHeight > 0) {
         var footerElement = document.getElementById('haut');
         if (windowHeight - 25 >= 0) {
            footerElement.style.position = 'fixed';
            footerElement.style.top = (windowHeight - 25) + 'px';
         }
         else {
            footerElement.style.position = 'static';
         }
     }
  }
}
}
else {
function setFooter() {
  if (document.getElementById) {
     var windowHeight = getWindowHeight();
     if (windowHeight > 0) {
         var footerElement = document.getElementById('haut');
         if (windowHeight - 25 >= 0) {
          if ((document.all) && (navigator.appVersion.indexOf("Mac",0)<0)) {
                footerElement.style.position = 'absolute';
                footerElement.style.top = (document.body.scrollTop + windowHeight - 25) + 'px';
                }
          else {
                footerElement.style.position = 'fixed';
                footerElement.style.top = (windowHeight - 25) + 'px';
                }
         }
         else {
            footerElement.style.position = 'static';
         }
     }
  }
}
}
window.onload = function() {setFooter(navigateur);}
window.onresize = function() {setFooter(navigateur);}
if (navigateur=="MOD")
window.onscroll = function() {setFooter(navigateur);}