/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

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 avenir = {src: 'include/stylesheets/fonts/avenirltstd-black.swf'};

sIFR.useStyleCheck = true;
sIFR.activate(avenir);

sIFR.replace(avenir, {
  selector: 'div#content div#spread_nav div.navigation h4',
  transparent: true,
  fitExactly: true,
  tuneWidth: 1,
  forceSingleLine: true,
  css: '.sIFR-root { color: #6b3b3b; text-transform: uppercase; }'
});
