var site = {};
site.isPortfolio = false;

Event.observe(window, "load", function() {
	var content = $("content");

	// add 4 for borders
	var h = content.getHeight() + 4;

	if (site.isPortfolio) {
		var portfolioSubmenu = $("portfolio-submenu");
		h = Math.max(h, portfolioSubmenu.getHeight() + 15);
	}

	$("transparentLayer").setStyle({
		height: h + "px"
	});

	// subtract 14 for rounded corners
	$("transparentcontent").setStyle({
		height: h - 14 + "px"
	});

	if (site.isPortfolio) {
		// subtract 4 to bring back to height of content
		$("blueTransparentLayer").setStyle({
			height: h - 4 + "px"
		});
	}
});
