/*****************************************************************************
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.
*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.
var trajan = { src: '/template/style/flash/trajan.swf' };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

// sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(trajan);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, garamond, rockwell);
//
// Remember, there must be *only one* `sIFR.activate()`!

// Now we can do the replacements. You can do as many as you like, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// The second argument determines what the Flash text looks like. The main text
// is styled via the `.sIFR-root` class. Here we've specified `background-color`
// of the entire Flash movie to be a light grey, and the `color` of the text to
// be red. Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.
sIFR.replace(trajan, { selector: '#home p.subtitle', css: '.sIFR-root { color: #FFFFFF; letter-spacing:5; text-align:center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#home h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#home h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#home h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#home #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#home #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#intro p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#sydney p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#sydney h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#sydney h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#sydney h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#sydney #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#sydney #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#battle p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#battle p.subtitle', css: '.sIFR-root { color: #F2F2F2; letter-spacing:5; text-align:center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#battle h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#battle h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#battle h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#battle #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#battle #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#conspiracy p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#conspiracy h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#conspiracy h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#conspiracy h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#conspiracy #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#conspiracy #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#research p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#research h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#research h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#research h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#research #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#research #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#mearns p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#mearns h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#mearns h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#mearns h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#mearns #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#mearns #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#cole p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#cole h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#cole h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#cole h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#cole #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#cole #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#act p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#act p.subtitle', css: '.sIFR-root { color: #7E8393; letter-spacing:5; text-align:center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#act h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#act h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#act h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#act #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#act #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#timeline p.subtitle', css: '.sIFR-root { color: #FFFFFF; letter-spacing:5; text-align:center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#timeline h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#timeline h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#timeline h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#timeline #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#timeline #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#vessels p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#vessels h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#vessels h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#vessels h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#vessels #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent'});
sIFR.replace(trajan, { selector: '#vessels #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent'});

// -------------------------------------

sIFR.replace(trajan, { selector: '#gallery p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#gallery h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#gallery h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#gallery h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#gallery #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#gallery #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#oral p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#oral h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#oral h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#oral h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#oral #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#oral #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#reading p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#reading h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#reading h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#reading h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#reading #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#reading #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#thanks p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#thanks h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#thanks h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#thanks h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#thanks #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#thanks #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: '#test p.title', css: '.sIFR-root { color: #FFFFFF; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#test h1', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#test h2', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#intro h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: '#test #primaryContent .timeline td.redline p', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#test #primaryContent blockquote p', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });

// -------------------------------------

sIFR.replace(trajan, { selector: 'h1', css: '.sIFR-root { color: #000000; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: 'h2', css: '.sIFR-root { color: #000000; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: 'h3', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent' });

  

sIFR.replace(trajan, { selector: '#secondaryContent dt span', css: '.sIFR-root { color: #FFFFFF; text-align: left; }', wmode: 'transparent' });

sIFR.replace(trajan, { selector: 'p.title', css: '.sIFR-root { color: #7E8393; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: 'p.level', css: '.sIFR-root { color: #7E8393; text-align: center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: 'p.subtitle', css: '.sIFR-root { color: #000000; letter-spacing:5; text-align:center; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#enewsletter p.head', css: '.sIFR-root { color: #FFFFFF; text-align:left; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#primaryContent .timelinebox p span.date', css: '.sIFR-root { color: #FFFFFF; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#primaryContent .timeline td.redline p', css: '.sIFR-root { color: #000000; text-align:right; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#primaryContent blockquote p', css: '.sIFR-root { color: #666666; text-align:left; }', wmode: 'transparent' });
sIFR.replace(trajan, { selector: '#primaryContent p.score', css: '.sIFR-root { color: #666666; text-align:left; }', wmode: 'transparent' });

