document is the actual object for your html page loaded in browser. This is a DOM object.
Document is the function(a DOM interface precisely), which will be used to create the document object. This "Document" is implemented by the browser program. This takes our HTML file as input and creates the "document" object.
Document.getElementById(..) -> wrong. This wont work.
Document.prototype.getElementById(..) This is the right way
Refer this link - Reference link
Document Implementation is specific to each browser. But it can be extended. Check this article too.
http://perfectionkills.com/whats-wrong-with-extending-the-dom/
The document object could be from separate implementations by browsers based on the file type. For HTML the prototype would be "HTMLDocumentPrototype" (uses Document interface), and for XML it would be just a "Object" and no prototype attached. This might differ from browser to browser, since implementation is specific.