/*****************************************************************************
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 helvetica.
var rotis = { src: '/flash/rotis.swf' };

// sIFR.useStyleCheck = true;

// Next, activate sIFR:

sIFR.activate(rotis);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/helvetica.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()`!


sIFR.replace(rotis, {
  selector: '.landingPageElement h3',
  wmode: 'transparent',
  css: ['.sIFR-root { color: #FFFFFF; }',
  'a { text-decoration: none; }',
  'a:link { color: #FFFFFF; }',
  'a:hover { color: #FFFFFF; }',
  'a:visited { color: #FFFFFF; }']
});

sIFR.replace(rotis, {
  selector: '.homeElement h3',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFFFFF; }'
});

sIFR.replace(rotis, {
  selector: '.homeElement span.homeFeatureHeading',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFFFFF; }'
});

sIFR.replace(rotis, {
  selector: '.blue h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #233d88; }'
});

sIFR.replace(rotis, {
  selector: '.yellow h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFAE02; }'
});

sIFR.replace(rotis, {
  selector: '.green h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #78B943; }'
});

sIFR.replace(rotis, {
  selector: '.orange #bookVisitContainer h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFFFFF; }'
});

sIFR.replace(rotis, {
  selector: '.orange #quickQuoteContainer h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFFFFF; }'
});

sIFR.replace(rotis, {
  selector: '.orange #brochureRequestContainer h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #FFFFFF; }'
});

sIFR.replace(rotis, {
  selector: '.orange h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #F8734A; }'
});

sIFR.replace(rotis, {
  selector: '.pink h1',
  wmode: 'transparent',
  css: '.sIFR-root { color: #DC7497; }'
});