jQuery(document).ready(function($) {

			
 $("#continueBtn").click(function () {
      $(".dropFormMod .ft").addClass("formDown");
	  $("#bottomForm").slideDown(200);
	  $(this).replaceWith("<button type='submit' class='submitSurvey'>Submit Survey</button>");
    });
 
  /*$("#closeForm").click(function () {
      $(".submitSurvey").replaceWith(" <button type='button' id='continueBtn' class='continueBtn'>Continue to Step 2</button>");
	  $(".dropFormMod .ft").removeClass("formDown");
	  $("#bottomForm").slideUp(200);
    });*/

$(function() {
	var zIndexNumber = 1000;
	$('div, ul').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});

 /***search***/
 var sLabel = $('.searchField label').remove().text();
 $('#s').addClass('placeholder').val(sLabel).focus(function() {
																  
  if (this.value == sLabel) {
		  $(this).removeClass('placeholder').val('');
		  
  };
  
}).blur(function() {
if(this.value == '') {
  $(this).addClass('placeholder').val(sLabel);	
};
});
 
  $("ul.sf-menu").superfish({
			delay:       200,                            
            animation:   {opacity:'show',height:'show'},  
            speed:       'fast',                          
            autoArrows:  false,                           
            dropShadows: false,
			onShow:        function(){
									  $(this).prev().addClass("hovFix"); //fixes sliding door hover bug
									  },       // callback function fires once reveal animation completed – 'this' is the opened ul 
    		onHide:        function(){
									  $(this).prev().removeClass("hovFix"); //fixes sliding door hover bug
									  }        // callback function fires after a sub-menu has closed – 'this' is the ul that just closed 
								  
								  }); 


 });