// JavaScript Document
	var elBW;
	var elBH;
	var elCHSet;


function adjustDisplaySizes() {
	
	getBrowserWindowsize();
	
	var elW = document.getElementById('fa_wrapper');
	var elT = document.getElementById('toclinks');
	var elC = document.getElementById('fa_contents');
	var elWH = elW.offsetHeight;
	var elWW = elW.offsetWidth;
	var elTH = elT.offsetHeight;
	var elTW = elT.offsetWidth;
	var elTB = elT.offsetbottom;
	var elCH = elC.offsetHeight;
	var elCW = elC.offsetWidth;
	// Adjust Wrapper width -30 accounts for 10px wrapper margin  and
	//  10px left and right wrapper borders
	var fixedWW = parseInt((elBW * .95) - 30);
	// Adjust Wrapper height -59 accounts for 59px Finding Aids image above header
	//  -20 accounts for 10px top and bottom wrapper borders
	var fixedWH = parseInt((elBH - 59) * .95) - 20;
	//Adjust height of Table of Contents div to 100% of wrapper div. -26 accounts for 13px top and bottom padding
	var fixedTH = parseInt((fixedWH * 1) - 26);
	// Adjust TOC width -26 accounts for 10px right border in toc and 8px left and right padding
	var fixedTW = parseInt((fixedWW * .20) - 26);
	// Adjust Ask question link box width -40 makes the box smaller than the ToC div that contains it.
	var fixedAVW = parseInt(fixedTW -40);
	//Set contents width to 80% of wrapper DIV
	var fixedCW = parseInt((fixedWW + 1) * .80);
	var elWWSet = (fixedWW + "px");
	var elWHSet = (fixedWH + "px");
	var elTWSet = (fixedTW + "px");
	var elAVWSet = (fixedAVW + "px");
	var elTHSet = (fixedTH + "px");
	var elCWSet = (fixedCW + "px");
	var totContents = ((fixedTW + fixedCW) + "px");
	
	document.getElementById('fa_wrapper').style.width=elWWSet;
	document.getElementById('fa_wrapper').style.height=elWHSet;
	document.getElementById('toclinks').style.width=elTWSet;
	document.getElementById('toclinks').style.height=elTHSet;
	document.getElementById('fa_contents').style.width=elCWSet;
	//document.getElementById('askvisit').style.width=elAVWSet;
	
}

function getBrowserWindowsize() { 
	 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	 
	 if (typeof window.innerWidth != 'undefined')
	 {
		  elBW = window.innerWidth,
		  elBH = window.innerHeight
	 }
	 
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	 else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientWidth !=
		 'undefined' && document.documentElement.clientWidth != 0)
	 {
		   elBW = document.documentElement.clientWidth,
		   elBH = document.documentElement.clientHeight
	 }
	 
	 // older versions of IE
	 
	 else
	 {
		   elBW = document.getElementsByTagName('body')[0].clientWidth,
		   elBH = document.getElementsByTagName('body')[0].clientHeight
	 }
}
