if (typeof(AEGON) == 'undefined') AEGON = {};

AEGON.BusinessBrain = {
	init: function() {
		AEGON.BusinessBrain.addYearToCopyrightNotice();
		AEGON.BusinessBrain.makeElementsEqualHeight($('.faux'));

		$(function () {
			$('a[rel=new_window]').click(function () {
				window.open($(this).attr('href'), '_blank', 'scrollbars=1,width=570,height=550');
				return false;
			});
		});
	},

	addYearToCopyrightNotice: function() {
		var copyrightNotice = $('#copyright');
		copyrightNotice.text(
			copyrightNotice.text().substr(0, 2) +
			new Date().getFullYear() +
			copyrightNotice.text().substr(1)
		);
	},

	makeElementsEqualHeight: function(group) {
		if ($.browser.msie) {
			$('#wrapper').css('margin-top', '10px');
		}
		var tallest = 0;
		group.each(function() {
			var thisHeight = $(this).height();
			tallest = (thisHeight > tallest) ? thisHeight : tallest;
		}).height(tallest);
	}
};

(function ($) {
	$(AEGON.BusinessBrain.init);
})(jQuery);
