/*######################
	Involution Studios
	© 2011 Involution Studios
	JS File for DOM
	Created : 4.Jun.2010 by Mike Kivikoski
	Last Modified  : 8.Apr.2011 by Eric Benoit

	Please keep Last Modified up to date

	Table of Contents

		When DOM is ready:
			1. Blog Form Validation
			2. Contact Form Validation
			3. Side column height
########################*/

$(document).ready(function(){

	// 1.
	if($('#commentform').length !=0){
		$("#commentform").validate();
	}


	// 2.
	if($('.wpcf7-form').length !=0){
		$('.wpcf7-form').validate({
			rules: {
				"your-email": {required: true,minlength:2,email: true},
				"your-name": {required: true,minlength:2}	
			},
			messages:{
				"your-email": "Please enter a valid email",
				"your-name": "Please enter your name"
			}			 
		 });
	}


	// 3.
		function sidebarHeight(){
			var contentHeight = parseInt($('#content').height());
			var contentHeight = contentHeight - 11;
			$('#col-1').css({'height':contentHeight});
		};

		sidebarHeight();


		setTimeout(function(){
			var contentHeight = parseInt($('#content').height());
			var contentHeight = contentHeight -11;

			$('#col-1').animate({height:contentHeight},10);
		},1000);


});//End jQuery
