/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found ')'
(1,11): run-time error CSS1025: Expected comma or open brace, found ')'
(23,2): run-time error CSS1019: Unexpected token, found ')'
(25,1): run-time error CSS1019: Unexpected token, found '$'
(25,2): run-time error CSS1019: Unexpected token, found '('
(25,12): run-time error CSS1031: Expected selector, found '('
(25,12): run-time error CSS1025: Expected comma or open brace, found '('
(27,2): run-time error CSS1019: Unexpected token, found ')'
(29,1): run-time error CSS1019: Unexpected token, found '$'
(29,2): run-time error CSS1019: Unexpected token, found '('
(29,9): run-time error CSS1031: Expected selector, found ')'
(29,9): run-time error CSS1025: Expected comma or open brace, found ')'
(53,2): run-time error CSS1019: Unexpected token, found ')'
 */
$(document).ready(function () {
    var divs = $(".addClass-about > div");
    for (var i = 0; i < divs.length; i += 2) {
        divs.slice(i, i + 2).wrapAll("<div class='row'></div>");
    }
    $('.rowPakket').last().addClass('last');

    $('div.tooltip-toggle').each(function () {
        if ($(this).attr('data-original-title').length == 0) {
            $(this).addClass('hidden');
        }
    });

    //$('.rowPakket.elke-website').wrapAll('<div class="pakket-group"></div>');
    //$('.rowPakket.kosten').wrapAll('<div class="pakket-group"></div>');
    //$('.rowPakket.service').wrapAll('<div class="pakket-group"></div>');
    //$('.rowPakket.beheer').wrapAll('<div class="pakket-group"></div>');

    $('.tooltip-toggle').click(function (e) {
        e.preventDefault();
        return false;
    });
});

$(function () {
    $('[data-toggle="tooltip"]').tooltip()
});

$(window).load(function () {
    $('.pakket-group').click(function () {
        var position = $('.pakket-group.active').height;
        var height = $(this).find(".service").height();
        if ($(this).hasClass('active')) {
            $(this).removeClass('active');
            $(this).css('max-height', '35px');
            $('a.tooltip-toggle').tooltip('hide')
            $(this).find('.toggle-pakket').html('<i class="fa fa-plus-circle" aria-hidden="true"></i>');
        } else {
            $('.pakket-group').removeClass('active');
            $('a.tooltip-toggle').tooltip('hide')
            $(this).addClass('active');
            $(this).css('max-height', height + 'px');
            $(this).find('.toggle-pakket').html('<i class="fa fa-minus-circle" aria-hidden="true"></i>');
        }
    });

    $('.toggle-pakket').click(function (e) {
        e.preventDefault();
        return false;
    });

    $('.pakket-group .rowPakket:first-child .pakketuitleg').append('<div class="toggle-pakket"><i class="fa fa-plus-circle" aria-hidden="true"></i></div>')
});

