	$(document).ready(function() {
        
		// initialize FLIR
		FLIR.init({ path: '/wp-content/themes/intermission_theme/facelift/' });
		// get the content of text and put it in the div
			$('.submit').click(function(){
				$('.rendered').text($(".text").val());
				$('.rendered').removeClass('flir-replaced');
				$('.rendered').removeAttr('flirReplaced');

				$(".font-01").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'avalon'}) ); } );

				$(".font-02").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'bodno'})); } );

				$(".font-03").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'casablcn'})); } );

				$(".font-04").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'casablcb'})); } );

				$(".font-05").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'erieblkn'})); } );

				$(".font-06").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'fuji2n'})); } );

				$(".font-07").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'memorndn'})); } );

				$(".font-08").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'prsantqn'})); } );

				$(".font-09").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'mod735n'})); } ); //

				$(".font-10").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'unicornn'})); } );

				$(".font-11").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'voguen'})); } );

				$(".font-12").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'aard'})); } );

				$(".font-13").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'comic'})); } );

				$(".font-14").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'courbd'})); } );

				$(".font-15").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'compctan'})); } );

				$(".font-16").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'castlen'})); } );

				$(".font-17").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'tt0586m_'})); } );

				$(".font-18").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'fujiboln'})); } );

				$(".font-19").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'helvetica'})); } );

				$(".font-20").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'xfiles'})); } ); 

				$(".font-21").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'motorn'})); } );

				$(".font-22").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'zurichi'})); } );

				$(".font-23").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'verdana'})); } );

				$(".font-24").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'papyrus'})); } );

				$(".font-25").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'lhandw'})); } );

				$(".font-26").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'penguinn'})); } );

				$(".font-27").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'freeprtn'})); } );

				$(".font-28").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'krazy'})); } ); //

				$(".font-29").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'muryhilb'})); } );

				$(".font-30").each(function() { FLIR.replace(this, new FLIRStyle({cFont:'copprpon'})); } );

				return false;

			});

		});
