var initSifr = function() {
    $('.MDY').flash(
        { 
            src: 'inc/js/sifr/font.swf', 
			wmode: 'transparent',
            flashvars: { 
                css: [
                    '* { color: #ffffff; text-align: right; }',
                    'a { color: #ffffff; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
			htmlOptions.flashvars.txt = $(this).html();
			$(this).html('<div>' + htmlOptions.flashvars.txt + '</div>');

            var $alt = $(this.firstChild);

            htmlOptions.height = $alt.height();
            htmlOptions.width = $alt.width();
			
            $alt.addClass('alt');
            $(this).addClass('flash-replaced').prepend($.fn.flash.transform(htmlOptions));						
        }
    );
}

$(document).ready(initSifr);