/*****************************************************************************
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 VistaSansBold = { src: '/assets/sifr3/VistaSansBold.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(VistaSansBold);

// 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>.

//	Header 1

function doSifr() {
    sIFR.replace(VistaSansBold, {
        selector: 'h1.blue,span.h1blue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#09759D; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #09759D; }',
    'a:hover { color: #09759D; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.lightblue,span.h1lightblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#0B96CA; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #0B96CA; }',
    'a:hover { color: #0B96CA; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
    selector: 'h1.darkblue, .pgf_content h1, span.h1darkblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#212D92; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #212D92; }',
    'a:hover { color: #212D92; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.gray, span.h1gray'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#666666; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #666666; }',
    'a:hover { color: #666666; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.green, span.h1green'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.lightgreen, span.h1lightgreen'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#5BBF21; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #5BBF21; }',
    'a:hover { color: #5BBF21; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.orange, span.h1orange'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#FF6600; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FF6600; }',
    'a:hover { color: #FF6600; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.white, span.h1white'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:23px; color:#FFFFFF; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FFFFFF; }',
    'a:hover { color: #FFFFFF; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h1.white_large, span.h1white_large'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:26px; color:#FFFFFF; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FFFFFF; }',
    'a:hover { color: #FFFFFF; }'
   ]
    });

    //	Header 2
    sIFR.replace(VistaSansBold, {
        selector: 'h2.blue, span.h2blue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#09759D; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #09759D; }',
    'a:hover { color: #09759D; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
    selector: 'h2.lightblue, span.h2lightblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#0B96CA; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #0B96CA; }',
    'a:hover { color: #0B96CA; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
    selector: 'h2.darkblue, .pgf_content h2, span.h2darkblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#212D92; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #212D92; }',
    'a:hover { color: #212D92; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h2.gray, span.h2gray'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#666666; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #666666; }',
    'a:hover { color: #666666; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h2.green, span.h2green'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h2.lightgreen, span.h2lightgreen'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#5BBF21; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #5BBF21; }',
    'a:hover { color: #5BBF21; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h2.orange, span.h2orange'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#FF6600; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FF6600; }',
    'a:hover { color: #FF6600; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h2.white, span.h2white'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#FFFFFF; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FFFFFF; }',
    'a:hover { color: #FFFFFF; }'
   ]
    });

    //	Header 3
    sIFR.replace(VistaSansBold, {
        selector: 'h3.blue, span.h3blue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#09759D; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #09759D; }',
    'a:hover { color: #09759D; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.lightblue, span.h3lightblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#0B96CA; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #0B96CA; }',
    'a:hover { color: #0B96CA; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
    selector: 'h3.darkblue, .pgf_content h3, span.h3darkblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#212D92; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #212D92; }',
    'a:hover { color: #212D92; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.gray, span.h3gray'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#666666; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #666666; }',
    'a:hover { color: #666666; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.green, span.h3green'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.lightgreen, span.h3lightgreen'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#5BBF21; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #5BBF21; }',
    'a:hover { color: #5BBF21; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.orange, span.h3orange'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#FF6600; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FF6600; }',
    'a:hover { color: #FF6600; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h3.white, span.h3white'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#FFFFFF; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FFFFFF; }',
    'a:hover { color: #FFFFFF; }'
   ]
    });

    //	Header 4
    sIFR.replace(VistaSansBold, {
        selector: 'h4.blue, span.h4blue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#09759D; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #09759D; }',
    'a:hover { color: #09759D; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.lightblue, span.h4lightblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#0B96CA; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #0B96CA; }',
    'a:hover { color: #0B96CA; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
    selector: 'h4.darkblue, .pgf_content h4, span.h4darkblue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#212D92; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #212D92; }',
    'a:hover { color: #212D92; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.gray, span.h4gray'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#666666; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #666666; }',
    'a:hover { color: #666666; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.green, span.h4green'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.lightgreen, span.h4lightgreen'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#5BBF21; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #5BBF21; }',
    'a:hover { color: #5BBF21; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.orange, span.h4orange'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#FF6600; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FF6600; }',
    'a:hover { color: #FF6600; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'h4.white, span.h4white'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#FFFFFF; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #FFFFFF; }',
    'a:hover { color: #FFFFFF; }'
   ]
    });
    sIFR.replace(VistaSansBold, {
        selector: 'div#box_loggo h4.blue'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:14px; color:#FFFFFF; font-weight:normal; text-align:right;}'
   ]
    });
}

sIFR.replace(VistaSansBold, {
    selector: '.pgf_content h5'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:18px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
});
sIFR.replace(VistaSansBold, {
    selector: '.pgf_content h6'
    , wmode: 'transparent'
    , selectable: false
    , css: [
    '.sIFR-root { font-size:16px; color:#61A221; font-weight:normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #61A221; }',
    'a:hover { color: #61A221; }'
   ]
});
doSifr();
