Selectors.Filter.match=function(C,E,G){G=G||{};if(E.id&&E.id!=C.id){return false;}if(E.tag&&E.tag!="*"&&E.tag!=C.tagName.toLowerCase()){return false;}var B; for(B=E.classes.length;B--;B){if(!C.className||!C.className.contains(E.classes[B]," ")){return false;}}for(B=E.attributes.length;B--;B){var D=E.attributes[B]; var A=Element.prototype.getProperty.call(C,D[0]);if(!A){return false;}if(!D[1]){continue;}var F;switch(D[1]){case"=":F=(A==D[2]);break;case"*=":F=(A.contains(D[2])); break;case"^=":F=(A.substr(0,D[2].length)==D[2]);break;case"$=":F=(A.substr(A.length-D[2].length)==D[2]);break;case"!=":F=(A!=D[2]);break;case"~=":F=A.contains(D[2]," "); break;case"|=":F=A.contains(D[2],"-");}if(!F){return false;}}for(B=E.pseudos.length;B--;B){if(!E.pseudos[B].parser.filter.call(C,E.pseudos[B].argument,G)){return false; }}return true;};Selectors.Method=(Browser.Features.xpath)?Selectors.XPath:Selectors.Filter;Element.implement({match:function(A){return(!A||Selectors.Filter.match(this,Selectors.parse(A))); 
Selectors.Filter.match = function(el, params, Local){ Local = Local || {};  if (params.id && params.id != el.id) return false; if (params.tag && params.tag != '*' && params.tag != el.tagName.toLowerCase()) return false;  var i;  for (i = params.classes.length; i--; i){ if (!el.className || !el.className.contains(params.classes[i], ' ')) return false; }  for (i = params.attributes.length; i--; i){ var bits = params.attributes[i]; var result = Element.prototype.getProperty.call(el, bits[0]); if (!result) return false; if (!bits[1]) continue; var condition; switch (bits[1]){ case '=': condition = (result == bits[2]); break; case '*=': condition = (result.contains(bits[2])); break; case '^=': condition = (result.substr(0, bits[2].length) == bits[2]); break; case '$=': condition = (result.substr(result.length - bits[2].length) == bits[2]); break; case '!=': condition = (result != bits[2]); break; case '~=': condition = result.contains(bits[2], ' '); break; case '|=': condition = result.contains(bits[2], '-'); }  if (!condition) return false; }  for (i = params.pseudos.length; i--; i){ if (!params.pseudos[i].parser.filter.call(el, params.pseudos[i].argument, Local)) return false; }  return true; }; 
Selectors.Filter.match=function(C,E,G){G=G||{};if(E.id&&E.id!=C.id){return false;}if(E.tag&&E.tag!="*"&&E.tag!=C.tagName.toLowerCase()){return false;}var B;for(B=E.classes.length;B--;B){if(!C.className||!C.className.contains(E.classes[B]," ")){return false;}}for(B=E.attributes.length;B--;B){var D=E.attributes[B];var A=Element.prototype.getProperty.call(C,D[0]);if(!A){return false;}if(!D[1]){continue;}var F;switch(D[1]){case"=":F=(A==D[2]);break;case"*=":F=(A.contains(D[2]));break;case"^=":F=(A.substr(0,D[2].length)==D[2]);break;case"$=":F=(A.substr(A.length-D[2].length)==D[2]);break;case"!=":F=(A!=D[2]);break;case"~=":F=A.contains(D[2]," ");break;case"|=":F=A.contains(D[2],"-");}if(!F){return false;}}for(B=E.pseudos.length;B--;B){if(!E.pseudos[B].parser.filter.call(C,E.pseudos[B].argument,G)){return false;}}return true;};Selectors.Method=(Browser.Features.xpath)?Selectors.XPath:Selectors.Filter;Element.implement({match:function(A){return(!A||Selectors.Filter.match(this,Selectors.parse(A)));
5086	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5086/7e4a07fc6f307ea369a4f7e7ce36e6336bcef4f7/mootools.js/clean/mootools.js