code: function(url) {
          var matches = OpenLayers.Util.isEquivalentUrl(this.url, url);
          if(!matches && this.layerUrls) {
              for(var i=0, len=this.layerUrls.length; i<len; ++i) {
                  if(OpenLayers.Util.isEquivalentUrl(this.layerUrls[i], url)) {
                      matches = true;
                      break;
                  }
              }
          }
          return matches;
      }
docs: Method: urlMatches
  Test to see if the provided url matches either the control <url> or one
  of the <layerUrls>.
  
  Parameters:
  url - {String} The url to test.
  
  Returns:
  {Boolean} The provided url matches the control <url> or one of the
  <layerUrls>.