jQuery(function(){ // do stuff when DOM is ready
	
	//on home page, prevent logo clicking
	$('#logoLink').click(function(){ return false; });
	
	//first hide all project listings
	$(".projectinfo").hide();//addClass('unselected');
	
	//next set all h3's to trigger open/close
	$(".portfolio h3").hover(function(){
		//mouseover
		$(this).addClass('hover');
	},function() {
		//mouseout
		$(this).removeClass('hover');
	}).click(function(){		
		if($(this).hasClass('open')){
			$(this).removeClass('open').next().slideUp(333)
		} else {
			$(this).addClass('open').next().slideDown(333).end()
			.parent().siblings().children('.open').removeClass('open').next().slideUp(333);
		}
		return false;
	});
	
 });