function deGetWidth() {
	var iWidth = 0;
	if (window.innerWidth) {
		iWidth = window.innerWidth;
	}
	else if (document.documentElement) {
		iWidth = document.documentElement.offsetWidth;
	}			
	else if (document.body.clientWidth) {
		iWidth = document.body.clientWidth;
	}
	return iWidth;
}
function deGetHeight() {
	var iHeight = 0;
	if (window.innerHeight) {
		iHeight = window.innerHeight;
	}
	else if (document.documentElement) {
		iHeight = document.documentElement.offsetHeight;
	}			
	else if (document.body.clientHeight) {
		iHeight = document.body.clientHeight;
	}
	return iHeight;
}

function getColorBoxWidth() {
	var standardWidth = 660;
	var iWidth = deGetWidth() - 20;		
	if (iWidth < standardWidth) { return iWidth; }
	else { return standardWidth; }	
}
function getColorBoxHeight() {
	var standardHeight = 680;
	var iHeight = deGetHeight() - 20;
	if (iHeight < standardHeight) { return iHeight; }
	else { return standardHeight; }			
}