$(document).ready(function(){
	$('h1').flash(
		{ 
			src: '/media/jfr.swf',  
			wmode: 'transparent',
			flashvars: { 
				css: [
					'* { color: #ffffff; }',
					'a { color: #0055CC; text-decoration: none; }',
					'a:hover { text-decoration: underline; }'
				].join(' ')
			}
		},
		{ version: 7 },
		function(htmlOptions) {
			htmlOptions.flashvars.txt = this.innerHTML;
			htmlOptions.flashvars.className = this.className;
			this.innerHTML = '<span>'+this.innerHTML+'</span>';
			var $alt = $(this.firstChild);
			htmlOptions.height = $alt.height();
			htmlOptions.width = $alt.width();
			$alt.addClass('alt');
			$alt.css('display','none');
			$(this)
				.addClass('flash-replaced')
				.prepend($.fn.flash.transform(htmlOptions));						
		}
	);

	$('h2').flash(
		{ 
			src: '/media/jfr.swf',  
			wmode: 'transparent',
			flashvars: { 
				css: [
					'* { color: #ffffff; }',
					'a { color: #0055CC; text-decoration: none; }',
					'a:hover { text-decoration: underline; }'
				].join(' ')
			}
		},
		{ version: 7 },
		function(htmlOptions) {
			htmlOptions.flashvars.txt = this.innerHTML;
			htmlOptions.flashvars.className = this.className;
			this.innerHTML = '<span>'+this.innerHTML+'</span>';
			var $alt = $(this.firstChild);
			htmlOptions.height = $alt.height();
			htmlOptions.width = $alt.width();
			$alt.addClass('alt');
			$alt.css('display','none');
			$(this)
				.addClass('flash-replaced')
				.prepend($.fn.flash.transform(htmlOptions));						
		}
	);

});
