               node = dojo.byId(node); var mouse = dojo.html.getCursorPosition(e); 
               node = dojo.byId(node); var mouse = dojo.html.getCursorPosition(e); 
dojo.html.gravity = function(/* HTMLElement */node, /* DOMEvent */e){  //  summary  //  Calculates the mouse's direction of gravity relative to the centre  //  of the given node.  //  <p>  //  If you wanted to insert a node into a DOM tree based on the mouse  //  position you might use the following code:  //  <pre>  //  if (gravity(node, e) & gravity.NORTH) { [insert before]; }  //  else { [insert after]; }  //  </pre>  //  //  @param node The node  //  @param e    The event containing the mouse coordinates  //  @return    The directions, NORTH or SOUTH and EAST or WEST. These  //             are properties of the function.  node = dojo.byId(node);  var mouse = dojo.html.getCursorPosition(e);  with (dojo.html) {    var absolute = getAbsolutePosition(node, true);    var bb = getBorderBox(node);    var nodecenterx = absolute.x + (bb.width / 2);    var nodecentery = absolute.y + (bb.height / 2);  }  with (dojo.html.gravity) {    return ((mouse.x < nodecenterx ? WEST : EAST) | (mouse.y < nodecentery ? NORTH : SOUTH)); //  integer  }}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/65ae7e8768a77997b7894e274bc242069a1cb027/struts_dojo.js.uncompressed.js/clean/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js