docs: function(type, params) {
  			var elm = this.spirit.element,
  				evt = null;
  			if (window.CustomEvent && !gui.Client.isExplorer) { // TODO: IE version???
  				evt = new CustomEvent(type, params);
  			} else {
  				params = params || {
  					bubbles: false,
  					cancelable: false,
  					detail: undefined
  				};
  				evt = document.createEvent('HTMLEvents');
  				evt.initEvent(type, params.bubbles, params.cancelable);
  			}
  			evt.eventName = type;
  			if (elm.dispatchEvent) {
  				return elm.dispatchEvent(evt);
  			} else if (elm[type]) {
  				return elm[type]();
  			} else if (elm['on' + type]) {
  				return elm['on' + type]();
  			}
  		}