function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}


addLoadEvent(outerHeight);

function outerHeight(){
	if (!document.getElementById) return false;
	if (!document.getElementById("outer")) return false;
	var outer = document.getElementById("outer");
	var outerLeft = document.getElementById("outer-left");
	outerLeft.style.height=outer.clientHeight+"px";

	var cnt = document.getElementById("content");

	if (cnt.clientHeight < 500) {
		document.getElementById("container").style.height = "723px";
		outerLeft.style.height="723px";
	}
}


