// JavaScript Document

/*************************************************
    Fonction dimensions de la fenêtre
**************************************************/
function getWindowHeight() {
    var h = 0;
    if (typeof(window.innerHeight) == 'number') {
        h = window.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        h = document.documentElement.clientHeight;
    } else if (document.body && document.body.offsetHeight) {
        h = document.body.offsetHeight;
    }
    return h;
}
function getWindowWidth() {
    var w = 0;
    if (typeof(window.innerWidth) == 'number') {
        w = window.innerWidth;
    } else if (document.documentElement && document.documentElement.clientWidth) {
        w = document.documentElement.clientWidth;
    } else if (document.body && document.body.offsetWidth) {
        w = document.body.offsetWidth;
    }
    return w;
}
function recupAnimation (pAnim) {
	if (navigator.appName.indexOf("Microsoft") != -1) return window[pAnim];
	else return document[pAnim];
}
/*************************************************
    Fonction redimensionnement
**************************************************/
function TestTailleFenetre() {
	recupAnimation("index").formateNavig(getWindowHeight(), getWindowWidth());
}