code: function OnvifManager() {
  	this.ws = null; // WebSocket object
  	this.el = { // jQuery objects for the HTML elements
  		'frm_con' : $('#connect-form'),
  		'sel_dev' : $('#connect-form select[name="device"]'),
  		'inp_usr' : $('#connect-form input[name="user"]'),
  		'inp_pas' : $('#connect-form input[name="pass"]'),
  		'btn_con' : $('#connect-form button[name="connect"]'),
  		'div_pnl' : $('#connected-device'),
  		'img_snp' : $('#connected-device img.snapshot'),
  		'btn_dcn' : $('#connected-device button[name="disconnect"]'),
  		'mdl_msg' : $('#message-modal'),
  		'ptz_spd' : $('input[name="ptz-speed"]'),
  		'btn_hme' : $('#connected-device div.ptz-pad-box button.ptz-goto-home'),
  		'ptz_pad' : $('#connected-device div.ptz-pad-box'),
  		'zom_in'  : $('#connected-device div.ptz-zom-ctl-box button.ptz-zom-in'),
  		'zom_out' : $('#connected-device div.ptz-zom-ctl-box button.ptz-zom-ot'),
  	};
  	this.selected_address = '';
  	this.device_connected = false;
  	this.ptz_moving = false;
  	this.snapshot_w = 400;
  	this.snapshot_h = 300;
  }
docs: /*-------------------------------------------------------------------
  Constructor
  ----------------------------------------------------------------