// Gets the window height across most browsers
function getWindowHeight() {

	var windowHeight = document.documentElement.clientHeight;

	if(windowHeight === undefined || windowHeight === 0) {
		windowHeight = document.body.clientHeight;
	}

	return windowHeight;
}

// Gets the window width across most browsers
function getWindowWidth() {

	var windowWidth = document.documentElement.clientWidth;

	if(windowWidth === undefined || windowWidth === 0) {
		windowWidth = document.body.clientWidth;
	}

	return windowWidth;
}
