<!--

/*function permettant  d'afficher le titre de la rubrique en rollover */
var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

/*Fonctions permettant d'etirer les div sur toute la hauteur du browser*/
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- 230;
      }
     }
    }
    return windowHeight;
}

function strechColumn() {
var clear_elm = document.getElementById('clearer');
//alert(clear_elm.offsetTop);

var elm1 = document.getElementById('mid-mid');
	//elm.style.height = 'auto';
	//var x = elm.offsetHeight;
	//var x = getWindowHeight();
	if (elm1 != null) elm1.style.height = clear_elm.offsetTop + "px";
	
var elm2 = document.getElementById('mid-right');
	//elm.style.height = 'auto';
	//var x = elm.offsetHeight;
	// var x = getWindowHeight();
	if (elm2 != null) elm2.style.height = clear_elm.offsetTop + "px";
	
var elm3 = document.getElementById('mid-right-homepage');
	//elm.style.height = 'auto';
	//var x = elm.offsetHeight;
	// var x = getWindowHeight();
	if (elm3 != null) elm3.style.height = clear_elm.offsetTop + "px";
}



window.onload = function() {
strechColumn();
}
/*
window.onresize = function() {
strechColumn();
}*/

//-->