
// Equal height

function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	if (tallest > 0) {
	  group.height(tallest);
	}
}

$(document).ready(function(){
	equalHeight($(".home-box"));
	equalHeight($(".equal1"));
	equalHeight($(".equal2"));
});



$(document).ready(function() {

	
	// Additional styling
	
	if (jQuery.browser.msie) {
		$(".link1").prepend("<span class='off-aural'>&gt;&nbsp;</span>");
		$("a.button2").prepend("<span class='off-aural'>&gt;&nbsp;</span>");
	}
	else {
		$(".link1").prepend("<span class='off-aural'>&#9654&nbsp;</span>");
		$("a.button2").prepend("<span class='off-aural'>&#9654&nbsp;</span>");
	}



		// Browse link 2 columns formatting
	$('.browse-jobs ul').makeacolumnlists({cols:2,colWidth:145,equalHeight:'li',startN:1});
	$('.browse-jobs ul li').css('margin','0 10px 1em 0');
	$('.browse-jobs').css('padding-right','0');
	$('.browse-jobs h2').css('margin-right','10px');

	
	
	
	// Rounded corners (IE only)

	if (jQuery.browser.msie) {
		$(".nav dd.active a").corner("tl 5px").corner("tr 5px");
		$(".box1").corner("8px");
		$(".subnav").corner("8px");
		$(".qs2").corner("8px");
		$(".box-shortlist").corner("8px");
	}


    // IE bug fix - floating footer
    if ( ($(".container2").height() + $(".push").height()) < $(window).height()) {
      $(".push").show();
      $(".container1").addClass("container1-push");
    }

	
});


