/*****************************************************************************
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 GillSans = { src: '/assets/sifr3/GillSans.swf' };
var VistaSansAltReg = { src: '/assets/sifr3/VistaSansAltReg.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(GillSans, VistaSansAltReg);

// 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
sIFR.replace(GillSans, {
    selector: '.pgf_text h1'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 22px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h1.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 26px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h1.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #70880F; font-size: 26px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #70880F; }',
    'a:hover { color: #70880F; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h1.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 26px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Header 2
sIFR.replace(GillSans, {
    selector: '.pgf_text h2'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 20px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h2.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 24px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h2.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 24px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h2.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 24px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Header 3
sIFR.replace(GillSans, {
    selector: '.pgf_text h3'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 18px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h3.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 20px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h3.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 20px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h3.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 20px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Header 4
sIFR.replace(GillSans, {
    selector: '.pgf_text h4'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 16px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h4.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 18px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h4.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 18px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h4.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 18px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Header 5
sIFR.replace(GillSans, {
    selector: '.pgf_text h5'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 14px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h5.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 16px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h5.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 16px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h5.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 16px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Header 6
sIFR.replace(GillSans, {
    selector: '.pgf_text h6'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 12px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h6.darkblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 14px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #312579; }',
    'a:hover { color: #312579; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h6.lightblue'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #02A0C7; font-size: 14px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #02A0C7; }',
    'a:hover { color: #02A0C7; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'h6.lightgreen'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #98CC37; font-size: 14px; font-weight: normal;}',
    'a { text-decoration: none; }',
    'a:link { color: #98CC37; }',
    'a:hover { color: #98CC37; }'
   ]
});

//	Theme Menu Links
sIFR.replace(GillSans, {
    selector: 'div.inner div.left div#box_thememenu ul li span'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #312579; font-size: 16px; font-weight: normal;}',
    'a:link { color: #312579; text-decoration: none; }',
    'a:hover { color: #312579; text-decoration: underline; }'
   ]
});
/* Colored Links:
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.nature span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #526F1C; font-size: 20px; font-weight: normal;}',
'a:link { color: #526F1C; text-decoration: none; }',
'a:hover { color: #526F1C; text-decoration: underline; }'
]
});
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.space span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #2B7E1F; font-size: 20px; font-weight: normal;}',
'a:link { color: #2B7E1F; text-decoration: none; }',
'a:hover { color: #2B7E1F; text-decoration: underline; }'
]
});
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.water span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #24506C; font-size: 20px; font-weight: normal;}',
'a:link { color: #24506C; text-decoration: none; }',
'a:hover { color: #24506C; text-decoration: underline; }'
]
});
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.climate span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #9B3E15; font-size: 20px; font-weight: normal;}',
'a:link { color: #9B3E15; text-decoration: none; }',
'a:hover { color: #9B3E15; text-decoration: underline; }'
]
});
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.living span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #855294; font-size: 20px; font-weight: normal;}',
'a:link { color: #855294; text-decoration: none; }',
'a:hover { color: #855294; text-decoration: underline; }'
]
});
sIFR.replace(GillSans, {
selector: 'div.inner div.left div#box_thememenu ul li.mobility span'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #221A52; font-size: 20px; font-weight: normal;}',
'a:link { color: #221A52; text-decoration: none; }',
'a:hover { color: #221A52; text-decoration: underline; }'
]
});
*/

//	Font Size Switcher
/*
sIFR.replace(VistaSansAltReg, {
selector: 'div.inner div.right div#box_fontsize span.link'
, wmode: 'transparent'
, css: [
'.sIFR-root { color: #5574A8; font-size: 18px; font-weight: normal;}',
'a:link { color: #5574A8; text-decoration: none; }',
'a:hover { color: #5574A8; text-decoration: underline; }'
]
});
*/
sIFR.replace(VistaSansAltReg, {
    selector: 'div.inner div.right div#box_fontsize span.link'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #70880F; font-size: 18px; font-weight: normal;}',
    'a:link { color: #70880F; text-decoration: none; }',
    'a:hover { color: #70880F; text-decoration: underline; }'
   ]
});
sIFR.replace(VistaSansAltReg, {
    selector: 'div.inner div.right div#box_fontsize span.active'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #000000; font-size: 18px; font-weight: normal;}',
    'a:link { color: #000000; text-decoration: none; }',
    'a:hover { color: #000000; text-decoration: underline; }'
   ]
});

// Theme Portal Menu
sIFR.replace(VistaSansAltReg, {
    selector: 'div.inner div.right div#box_readmore div.middle h3'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #26340E; font-size: 17px; font-weight: normal;}',
    'a:link { color: #26340E; text-decoration: none; }',
    'a:hover { color: #26340E; text-decoration: underline; }'
   ]
});

// Agenda Block Date
sIFR.replace(GillSans, {
    selector: 'div#agendaBlock div.hdrGreenDark23'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #638622; font-size: 22px; font-weight: normal; text-align: right;}',
    'a:link { color: #638622; text-decoration: none; }',
    'a:hover { color: #638622; text-decoration: underline; }'
   ]
});
sIFR.replace(GillSans, {
    selector: 'div#agendaBlock div.hdrGreenLight23'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #8ABB2F; font-size: 22px; font-weight: normal; text-align: right;}',
    'a:link { color: #8ABB2F; text-decoration: none; }',
    'a:hover { color: #8ABB2F; text-decoration: underline; }'
   ]
});

// Theme Portal Headers
sIFR.replace(VistaSansAltReg, {
    selector: 'h3.themeportal'
    , wmode: 'transparent'
    , css: [
    '.sIFR-root { color: #000000; font-size: 17px; font-weight: normal;}',
    'a:link { color: #000000; text-decoration: none; }',
    'a:hover { color: #000000; text-decoration: underline; }'
   ]
});
