$(function()
{	
	$("#sliderHolder").easySlider({
		auto: true,
		continuous: true ,
		controlsShow: false,
		pause: 6000
	});//end slider options
	
	$('a.new-tab').click(function()
	{
	   window.open(this.href);
	   return false;
	});//end new tab

	$('.boxgrid.slidedown').hover(function(){
		$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
	});//end portfolio animation
	
	$("#contactForm").validate({
		 rules: {
		    email: {
		      required: true,
		      email: true,
    	}
  	},
		messages:
		{
			name: "Name is missing",
			code: "Captcha is missing or incorrect",
			email: "Email is missing/formatted wrong",
			subject: "The subject is missing",
			message: "Your message is missing"
		},//end messages		
	});//end validate
}); //end domReady function