BPR = {
	
	left_col: '#home-left',
	right_col: '#home-right-inner',
	right_col_home: '#home-right',
	col_offset: 10,
	
	contact_left_col: '#bpr-contact-left',
	contact_right_col: '#bpr-contact-right',
	
	init: function(){
		
		// Make sure the right column is always longer than the left
		this._calculateColumnHeight();
		
	},
	
	_calculateColumnHeight: function(){
		
		// Default
		var lh = $(this.left_col).height();
		var rh = $(this.right_col).height();
		
		if(lh >= rh){
			$(this.right_col).css('height', (lh + this.col_offset) + 'px');
		}
		
		// Contact page
		if($(this.contact_left_col).length){
			
			var lh = $(this.contact_left_col).height();
			var rh = $(this.contact_right_col).height();
			var rh2 = $(this.right_col_home).height();
			
			var heights = [lh, rh, rh2];
			var max = parseFloat(Array.max(heights));
			
			$(this.contact_left_col + ',' + this.contact_right_col + ',' + this.right_col_home).css('height', (max + this.col_offset) + 'px');
			
		}

	}
	
}

Array.max = function( array ){
    return Math.max.apply( Math, array );
}; 