The elements generated here are defined to work with the standard JavaScript defined in the ScriptFile. If you change them, you may also need to change and/or add script functions. The main element initially has the "display" attribute set to "none", so that if the scripts are not available, these pan and zoom controls are not visible and do not respond to any user events. This method does nothing if PanAndZoomControls is false, or if Scripting is false.