var w = 800, h = 600;

w = screen.availWidth;
h = screen.availHeight;

function leftPos (popW) {
	return (w - popW) / 2;
}

function topPos (popH) {
	return (h - popH) / 2;
}
