code: function RightClickMenu(){
  	this.type = "RightClickMenu";
  	this.options = {};
  	this.element = null;
  	this.popup = null;
  	this.isNested = false;
  	this.startMenuMouseOutTimer = 0;
  }
docs: /*
  Usage:
  new RightClickMenu().init({element: div, actions: [
  {title: "Action 1", onClick: function(a, r){console.log(a.title + ", " + r.test);}},
  {title: "Action 2", onClick: function(a, r){console.log(a.title + ", " + r.test);}}
  ]).attach();
  
  Additional options:
  - onClickOverride: will be called instead of onClick if set. Can be used to call onClick with specific parameters.
  - sort
  - visible: determine if an action is visibe. Can be a sync function returning true or false.
  
  onClick parameters:
  this: the RightClickMenu instance
  paramter 1: the action object
  paramter 2: the element which was right clicked