$(document).ready(function(){
	// FLASH FONT REPLACEMENT
	$('h2').flash(
		{ 
			src: 'h3.swf',
			wmode: 'transparent',
			flashvars: { 
				css: [
					'* { color: #0078bc; background-color:#000000; text-align:left}',
					'a { color: #0078bc; text-decoration: none; }',
					'a:hover { text-decoration: underline; }'
				].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));
		}
	);
	
	/*$('h3').flash(
		{ 
			src: 'h3.swf',
			wmode: 'transparent',
			flashvars: { 
				css: [
					'* { color: #000000; background-color:#000000;}',
					'a { color: #000000; text-decoration: none; }',
					'a:hover { text-decoration: underline; }'
				].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));
		}
	);
	
	$('h4').flash(
		{ 
			src: 'h3.swf',
			wmode: 'transparent',
			flashvars: { 
				css: [
					'* { color: #0078bc; background-color:#000000; text-align:center; }',
					'a { color: #0078bc; text-decoration: none; }',
					'a:hover { text-decoration: underline; }'
				].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));
		}
	);*/
	
	// REMOVE LAST BORDER IN NAVS
	$('.quickNav a:last').css('border','none');
	$('.helpNav a:first').css('border','none');
	$('.mainNav a:last').css('border','none');
	$('.subNav li:last').css('border','none');

});
