var viewportwidth;
var viewportheight;

function sizeadjust(pgtype) {

	var contentheight = $(".content").height();

	/*
	Minimum height of the grey box should be either:
		a) textbox height + its margin (usually 100px) + buffer		-- OR --
		b) height of the viewport
	*/

	if (pgtype=='aboutus') {
		if (contentheight > 2)
			$(".expander").css("height", (contentheight - 650));
	}
	else {
		if (contentheight > 490)
			$(".expander").css("height", (contentheight - 460));
	}
}

function sizeadjustaboutdn(newheight) {
	var contentheight = $(".content").height() + newheight;
	if (contentheight > 2)
		$(".expander").css("height", (contentheight - 650));
}
function sizeadjustaboutup(newheight) {
	var contentheight = $(".content").height() - newheight;
	if (contentheight > 2)
		$(".expander").css("height", (contentheight - 650));
}


function sizeadjustnewsdn(newheight) {
	var contentheight = $(".content").height() + newheight;
	if (contentheight > 2)
		$(".expander").css("height", (contentheight - 460));
}
function sizeadjustnewsup(newheight) {
	var contentheight = $(".content").height() - newheight;
	if (contentheight > 2)
		$(".expander").css("height", (contentheight - 460));
}

