// JavaScript Document

function submitContactForm() {
	$.ajax({
		url: "contactengine.php"
		,data: $('#contact').serialize()
		,type: 'post'
		,success: function(){
			$("#contact-area").slideDown('slow')	 
			$("#thankyou").slideDown()
			setTimeout(function(){
				$("#thankyou").slideUp("slow", function () {
				});

			}, 2000);

			$('#contact')[0].reset();
		}
		,error: function(xhr, status, error) {
			$("#contact-area").slideDown('slow')	 
			$("#error").slideDown()
			$("#error")[0].innerHTML = xhr.responseText;
			setTimeout(function(){
				$("#error").slideUp("slow", function () {
			});

			}, 2000);
		}
	});
}

                 $(window).load(function () {
                if(location.hash == '#gallery') {
                  if ($("#expandingFooter").is(":hidden")) {
                    $("#expandingFooter").slideDown("slow");
                  }
                }
              });
 
              $(document).ready(function(){
                $("#portfull").click(function () {
                  if ($("#expandingFooter").is(":hidden")) {
                  } else {
                    $("#expandingFooter").slideUp("slow");
                  }
                });
                $("#expandingFooter").hide();
              });
         

       
              $(document).ready(function(){
                $("#portfull2").click(function () {
                  if ($("#expandingFooter").is(":hidden")) {
                    $("#expandingFooter").slideDown("slow");
                  }
                });
                $("#expandingFooter").hide();
              });
            
