
function x_octal_template_mapsize()
{
	var wndWidth = windowWidth(document);
	var lhsWidth = elemWidth(document, 'filters');

	var wndHeight = windowHeight(document);

	var newsize = new Object();
	newsize.width = wndWidth - (lhsWidth + 30);
	newsize.height = wndHeight - (50);
	if (newsize.height < 450) {
		newsize.height = 450;
	}

	return newsize;
}


function x_octal_template_load()
{
	var mapElem = document.getElementById('map');
	if (mapElem) {
		mapElem.x_octal_mapsize = x_octal_template_mapsize;
	}
}


octalAddEventListener(window, 'load', x_octal_template_load);

