$(document).ready(function(){
    $('h2.replace').flash(
        { 
            src: 'http://www.spaengenhodocorpo.com.br/wp-content/themes/wp-spa/js/jfr_thesans.swf', 
            flashvars: { 
                css: [
                    '* { color: #ba3e0d; }',
                    'a { color: #ba3e0d; text-decoration: none; }',
                    'a:hover { color: #128597; }'
                ].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));						
        }
    );//
	
    $('h1.replace').flash(
        { 
            src: 'http://www.spaengenhodocorpo.com.br/wp-content/themes/wp-spa/js/jfr_thesans.swf', 
            flashvars: { 
                css: [
                    '* { color: #378ca7; }',
                ].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));						
        }
    );//
	
    $('h3.replace').flash(
        { 
            src: 'http://wenetus.com/clientes/engenhodocorpo/wp/wp-content/themes/wp-spa/js/jfr_thesans.swf', 
            flashvars: { 
                css: [
                    '* { color: #ff6400; }',
                ].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));						
        }
    );//
	
});
