$(function(){	
	num_items = $("#testimonial .testimonial_item").length;
	start = Math.floor(num_items*Math.random());
	$("#testimonial .testimonial_item:not(:eq("+start+"))").hide();
	setInterval("swap_testimonial()",6000);
	
	/*$("#projects_thumb_holder DIV A IMG").fadeTo("slow", 0.7).hover(function(){
		$(this).fadeTo("fast",1.0);
	},function(){
		$(this).fadeTo("fast",0.7);
	});*/
	
	$("#projects_thumb_holder DIV A IMG").each(function(obj){
		$(this).hover(function(){
			$("#projects_thumb_holder DIV A IMG").not(this).stop().fadeTo("fast",0.7);					   
		},function(){
			$("#projects_thumb_holder DIV A IMG").not(this).stop().fadeTo("fast",1.0);									   
		});
														
	});
	
});
function swap_testimonial(){
	visible_t = $("#testimonial .testimonial_item:visible");
	index = $("#testimonial .testimonial_item").index(visible_t);
	visible_t.fadeOut("slow",function(){
		if(index == ($("#testimonial .testimonial_item").length - 1)){
			$("#testimonial .testimonial_item:first").fadeIn("slow");		
		}else{
			visible_t.next().fadeIn("slow");
		}
	});
}