/*
Class: projectVars

Overview: projectVars Overview
	Properties and functions used by the standardized shell but must be customized for each course/series.

Bugs:
	None known.
	
To do:
	- Remove any functions from this page.

Change Log:
	2006.06.16	JEM	- Initial version.
	2006.09.14	JEM	- Modified shellChromeHeight to 147 from 145.
*/

var contentEl = 'content'; // ID of the scrolling content div.
var minHeight = 200; // minimum height of any fluid-height element before it enters "locked height" mode.
var shellChromeHeight = 153; // height in pixels used by shell elements (e.g. banner, breadcrumbs, footer).

/* 
Function: makeContentFluid
	Compiles CSS code to be added to the document for non-IE users to make each of the desired elements fluid.

Parameters:
	None.

Dependencies:
	<$>; <fluidHeight>; <attachFluidCSS>

Returns:
	N/A.
	
Bugs:
	None known.
	
To do:
	- Make extensible (each fluid element currently must be hard-coded; this function should not have to be in a project-editable file).
	- Make object-oriented.
	- fluidHeight gets called and either acts or returns depending on browser; which is bad practice.

Change Log:
	2006.06.13	JEM	- Initial version.
*/
function makeContentFluid() {
	var cssStr = "";
	cssStr += "#content {height:"+fluidHeight($(contentEl), minHeight, shellChromeHeight)+";} ";
	cssStr += "#menuContentWrapper {height:"+fluidHeight($("menuContentWrapper"), minHeight, shellChromeHeight)+";} ";
	cssStr += "#menuContent {height:"+fluidHeight($("menuContent"), minHeight, shellChromeHeight + 13)+";} ";
	if (self.innerHeight) { // if not IE
		attachFluidCSS(cssStr);
	}
}