$(document).ready(function(){
  $('h1, h2, #footerLink').flash(
  { 
	src: '../swf/chalk.swf',
	background: 'transparent',
	wmode: 'transparent',
	flashvars: { 
		css: ['* { color: #FFFFFF; }, a { color: #4A4F48; }'].join(' ')
		}
  },
					{ version: 7 },
					function(htmlOptions) {
						htmlOptions.flashvars.txt = this.innerHTML;
						this.innerHTML = '<span>'+this.innerHTML+'</span>';
						var $alt = $(this.firstChild);
						htmlOptions.height = $alt.height();
						htmlOptions.width = $alt.width();
						$alt.addClass('alt');
						$(this)
							.addClass('flash-replaced')
							.prepend($.fn.flash.transform(htmlOptions));						
					}
				);
});
