$(document).ready(function(){
    $('h1, h2, .right, .room').flash(
        { 
            src: '/trajanpro.swf', 
            flashvars: { 
                css: [
                    '* { color: #bcbc93; }',
                    'a { color: #bcbc93; text-decoration: none; }',
                    'a:hover { color: #207271; text-decoration: none; }'
                ].join(' ')
            },
            wmode: 'transparent'
        },
        { 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));						
        }
    );
	$('#homeHours h2').flash(
		 { 
            src: '/trajanpro.swf', 
            flashvars: { 
                css: [
                    '* { color: #344a61; }',
                    'a { color: #344a61; text-decoration: none; }',
                    'a:hover { color: #344a61; text-decoration: none; }'
                ].join(' ')
            },
            wmode: 'transparent'
        },
        { 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));						
        }					 
	);
});
