$(document).ready(function() {

    if ($("#zoekbox_main, #zoekbox, #zoekbox_mainO").length > 0) {
        $("#zoekbox_main, #zoekbox, #zoekbox_mainO").Watermark("beroep of trefwoord", "#949191");
    }

    if ($("#zoekbox_main, #zoekbox, #zoekbox_mainO").length > 0) {
        $("#zoekbox_main, #zoekbox, #zoekbox_mainO").Watermark("beroep of trefwoord", "#949191");
    }

    if (jQuery.browser.msie) {
        if (parseInt(jQuery.browser.version) == 6) {
            $('#menu ul li').hover(function() {
                $(this).addClass('ie6hover');
            }, function() {
                $(this).removeClass('ie6hover');
            });
        }

    }
    // Accordion
    if ($(".domeinblock").length > 0) {
        $(".domeinblock").accordion({ header: 'h5', active: 0 });
        $(".domeinblock")[0].style.display = 'block';
    }

    // Accordion addresses
    if ($(".adressesblock").length > 0) {
        $(".adressesblock").accordion({ header: 'h5', active: 'Amsterdam' });
        $(".adressesblock")[0].style.display = 'block';
    }

    // Tooltip
    if ($(".info_icon").length > 0) {
        $(".info_icon").click(function() {
            $(this).next(".tooltip").fadeIn();
        });
    }

    if ($(".close").length > 0) {
        $(".close").click(function() {
            $(this).parent(".tooltip").fadeOut();
        });
    }

    if ($("#stuurdoor_form").length > 0) {
        $("#stuurdoor_form").hide();
        $('a#stuurdoor').click(function() {
            $('#stuurdoor_form').toggle();
            $('#emailMessage').html('');
        });
    }

});




