// init cufon
Cufon.replace('h2, .pdf', { fontFamily: 'Trajan' });



$(document).ready(function(){
	
	equalize_heights([ $('#content'), $('#sidebar') ]);
	
});


// e = array of elements to equalize their heights
function equalize_heights(e) {
	var tallest = 0;
	var count = e.length;
	
	// find out which of the passed elements is the tallest
	for (var i = 0; i < count; i++) {
		var h = $(e[i]).height();
		if (h > tallest) {
			tallest = h;
		}
	}
	
	// set all the elements' heights to the tallest
	for (var j = 0; j < count; j++) {
		$(e[j]).height( tallest );
	}
}
