function init_3d_carousel() {
    $("#carousel1").CloudCarousel({
            autoRotate:'right',
            buttonLeft: $("#left-but"),
            buttonRight: $("#right-but"),
            //altBox: $("#alt-text"),
            //titleBox: $("#title-text"),
            minScale: 0.6,
            reflHeight: 56,
            reflGap:2,
            yRadius:30,
        xRadius:200,
            xPos: 300,
            yPos: 30,
            speed:.1,
            mouseWheel:true,
    reflOpacity:0.1,
       autoRotateDelay: 4600
    });
}

$(function($) {		
	// Scroll to top animation
	$('.scroll-top').click(function(){ 
		$('html, body').animate({scrollTop:0}, 600); return false; 
	});
	
	
	// Hide parent on click (error messages, etc...)
	$('a.hideparent').click(function(){ 
		$(this).parent().fadeOut();
		return false;
	});

	

    // Toggle Content!
    $(".hidden").hide();
    $("a.toggle").click(function(event){
        if( $(this).text() == '[+]' ) {
            $(this).text("[-]");
        }else{
            $(this).text("[+]");
        }
        $(this).parents(".toggle-container").find(".hidden").slideToggle("normal");
        return false;
    });
	
	   // ---- FAQs ---------------------------------------------------------------------------------------------------------------
		
		$('.faqs dd').hide(); // Hide all DDs inside .faqs
		$('.faqs dt').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}).click(function(){ // Add class "hover" on dt when hover
		$(this).next().slideToggle('normal'); // Toggle dd when the respective dt is clicked
		}); 
	
	
	
});


