function equalizeHeights()
{
	// Very simple function which gets the height values of the news and membership sections
	// It compares them and sets them both to the same height
	var $newsHeight = null;
	var $membershipHeight = null;
				
	// Get the height values and assign them to a parameter
	$newsHeight = $('#main-section').height(); 				// News section
	$membershipHeight = $('#right-column').height();		// Membership section
				
				
	// Compare the two height values
	if($newsHeight > $membershipHeight)
	{
		// Increase the height of the membership section
		$('#right-column').height($newsHeight);
	}
	else
	{
		// Increase the height of the news section
		$('#main-section').height($membershipHeight);
	}
}


function toggle(divID)
{
	$(divID).toggle('slow');
}


jQuery.extend({
	random: function(X) {
	    return Math.floor(X * (Math.random() % 1));
	},
	randomBetween: function(MinV, MaxV) {
	  return MinV + jQuery.random(MaxV - MinV + 1);
	}
});

function chooseRandomBanner()
{
	// Generate a random number between the two given values
	var $random = $.randomBetween(1,1);
	
	// Display the banner DIV associated with the random number generated
	$('#banner-' + $random).show();
}
