/*****************************************************************************
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 centurygothic = { src: '/uploads/flash/centurygothic.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;
sIFR.fitExactly = true;

// Next, activate sIFR:
sIFR.activate(centurygothic);

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

// Navigation - START
sIFR.replace(centurygothic, {
  selector: '.nav-main-item',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #368abd; font-weight:bold; letter-spacing:1; font-size:13px; padding:5px 0; border-bottom: 1px solid #368abd; text-transform:uppercase; }',
        'a { color: #666666; font-size:12px; font-weight:normal; text-decoration: none; text-transform:uppercase; }',
        'a:link { color: #666666; font-size:12px; font-weight:normal; }',
        'a:hover { color: #368abd; font-size:13px; font-weight:bold; letter-spacing:1; }'],
  tuneHeight: '-4',
  fitExactly: 'false',
  wmode: 'transparent'
});
/*
sIFR.replace(centurygothic, {
  selector: '.sub-nav-main-item',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #368abd; font-weight:bold; letter-spacing:1; font-size:11px; padding:8px 0; border-bottom: 1px solid #368abd; text-transform:uppercase; }',
        'a { color: #666666; font-size:11px; font-weight:normal; text-decoration: none; text-transform:uppercase; }',
        'a:link { color: #666666; font-size:11px; font-weight:normal; }',
        'a:hover { color: #368abd; font-size:11px; font-weight:bold; letter-spacing:1; }'],
  fitExactly: 'false',
  wmode: 'transparent'
});
*/
sIFR.replace(centurygothic, {
  selector: '.sub-nav-main-item-current',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #368abd; font-weight:bold; letter-spacing:1; font-size:11px; padding:8px 0; border-bottom: 1px solid #368abd; text-transform:uppercase; }',
        'a { color: #368abd; font-size:11px; font-weight:bold; text-decoration: none; text-transform:uppercase; }',
        'a:link { color: #368abd; font-size:11px; font-weight:bold; }',
        'a:hover { color: #368abd; font-size:11px; font-weight:bold; letter-spacing:1; }'],
  fitExactly: 'false',
  wmode: 'transparent'
});

// Navigation - END

// Page styles - START
sIFR.replace(centurygothic, {
  selector: '.page-title',
  css: '.sIFR-root { background-color: #FFFFFF; color: #1D417E; font-size:24px; font-weight:normal; }',
  tuneHeight: '-6',
  antiAliasType: 'normal',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.image-caption',
  css: '.sIFR-root { background-color: #FFFFFF; color: #1D417E; font-size:24px; font-weight:normal; }',
  tuneHeight: '-6',
  antiAliasType: 'normal',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.light-blue-heading',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #368abd; font-size:13px; text-transform:uppercase;  }'],
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.main-image-caption',
  css: '.sIFR-root { background-color: #FFFFFF; color: #1D417E; font-size:24px; font-weight:normal; letter-spacing:1; }',
  tuneHeight: '-6',
  antiAliasType: 'normal',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.nav-caption',
  css: '.sIFR-root { background-color: #FFFFFF; color: #368abd; font-size:13px; font-weight:bold; letter-spacing:1; }',
  tuneHeight: '-4',
  antiAliasType: 'normal',
  wmode: 'transparent'
});
// Page styles - END

// Home image - START
sIFR.replace(centurygothic, {
  selector: '.image-title',
  css: '.sIFR-root { background-color: #2E71AB; color: #FFFFFF; font-size:34px; font-weight:normal; text-transform:uppercase; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
sIFR.replace(centurygothic, {
  selector: '.image-subtitle',
  css: '.sIFR-root { background-color: #84AACF; color: #FFFFFF; font-size:16px; font-weight:normal; text-transform:uppercase; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
// Home image - END

// People - START
sIFR.replace(centurygothic, {
  selector: '.people-name',
  css: '.sIFR-root { background-color: #FFFFFF; font-size:35px; color:#999999; line-height:40px; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
sIFR.replace(centurygothic, {
  selector: '.people-position',
  css: '.sIFR-root { background-color: #FFFFFF; font-size:14px; color:#368abd; line-height:18px; text-transform:uppercase; }',
  tuneHeight: '-4',
  wmode: 'transparent'
});
// People - END

// Work panel - START
sIFR.replace(centurygothic, {
  selector: '.testimonial-panel-title',
  css: '.sIFR-root { background-color: #2E71AB; font-size:14px; color:#FFFFFF; line-height:16px; padding-bottom:20px; text-transform:uppercase; }',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.testimonial-panel-heading',
  css: '.sIFR-root { background-color: #2E71AB; font-size:40px; color:#FFFFFF; line-height:50px; padding-bottom:20px; text-transform:uppercase; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
sIFR.replace(centurygothic, {
  selector: '.testimonial-panel-copy',
  css: '.sIFR-root { background-color: #2E71AB; font-size:26px; color:#FFFFFF; line-height:36px; padding-bottom:25px; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
// Work panel - END

// Values panel - START
sIFR.replace(centurygothic, {
  selector: '.values-panel-title',
  css: '.sIFR-root { background-color: #2E71AB; font-size:14px; color:#FFFFFF; line-height:16px; padding-bottom:20px; text-transform:uppercase; }',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.values-panel-heading',
  css: '.sIFR-root { background-color: #2E71AB; font-size:40px; color:#FFFFFF; line-height:50px; padding-bottom:20px; text-transform:uppercase; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
sIFR.replace(centurygothic, {
  selector: '.values-panel-copy',
  css: '.sIFR-root { background-color: #2E71AB; font-size:26px; color:#FFFFFF; line-height:36px; padding-bottom:25px; }',
  wmode: 'transparent',
  antiAliasType: 'normal'
});
// Values panel - END

// News - START
sIFR.replace(centurygothic, {
  selector: '.NewsSummaryPostdate',
  css: '.sIFR-root { background-color: #FFFFFF; color: #1c407d; font-size:13px; }',
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.NewsSummaryLink',
  css: ['.sIFR-root { background-color: #ffffff; color: #368abd; font-size:20px; font-weight:bold; text-transform:uppercase; }',
        'a { color: #666666; font-weight:bold; text-decoration: none; text-transform:uppercase; }',
        'a:link { color: #368abd; }',
        'a:hover { color: #999999; padding:5px 0; border-bottom: 1px solid #368abd; }'],
  wmode: 'transparent'
});
// News - END

// Blog - START
sIFR.replace(centurygothic, {
  selector: '.blogs-date',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #666666; font-size:13px; }',
        'a { color: #666666; text-decoration: none; }',
        'a:link { color: #368abd; }',
        'a:hover {  color: #368abd; text-decoration: underline; }'],
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.blogs-title',
  css: ['.sIFR-root { background-color: #ffffff; color: #999999; font-size:40px; }',
        'a { color: #999999; text-decoration: none; }',
        'a:link { color: #368abd; }',
        'a:hover { color: #999999; padding-bottom:15px; }'],
  wmode: 'transparent'
});
sIFR.replace(centurygothic, {
  selector: '.blogs-small-title',
  css: ['.sIFR-root { background-color: #ffffff; color: #999999; font-size:18px; }',
        'a { color: #999999; text-decoration: none; }',
        'a:link { color: #368abd; }',
        'a:hover { color: #999999; }'],
  wmode: 'transparent'
});
// Blog - END

// Breadcrumbs - START
sIFR.replace(centurygothic, {
  selector: '.breadcrumb-title',
  css: ['.sIFR-root { background-color: #FFFFFF; color: #368abd; font-size:12px; text-transform:uppercase; white-space:nowrap; width:300px; }',
        'a { color: #368abd; font-size:12px; text-decoration: none; text-transform:uppercase; white-space:nowrap; }',
        'a:link { color: #368abd; white-space:nowrap; }',
        'a:hover { color: #368abd; text-decoration: underline; white-space:nowrap; }'],
  wmode: 'transparent'
});
// Breadcrumbs - END