
function initTabs() {

    $(document).ready(function () {

        $('#tabs').tabs();
        $('#laatste-panden-tabs').tabs();

    });

}

function initForms() {

    $(document).ready(function () {

        $('.transform-form').jqTransform();

    });

}

function initInDeKijker() {

    $(document).ready(function () {

        $('.indekijker-container').cycle({
            fx: 'fade',
            pause: 5,
            prev: "#indekijker_prev",
            next: "#indekijker_next"
        });

    
        $(".ic_container").capslide({
            caption_color: '#ffffff',
            caption_bgcolor: '#00bbe8',
            overlay_bgcolor: '#ffffff',
            border: '',
            showcaption: true,
            width: 280,
            height: 210
        });

    });

}


function initColorbox() {

    $(document).ready(function () {

        $("a.colorbox").colorbox({
            current: "{current} - {total}",
            slideshow: true,
            slideshowAuto: false,
            speed: 500
        });

        $("a[rel='pand_detail']").colorbox({
            current: "{current} - {total}",
            slideshow: true,
            slideshowAuto: false,
            speed: 500
        });

    });

}


function initGoogleMaps(container_id) {

    $(document).ready(function () {

        $("#" + container_id).gmap3({ 
            action: 'init',
            options: {  
                mapTypeId: google.maps.MapTypeId.SATELLITE,
                mapTypeControl: true,
                mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
                },
                navigationControl: true,
                scrollwheel: true,
                streetViewControl: true
              }
          }); 

    });

}

function addGoogleMapsMarkerAdres(container_id, adres) {

    $("#" + container_id).gmap3({
        action: 'addMarker',
        address: '"' + adres + '"',
        map: {
            center: true,
            zoom: 14
        }
    });

}

function addGoogleMapsMarkerLatLng(container_id, lat, lng) {

    $("#" + container_id).gmap3({
        action: 'addMarker',
        latLng:[lat,lng],
        map: {
            center: true,
            zoom: 14
        }
    });

}


    function initEPC(iEPC) {

        $(function() {

            $("#EPC_slider").slider({
                disabled: true,
                min: 0,
                max: 700,
                value: iEPC
            });

        });

    }


    function blockPagina(blockID) {

        $.blockUI({
            message: $('#' + blockID),
            css: {
                padding: 0,
                margin: 0,
                textAlign: 'center',
                color: '#000',
                border: 'none',
                backgroundColor: '#transparent',
                cursor: 'wait'
            },
            overlayCSS: {
                backgroundColor: '#E6E5E8',
                opacity: 1
            }
        });


    }

    function maakToggle(sClientID, sTargetID) {

        $(document).ready(function () {

            $("#" + sClientID).click(function () {
                $("#" + sTargetID).slideToggle("slow");
            });

        });
    }





  

 
 
