function contactForm () {
	$('#form-contact').submit(function(event) {
		validateForm();
		event.preventDefault();
	});
}

function galleryChange () {
	if ($('#gallery-menu').size() > 0) {
		var $galleryImage = $('#gallery-image img');
		var $galleryInfo = $('#gallery-image p');
		
		$('#gallery-menu li a').mouseover(function() {
			var info = $(this).text();
			var image = $(this).attr('href');
			
			$galleryInfo.text(info);
			$galleryImage.attr('src', image);
		}).click(function(event) {
			event.preventDefault();
		});
	};
}

function levelColumns () {
	$left = $('div.left');
	$right = $('div.right');
	leftHeight = $left.height();
	rightHeight = $right.height();
	
	if (leftHeight > rightHeight) {
		$right.height(leftHeight);
	} else if (rightHeight > leftHeight) {
		$left.height(rightHeight);
	};
}

function trackingLinks () {
	$('#footer .contact a').click(function(event) {
		pageTracker._trackPageview('/mailto/escatawba');
	});
	
	$('a.jeffrey-wilkins').click(function(event) {
		pageTracker._trackPageview('/outgoing/jeffreywilkins.com');
	});
}

$(document).ready(function() {
	galleryChange();
	levelColumns();
	trackingLinks();
});

// Cufon Calls
Cufon.replace('h2, h3, #footer p');