/*****************************************************************************
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 garamond = {
    src: '_flash/garamond.swf'
  };

  var helvetica = {
    src: '_flash/helvetica_ultra.swf'
  };

  // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.

  sIFR.useStyleCheck = true;
  sIFR.activate(garamond, helvetica);
  
  sIFR.replace(garamond, {
    selector: 'h1.white'
    ,css: [
      '.sIFR-root { leading: 0; text-align: left; font-weight: normal; background-color: #FFFFFF; color: #FFFFFF; }'
    ]
  });  
  
  sIFR.replace(garamond, {
    selector: 'h1'
    ,css: [
      '.sIFR-root { leading: 0; text-align: left; font-weight: normal; background-color: #FFFFFF; color: #333333; }'
    ]
  });
  
  sIFR.replace(helvetica, {
    selector: 'span.quote'
    ,css: [
      '.sIFR-root { leading: 0; text-align: left; font-weight: normal; background-color: #FFFFFF; color: #df0000; }'
    ]
  }); 
  
  sIFR.replace(garamond, {
    selector: 'span.quote_author'
    ,css: [
      '.sIFR-root { leading: 0; text-align: left; font-weight: normal; background-color: #FFFFFF; color: #df0000; }'
    ]
  });    