code: function(e)
  	{
  		if ((e.type == 'touchstart' || e.type == 'touchmove') && e.touches != null && e.touches[0] != null)
  		{
  			e = e.touches[0];
  		}
  		else if (e.type == 'touchend' && e.changedTouches != null && e.changedTouches[0] != null)
  		{
  			e = e.changedTouches[0];
  		}
  		
  		return e;
  	}
docs: Function: getMainEvent
  
  Returns the touch or mouse event that contains the mouse coordinates.