$(document).ready(function(){


var c1Height = $("#contact1").height();
var c2Height = $("#contact2").height();

if (c1Height < c2Height) {
	$("#contact1").height(c2Height+"px");
}

var mainContentHeight = $("#mainContent").height();
var sidebarHeight = $("#sidebar").height()

if (sidebarHeight<mainContentHeight) {
	$("#sidebar").height(mainContentHeight+"px")
}

// form validation settings
$.validator.setDefaults({
	debug: false
});

$().ready(function() {
// validate the contact form when it is submitted
$("#contactForm").validate({
	event: "keyup",
	rules: {
		name: { required: true },
		email: { required: true, email: true },
		question: { required: true	}
	},
	messages: {
		name: "Podaj swoje imię i nazwisko",
		email: "Podaj poprawny adres e-mail",
		question: "Wprowadź zapytanie"
	},
	submitHandler: function(form) {
	  	$(form).ajaxSubmit();
  }
}) 

});

});
