// 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);
	}
}

$(function(){
	equalHeight($('.equal1'));
	equalHeight($('.equal2'));
	
	if (jQuery.browser.msie) {
		$('.nav li').corner('5px');
		$('.featjob h2').corner('3px');
		$('.jobs-by-email a').corner('3px');
	}

    buildTweaksToRunUponAJAX();	
});

function buildTweaksToRunUponAJAX(sender, arguments)
{    
	if (jQuery.browser.opera) {
	    if (sender) {
            $controlstoupdate = $('#' + sender.ControlsToUpdate.join(', #'));
	    } else {
            $controlstoupdate = $('body');
	    }
	    
		$('input[type="text"], input[type="password"]', $controlstoupdate).each(function () { var w = $(this).width(); $(this).css('width', (w-2) + 'px'); });
	}
}
