﻿$(document).ready(function() {
    $('input[name=beantwoord]:radio').click(function(e) {
        var rating = null;
        $('#faqConfirm').addClass('displayNone');

        $('#faqConfirmMessage').fadeIn("slow", function() {
            if ($('input[name=beantwoord]:checked').val() == "nee") {

                rating = 'False';

                /* Form tonen */
                $('#faqForm').fadeIn("slow");

            } else {
                rating = 'True';
            }


            /* Track event */
            if (_gaq) {
                try {
                    if (_gaq != null) {
                        _gaq.push(['_trackEvent', 'FAQ', 'Usefull', $("#question").text(), rating]);
                    }
                } catch (e) { }
            }
        });
    });


});



