/*****************************************************************************
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.
*****************************************************************************/

//var futura = { src: '/path/to/futura.swf' };
var ma = {
    src: '/sIFR3/MorganAvec.swf',
    ratios: [7, 1.32, 11, 1.31, 12, 1.24, 14, 1.27, 19, 1.23, 24, 1.22, 33, 1.2, 40, 1.19, 60, 1.18, 64, 1.17, 65, 1.18, 102, 1.17, 103, 1.16, 108, 1.17, 109, 1.16, 112, 1.17, 116, 1.16, 118, 1.17, 122, 1.16, 123, 1.17, 1.16]
};

// 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(ma);



sIFR.replace(ma, {
  selector: 'h1',
  css: '.sIFR-root { background-color: #FFFFFF; color: #2B5775; font-weight: bold; font-size: 30px; }',
  wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: 'h2',
    css: '.sIFR-root { background-color: #FFFFFF; color: #2B5775; font-weight: bold; font-size: 24px; }',
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: 'h3',
    css: '.sIFR-root { background-color: #FFFFFF; color: #2B5775; font-weight: bold; font-size: 18px; }',
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '.SearchText',
    css: '.sIFR-root { background-color: #FFFFFF; color: #2B5775; font-weight: bold; font-size: 18px; }'
});

sIFR.replace(ma, {
    selector: '.SearchResultsHeader',
    css: '.sIFR-root { background-color: #FFFFFF; color: #2B5775; font-weight: bold; font-size: 16px; }',
    wmode: 'transparent'
})

sIFR.replace(ma, {
    selector: '.TopMenuTextPanel',
    css: '.sIFR-root { background-color: #FFFFFF; color: #80A9CE; font-size: 24px; text-transform: uppercase; }',
    fitExactly: true,
    wmode: 'transparent' 
});

sIFR.replace(ma, {
    selector: '.FactBoxHeader',
    css: 
    {
        '.sIFR-root' : { 'background-color': '#FFFFFF', 'color': '#000000', 'font-weight': 'bold', 'letter-spacing': '1'  },
        'a': {'text-decoration': 'none'},
        'a:link': {'color': '#000000'},
        'a:hover': {'color': '#000000'}
    },
    wmode: 'transparent'
});
sIFR.replace(ma, {
    selector: '.FactBoxHeaderLink',    
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#000000', 'font-weight': 'bold', 'letter-spacing': '1', 'cursor': 'pointer' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#000000' },
        'a:hover': { 'color': '#000000' }
    },
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '.NewspostsHeader',
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#000000', 'font-weight': 'bold' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#000000' },
        'a:hover': { 'color': '#000000' }
    },
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '.MembersBoxHeader',
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#000000', 'font-weight': 'bold' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#000000' },
        'a:hover': { 'color': '#000000' }
    },
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '#TopMenu .FrontpageLi',    
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#80A9CE', 'font-size': '20px', 'text-transform': 'uppercase', 'cursor': 'pointer' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#80A9CE' },
        'a:hover': { 'color': '#FFFFFF' }
    },
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '#TopMenu  .selected',
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#FFFFFF', 'font-size': '12px', 'text-transform': 'uppercase', 'font-weight': 'bold', 'cursor': 'pointer' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#FFFFFF' },
        'a:hover': { 'color': '#FFFFFF' }
    },
    wmode: 'transparent'
});

sIFR.replace(ma, {
    selector: '#TopMenu .ContentLi',
    css:
    {
        '.sIFR-root': { 'background-color': '#FFFFFF', 'color': '#80A9CE', 'font-size': '12px', 'text-transform': 'uppercase', 'font-weight': 'bold', 'cursor': 'pointer' },
        'a': { 'text-decoration': 'none' },
        'a:link': { 'color': '#80A9CE' },
        'a:hover': { 'color': '#FFFFFF' }
    },
    wmode: 'transparent'
});
