 $(document).ready(function() {
			//$(".infoBox > li:first").find("a:first").addClass("current").parent("li").find("ul").show();
		
			$(".infoBox > li").hover(
      function () {
		  $(".infoBox > li:first").find("a:first").removeClass("current").parent("li").find("ul").hide();
        $(this).find("ul").show();
		$(this).find("a:first").addClass("current");
		

      }, 
      function () {
		
        $(this).find("ul").hide();
		$(this).find("a:first").removeClass("current");
		 
      }
    );
 $("#continueBtn").click(function () {
      $(this).replaceWith("<button type='submit' class='submitSurvey'>Submit Survey</button>");
	  $("#bottomForm").slideDown(200);
    });

$(function() {
	var zIndexNumber = 1000;
	$('div,ul').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});
 });
 
 //------------------- for clearing and replacing text in form input fields and textareas -------------------//
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}