﻿    function showid(id) {

        $(".hidingparagraph").hide();
        $("#hidingparagraph" + id).show();
    }

    $(document).ready(function() {
        $(".hidingparagraph").hide();
        var count = 0;
        $(".hidingparagraph").each(function() {
            if (count == 0)
                $(this).show();
            count++;
        });
        $("input#navn").click(function() {
            if ($(this).attr("value") == "Navn")
                $(this).attr("value", "");
        });
        $("input#firma").click(function() {
            if ($(this).attr("value") == "Firma")
                $(this).attr("value", "");
        });
        $("input#telefon").click(function() {
            if ($(this).attr("value") == "Telefon")
                $(this).attr("value", "");
        });
        $("input#email").click(function() {
            if ($(this).attr("value") == "E-mail")
                $(this).attr("value", "");
        });

        $("form#kontaktform").submit(function() {

        });

        $('.faqitem').find('.faq_question').click(function() {
            if ($(this).parent().find('.faq_answer').is(":hidden"))
                $(this).parent().find('.faq_answer').slideDown();
            else
                $(this).parent().find('.faq_answer').slideUp();
        });
    });



