﻿rtl_site = "buienradar";
rtl_seizoen = "unknown";
rtl_station = "service";
rtl_uuid = "page_title";
rtl_release = "0";
rtl_userid = "unknown";
rtl_mp = "unknown";
rtl_source = "unknown";
rtl_context = "buienradar"
ns_channel = "nieuws_informatie/buienradar";
rtl_zone = "buienradar";
if ((typeof (zonenaam) != 'undefined')) rtl_zone = zonenaam;
if ((typeof (tellernaam) == 'undefined')) tellernaam = "unknown";

function ns_onclick(i, b, c, h, j) {
    var e = "http://nl.sitestat.com/rtl/buienradar/s?" + tellernaam + "&rtl_seizoen=" + rtl_seizoen + "&rtl_station=" + rtl_station + "&rtl_uuid=" + rtl_uuid + "&rtl_release=" + rtl_release + "&rtl_zone=" + rtl_zone + "&rtl_site=" + rtl_site + "&rtl_userid=" + rtl_userid + "&rtl_mp=" + rtl_mp + "&rtl_source=" + rtl_source + "&ns_channel=" + ns_channel + "&rtl_context=" + rtl_context;
    e += "&ns_type=" + h + "&ns_action=view"; e += "&ns__t=" + (new Date()).getTime(); if (!b) { b = i.href } var d = document.referrer; if (d.lastIndexOf("/") == d.length - 1) { d = d.substring(d.lastIndexOf("/"), 0) } if (d.length > 0) { e += "&amp;ns_referrer=" + escape(d) } j = j || ""; var f = (i && i.target && i.target != "") ? (i.target.substring(0, 1) == "_") ? i.target.substring(1) : i.target : "self"; var g = new Image(); if (f && b) {
        if (window[f] && b.substring(0, 4) == "http") {
            window.ns_softclick_timer = function (k, a) {
                return function () {
                    if (window.ns_softclick_timeout) { window.clearTimeout(window.ns_softclick_timeout) } g.onload = g.onerror = function () { return }; window[((window[k]) ? k : "self")].location.href = a
                }
            } (f, b); ns_softclick_timeout = window.setTimeout("ns_softclick_timer()", 5000); g.onload = g.onerror = window.ns_softclick_timer
        } else { window.open(b, f, j) }
    } g.src = e; return false
};

$(document).ready(function () {
    $('a[href^="http://"]').click(function () {
        var url = $(this).attr('href');        
        ns_onclick(this, '', tellernaam, 'clickout');
        return false;
    });
}
);
