/* common JS for ILPs */

// uses jquery.equalheights.js plugin...

$(document).ready(function() {
	// since FR is the only site that has footer, 
	// this targets FR-FR to fix aside overlapping footer
	if ($('body.FR-FR').length > 0) {
		
		// move aside above #content, 
		// so that 'position: absolute;' isn't needed in CSS
		var theAside = $("#aside");
		theAside.detach().prependTo("#pusher");
		$("#aside").addClass("show");
		
		// tries to extend the height of #content, if #aside is longer
		$("#nav, #content, #aside").equalHeights();
	} else {
		$("#nav, #content").equalHeights();
	}
});


