/*****************************************************************************
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.
*****************************************************************************/

var apocrypha = { src: '/images/uploads/swf/apocrypha.swf' };
var interstatecond = { src: '/images/uploads/swf/interstateregcond.swf' };
var interstatecomp = { src: '/images/uploads/swf/interstateregcomp.swf' };

sIFR.useStyleCheck = true;

sIFR.activate(apocrypha, interstatecond, interstatecomp);

sIFR.replace(apocrypha, {
  selector: '.page-title .main',
  css: '.sIFR-root { background-color: transparent; color: #df2e36; leading: -15; padding: 0; }', 
  wmode: 'transparent',
  tuneHeight: '-18', 
  offsetTop: '-10'
});

sIFR.replace(interstatecomp, {
  selector: '.page-title .sup',
  css: '.sIFR-root { background-color: transparent; color: #f6580f; leading: -15; text-transform: uppercase; }',
  wmode: 'transparent'
});

sIFR.replace(apocrypha, {
  selector: '#home-intro h2',
  css: '.sIFR-root { background-color: transparent; color: #333333; leading: -15; }', 
  wmode: 'transparent'
});

sIFR.replace(apocrypha, {
  selector: '.profile h1.fn',
  css: '.sIFR-root { background-color: transparent; color: #df2e36; leading: -15; padding: 0; }', 
  wmode: 'transparent',
  tuneHeight: '-18', 
  offsetTop: '-10'
});

sIFR.replace(interstatecond, {
  selector: '#responses #elicitation',
  css: '.sIFR-root { background-color: #e22e37; color: #ffffff; font-weight: bold; }'
});

sIFR.replace(interstatecond, {
  selector: '#responses h3.resp-count, #respond label, #fastreply legend span',
  css: '.sIFR-root { background-color: transparent; color: #e22e37; font-weight: bold; text-transform: uppercase; }'
});

sIFR.replace(apocrypha, {
  selector: '#fm-quiz legend span',
  css: '.sIFR-root { background-color: transparent; color: #0e8f9e; leading: -15; }'
});
