var pageObjects = new Array("text-projects","text-default","text-services","text-people");

function showContent(divID) {
	var e;
	for (e in pageObjects) {
		var objE = document.getElementById(pageObjects[e])
		// first hide all objects
		objE.style.visibility = "hidden"
	}
	var objDiv = document.getElementById(divID);
	// then display the required one
	objDiv.style.visibility = "visible"
}

function setScreen (maxwidth,maxheight) {
	var width = window.screen.width;
	var height = window.screen.height;
	if (height>maxheight) height=maxheight;
	if (width>maxwidth) {
		width=maxwidth;
		window.resizeTo(width,height);
	}
}
