$(document).ready(function(){	// this controls the logo animation	// control hover in/out fade speed	var hoverSpeed = 300;	$("#header h1 a").mouseover(function() {		// create new logo span for hover and fade it in		$("#header h1").append('<span></span>');		$("#header h1 span").css({display:"none"}).fadeIn(hoverSpeed);	}).mouseout(function() {		// fade out & destroy span		$("#header h1 span").fadeOut(hoverSpeed, function() {			$(this).remove();		});	});		//this is for form validation	$(document).ready(function() {    	$("#contact-form").validate();    	$("#commentform").validate();  	});  	  	//this is for lightbox  	$(document).ready(function(){  		$('.gallery a').lightBox();  	});  	  	//controls for the slide up/down thing on the portfolio	if($('h3.trigger').length > 0) {		$('h3.trigger').click(function() {			if($(this).hasClass('open')) {				$(this).removeClass('open');				$(this).addClass('close');				$(this).next().slideDown(300);				return false;			} else {				$(this).removeClass('close');				$(this).addClass('open');				$(this).next().slideUp(300);				return false;			}		})	}  	});