boots.multiAddToBasketFormatting = {
	init:function(){
		$("div.featuredProductMulti").each(function(){
			ratingsHeight= 0;
			$(this).find("p.rating").each(function(){
				ratingsHeight += $(this).text().length;
			});
			$(this).find("p.beFirst").each(function(){
				ratingsHeight += $(this).text().length;
			});
			if(ratingsHeight<20){
				$(this).find("p.rating").css({height:"1px",overflow:"hidden"});
                $(this).find("p.beFirst").css({height:"1px",overflow:"hidden"});
			}
			maxHeight = 0;
			$(this).find("div.productItemMiniAddToBasket").each(function(){
				myHeight = $(this).height();
				maxHeight = (myHeight>maxHeight) ? myHeight : maxHeight;
			});
			$(this).find("div.productItemMiniAddToBasket").each(function(){
				myHeight = $(this).height();
				if(myHeight<maxHeight){
					$(this).find(".price").css({marginTop:(maxHeight-myHeight)+"px"});
				}
			});
		});
	}
};
$(document).ready(function(){
	boots.multiAddToBasketFormatting.init();
});
