code: function showPanel(on) {
  		$('#marker_panel').toggle(on);
  
  		if(on) {
  			var el = selElems[0];
  			var val;
  			var ci;
  
  			$.each(mtypes, function(i, pos) {
  				var m = getLinked(el, "marker-" + pos);
  				var txtbox = $('#' + pos + '_marker');
  				if (!m) {
  					val = '\\nomarker';
  					ci = val;
  					txtbox.hide(); // hide text box
  				} else {
  					if (!m.attributes.se_type) {return;} // not created by this extension
  					val = '\\' + m.attributes.se_type.textContent;
  					ci = val;
  					if (val === '\\textmarker') {
  						val = m.lastChild.textContent;
  						//txtbox.show(); // show text box
  					} else {
  						txtbox.hide(); // hide text box
  					}
  				}
  				txtbox.val(val);				
  				setIcon(pos,ci);
  			});
  		}
  	}
docs: toggles context tool panel off/on sets the controls with the selected element's settings