function equalColumns() { // Stretch the columns to be equal height
	P7_equalCols2(0,'sidebar','DIV','content','DIV','extra','DIV');
}

function slideNav() { // moves nav with viewport
	var SLDe = new Array(
	new Array('block-menu-25','page',0.75,100,'footer')
	);
	// test general browser support
	var er = SLIDE_general_support();
	if (!er) {
	  // if OK, launch sliders
	  for (var i=0; i<SLDe.length; i++) {
	    SLIDE_launch_slider(SLDe[i]);
	  }
	}
}

function resizeWindow(width) { // change body class for different style widths
	if (document.getElementById("block-user-1")) return false; // liquid if logged-in
	var body = document.getElementsByTagName("body")[0];
	if (width < 1035)
		body.className = 'fixedsmall';
	else if (width < 1600)
		body.className = 'fixedlarge';
	else
		body.className = '';
}

function checkWindowWidth() {
	if (typeof(window.innerWidth) == 'number') { // NS, FF, Opera
		resizeWindow(window.innerWidth);
	} else if (document.documentElement && document.documentElement.clientWidth) { // IE 6 in standards compliant mode
		resizeWindow(document.documentElement.clientWidth);
	}
}

if (document.documentElement.className == 'js') {
//	addLoadEvent(checkWindowWidth);
	addLoadEvent(equalColumns);
	addLoadEvent(slideNav);
} else {
	window.onload = function() {
//		checkWindowWidth();
		equalColumns();
		slideNav();
	}
}

schedule('skipto', checkWindowWidth);

window.onresize = function() {
	checkWindowWidth();
}