/* Author: 

*/

/* Equal Height Column Script */
$(document).ready(function(){
	//set the starting bigestHeight variable
	var biggestHeight = 0;
	//check each of them
	$('.equal_height').each(function(){
		//if the height of the current element is
		//bigger then the current biggestHeight value
		if($(this).height() > biggestHeight){
			//update the biggestHeight with the
			//height of the current elements
			biggestHeight = $(this).height();
		}
	});
	//when checking for biggestHeight is done set that
	//height to all the elements
	$('.equal_height').height(biggestHeight);
	
	/* Verifiable Forms */
	$(document).ready(function () {
			$('#contactForm').verifiable({
				complete: function () {
					$('#contactForm input[type=submit]').removeAttr('disabled');
					console.log('complete!');
				},
				incomplete: function () {
					$('#contactForm input[type=submit]').attr('disabled', 'disabled');
					console.log('incomplete!');
				},
				goodValue: function (field) {
					field.css('background', '#FFF');
				},
				badValue: function (field) {
					field.css('background', '#FFE4E1');
				}
			});
		});
	});
	
	
	






















