InitSIFR();

function InitSIFR() {

    var vagbold = {
        src: './flash/sifr-vagbold.swf'
      , ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
    };

    var vaglight = {
        src: './flash/sifr-vaglight.swf'
      , ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(vagbold);

    sIFR.replace(vagbold, {
        selector: 'h1'
      , wmode: 'transparent', sCase: 'upper', sColor: '#71B049',
        fitExactly: true,
        tuneHeight: 5,
        tuneWidth: 20,
        css: [
        '.sIFR-root {  color:#71B049; }',
        '.bluetext { color: #6b93aa; }',
        '.orangetext { color: #ff8500; }',
        '.pinktext { color: #ff78d6; }'
      ]
    });
        
    sIFR.replace(vagbold, {
        selector: 'h2'
      , wmode: 'transparent', sCase: 'upper', sColor: '#FFFFFF',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#FFFFFF; }',
        '.sIFR-root a { color: #FFFFFF; text-decoration:none; };',
        '.sIFR-root a:link { color: #FFFFFF; text-decoration:none; };',
        '.sIFR-root a:hover { color: #FFFFFF; text-decoration:none; };'
      ]
    });
    
    sIFR.replace(vagbold, {
        selector: 'h4'
      , wmode: 'transparent', sCase: 'upper', sColor: '#FFFFFF',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#FFFFFF; }',
        '.sIFR-root a { color: #FFFFFF; text-decoration:none; };',
        '.sIFR-root a:link { color: #FFFFFF; text-decoration:none; };',
        '.sIFR-root a:hover { color: #FFFFFF; text-decoration:none; };',
        '.sIFR-root .greentext { color: #71B049; }'
      ]
    });
    
    sIFR.replace(vagbold, {
        selector: 'h5'
      , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
        css: [
        '.sIFR-root { color:#696969; }',
        '.sIFR-root a { color: #696969; text-decoration:none; };',
        '.sIFR-root a:link { color: #696969; text-decoration:none; };',
        '.sIFR-root a:hover { color: #696969; text-decoration:none; };',
         '.orangetext { color: #ff8500; }'
      ]
    });
    
    sIFR.replace(vagbold, {
        selector: '.preH1blue'
      , wmode: 'transparent', sCase: 'upper', sColor: '#6B93AA',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#6B93AA; }'
      ]
    });
    
    sIFR.replace(vaglight, {
        selector: '.preH2'
      , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#696969; }'
      ]
    });
    
    sIFR.replace(vagbold, {
        selector: '.label_header'
      , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        tuneHeight: 2,
        css: [
        '.sIFR-root { color:#696969; }',
        '.sIFR-root a { color: #696969; text-decoration:none; };',
        '.sIFR-root a:link { color: #696969; };',
        '.sIFR-root a:hover { color: #696969; };'
      ]
    });
    
    sIFR.replace(vaglight, {
        selector: '.label_content'
      , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#696969; }',
        '.sIFR-root a { text-decoration: none; color:#FFFFFF; }',
        '.sIFR-root a:link { color:#FFFFFF; }',
        '.sIFR-root a:hover { color:#FFFFFF; }'
        
      ]
    });

    sIFR.replace(vagbold, {
        selector: '.whitetext'
       , wmode: 'transparent', sCase: 'upper', sColor: '#FFFFFF',

        css: [
        '.sIFR-root { color:#FFFFFF; }',
        '.red { color: #FFFFFF; }',
        '.sIFR-root a { text-decoration: none; color:#FFFFFF; }',
        '.sIFR-root a:link { color:#FFFFFF; }',
        '.sIFR-root a:hover { color:#FFFFFF; }'
      ]
    });

    /*
    sIFR.replace(vagbold, {
        selector: '.speechcloud_text',
        wmode: 'transparent',
        sCase: 'upper', 
        sColor: '#8eb6e8',
        fitExactly: true,    // margins
        css: [
        '.sIFR-root { color:#8eb6e8; }',
        '.sIFR-root a { color: #8eb6e8; text-decoration:none; };',
        '.sIFR-root a:link { color: #8eb6e8; };',
        '.sIFR-root a:hover { color: #8eb6e8; };'
      ]
    });*/
    
//    sIFR.replace(vagbold, {
//        selector: '.page-intro'
//       , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
//        css: [
//        '.sIFR-root { color:#696969; }',
//        '.sIFR-root a { color: #696969; text-decoration:none; };',
//        '.sIFR-root a:link { color: #696969; };',
//        '.sIFR-root a:hover { color: #696969; };'
//      ]
//    });

 /*  WHITE BAR LINK BUTTONS  */ 

    //white_bar_bright_green_link
    sIFR.replace(vagbold, {
        selector: '.white_bar_bright_green_link'
       , wmode: 'transparent', sCase: 'upper', sColor: '#9EC47B',
        css: [
        '.sIFR-root { color:#9EC47B; }',
        '.red { color: #9EC47B; }',
        '.sIFR-root a { color: #9EC47B; text-decoration:none; };',
        '.sIFR-root a:link { color: #9EC47B; text-decoration:none; };',
        '.sIFR-root a:hover { color: #9EC47B; text-decoration:none; };'
      ]
    });
    
    //white_bar_green_link
    sIFR.replace(vagbold, {
        selector: '.white_bar_green_link'
       , wmode: 'transparent', sCase: 'upper', sColor: '#6bc83d',
        css: [
        '.sIFR-root { color:#6bc83d; }',
        '.red { color: #6bc83d; }',
        '.sIFR-root a {  color: #6bc83d; text-decoration:none; text-align:right;  };',
        '.sIFR-root a:link { color: #6bc83d; text-decoration:none; };',
        '.sIFR-root a:hover { color: #6bc83d; text-decoration:none; };'
      ]
    });

    //white_bar_orange_link
    sIFR.replace(vagbold, {
        selector: '.white_bar_orange_link'
       , wmode: 'transparent', sCase: 'upper', sColor: '#f8821a',
        css: [
        '.sIFR-root { color:#f8821a; }',
        '.red { color: #f8821a; }',
        '.sIFR-root a { color: #f8821a; text-decoration:none; };',
        '.sIFR-root a:link { color: #f8821a; text-decoration:none; };',
        '.sIFR-root a:hover { color: #f8821a; text-decoration:none; };'
      ]
    });

    //white_bar_pink_link
    sIFR.replace(vagbold, {
        selector: '.white_bar_pink_link'
       , wmode: 'transparent', sCase: 'upper', sColor: '#ff59cc',
        css: [
        '.sIFR-root { color:#ff59cc; }',
        '.red { color: #ff59cc; }',
        '.sIFR-root a { color: #ff59cc; text-decoration:none; };',
        '.sIFR-root a:link { color: #ff59cc; text-decoration:none; };',
        '.sIFR-root a:hover { color: #ff59cc; text-decoration:none; };'
      ]
    });

    //white_bar_blue_link
    sIFR.replace(vagbold, {
        selector: '.white_bar_blue_link'
       , wmode: 'transparent', sCase: 'upper', sColor: '#0b31ee',
        css: [
        '.sIFR-root { color:#6b93aa; }',
        '.red { color: #6b93aa; }',
        '.sIFR-root a { color: #6b93aa; text-decoration:none; };',
        '.sIFR-root a:link { color: #6b93aa; text-decoration:none; };',
        '.sIFR-root a:hover { color: #6b93aa; text-decoration:none; };'
      ]
    });
    
    
    //white_bar_blue_link
//    sIFR.replace(vagbold, {
//        selector: '.page-intro'
//       , wmode: 'transparent', sCase: 'upper', sColor: '#696969',
//        css: [
//        '.sIFR-root { color:#696969; }',
//        '.sIFR-root a { color: #696969; text-decoration:none; };',
//        '.sIFR-root a:link { color: #696969; text-decoration:none; };',
//        '.sIFR-root a:hover { color: #696969; text-decoration:none; };'
//      ]
//    });

    //
    //PAGE NUMBERS
    //
    sIFR.replace(vagbold, {
        selector: '.page'
       , wmode: 'transparent', sCase: 'upper', sColor: '#696969 ',
        css: [
        '.sIFR-root { color:#696969 ; }'
      ]
    });

    sIFR.replace(vagbold, {
        selector: '.selectedpagenumbers'
       , wmode: 'transparent', sCase: 'upper', sColor: '#8eb6e8',
        css: [
        '.sIFR-root { color:#8eb6e8; }',
        '.sIFR-root a { color: #8eb6e8; text-decoration:none; };',
        '.sIFR-root a:link { color: #8eb6e8; text-decoration:none; };',
        '.sIFR-root a:hover { color: #8eb6e8; text-decoration:none; };'
      ]
    });

    sIFR.replace(vagbold, {
        selector: '.pagenumbers'
       , wmode: 'transparent', sCase: 'upper', sColor: '#ffffff',
        css: [
        '.sIFR-root { color:#ffffff; }',
        '.sIFR-root a { color: #ffffff; text-decoration:none; };',
        '.sIFR-root a:link { color: #ffffff; text-decoration:none; };',
        '.sIFR-root a:hover { color: #ffffff; text-decoration:none; };'
      ]
    });

    
//////////// HEADER (LOGIN BOX) & FOOTER ///////////////

    sIFR.replace(vaglight, {
        selector: '.footer-text'
       , wmode: 'transparent', sCase: 'upper', sColor: '#bdeb96',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: [
        '.sIFR-root { color:#bdeb96; }',
        '.sIFR-root a { color: #bdeb96; text-decoration:none; };',
        '.sIFR-root a:link { color: #bdeb96; text-decoration:none; };',
        '.sIFR-root a:hover { color: #bdeb96; text-decoration:none; };'
      ]
    });
    

    sIFR.replace(vagbold, {
        selector: '.logintext-green',
        wmode: 'transparent',
        fitExactly: true,    // margins
        offsetTop: 3,
        tuneWidth: 20,
        css: ['.sIFR-root { color: #bdeb96; }',
            '.sIFR-root a { color: #bdeb96; text-decoration: none; }',
            '.sIFR-root a:hover { color: #bdeb96; text-decoration: none; }',
            '.sIFR-root a:visited { color: #bdeb96; text-decoration: none; }']
    });

}