parseSelector.pseudoClasses = {
  'not': function(nodes, selector) {
    var result = [];
    each: for(var i = 0, node; i < nodes.length; i++) {
      node = nodes[i];
      var ignore = parseSelector(selector, node.parentNode);
      for(var j = 0; j < ignore.length; j++) {
        if(ignore[j] == node) continue each;
      }
      result.push(node);
    }
    return result;
  }
}

var theserif = {
  src: '/images/flash/theserif.swf'
};

var theserif_bold = {
  src: '/images/flash/theserif-bold.swf'
};

var theserif_caps = {
  src: '/images/flash/theserif-caps.swf'
};

sIFR.activate(theserif, theserif_bold, theserif_caps);

sIFR.replace(theserif, {
  selector: 'h1:not(.img), h1:not(.section), h1:not(.ask)'
  ,css: [
      '.sIFR-root { color: #783f06; leading: 0; }'
     
    ],
      wmode: 'transparent'
});

sIFR.replace(theserif, {
  selector: 'div.main-feature h1'
  ,css: [
      '.sIFR-root { color: #783f06; leading: 0; }'
    ],
      wmode: 'transparent'
});

sIFR.replace(theserif_bold, {
 selector: 'div.double h3, div.story-comments h3, div.story-cat h3, div.story-body h3, h3.sub,table.compare th.section'
  ,css: [
      '.sIFR-root { color: #783f06; leading: 0; }'
     
    ],
      wmode: 'transparent'
});


sIFR.replace(theserif, {
  selector: 'ol.jofc-lst h3'
  ,css: [
      '.sIFR-root { color: #202f02; leading: 0; background-color: #dcf4a6; }'
     
    ],
      wmode: 'transparent'
});

sIFR.replace(theserif_caps, {
  selector: 'div.double h3.alt'
  ,css: [
      '.sIFR-root { color: #783f06; leading: 0; text-transform: uppercase; letter-spacing: 1; }'
     
    ],
      wmode: 'transparent'
});

sIFR.replace(theserif_caps, {
  selector: '#secondary h3'
  ,css: [
      '.sIFR-root { color: #00396d; leading: 0; text-transform: uppercase; letter-spacing: 1; background-color: #eff9fd; }'
     
    ],
      wmode: 'transparent'
});

sIFR.replace(theserif_caps, {
  selector: '.masthead'
  ,css: [
      '.sIFR-root { color: #783f06; leading: 0; text-transform: uppercase; letter-spacing: 1; }'
     
    ],
      wmode: 'transparent'
});


sIFR.replace(theserif_caps, {
  selector: 'div.story h1.section'
  ,css: [
      '.sIFR-root {leading: 0; text-transform: uppercase; letter-spacing: 1; }'
     
    ],
      wmode: 'transparent'
});

