$(document).ready(function(){
	$('.newsContainer p:last').addClass('last');
	$('.banner .nav li:last').addClass('last');
	
	/*column height*/
	var contentTxt = $(".contentTxt").height();
	var subContainer = $(".subContainer").height() + $(".promoInfoBtns").height() + 104;
	
	if(subContainer < contentTxt) {
		//console.log(subContainer, contentTxt,"less");
		$(".subContainer").height(contentTxt);
		$(".promoInfoBtns").css({position:"absolute", bottom:contentTxt+"px", right:35});
	} else {
		//console.log(subContainer, contentTxt,"greater");
		$(".contentTxt").height(subContainer);
		$(".subContainer").height(subContainer + 104);
		$(".promoInfoBtns").css({position:"absolute", bottom:0, right:35});
	}
	
	/*history*/
	var findBoxes = $('.contentContainer .boxesThreeColumns dl').length;
	if(findBoxes){
		$('.contentContainer .boxesThreeColumns dl').each(function(j, DL){
			var getThird = $('.contentContainer .boxesThreeColumns dl').eq((j+1)*3);
			$(getThird).prev().addClass('last');
			$('<br clear="all" />').insertBefore(getThird);
		});

	}

}); //main document
