/**
 * @author Christian
 */ 
    $(function(){
        var faqQuestion = $('.faqElement > h2').css({opacity: .55});
        var faqResponse = $('.faqElement > div');
		var sLength = $('.faqElement').length;
		$('.faqElement > h3').css({color: '#000000', opacity: .55});
        faqQuestion.css({
            'cursor': 'pointer'
        });
        $(faqResponse).hide();
        var faqHoverConfig = {
            sensitivity: 1,
            interval: 10,
            over: shadeIn,
            timeout: 100,
            out: shadeOut
        };
        function shadeIn(){
            $(this).animate({
                backgroundColor: '#e7f0fa',
                opacity: 1
            }, 450).prev().css({
                "color": "#000",
				opacity: 1
            });
        };
        function shadeOut(){
            $(this).animate({
                backgroundColor: '#fff',
				opacity: .55
            }, 450).prev().css({
                "color": "#000000",
				opacity: .55
            });
        };
        $('.contentWrap').css({
            'overflow': 'hidden'
        });
        $('.faqElement > div').css({
            'overflow': 'hidden'
        });
        $('.faqElement').css({
            'overflow': 'hidden'
        });
        $(faqQuestion).hoverIntent(faqHoverConfig).click(function(){
            if (!($(this).hasClass('down'))) {
                $('.faqElement > div').slideUp(1000).prev().removeClass('down').prev().html('+');
                $(this).addClass('down').next().slideDown(1000).prev().prev().html('-');
            } else if ($(this).hasClass('down')) {
                $(this).removeClass('down').next().slideUp(1000).prev().removeClass('down').prev().html('+');
			}
        });
    });
