function expandHeader(height){
	document.getElementById("content").style.height = height+30+'px';
	document.getElementById("iframe_content").style.visibility = 'hidden';
}

function retractHeader(height){
	document.getElementById("content").style.height = height+'px';
	document.getElementById("iframe_content").style.visibility = 'visible';
}

function scaleIn(height){
	document.getElementById("content_footer").style.height = height+'px';
	document.getElementById("iframe_content").style.visibility = 'hidden';
}

function scaleOut(){
	document.getElementById("content_footer").style.height = '33px';
	document.getElementById("iframe_content").style.visibility = 'visible';
}

function resizeIframe(clientHeight, clientWidth, paramH, marginH, paramW, marginW) {
    // si l'espace central de la fenÍtre (c-a-d hors header et footer) est supÈrieur ‡ la taille dÈfinie pour l'iframe dans le B.O,
    // alors on ‡ la place d'afficher l'iframe telle que dÈfinie en B.O
    if (clientHeight - 170 > paramH) {
        middle_content = paramH;
        document.getElementById("iframe_content").style.top = marginH + 'px';
    }
    else {
        // sinon, on indique ‡ l'iframe la taille ‡ adopter (la taille de l'espace central) et la marge mini par rapport au header
        middle_content = clientHeight - 120;
        document.getElementById("iframe_content").style.top = '100px';
    }
    document.getElementById("iframe_content").style.height = middle_content + 'px';

    if (clientWidth - 120 < paramW) {
        document.getElementById("iframe_content").style.width = clientWidth + 'px';
        document.getElementById("iframe_content").style.left = '-10px';
    }
    else {
        document.getElementById("iframe_content").style.width = paramW + 'px';
        document.getElementById("iframe_content").style.left = marginW + 'px';
    }    
}
