function handleResize() {
	//var width = windowWidth() - document.getElementById('rightarea').offsetWidth - 48;
	var height = windowHeight() - document.getElementById('zahlavi').offsetHeight-90;
	//var heightSidebar = windowHeight() - document.getElementById('header_area').offsetHeight-173;
	
	//alert(height);
	
	//document.getElementById('map').style.width = width + 'px';
	document.getElementById('right_area').style.height = height + 'px';
	//document.getElementById('sidebar').style.height = heightSidebar + 'px'; 
}
  
function windowWidth() {
	// Standard browsers (Mozilla, Safari, etc.)
	if (self.innerWidth)
		return self.innerWidth-15;
	// IE 6
	if (document.documentElement && document.documentElement.clientWidth)
		return document.documentElement.clientWidth;
	// IE 5
	if (document.body)
		return document.body.clientWidth;
	// Just in case.
	return 0;
}

function windowHeight() {
	// Standard browsers (Mozilla, Safari, etc.)
	if (self.innerHeight)
		return self.innerHeight;
	// IE 6
	if (document.documentElement && document.documentElement.clientHeight)
		return document.documentElement.clientHeight;
	// IE 5
	if (document.body)
		return document.body.clientHeight;
	// Just in case.
	return 0;
}

function init() {
	handleResize();
}
