 container
				var graph = new mxGraph(container);
				graph.setConnectable(true);
				
				// Defines the tolerance before removing the icons
				var iconTolerance = 20;

				// Shows icons if the mouse is over a cell
				graph.addMouseListener(
				{
				    currentState: null,
				    currentIconSet: null,
				    mouseDown: function(sender, me)
				    {
				    	// Hides icons on mouse down
			        	if (this.currentState != null)
			        	{
			          		this.dragLeave(me.getEvent(), this.curren