//Finds the windows inner resolution, then sets the new units. Must be in the 
//document body!

function makeUnits() {
//pageWidth = findLiveWidth();
pageWidth = 1024;
xu = pageWidth/1000;
}

//this builds the individual layers
function build(){
	makeUnits();
	resizeText();
}

function resizeText(){
	document.body.style.fontSize = ((12 * xu).toString() + 'px');
}

function findLiveWidth(){
	if(window.innerWidth != null)
		return window.innerWidth;
	if (document.body.clientWidth != null)
		return document.body.clientWidth;
	return (null);
}

function openBrowserWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
