
$(document).ready(function() {
	var root = $('#header h1 a').attr('href');
	
	// Open external links in a new window:
	$('a.external').click(function() {
		window.open($(this).attr('href'));		
		return false;
	});
	
	
	
	// Column C capping to Column B
	// ..nicely
	
	if($('#content.aasca').length == 1) {
		var hotspotContainer = $('.column-c', '#content');

		if(hotspotContainer.length == 1) {
			$('.column-b').height($('.column-b').height(true) + 13);
			hotspotContainer.height($('.column-b').height(true));

			var workingHeight = hotspotContainer.height(true);
			var numHotspots = Math.floor(workingHeight / $('.hotspot:eq(1)', hotspotContainer).height(true)) - 1;

			$('.hotspot:gt(' + numHotspots + ')').hide();		

		}
	}
});

$(window).ready(function() {
	$('#sponsors-fader').imageFader();
});
