anchor.diff:  
   --%><cms:template element="start_directedit_disabled">
   <!-- EDIT BLOCK START -->
  -<div id="<%= editId %>" class="ocms_de_norm">
  -<span class="ocms_de_bt" onmouseover="activateOcms('<%=editId%>');" onmouseout="deactivateOcms('<%=editId%>');">
  -<table border="0" cellpadding="1" cellspacing="0">
  +<script type="text/javascript">
  +<!--
  +	registerButtonOcms("<%= editId %>");
  +//-->
  +</script>
  +<div class="ocms_de_bt" id="buttons_<%= editId %>">
  +<span onmouseover="activateOcms('<%=editId%>');" onmouseout="deactivateOcms('<%=editId%>');">
  +<table border="0" cellpadding="0" cellspacing="0" id="table_<%= editId %>">
   <tr>
  -	<td style="vertical-align: top;"><span unselectable="on" class="ocms_disabled"><%
  +	<td class="ocms_de"><span unselectable="on" class="ocms_disabled"><%
      if (editButtonStyle == 1) { 
   	%><span unselectable="on" class="ocms_combobutton" style="background-image: url('<%= wp.getSkinUri() %>buttons/directedit_in.png');">&nbsp;<%= wp.key("editor.frontend.button.locked") %></span><%
      } else if (editButtonStyle == 2) { 
  
positive.code: </tr>
  </table>
  </span>
  </cms:template><%--
  
  --%><cms:template element="end_directedit_enabled">
  
negative.code: 	}
  	alert("Unknown form action [" + id + "/" + action + "]");
  }
  function registerButtonOcms(id) {
  	deButtonsOcms[deButtonsOcms.length] = id; 
  	clearTimeout(ocms_btTimeout);
  	ocms_btTimeout = setTimeout("showButtonsOcms()", 400);
  }
  function showButtonsOcms() {	
  		
  	var visStyle = "visible";
  	if (!visibleOcmsButtons) {
  		visStyle = "hidden";
  	}
  		
  	for (var i = 0; i<deButtonsOcms.length; i++) {
  		var btid = deButtonsOcms[i];
  		var deDiv = document.getElementById(btid);
  		var deButton = document.getElementById("buttons_" + btid);
  		var deTable = document.getElementById("table_" + btid);
  		var x = findPosXOcms(deDiv);
  		var y = findPosYOcms(deDiv);
  		var w1 = deDiv.offsetWidth; // width of surrounding div
  		var w2 = deTable.offsetWidth; // width of button table
  		
  		x += (w1 - w2);		
  		deButton.style.left = x + "px";
  		deButton.style.top =  y + "px";				
  		deButton.style.visibility = visStyle;
  	}
  }
  function findPosXOcms(obj) {
      var curleft = 0; 
      if (obj.offsetParent) {
          while (obj.offsetParent) {
              curleft += obj.offsetLeft - obj.scrollLeft; 
              obj = obj.offsetParent; 
          } 
      } else if (obj.x) {
          curleft += obj.x; 
      }
      return curleft; 
  }
  function findPosYOcms(obj) {
      var curtop = 0; 
      if (obj.offsetParent) {
          while (obj.offsetParent) { 
              curtop += obj.offsetTop - obj.scrollTop; 
              obj = obj.offsetParent; 
          }
      } else if (obj.y) {
          curtop += obj.y;
      }
      return curtop;
  }
  function toggleVisibleOcms() {
  	if (visibleOcmsButtons) {
  		visibleOcmsButtons = false;
  	} else {
  		visibleOcmsButtons = true;
  	}
  	showButtonsOcms();
  }
  function keyUpOcms(evt) {
  	if (!evt) {
  		evt = window.event;
  	}
  	if ((evt.type == "keyup") && (evt.keyCode == 32) && evt.ctrlKey) {
  		toggleVisibleOcms();
  	}
  }
  //-->
  </script>
  </cms:template>