//Function will equalize the heights of two elements
function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

//Make sure that #sidebar and #content are always the same height
equalHeight($("#sidebar, #primaryColumn"));

//Open PDF's in a new window
$("a[href*='.pdf'],a[href*='.doc']").attr("target", "_blank");
	
//Add a class of PDF to links pointing to PDF's
$("a[href*='.pdf']").addClass('PDF');

//Launch Fancybox
$("dt.gallery-icon a").fancybox({
	'titleShow'	: false
});
