﻿    
    $(document).ready(function(){
    $('h1').flash(
        { 
            src: '/system/flash/jfr_crayon.swf', 
            flashvars: { 
                css: [
                    '* { color: #85BE48; }',
                    'a { color: #ff0000; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</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));						
        },
        { update: false }

    );
    $('h3').flash(
        { 
            src: '/system/flash/jfr_crayon.swf', 
            flashvars: { 
                css: [
                    '* { color: #85BE48; }',
                    'a { color: #ff0000; text-decoration: none; }',
                    'a:hover { text-decoration: underline; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</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));						
        },
        { update: false }

    );
});

