$(document).ready(function() {
  
  var col = "#000000";
  
  // Hide items to be shown by the JS at a later time.
  // (This stuff may contain required functionality and so is shown
  //  unconditionally if JS is disabled.)
  $(".jsHidden").hide();
  
  $(".cbname").initTextbox({
      text: "Full name",
      colour: col
  });
  
  $(".cbemail").initTextbox({
      text: "Email address",
      colour: col
  });
  
  $(".cbproblem").initTextbox({
      text: "Description of problem",
      colour: col
  });
  
  $(".cbtel").initTextbox({
      text: "Telephone Number",
      colour: col
  });

  $(".logmeinbox").initTextbox({
      text: "Enter your 6 digit code here",
      colour: col
  });

  $(".searchbox").initTextbox({
      text: "Search for a service",
      colour: col
  });
  
  // MORE NAV
  
  $("#moreDrop").css('display','none');

  $("#moreText,#moreDrop").mouseover(function(e) {
    var md = $("#moreDrop");
    if (md.filter(":animated").length > 0)
      return;
    clearTimeout(md.data("slidetimeout"));
    md.slideDown();
  });
  $("#moreText,#moreDrop").mouseleave(function(e) {
    var md = $("#moreDrop");
    if (md.filter(":animated").length > 0)
      return;
    md.data("slidetimeout", setTimeout(function() {
      md.slideUp();
    }, 0));
  });
  
  $("#moreDrop").hover(function(e) {
    $(this).data("freeze", -$(this).data("freeze"));
  });
  
  // Form Drop down
  $("#serviceFormBtns2").hide();
  $("#formDrop").click(function(e){
    $("#nextstep").fadeOut("fast", function() {
      $("#serviceFormHidden").show();
      $("#serviceForm").animate({"height": "550px"}, "fast", function() {
          $("#serviceFormBtns2").fadeIn("fast");
        });
    });
    e.preventDefault();
  });

  $('#ftL ul li:nth-child(3n)').addClass('noborder');
    
});


