$(document).ready(function(){

	//wrap highlight in valign table in order to aign it in the middle
	$hBox = $('#highlightsLeft .box').height();
	$('.highlightsTxt').wrap('<table class="highlightsFix"><tbody><tr><td style="vertical-align:middle;height:'+ $hBox +'px"></td></tr></tbody></table>');
	
	//wrap highlight in valign table in order to align it in the middle
	$hBanner = $('#productBanner div.special').height();
	$('#productBanner div.special .text').wrap('<table class="highlightsFix"><tbody><tr><td style="vertical-align:middle;height:'+ $hBanner +'px"></td></tr></tbody></table>');

	
	
	//detect 5 column table and set widths
	if( $("div.numbers table tr:first td").length == 5){
		
		$("div.numbers table tr:first td:eq(0)").addClass("first5");
		$("div.numbers table tr:first td:eq(1)").addClass("rest5");
		$("div.numbers table tr:first td:eq(2)").addClass("rest5");
		$("div.numbers table tr:first td:eq(3)").addClass("rest5");
		$("div.numbers table tr:first td:eq(4)").addClass("rest5");
		
	}else{
		//2 column table
		$("table.fees tr td:last-child, div.numbers table tr td:last-child").addClass("last");
		
	}
	
	
	$("table.fees, div.numbers table").each(function(){
		$("tr:odd", this).addClass("odd");
		$("tr:even", this).addClass("even");
	});
	
	
	$("#highlightsLeft .box:last-child").removeClass("box").addClass("lastBox");
	
	
	$(".campaign").hover(
      function () {
        $(this).find('h3').addClass('over');
      }, 
      function () {
        $(this).find('h3').removeClass('over');
      }
    );
    
    $(".campaign").click(function () { 
		location.href = $(this).find('a.learnMore').attr('href');
    })

	
});

