function equalizeGatewayCols(){	
	$('#vt_gateway').find('.column > :last-child').equalizeBottoms();
}
	
$(document).ready(function () {
	
	// removes description from >3 news list in newsCol
	$("#vt_recent_news ul.vtSnManualIndex li .vt_rb_content:gt(2)").css("display", "none");
	$(".vt_newsCol .vt_feed_content h2").css("display", "block");
	
	// make the recent news only show a limited description
	$('#vt_recent_news div.vt_rb_content').each(function(){
		var text = "";
		// get the text only, strip out any html (this includes links etc)
		$(this).contents().each(function(){
			 if(this.nodeType == 3) text = text + this.nodeValue;
		});
		if(text.length>140){
			// get the first space after 140 characters and break on that
			var fSpace = text.indexOf(" ", 140);
			$(this).html(text.substring(0, fSpace)+"...");
		}
	});
	
	
	$('#vt_gateway h2 a').css('color','#A5211F');
	
	$('ul.vtNewsFeatures li:eq(2)').css('width','184px');
	
	$('ul.vtNewsFeatures li:eq(1)').css({"margin-right":"4px","width":"182px"});
	
});
// need to run equalize columns after the images have been loaded
$(window).load(function(){
	equalizeGatewayCols();
});
