var w=null;function log(m){if(!w)w=window.open();w.document.write(m+'<br />');}

function updateSize () {
	updateIt();
}
function updateIt () {
	if (document.body.offsetWidth < 988) {
		top.mainContainer.className = "main800";
		var d = document.getElementById("language_selector");
		if (d) d.style.width = "773px";
	}
	else {
		top.mainContainer.className = "main1024";
		var d = document.getElementById("language_selector");
		if (d) d.style.width = "987px";
	}
	/* Force correct positioning */
	if (navigator.product && navigator.product == "Gecko") {
		top.mainContainer.style.position = "relative";
		top.mainContainer.style.position = "";
	}
	var objError = document.getElementById('dberror');
	if (objError) { //any errors, resize tooldiv
       var objErrorHeight = objError.clientHeight+10;
       var tool = document.getElementById('tool');
       tool.style.paddingBottom = objErrorHeight+'px';
	}
}

