$(document).ready(function() {

  $("h1").each( function() {
    $(this).attr('style', 'font-size:30px; color:#555555;line-height: 40px;');
  } );

  $("h1.title").each( function() {
    $(this).attr('style', 'font-size:36px; color:#fefefe;line-height: 40px;');
  } );
  $("h1.title.drop").each( function() {
    $(this).attr('style', 'font-size:36px; color:#1d91ab;line-height: 40px;');
  } );
  $("h3").each( function() {
    $(this).attr('style', 'font-size:21px; color:#434343;line-height: 30px;');
  } );

  $("h3.news").each( function() {
    $(this).attr('style', 'font-size:21px; color:#555555;line-height: 30px;');
  } );

  $("h3.news.blue").each( function() {
    $(this).attr('style', 'font-size:21px; color:#0f86ab;line-height: 30px;');
  } );

  $("h3.green-bg").each( function() {
    $(this).attr('style', 'font-size:18px; color:#53bf03;line-height: 30px;');
  } );

  $("h2.red").each( function() {
    $(this).attr('style', 'font-size:32px; color:#e34f49;line-height: 30px;');
  } );
  $("h2.title.red").each( function() {
    $(this).attr('style', 'font-size:30px; color:#f56535;line-height: 40px;');
  } );

  $("h2.strong").each( function() {
    $(this).attr('style', 'font-size:36px; color:#787878;line-height: 30px;');
  } );

  FLIR.init( {
    path: 'http://lennardwolfe.com/facelift/'
  } );

  FLIR.replace( 'h1' , new FLIRStyle({
    cFont:'sentinelmedium',
    mode:'wrap'
  }) );
  FLIR.replace( 'h1.title' , new FLIRStyle({
    cFont:'sentinelmedium',
    mode:'wrap'
  }) );
  FLIR.replace( 'h1.title.drop' , new FLIRStyle({
    cFont:'sentinelmedium',
    mode:'wrap'
  }) );
  FLIR.replace( 'h2.red' , new FLIRStyle({
    cFont:'sentinelmedium',
    mode:'wrap'
  }) );
  FLIR.replace( 'h2.strong' , new FLIRStyle({
    cFont:'sentinelbookital',
    mode:'wrap'
  }) );
  FLIR.replace( 'h3' , new FLIRStyle({
    cFont:'sentinelsemi',
    mode:'wrap'
  }) );

  FLIR.replace( 'h3.news' , new FLIRStyle({
    cFont:'sentinelmedium',
    mode:'wrap'
  }) );

  $("#nav ul#navigation li ul").mouseover(function () {
    $(this).parent().children('a').addClass('hover-state');
  }).mouseout(function () {
    $(this).parent().children('a').removeClass('hover-state');
  });

  $('.faq #main-col-content .answer').css('display', 'none');
  $('.faq #main-col-content h4').click(function() {
    $(this).parent().toggleClass('question-border', 'slow');
    $(this).find('span').toggleClass('closer', 'slow');
    $(this).next().toggle('slow');
  });
});
