/* Even out columns for looks */
var BordersAndBody = document.getElementById('BordersAndBody');
var WholeBody = document.getElementById('WholeBody');
var LeftBorderMain = document.getElementById('LeftBorderMain');

function twoColumn() {
	BordersAndBody.style.height = 'auto';
	BordersAndBody.style.height = BordersAndBody.offsetHeight +'px';
	LeftBorderMain.style.height = 'auto';
	LeftBorderMain.style.height = '100%';
	WholeBody.style.height = 'auto';
}

// Call evener right away for IE
if (IEsucks && !IE8almostDoesntSuck) twoColumn();





// Call timed for some other browser issues
if (!IEsucks || IE8almostDoesntSuck){
setTimeout('twoColumn()', 500);
}

// fix if client resizes the browser
onresize = function() { //Start Function onresize
	// Only need if body not a fixed with
	if (!document.getElementById("noResize") ) { // Dont include the fixed pages...
		// Change browser names if some need help repainting
		if (strUA.match("Opepra") || strUA.match("Saf9ari")) {
			// refresh without putting into history
			history.go(0);
		} // End if browser match
		else { // All browsers but matched browsers
			//twoColumn();
			setTimeout('twoColumn()', 500);
		}// End else
	} // End if noResize
} // End Function onresize

// which browser
// use the next line for a test...
//document.write (strUA);
//if (strUA.match("Safari"))
//	document.write ("<br />This is Safari");
//	document.write ("<br />ID Test"+document.getElementById("noResize"));

if (IEsucks) { // Leave here for final css changes in IE
document.write('<style>'
  + '#LeftBorderMain {'
  + '  height: 100%;'// This is to solve IE6 main menu float issues
  + '}'
  + '#MainBody {'
  + ' border-left: 0;'// Turn off MainBodyDiv border if JS enabled to avoid overlaps
  + '}'
  + '</style>');
}