var IfrBehavior = Class.create();
IfrBehavior.Load = function() {
    IfrBehavior.Apply();
    OS.RegisterBehaviour(IfrBehavior.Rules);
}
IfrBehavior.Apply = function() {
    if (typeof (Ifr) == 'undefined') {
        setTimeout(IfrBehavior.Apply, 50);
        return;
    }
    $$('#Dv_Rates .data .rate').invoke('show');
    var oIfr = new Ifr();
    if (oIfr.isSupported) {
        var eUi = $('UI');
        var sFont = 'fonts/font.garamond.swf'
        if (Element.hasClassName(eUi, 'viewSplash')) sFont = 'fonts/font.garamond.dropshadow.swf'
        var arrRate = $$('#Dv_Rates .data .rate').pluck('id');
        arrRate.each(function(rateId) {
            var rate = $(rateId);
            if (rate.innerHTML == '') return;
            oIfr.apply('#' + rateId, {
                src: sFont,
                wmode: 'transparent',
                isSelectable: false
            });
        });
    }
}
IfrBehavior.Rules = {
}

IfrBehavior.Load();

