/*
*------------------------------------------------------------------------
*
*			Definitions for CAREERS.JS
*			Version: 1.0 - 11 January 2009
*			Careers Section for .co.uk
*
*------------------------------------------------------------------------
*/

/* FUNCTION ----------------------------------- Equal Heights */

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = jQuery(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}


/* FUNCTION ----------------------------------- On Load Functions */
/* Depending on if we have job listings or not, we will display / show no-job-listings span */
jQuery(document).ready(function() {
	
	if (jQuery("div.col-BCD .current-listings").size() > 0) {
		jQuery("span.no-job-listings").hide();		
		equalHeight(jQuery("div.col-BCD .current-listings"));
	} else {
		jQuery("span.no-job-listings").show();
	}
	
});

/* @end */
