// Récupérer la valeur d'une propriété CSS d'un élément id
function getStyle(elt,pro) {
  var element = document.getElementById(elt);
  if (window.getComputedStyle) {
    // Mozilla Firefox & cie
    var propriete = window.getComputedStyle(element,null).getPropertyValue(pro);
  } else if (element.currentStyle) { 
    // Microsoft Internet Explorer
    var propriete = eval('element.currentStyle.'+pro);
  }
  return propriete;
}

// Classe
var YOOTemplate = {
		
	start: function() {

		/* Match height of div tags */
		YOOTemplate.matchHeights();
	},

	/* Match height of div tags */
	matchHeights: function() {
		YOOBase.matchHeight('div.headerbox div.deepest', 20);
		YOOBase.matchHeight('div.bottombox div.deepest', 20);
  }

};

/* Add functions on window load */
window.addEvent('domready', YOOTemplate.start);

