function count_width_height() {
	var height = document.documentElement.clientHeight; 
	var height2 = document.body.clientHeight;
	var height3 = window.innerHeight;
	var height4 = document.documentElement.offsetHeight;
	
	//alert(height+' '+ height2+' '+height3+ ' '+height4);
	
	if (height2>height) height = height2;
	if (height3>height) height = height3;
	if (height4>height) height = height4;
	
	var width = document.documentElement.clientWidth;
	var width2 = document.body.clientWidth;
	var width3 = window.innerWidth;
	var width4 = document.documentElement.offsetWidth;
	
	if (width2>width) width = width2;
	if (width3>width) width = width3;	
	if (width4>width) width = width4;
	
	
	var result = new Array(2);
	result[0] = width;
	result[1] = height;
	
	return result;
	
}