We develop cool extensions for the Joomla! CMS platform like K2, AllVideos, Simple Image Gallery, Frontpage Slideshow, SuperBlogger, K2mart and more...
@fatalmusicgroup It's already in the object. Do a var_dump on $document after you define it as $document = JFactory::getDocument();
joomlaworks is not following you.