$(document).ready(function() {
  
$('.header .service-nav ul > .sites > a').click(function() {
     $(this).parent().find('ul').show();
     return false;
   });

  $('.header .service-nav ul > .sites .close,  .header .service-nav ul > .sites .sites a').click(function() {
    $(this).parents('ul:first').hide();
    return false;
  });
  $(document).click(function() {
    if ($('.header .service-nav .sites:first > ul').is(':visible') &&
        $(event.target).parents('.sites:first').length === 0) {
      $('.header .service-nav .sites ul').hide();
    };
  });
  $('label.placeholder').each(function() {
    var placeholder = $(this).html();
    $(this).click(function() {
      $(this).hide();
    });
    $(this).next().focus(function() {
      $(this).prev().hide();
    }).blur(function(placeholder) {
      var value = $(this).attr('value');
      if (value == '') {
        $(this).prev().show();
      };
    });
  });
  
  if ($('.faq').length) {
    $('.faq dt a').click(function() {
      if ($(this).parent().next().is('dd')) {
        $(this).parent().next().slideToggle('fast');
      };
      return false;
    });
  };
  
});

