$.fn.reverse=[].reverse;

$(document).ready(function()
{

	// Text Flash Replacement
	var embedFont = false;
	if
	(
	 	(
			( $.browser.mozilla && parseFloat($.browser.version.substr(0,3)) >= 1.9 && parseFloat($.browser.version.substr(4,1)) >= 1 )
			||
			( $.browser.webkit  && parseFloat($.browser.version) >= 525.7 )
			||
			( $.browser.msie    && parseFloat($.browser.version) >= 4 )
			||
			( $.browser.opera   && parseFloat($.browser.version) >= 10 )
		)
	)
	{
		embedFont = true;
	}
	if ($.fn.flash.hasFlash(7) && !embedFont)
	{
		$('h1,h2').flash(
			 { 
					src: strWebRoot + 'gfx/helvneue_ifr.swf', //http://jquery.lukelutman.com/plugins/flash/itc_century.swf
					wmode: 'transparent',
					flashvars: { 
						css: [
							 '* { color: #414141; font-style: italic; font-weight: bold; line-height: 40px; font-size: 27px; }',
							 'a { color: #414141; text-decoration: none; }',
							 'a:hover { text-decoration: underline; }'
						].join(' ')
					}
			 },
			 { version: 7 },
			 function(htmlOptions) {
					htmlOptions.flashvars.txt = this.innerHTML.replace('&nbsp;', '');
					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));						
			 }
		);
	}
	
});
