code: function()
  	{
  		var b = document.body;
  		var d = document.documentElement;
  		
  		try
  		{
  			return new mxRectangle(0, 0, b.clientWidth || d.clientWidth, Math.max(b.clientHeight || 0, d.clientHeight));
  		}
  		catch (e)
  		{
  			return new mxRectangle();
  		}
  	}
docs: Function: getDocumentSize
  
  Returns the client size for the current document as an <mxRectangle>.