code: function(node, type) {
  
          //split type
          var subType = type;
          var splitIndex = subType.indexOf(":");
          if (splitIndex != -1) {
              subType = subType.substr(splitIndex+1);
          }
  
          //split nodeName
          var nodeName = node.nodeName;
          splitIndex = nodeName.indexOf(":");
          if (splitIndex != -1) {
              nodeName = nodeName.substr(splitIndex+1);
          }
  
          return (subType == nodeName);
      }
docs: Method: nodeTypeCompare
  Determine whether a node is of a given type
  
  Parameters:
  node - {DOMElement} An VML element
  type - {String} Kind of node
  
  Returns:
  {Boolean} Whether or not the specified node is of the specified type