$(document).ready(function(){
    if($('.scroll-container').length > 0){
        setTimeout(function(){
            $('.scroll-container').jScrollPane({scrollbarWidth: 20, showArrows: true, animateTo:true});
            $('#content .image-border1.right1').css('margin','7px 0px 10px 10px;');
        }, 1000);
    }
    
    if(jQuery.browser.chrome){
        $('#site').css('padding-left', '2px');
    }
});

function switchForm(){
    if(document.form1.Maastricht.checked){
        $('.uitbreiding').css('display', 'block');
        document.form1.Brussel.checked = false;
        $('.brussel').css('display', 'none');
        setTimeout(function(){$('.scroll-container').jScrollPane({scrollbarWidth: 20, showArrows: true});},100);
    } else {
        $('.uitbreiding').css('display', 'none');
        $('.scroll-container').jScrollPane({scrollbarWidth: 20, showArrows: true});    
    }
}

function switchFormBrussel(){
    if(document.form1.Brussel.checked){
        $('.brussel').css('display', 'block');
        document.form1.Maastricht.checked = false;
        $('.uitbreiding').css('display', 'none');
        setTimeout(function(){$('.scroll-container').jScrollPane({scrollbarWidth: 20, showArrows: true});},100);
    } else {
        $('.brussel').css('display', 'none');
        $('.scroll-container').jScrollPane({scrollbarWidth: 20, showArrows: true});    
    }
}

function printJob(){
    var ScrollContainer = $('.scroll-container').html();
    PrintContainer = $('.print-container').html(ScrollContainer);
}



String.prototype.startsWith = function(str)
{return (this.match("^"+str)==str)}