$(document).ready(function () {
	listItems(); // Wrap <li> in <span> for styling purposes 
	lastNavItem();
	// characterCount();
	rightFeatItemsExtraPadd();
	noImageScroll();
	noImageScroll2();
});

function listItems() {
	$(".bodyText li, .bodyTextLong li, #stepFourTwoColWrap li, .twoColWrap div.col ul li, #centralColumn ul li").each(function() {
	  $(this).contents().wrapAll("<span>");
	});	
}
function lastNavItem() {
	$("#homeNav ul li:last").addClass("last");	
}
/*
function characterCount() {
	$("#homeNav li a").each(function() {
		var charLength = $(this).html().length;	
		if (charLength > 15) {
            $(this).addClass("noPadding");
        }
	});
}
*/
function rightFeatItemsExtraPadd() {
	$(".featuredBlocksWrap ul").each(function() {
		var numOfListItems = $(".featuredBlocksWrap ul li").length;	
		if (numOfListItems < 3) {
			$(".featuredBlocksWrap").css("padding-top","70px");
		}
	});
}
function noImageScroll() {
	if ($("#centralColumn img").length < 1) {
		$(".textScroll").css("height","447px");
	}
}
function noImageScroll2() {
	if ($(".defaultBanner img").length < 1) {
		$(".bodyText").css("height","415px");
		$(".bodyText.lessHeight").css("height","400px");
	}
}




