// ## Jquery Code 
$(document).ready(function(){

// ## Phone Flash
//  $("div.phonelogo").effect( "pulsate", {times:500}, 1000 );

// ## Phone cycle
  $('div#phonelogo').cycle({
        fx:     'none',
        speed: 50,
        cleartype: true,
        cleartypeNoBg: true,
        timeout: 150
  });

// ## Mortgage Lenders Cycle
  $('#lenders-cycle').cycle({
        fx:     'scrollUp',
        timeout: 5000
  });


// ## highlight form elements
  $('#enquiryv2 .element').focus(function() {
    $(this).addClass("focus");
  }); 
  $('#enquiryv2 .element').blur(function() {
    $(this).removeClass("focus");
  });

  $('#mc_embed_signup .email').focus(function() {
    $(this).addClass("focus");
  }); 
  $('#mc_embed_signup .email').blur(function() {
    $(this).removeClass("focus");
  });

// if page loads with appointment checked then show box
if ($("#Appointment").is(":checked")) {
  $('#enquiry-request-appointment').css("display","block");
};

//if click checkbox show or hide box
$('#Appointment').click(function() {
    $("#enquiry-request-appointment").toggle();
});


// ## Date picker
  $("#FormDate").datepicker({
  dateFormat: 'D dd-M-yy',
  showOn: 'both',
   buttonImage: '/assets/templates/navado2011/js/calendar.jpg',
   buttonImageOnly: true
  });
  
});



