bodysize = function() {
	var myHeight = 0;
	if( typeof( window.innerHeight ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
	} else if( document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && document.body.clientHeight) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
  }
  return myHeight;
}

initHeight = function() {
	if (document.getElementById) {
		var bodyheight = bodysize();
		var divWebsite = document.getElementById('website');
		var divRow1 = document.getElementById('row1');
		var divRow2 = document.getElementById('row2');
		if(parseInt(divRow2.offsetHeight)==0){
			var divColumn2 = document.getElementById('column2');
			divRow2 = parseInt(divColumn2.offsetHeight);
		}else{
			divRow2 = parseInt(divRow2.offsetHeight);
		}
		var divRow3 = document.getElementById('row3');
		var minheight = parseInt(divRow1.offsetHeight) + parseInt(divRow2);
		var totalheight = parseInt(minheight) + parseInt(divRow3.offsetHeight);
		if(bodyheight < minheight){
			divRow3.style.position = 'static';
			divWebsite.style.height = parseInt(totalheight) + 'px';
		}else{
			divRow3.style.position = 'absolute';
			divWebsite.style.height = '100%';
		}
	}
}
addEvent(window,'load',initHeight);
addEvent(window,'resize',initHeight);