﻿var IfrBehavior = Class.create();
IfrBehavior.Load = function() {
    IfrBehavior.Apply();
}
IfrBehavior.Apply = function() {
    if (typeof (Ifr) == 'undefined') {
        setTimeout(IfrBehavior.Apply, 50);
        return;
    }
    var oIfr = new Ifr();
    if (oIfr.isSupported) {
        oIfr.apply('#Content h1', {
            src: 'fonts/Font.FranklinGothic.swf',
            wmode: 'transparent'
        });
        oIfr.apply('#Content h2', {
            src: 'fonts/Font.Prisoner.swf',
            wmode: 'transparent'
        });
        oIfr.apply('#Content h3', {
            src: 'fonts/Font.Prisoner.swf',
            wmode: 'transparent'
        });
        /*@cc_on/*@if (@_jscript_version >= 5.6)
        $A(document.getElementsByClassName('flashObject')).each(function(object) {
            var paramHTML = "";
            for (var j = 0, childNode; (childNode = object.childNodes[j]); j++) {
                paramHTML += childNode.outerHTML;
            }
            // Then clone and replace the object in the DOM and insert paramHTML
            object.outerHTML = object.outerHTML.replace(/(<\/object>$)/i, paramHTML + "$1");
        });
        /*@end@*/
    }
    
}
IfrBehavior.Load();


