document.observe("dom:loaded", function() {  
	$('basketBlockWidth').setStyle({width: $('basketTextWidth').getWidth() + 140 + 'px'});
	$('elBasketWidth').setStyle({width: $('basketTextWidth').getWidth() + 290 + 'px'});
	
	Array.prototype.rgMax = function(){
	   var i, max = this[0];
	   for (i = 1; i < this.length; i++) {
		  if (max < this[i])
			 max = this[i];
	   }
	   return max;
	}
	var annMiddleHeightArray = new Array(
		($('annMiddle01'))?$('annMiddle01').getHeight():0, 
		($('annMiddle02'))?$('annMiddle02').getHeight():0, 
		($('annMiddle03'))?$('annMiddle03').getHeight():0
	);
	
	var annMiddleMaxHeight = annMiddleHeightArray.rgMax();

	if($('annMiddle01')) $('annMiddle01').setStyle({height: annMiddleMaxHeight + 'px'});
	if($('annMiddle02')) $('annMiddle02').setStyle({height: annMiddleMaxHeight + 'px'});
	if($('annMiddle03')) $('annMiddle03').setStyle({height: annMiddleMaxHeight + 'px'});
});
