$(document).ready(function(){

	// png fixer for IE
	$(document).pngFix();

	// set Thickbox loading image url
	tb_pathToImage = "/heritage/images/loading_thickbox.gif";
	
	// de-obfuscate SPAM-proof email addresses
	$("a").each(function (i){
		function deobfuscate(x){
			return x.replace("--at--","@");
		}
		var h = this.href;
		if (h.indexOf("mailto")===0) {
			var t = deobfuscate($(this).html());
			this.href = deobfuscate(h);
			$(this).html(t);
		}
	});
	
	
});

$(window).load(function(){
	var x = $("#content").height();
	$("#affiliations").height(x+55);	
});
