// JavaScript Document

$(document).ready(function(){

///////////////////////////////////////
    $('h2').flash(
        { 
            src: '/assets/youareloved',
			WMODE: 'Transparent',
			
            flashvars: { 
                css: [
                    '* { color: #333333;}',
                    'a { color: #999999; text-decoration: none; }',
                    'a:hover { text-decoration: underline; color:#0099FF; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = $alt.height()+16;
            htmlOptions.width = $alt.width();
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
///////////////////////////////////////////
///////////////////////////////////////
    $('h2 b').flash(
        { 
            src: '/assets/youareloved',
			WMODE: 'Transparent',
			
            flashvars: { 
                css: [
                    '* { color: #333333;}',
                    'a { color: #999999; text-decoration: none; }',
                    'a:hover { text-decoration: underline; color:#0099FF; }'
                ].join(' ')
            }
        },
        { version: 7 },
        function(htmlOptions) {
            htmlOptions.flashvars.txt = this.innerHTML;
            this.innerHTML = '<div>'+this.innerHTML+'</div>';
            var $alt = $(this.firstChild);
            htmlOptions.height = $alt.height()+16;
            htmlOptions.width = $alt.width();
            $alt.addClass('alt');
            $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));						
        }
    );
///////////////////////////////////////////
});
