with (dojo.html.gravity) { return ((mouse.x < nodecenterx ? WEST : EAST) | (mouse.y < nodecentery ? NORTH : SOUTH)); } 
with (dojo.html.gravity) { return ((mouse.x < nodecenterx ? WEST : EAST) | (mouse.y < nodecentery ? NORTH : SOUTH)); } 
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/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js