﻿/*****************************************************************************
    The sIFR configuration should typically go in `sifr-config.js`, but in order to
    keep the config file clean, and to give a quick overview, it's done here instead.
    *****************************************************************************/
function launchSIFR() {

    if (AllowSifr == 1) {
        var cochin = {
            src: '/swf/MetaPlusBold.swf'
      , ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
        };


        // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
        // sIFR.useStyleCheck = true;
        sIFR.activate(cochin);

        sIFR.replace(cochin, {
            selector: '.sifr22'
      , wmode: 'transparent'
      , fitExactly: true
      , css: [
        '.sIFR-root { font-size:22px; color:#6D6D6D; padding:0px; margin:0px; }'
        , 'a { text-decoration: none; }'
        , 'a:link { color: #000000; }'
        , 'a:hover { color: #CCCCCC; }'
      ]
        });

        sIFR.replace(cochin, {
            selector: '.sifr40'
      , wmode: 'transparent'
      , fitExactly: true
      , css: [
        '.sIFR-root { font-size:40px; color:#6D6D6D; padding:0px; margin:0px; }'
        , 'a { text-decoration: none; }'
        , 'a:link { color: #000000; }'
        , 'a:hover { color: #CCCCCC; }'
      ]
        });

        sIFR.replace(cochin, {
            selector: '.sifr18'
      , wmode: 'transparent'
      , fitExactly: true
      , css: [
        '.sIFR-root { font-size:18px; color:#6D6D6D; padding:0px; margin:0px; }'
        , 'a { text-decoration: none; }'
        , 'a:link { color: #000000; }'
        , 'a:hover { color: #CCCCCC; }'
      ]
        });

        sIFR.replace(cochin, {
            selector: '.sifr16'
      , wmode: 'transparent'
      , fitExactly: true
      , forceSingleLine: true
      , css: [
        '.sIFR-root { font-size:16px; color:#ffffff; padding:0px; margin:0px; }'
        , 'a { text-decoration: none; }'
        , 'a:link { color: #000000; }'
        , 'a:hover { color: #CCCCCC; }'
      ]
        });
    }
    else { }

    setTimeout("doSifr()", 500);
}
