//SIFR Config

//var Amasis_MT_font = { src: '/Media/Assets/sIFR/Amasis_MT.swf' };
var Subpear_font = { src: '/data/fonts/subpear.swf' };

sIFR.useStyleCheck = true;

    // Next, activate sIFR:
    //sIFR.activate(Amasis_MT_font);
    sIFR.activate(Subpear_font);

/*
==============================================================
Warren: Use jQuery ready (DOM) to check if class name exists.
i.e the live editing toolbar (Canvas)
===============================================================
*/
    $(document).ready(function() {
        if ($("div#LiveEditingToolbar").length <= 0) {
            //Canvas Editing is NOT enabled

            //Replace header <h1> with class of flashHeader
            sIFR.replace(Subpear_font, {
                selector: 'h1.flashHeader',
                css: [
                '.sIFR-root { font-size:24px; font-weight:normal; color:#993300; leading:-3; letter-spacing:-1; }',
                'a {color:#993300; text-decoration:none;}',
                'strong { font-weight:bold; color:#f49ac1; }'
                ],
                wmode: 'transparent'
            });

            //Replace header <h2> with class of flashHeader
            sIFR.replace(Subpear_font, {
                selector: 'h2.flashHeader',
                css: [
                '.sIFR-root { font-size:22px; font-weight:normal; color:#993300; leading:-3; letter-spacing:-1; }',
                'a {color:#993300; text-decoration:none;}',
                'strong { font-weight:bold; color:#f49ac1; }'
                ],
                wmode: 'transparent'
            });

            //Replace header <h3> with class of flashHeader
            sIFR.replace(Subpear_font, {
                selector: 'h3.flashHeader',
                css: [
                '.sIFR-root { font-size:18px; font-weight:normal; color:#993300; leading:-3; letter-spacing:-1; }',
                'a {color:#993300; text-decoration:none;}',
                'strong { font-weight:bold; color:#f49ac1; }'
                ],
                wmode: 'transparent'
            });

        }
        else {
            //Lets REMOVE the CSS class that sIFR adds
            sIFR.removeFlashClass();
        }
    });

