function SwatchSelector(id, xOff, yOff){  if (id != null)  {    SwatchSelector.init(this, id, xOff, yOff);  }}new SwatchSelector(null, null, null);SwatchSelector.prototype = new SelectorMenu(null, null, null);SwatchSelector.prototype.superShow = SelectorMenu.prototype.show;SwatchSelector.hide = SelectorMenu.hide;SwatchSelector.h = SelectorMenu.h;SwatchSelector.selectorArray = SelectorMenu.selectorArray;SwatchSelector.selections = SelectorMenu.selections;SwatchSelector.init = function(obj, id, xOff, yOff){  if (id != null)  {    SelectorMenu.init(obj, id, xOff, yOff);    obj.previewSwatchObjID = null;    obj.previewObjID = null;    obj.bg = false;    obj.formEl = null;  }  }SwatchSelector.prototype.show = function(selectorID){  var a = SwatchSelector.selections[selectorID];  if (a != null)  {    this.previewSwatchImg = a['previewSwatchImg'];    this.formEl = a['formEl'];    this.dispEl = a['dispEl'];    this.srcEl = a['srcEl'];    this.OIRForms = a['OIRForms'];    this.superShow(selectorID);  }}SwatchSelector.prototype.choose = function(value, label, src){  var img, func;  if ((this.previewSwatchImg != null) &&       (this.dispEl != null) &&       SelectorMenu.sane)  {    this.previewSwatchImg.src = src;    this.previewSwatchImg = null;    this.dispEl.value = label;    this.dispEl = null;  }  if (this.formEl != null)  {    this.formEl.value = value;    this.formEl = null;  }    if (this.srcEl != null)  {    this.srcEl.value = src;    this.srcEl = null;  }    if (this.OIRForms != null)  {    this.OIRForms.onchange();    this.OIRForms = null;  }    this.hide();}SwatchSelector.choose = function(id, value, label, src){  var o;  if ((o = SwatchSelector.h[id]) != null)  {    o.choose(value, label, src);  }}SwatchSelector.show = function(id, selectorID){  var obj;  if ((obj = SwatchSelector.h[id]) != null)  {    obj.show(selectorID);  }}
