Cufon.replace('.homeabout h3', { 	
	fontFamily: 'Fanwood'	
});

Cufon.replace('h3', { 	
	fontFamily: 'Fanwood'	
})

$(function(){
	$('#carousel').infiniteCarousel({
		displayTime: 6000,
		textholderHeight : .15,
		displayThumbnails : 0
	});
});

$(function(){
	$('.testimonial').infiniteCarousel({
		displayTime: 6000,
		textholderHeight : .15,
		displayThumbnails : 0
	});
});


$(function(){
	fancy();
	imghover();
	
	});
/*
Image zoom
--------------------------------*/
function imghover(){
$("a.zoom img,a.video img").mouseover(function(){
	$(this).stop(true,true);
	$(this).fadeTo(300, 0.6);
});

$("a.zoom img,a.video img").mouseout(function(){
	$(this).fadeTo(400, 1.0);
});

}

/*
facny box function
------------------------*/

function fancy(){
$("a.zoom,a.video").fancybox({
'titleShow'     : false,
'showCloseButton': true,
'transitionIn'	: 'elastic',
'transitionOut'	: 'elastic',
'easingIn'      : 'easeOutBack',
'easingOut'     : 'easeInBack',

}); 
}



/*
Toggles
-------------------------------*/

$(".toggle_container").hide(); 

$(".toggle_trigger").click(function(){
	$(this).toggleClass("toggle_active").next().slideToggle("fast");
	return false;
});


/*
Testimonials
-------------------------------*/


