docs: function() {
  				var i, len;
  				if (selectedElement != null) {
  					switch (selectedElement.tagName) {
  					case 'use':
  					case 'image':
  					case 'foreignObject':
  						break;
  					case 'g':
  					case 'a':
  						// Look for common styles
  						var gWidth = null;
  						var childs = selectedElement.getElementsByTagName('*');
  						for (i = 0, len = childs.length; i < len; i++) {
  							var swidth = childs[i].getAttribute('stroke-width');
  
  							if (i === 0) {
  								gWidth = swidth;
  							} else if (gWidth !== swidth) {
  								gWidth = null;
  							}
  						}
  
  						$('#stroke_width').val(gWidth === null ? '' : gWidth);
  
  						paintBox.fill.update(true);
  						paintBox.stroke.update(true);
  
  						break;
  					default:
  						paintBox.fill.update(true);
  						paintBox.stroke.update(true);
  
  						$('#stroke_width').val(selectedElement.getAttribute('stroke-width') || 1);
  						$('#stroke_style').val(selectedElement.getAttribute('stroke-dasharray') || 'none');
  
  						var attr = selectedElement.getAttribute('stroke-linejoin') || 'miter';
  
  						if ($('#linejoin_' + attr).length != 0) {
  							setStrokeOpt($('#linejoin_' + attr)[0]);
  						}
  
  						attr = selectedElement.getAttribute('stroke-linecap') || 'butt';
  
  						if ($('#linecap_' + attr).length != 0) {
  							setStrokeOpt($('#linecap_' + attr)[0]);
  						}
  					}
  				}
  
  				// All elements including image and group have opacity
  				if (selectedElement != null) {
  					var opac_perc = ((selectedElement.getAttribute('opacity')||1.0)*100);
  					$('#group_opacity').val(opac_perc);
  					$('#opac_slider').slider('option', 'value', opac_perc);
  					$('#elem_id').val(selectedElement.id);
  				}
  
  				updateToolButtonState();
  			}