//Finds the windows inner resolution, then sets the new units. Must be in body
function makeUnits() {
pageHeight = findLiveHeight();
pageWidth = findLiveWidth();
x_scale = pageWidth/1024
y_scale = pageHeight/640
scale_ratio = x_scale/y_scale

if (scale_ratio > 1.1)
	constraint = y_scale;
else if (scale_ratio < 0.9)
	constraint = x_scale;
else
	constraint = null;
}