function GetImpressWindowClientWidth() {
	ua = window.navigator.userAgent.toLowerCase();
	if (ua.indexOf('msie') != -1) {
		return window.top.document.body.clientWidth;
	} else if (ua.indexOf('mozilla') != -1 && ua.indexOf('spoofer') == -1 && ua.indexOf('compatible') == -1) {
		return window.top.innerWidth;
	} else {
		return 0;
	}
}

function GetImpressWindowClientHeight() {
	ua = window.navigator.userAgent.toLowerCase();
	if (ua.indexOf('msie') != -1) {
		return window.top.document.body.clientHeight;
	} else if (ua.indexOf('mozilla') != -1 && ua.indexOf('spoofer') == -1 && ua.indexOf('compatible') == -1) {
		return window.top.innerHeight;
	} else {
		return 0;
	}
}

function SetImpressWindowSize(w, h) {
	//window.resizeTo(w, h);
	var cw = GetImpressWindowClientWidth();
	var ch = GetImpressWindowClientHeight();
	var ua = navigator.userAgent.toLowerCase();	
	if (cw != w || ch != h) {
		window.top.resizeBy(w-cw, h-ch);
	}
}
