//
// Faculty Templates
// Display-time layout modifications
// Adam Mark Finlayson, WIT
// amf%northwestern!edu
//


// Layout Script
document.write('<script language="JavaScript" type="text/javascript" src="http://www.wcas.northwestern.edu/shared/js/layout.js"></script>\n') ;

// Menu Highlight Script
document.write('<script language="JavaScript" type="text/javascript" src="http://www.wcas.northwestern.edu/shared/js/menuhighlight.js"></script>\n') ;


// Custom function to resize content if shorter than navigation
function expandContentIfSmallerThanNavigation() {
	if(!document.getElementById) return ;
	
	var navigation = document.getElementById('navigation') ;
	var navigationHeight = navigation.offsetHeight ;
	
	var content = document.getElementById('content') ;
	var contentHeight = content.offsetHeight ;
	
	if(navigationHeight > contentHeight) {
		equalizeHeight('navigation', 'content') ; 
	}
}

// Call Scripts onload
window.onload = function() { 
	setHeightToDifference('contact-above', 'contact', 'header');
	addHighlight('navigation', 'highlight');
	expandContentIfSmallerThanNavigation() ;
	stripIndexLinks('navigation') ;
} ;
