var Center = document.getElementById("CenterPanel")
var realWidth=0;
if (Center){
realWidth = Center.clientWidth; // this was document.body.Width;
}else {
realWidth = document.body.clientWidth;
}
w = Math.max(ToolbarMinWidth, realWidth) - ToolbarMinWidth;
if ( !RTL )
{
if (document.all("idMSMenuCurve"))
{
idMSMenuCurve.style.left = (250+(w)) + 'px';
idMSMenuPane.style.left = (250+w+18) + 'px';
var SpaceWidth = w;
idSpace1.style.width = SpaceWidth + 18 + 'px'; // original: SpaceWidth. fengj add +18 (when window is resized too small, the curve.gif color is white, +18 could fix it)
if (MenuHelpStr == "") MenuHelpStr = MenuDisplayStr; // Shailr. This line should have been before the line MenuStr = newLineChar; but I am tryig to avoid another if..else