window.addEvent('load', function() {

	$('left-panel').style.height = $('middle').offsetHeight + 14 + "px";
	
	if ($('borders').offsetHeight == windowHeight()){
		$('middle').style.height = windowHeight() - 597 + "px";
	}
	
	var leftmargins = $('middle').offsetHeight - $('left-image').height;
	$('left-image').style.marginTop = leftmargins / 2 + "px";
	$('left-image').style.marginBottom = leftmargins / 2 + "px";

});