﻿

function masterSetupUrls(urlsObj) {
    function showInWindow(u) {
        var w = window.open(u);
        
    }
    
    function showInInternalWindow(url) {
         try {
        var w= 600, h = 600;
        var f='status=0,toolbar=0,location=0,menubar=0,scrollbars=1,resizable=1,width='+w+'px,height='+h+'px';
        var w = window.open(url, 'info', f);
        }catch(e){}
        try {if (w) { w.focus(); }  } catch (e) { }
    }
    var urls = urlsObj;
    $('.btnPrivacy').click(function() {
    //showInInternalWindow(urls.p);
    showInWindow("http://www.proteqdierenzorg.nl");
    });
    $('.btnDisclaimer').click(function() {
    //showInInternalWindow(urls.d);
    showInWindow("http://www.proteqdierenzorg.nl");
    });
    $('.btnSpelregels').click(function() {
    //showInInternalWindow(urls.s);
    showInWindow("http://www.proteqdierenzorg.nl");
    });
    $('.btnProteq').click(function() {
    showInWindow("http://www.proteqdierenzorg.nl");
    });
    $('.btnSNSReaal').click(function() {
        showInWindow("http://www.snsreaal.nl/");
    });
    
}

$(function() {
    var dvBgNode = $("div.bg");
    $(window).scroll(function(e) {
        var offsetY = (window.pageYOffset) ? window.pageYOffset : (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
        //$("div.bg").css('top', offsetY + 'px');
        dvBgNode.css('top', offsetY + 'px');
    });
});
