/*****************************************************************************
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 rockwell = { src: 'http://www.multistory.org.uk/wp-content/themes/multistory/fonts/rockwell.swf' };

sIFR.activate(rockwell);

sIFR.replace(rockwell, {
  selector: '#intro p, .post h2, .post h3, .main-title',
  css: [
  	'.sIFR-root { color: #945f7b; font-weight: bold; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#project-description p',
  css: [
  	'.sIFR-root { color: #ffffff; font-weight: bold; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#latest-news h2, #news-archive h2, #commentform label, .cform label',
  css: [
  	'.sIFR-root { color: #945f7b; font-weight: bold; text-transform: uppercase; }, .sIFR-root a { color: #945f7b; font-weight: bold; text-transform: uppercase; text-decoration: none; }, .sIFR-root a:hover { color: #000000; font-weight: bold; text-transform: uppercase; text-decoration: none; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#news-list h3',
  css: [
  	'.sIFR-root a { color: #945f7b; font-weight: bold; text-decoration: none; cursor: pointer; }, .sIFR-root a:hover { color: #000000; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#homepage-projects a.more, #projects-list .more',
  css: [
  	'.sIFR-root { color: #945f7b; font-weight: bold; cursor: pointer; text-transform: uppercase; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#newsletter h2',
  css: [
  	'.sIFR-root { color: #000000; font-weight: bold; cursor: pointer; }'
  ],
  wmode: 'transparent'
});
sIFR.replace(rockwell, {
  selector: '#homepage-projects h3',
  css: [
  	'.sIFR-root a { color: #945f7b; font-weight: bold; text-decoration: none; cursor: pointer; }, .sIFR-root a:hover { color: #000000; }'
  ],
  wmode: 'transparent'
});
