//Declaration des variables de chemin
var ABS_PATH = '/';
var HTTP_PATH = 'http://www.leasyweb.com/';
var ABS_PATH = '/';

Event.observe(window, 'load', resizeFrameworkWindow, false);
Event.observe(window, 'resize', resizeFrameworkWindow, false);

function resizeFrameworkWindow() {
    var windowHeight; var windowWidth;
    var marginHeight = 145;
    //Calcul de la taille de la fenetre
    if (self.innerHeight) { // all except Explorer
        windowHeight = self.innerHeight;
        windowWidth = self.innerWidth;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
        windowHeight = document.documentElement.clientHeight;
        windowWidth = document.documentElement.clientWidth;
    } else if (document.body) { // other Explorers
        windowHeight = document.body.clientHeight;
        windowWidth = document.body.clientWidth;
    }
    
    //Redimension des éléments
    if ($('leasyweb_mainFrame')) $('leasyweb_mainFrame').style.minHeight = (windowHeight - marginHeight)+'px';
    if ($('mainLoading')) hideMainLoading();
    if ($('helpSlider')) autoScroll('helpSlider','helpSection',10,true);
    if ($('newsSlider')) autoScroll('newsSlider','newsSection',15,true);
    if ($('pluginSlider')) autoScroll('pluginSlider','pluginSection',8,true);
}