(function() {
    var a = "byburt_version",
    b = "byburt_placementToId",
    c = "byburt_persistentReferer",
    d = "byburt_click",
    e = "byburt_write",
    f = "byburt_afterAdCloserScript",
    g = "byburt_pushWrite",
    h = "byburt_popWrite",
    i = "byburt_documentWritten",
    j = "byburt_documentWrite",
    k = "byburt_placementName",
    l = "byburt_permanentDocumentWrite",
    m = "byburt_recursiveScript",
    n = "byburt_onDomReady",
    o = "byburt_end",
    p = "richUserId",
    q = "byburt_adtags",
    r = "byburt_adapt",
    s = "byburt_onmessage",
    t = "byburt_messagebuffer",
    u = "byburt_addMessageListener",
    v = "byburt_sizzle",
    w = "byburt_agentLoad",
    x = "startRichAuto",
    y = "trackRichPlacement",
    z = "byburt_auto",
    A = "byburt_disable",
    B = "http://rich-agent.s3.amazonaws.com/recursive.js",
    C = 1900,
    D = 1097;
    window[a] = D;
    var E = D + "-JS",
    F = "byburt_ads_",
    G = F + D,
    H = "byburt_pageid",
    I = "byburt_adid_",
    J = "byburt_before_adtag",
    K = "byburt_after_adtag",
    developmentModeIdentifier = "byburt_developmentMode",
    L = 500,
    M = "rich-agent.s3.amazonaws.com",
    N = 10,
    agentUrlPrefix = "http://rich-agent.s3.amazonaws.com/rfm/",
    O = 2,
    P = 0;
    window.byburt_siteName = "nettavisen";
    var Q = function(a, b) {
        var c = (new RegExp("(?:^|; )" + encodeURIComponent(a) + "=([^;]*)")).exec(document.cookie);
        return c ? b ? c[1] : decodeURIComponent(c[1]) : null
    },
    R = function(a, b, c) {
        c = c || {},
        b || (c.expires = -1);
        if (typeof c.expires == "number") {
            var d = c.expires;
            c.expires = new Date,
            c.expires.setDate(c.expires.getDate() + d)
        }
        var e = [encodeURIComponent(a) + "=" + (c.raw ? String(b) : encodeURIComponent(String(b)))];
        c.expires && c.expires.toUTCString && e.push("expires=" + c.expires.toUTCString()),
        c.path && e.push("path=" + c.path),
        c.domain && e.push("domain=" + c.domain),
        c.secure && e.push("secure"),
        document.cookie = e.join("; ")
    },
    S = function(a) {
        document.addEventListener ? window.addEventListener("load", a, !1) : document.attachEvent && window.attachEvent("onload", a)
    },
    T = function(a, b, c) {
        return function() {
            return a.apply(b, (c || []).concat(Array.prototype.slice.call(arguments, 0)))
        }
    },
    U = function(a, b) {
        return T(a, b || {})
    },
    V = function(a) {
        var b = 1,
        c = 0,
        d = 65521;
        for (var e = 0; e < a.length; e++) b = (b + a.charCodeAt(e)) % d,
        c = (c + b) % d;
        return c << 16 | b
    },
    W = function(a) {
        var b = [];
        for (var c = 0; c < a.length; c++) a[c].nodeType != 3 && a[c].nodeType != 8 && b.push(a[c]);
        return b
    },
    X = function(a) {
        if (a.match(/<script/i)) return null;
        var b = document.createElement("div");
        return b.innerHTML = a,
        W(b.childNodes)
    },
    Y = function(a) {
        var b = 2636928640,
        c = 4022730752,
        d = 2147483648,
        e = 624,
        f = 2147483647,
        g = 2567483615,
        h = 1812433253,
        i = 397,
        j = 4294967296,
        k = 65535,
        l = 11,
        m = 15,
        n = 18,
        o = 7,
        p = [],
        q = e,
        r = {};
        return r.seed = function(a) {
            q = e,
            p[0] = a >>> 0;
            for (var b = 1; b < e; b++) p[b] = p[b - 1] ^ p[b - 1] >>> 30,
            p[b] = (h * ((p[b] & k << 16) >>> 16) << 16) + (p[b] & k) * h + b >>> 0
        },
        r.random = function() {
            if (q >= e) {
                for (var a = 0; a < e; a++) p[a] = ((p[(a + 1) % e] & 1) === 1 ? g: 0) ^ (p[a] & d | p[(a + 1) % e] & f) >>> 1 ^ p[a + i - (a < e - i ? 0: e)];
                q = 0
            }
            var h = p[q];
            return h ^= h >>> l,
            h ^= h << o & b,
            h ^= h << m & c,
            h ^= h >>> n,
            q++,
            (h >>> 0) * (1 / j)
        },
        r.seed(a || (new Date).getTime()),
        r
    },
    Z = function() {
        return window && bv(window.top, "location") && bv(window.top.location, "href") ? window.top.location.href: window.location.href
    },
    $ = function() {
        var a = navigator.userAgent;
        return /MSIE/.test(a) ? "msie": /Firefox/.test(a) ? "firefox": /Chrome/.test(a) ? "chrome": /Safari/.test(a) ? "safari": /Opera/.test(a) ? "opera": "unknown"
    },
    _ = function(a) {
        return function() {
            var b = !1;
            return function() {
                b || (b = !0, a.apply(null, arguments))
            }
        } ()
    },
    ba = function(a) {
        return a
    },
    bb = function(a) {
        return Object.prototype.toString.call(a)
    },
    bc = function(a) {
        return bb(a) === "[object Array]"
    },
    bd = function(a) {
        var b = bb(a),
        c = a.length;
        return bc(a) || c === c >>> 0
    },
    be = function(a, b) {
        if (bd(a)) for (var c = 0; c < a.length; c++) b(a[c]);
        else for (var d in a) a.hasOwnProperty(d) && b(d, a[d]);
        return a
    },
    bf = function(a, b) {
        var c = [];
        return be(a,
        function(a) {
            b(a) && c.push(a)
        }),
        c
    },
    bg = function(a) {
        return ba(),
        bf(a, ba)
    },
    bh = function(a, b, c) {
        if (a.length === 0) return [];
        a = bg(a);
        var d = [],
        e;
        for (var f = 0; f < a.length; f++) {
            var g = a[f];
            for (var e = 0; e < b.length; e++) if (g.tagName === b[e]) {
                d.push(g);
                if (!c) return d
            }
            d = d.concat(bh(g.childNodes, b, c));
            if (!c && d.length > 0) return [d[0]]
        }
        return d
    },
    bi = function(a, b, c) {
        var d = "on" + b;
        if (a.addEventListener) a.addEventListener(b, c, !1);
        else if (a.attachEvent) a.attachEvent(d, c);
        else {
            var e = a[d];
            a[d] = function() {
                typeof e == "function" && e.apply(this, arguments),
                c.apply(this, arguments)
            }
        }
    },
    bj = function(a, b) {
        for (var c = 0; c < a.length; c++) if (a[c] === b) return c;
        return - 1
    },
    bk = function(a, b) {
        if (a.length > C) return;
        var c = document.getElementsByTagName("script")[0],
        d = c.parentNode,
        e = document.createElement("script");
        e.type = "text/javascript",
        e.src = a,
        e.onload = e.onerror = e.onreadystatechange = function() {
            if (!e.readyState || /loaded|complete/.test(e.readyState)) b && b(),
            e.onload = e.onerror = e.onreadystatechange = null,
            e.parentNode && e.parentNode.removeChild(e),
            e = undefined
        },
        d.insertBefore(e, c)
    },
    bl = function(a, b) {
        if (a && !/^[A-Za-z0-9]*$/.test(a)) throw new Error("Invalid seed-parameter: " + a);
        var c = a || "";
        b = b || 12;
        while (c.length < b) c = Math.floor(Math.pow(36, 5) * by.random()).toString(36) + c;
        var d = c.substring(c.length - b).toUpperCase();
        if (!/^[A-Z0-9]*$/.test(d)) throw new Error("Invalid id generated: " + d);
        return d
    },
    bm = function() {
        var a = new Date,
        b = Math.floor(a.getTime() / 1e3).toString(36).toUpperCase(),
        c = bl("", 6),
        d = b + c;
        if (!/^[A-Z0-9]*$/.test(d)) throw new Error("Invalid id generated from time: " + d);
        return d
    },
    bn = function() {
        if (!window[H]) {
            var a = bm();
            window[H] = a
        }
        if (!bC && bv(window, "document")) return window[H]
    },
    bo = function(a) {
        return Q(a) || !bC && window.top[a] || window[a]
    },
    bp = function(a, b) {
        R(a, b, {
            path: "/",
            expires: 365
        }),
        window[a] = b,
        bC || (window.top[a] = b)
    },
    bq = function() {
        var a = bo(p);
        return a || (a = bm(), bp(p, a)),
        a
    },
    br = function(a, b) {
        if (!b || !a) return ! 0;
        var c = parseInt("00" + a.substring(0, 6), 36),
        d = parseInt("00" + a.substring(6, 12), 36);
        if (isNaN(c) || isNaN(d)) throw new Error("Invalid ID-parts. Top half is " + c + " and bottom half is " + d);
        return (c + d) % b === 0
    },
    bs = function(a) {
        if (typeof a == "string") return '"' + a.replace(/"/g, '\\"').split("\n").join("\\n") + '"';
        if (typeof a == "number") return a;
        if (typeof a == "boolean") return a;
        var b = [];
        for (var c in a) a.hasOwnProperty(c) && b.push('"' + c + '":' + bs(a[c]));
        return "{" + b.join(",") + "}"
    },
    bt = function(a) {
        return '<span style="display:none" class="' + J + '" id="' + a + '"></span>'
    },
    bu = function() {
        return '<span style="display:none" class="' + K + '"></span>'
    }; (function() {
        var a = agentUrlPrefix + window.byburt_siteName + "/rich-agent.js",
        b = window[G] && typeof window[G].ads != "undefined",
        c = [];
        b || bk(a,
        function() {
            b = !0,
            be(c,
            function(a) {
                a()
            })
        }),
        window[w] = window[w] ||
        function(a) {
            b ? a() : c.push(a)
        }
    })(),
    function() {
        var a = window[t] = [];
        if (window[u]) return;
        var b = [];
        window[u] = function(c) {
            b.push(c),
            be(a,
            function(a) {
                c.apply(this, a)
            })
        },
        window[s] = function() {
            var c = arguments;
            a.length < L && a.push(c),
            be(b,
            function(a) {
                a.apply(this, c)
            })
        },
        window[developmentModeIdentifier] && console && console.log && window[u](function() {
            console.log("Rich", arguments)
        })
    } (),
    function() {
        var a = function() {
            return this
        } (),
        b = function(a) {
            S(function() {
                bk(a)
            })
        },
        c = "@@@BURT_CLICK@@@",
        d = "@@@BURT_SI@@@",
        e = "@@@BURT_STR_PLUS@@@",
        g = function(a) {
            return a.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/<\/script>/ig, "</scr" + e + "ipt>").split("\n").join("\\n").split("\r").join("\\r")
        },
        h = function(a) {
            return a.childNodes ? W(a.children || a.childNodes) : []
        },
        i = function(a, b, c) {
            var d = function(b) {
                var c = a.match(b);
                return c ? {
                    index: c.index,
                    length: c[0].length
                }: {
                    index: -1
                }
            };
            for (;;) {
                var e = d(new RegExp("[\\n\\r]?<" + b + "[^>]*>", "i")).index,
                f = d(new RegExp("[\\n\\r]?</" + b + "\\s*>[\\n\\r]?", "i"));
                if (e === -1 || f === -1 || e > f.index) break;
                var g = a.substring(e, f.index + f.length);
                a = a.replace(g, ""),
                c(g)
            }
        },
        j = function(a) {
            var b = "";
            return i(a, "script",
            function(b) {
                a = a.replace(b, "")
            }),
            i(a, "noscript",
            function(a) {
                b += a
            }),
            b
        },
        k = function(a) {
            var b = [],
            c = 0;
            i(a, "script",
            function(d) {
                b.push(d),
                a = a.replace(d, "#{byburt_script}" + c++)
            }),
            i(a, "noscript",
            function(b) {
                a = a.replace(b, "")
            });
            for (var d = 0; d < b.length; d++) a = a.replace("#{byburt_script}" + d, b[d]);
            return a
        },
        l = U(function(a, b, c, d, e) {
            var f = null,
            g = window[s];
            g && typeof g == "function" && g(b, c);
            var h = "type=" + b;
            for (var i in c) c.hasOwnProperty(i) && (i == e ? f = c[i] : h += "&" + i + "=" + c[i]);
            if (f) {
                h += "&" + e + "=";
                if (f.length + h.length > a) {
                    var j = Math.floor((new Date).getTime() / 1e3).toString(36).toUpperCase(),
                    k = Math.abs(V(++this.fragmentCount + f + navigator.userAgent + window.location.href)).toString(36).substring(0, 6).toUpperCase(),
                    l = 2;
                    while (h.length + Math.ceil(f.length / l) > a) l++;
                    var m = Math.ceil(f.length / l),
                    n = 0;
                    for (var o = 0; n < f.length; o++) {
                        var p = j + k + "_" + o,
                        q = m,
                        r = f.substr(n, q);
                        while (r.length >= 1 && r[r.length - 1] == "%" || r.length >= 2 && r[r.length - 2] == "%") q++,
                        r = f.substr(n, q);
                        n += q,
                        d(h + r + "&fn=" + p)
                    }
                } else d(h + f)
            } else d(h)
        },
        {
            fragmentCount: 0
        }),
        n = function(a, b, e, f, g, h) {
            h && !f.noClickUrl && (b = c + (b || "")),
            b && f.escapeClickUrl && (b = escape(b)),
            g = g || d,
            b = b || "";
            var i = {
                type: "click",
                si: g
            };
            e ? i.rk = e: (i.pi = bn(), i.ui = bq(), i.av = E);
            var j = function(a, c, d) {
                c || (c = "&"),
                d || (d = "="),
                a || (a = "?");
                var e = [];
                return be(i,
                function(a) {
                    var b = i[a];
                    e.push(a + d + b)
                }),
                a + e.join(c) + c + "rd" + d + b
            },
            k;
            f.escapeAll ? k = escape(a) + j(escape("?"), escape("&"), escape("=")) : f.escapedAmps ? k = a + j("?", "%26") : k = a + j();
            if (f.escapes) for (var l = 0; l < f.escapes; l++) k = escape(k);
            return k
        },
        o = function(a, b) {
            for (var c = 0; c < b.length; c++) {
                var d = b[c],
                e = typeof d.match == "string" ? a.indexOf(d.match) > 0: a.match(d.match);
                if (e) {
                    var f = typeof d.transformer == "object" ? d.transformer: [d.transformer],
                    g = null;
                    for (var h = 0; h < f.length; h++) {
                        g = f[h].call(d, a, e);
                        if (typeof g != "undefined" && g !== null) return g
                    }
                }
            }
        },
        p = function(a, b) {
            var c = [],
            d,
            e = a,
            f = 5;
            d = e.match(/<script[^>]*src=(["']?)([^"'> ]+)(\1|>)/i);
            while (d && --f > 0) c.push(d[2]),
            e = e.replace(d[0], ""),
            d = e.match(/<script[^>]*src=(["']?)([^"'> ]+)(\1|>)/i);
            var g = [],
            h;
            for (var i = 0; i < c.length; i++) {
                var j = c[i];
                if (j) {
                    var k = o(j, b);
                    k && g.push([j, k])
                }
            }
            if (g.length > 0) {
                var l = a;
                for (var m = 0; m < g.length; m++) l = l.replace(g[m][0], g[m][1]);
                return l
            }
        },
        q = function(a, b, c, d, e) {
            var f = /^http/.test(b) ? "": window.location.protocol,
            i = g,
            j = function(a, g) {
                return g = g || {},
                n(f + b, a, c, g, d, e)
            },
            k,
            l,
            m;
            if (/ADM_PL.*clk.*External click-tracking here/.test(a)) {
                k = a.match(/ADM_PL.*clk\:([^}]*)/);
                if (k) return a.replace(k[1], "'" + j() + "'")
            }
            var q = a;
            if (a.match(/_version/)) {
                var r = /^<script[^>]+><!--_version=10;\/\/--><\/sc[^>]+><script[^>]+><!--_version=11;\/\/ --><\/sc[^>]+><script[^>]+><!--[^<]+MSIE 3[^<]+<IFRAME.*\/\/--><\/scr[^>]+>/i;
                q = a.replace(r, "")
            }
            var s = X(q);
            if (s && (s.length == 1 || s.length == 2 && s[1].tagName == "IMG") && s[0].tagName == "A") {
                var t = h(s[0]);
                if (t.length == 1 && t[0].tagName == "IMG") {
                    var u = t[0];
                    return a.replace(/href="([^"]*)"/i,
                    function(a, b) {
                        return 'href="' + j(b) + '"'
                    })
                }
            }
            var v = function(a, b) {
                return function(c, d) {
                    var e = a.test(c);
                    if (e) return c = c.replace(a,
                    function() {
                        var a = Array.prototype.slice.call(arguments),
                        c = function(b, c, d) {
                            return c === "$" ? a[parseFloat(d)] : a[parseFloat(d)]
                        },
                        d = (b.before || "").replace(/(\$?)\$(\d)/, c);
                        return d += j(b.urlGroup ? a[b.urlGroup] : null, b.urlOptions),
                        d += (b.after || "").replace(/(\$?)\$(\d)/, c),
                        d
                    }),
                    c
                }
            },
            w = function(a, b) {
                return b.before = (b.before || "") + "window.byburt_click('",
                b.after = "');" + (b.after || ""),
                v(a, b)
            },
            x = [{
                name: "emediate",
                match: /^http:\/\/ad([0-9]+)\.emediate\.dk\/eas([^\;]*)/,
                transformer: [v(/(EASClick[0-9]?=)([^\;]*)(\?|\;|$)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3"
                }), v(/\/eas([^\;]*)/, {
                    escape: "before",
                    before: "$1;click=",
                    after: ""
                })]
            },
            {
                name: "doubleclick",
                match: /^http:\/\/ad([\-a-z]*).doubleclick.net\/adj\/([^\;]*)/,
                transformer: [v(/(click[0-9]?=)([^\;]*)(\?|\;|$)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3"
                }), v(/(adj\/.*\?)/, {
                    escape: "before",
                    before: "$1;click0=",
                    after: ""
                })]
            },
            {
                name: "adform",
                match: /http:\/\/track.adform.net\/adfscript\/\?bn=[0-9]+/,
                transformer: [v(/(\;click\=)([^;\"\'\>]*)(.*)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3"
                }), v(/(adfscript\/\?bn=[0-9]+)/, {
                    escape: "before",
                    before: "$1;click=",
                    after: ""
                })]
            },
            {
                name: "atdmt",
                match: /http\:\/\/view.atdmt.com(.+?)/,
                transformer: [v(/(click=)(.*)$/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "",
                    urlOptions: {
                        escapedAmps: !0
                    }
                }), v(/(view.atdmt.com.+?)(\?)?$/, {
                    escape: "before",
                    before: "$1?click=",
                    after: "",
                    urlOptions: {
                        escapedAmps: !0
                    }
                })]
            },
            {
                name: "mediaplex",
                match: /http\:\/\/altfarm.mediaplex.com\/ad\/js\/.*mpvc.*/g,
                transformer: v(/(mpvc\=)(.+\?)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1"
                })
            },
            {
                name: "de17a",
                match: /http:\/\/de17a.com\//,
                transformer: v(/(\?url=)(.*\.click)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1"
                })
            },
            {
                name: "openx",
                match: /http:\/\/openx\.bonniertidskrifter\.se\/www\/delivery\/ajs.php.*/g,
                transformer: v(/(ajs.php[^'\"]*)$/, {
                    escape: "before",
                    before: "$1&amp;ct0=",
                    after: "",
                    urlOptions: {
                        escapeAll: !0
                    }
                })
            },
            {
                name: "serving-sys",
                match: /bs\.serving-sys\.com\/BurstingPipe.+?ncu=/mig,
                transformer: v(/(ncu=)(.*)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "",
                    urlOptions: {
                        escapedAmps: !0,
                        escapeAll: !0
                    }
                })
            },
            {
                name: "adtech",
                match: /\.adtech\./,
                transformer: [v(/(rdclick=)(.+?)(:|$)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3",
                    urlOptions: {
                        escapeClickUrl: !0
                    }
                }), v(/(\.adtech\..+?)($)/, {
                    escape: "before",
                    before: "$1;rdclick=",
                    after: "$2"
                })]
            },
            {
                name: "advertserve",
                match: /\.advertserve\./,
                transformer: [v(/(cturl=)(.*?)($)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3"
                }), v(/(advertserve.+?)($)/, {
                    escape: "before",
                    before: "$1&cturl=",
                    after: "$2"
                })]
            }],
            y = o(a, [{
                name: "TFSMFlash",
                type: "other",
                match: "var TFSMFlash_SWFCLICKVARIABLE",
                transformer: v(/(var TFSMFlash_SWFCLICKVARIABLE)/, {
                    escape: "before",
                    before: 'TFSMFlash_OASCLICK = "',
                    after: '" + encodeURIComponent(TFSMFlash_OASCLICK);\n$1',
                    urlOptions: {
                        escapedAmps: !0
                    }
                })
            },
            {
                name: "adtoma",
                type: "other",
                match: /<a.*onclick\s*\=\s*\"window\.Fusion\.countAdvertEvent\(\d+.*<\/a\>/,
                transformer: w(/(onclick=")([^\"]*")/, {
                    escape: "before",
                    before: "$1",
                    after: "$2",
                    urlOptions: {
                        noClickUrl: !0
                    }
                })
            },
            {
                name: "tradedoubler",
                match: /anet\.tradedoubler\.com\/anet.+?preurl\((.+?)\)/,
                transformer: v(/(preurl\()(.+?)(\))/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3",
                    urlOptions: {
                        escapeClickUrl: !0
                    }
                })
            },
            {
                name: "FusionGet",
                match: "window.Fusion.getAdvertEventUrl",
                transformer: function(a, b) {
                    var c = v(/(window\.Fusion\.getAdvertEventUrl.+?\?url=)/g, {
                        before: "$1",
                        urlOptions: {
                            escapeAll: !0
                        }
                    })(a, b);
                    if (c) {
                        var d = p(c, x);
                        return d || c
                    }
                    return null
                }
            },
            {
                name: "Adtech document write",
                match: /document.write.+adtech/mig,
                transformer: [v(/(adtech.+?rdclick=)(.+?)(\"|')/mig, {
                    before: "$1",
                    urlGroup: 2,
                    after: "$3"
                }), v(/(adtech.+?\;grp='\+window.adgroupid\+'\;misc='\+new Date\(\)\.getTime\(\)\+')/mig, {
                    before: "$1;rdclick="
                })]
            },
            {
                name: "admeta",
                match: /http:\/\/ai.admeta.com\/adserve\/public/,
                transformer: [v(/(\?url=)([^&]*)(&)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "$3",
                    urlOptions: {
                        escapes: 2
                    }
                }), v(/(&urlPrefix=)(.+?\?)(&[^\"]+)/, {
                    escape: "before",
                    urlGroup: 2,
                    before: "$1",
                    after: "",
                    urlOptions: {
                        escapedAmps: !0,
                        escapes: 1
                    }
                })]
            }]);
            return y ? y: (y = p(a, x), y)
        },
        t = function(a) {
            return /\AdPlayTracking\d+langstner/.test(a) ? !1: 4 === (a.match(/document\.write\('<script type="text\/javascript" src="http:\/\/oas-se\.bonnierdigitalservices\.com\/3\/' \+ at_page \+ '\/\d+/g) || []).length ? !1: a.match(/div.+?class=\"at_ad\".+?at_k2a[1-4]/img) ? !1: !0
        },
        u = function(a) {
            var b,
            c;
            return a.currentStyle && a.currentStyle.width && a.currentStyle.height ? (b = parseInt(a.currentStyle.width, 10), c = parseInt(a.currentStyle.height, 10)) : (b = a.getAttribute("width"), c = a.getAttribute("height")),
            {
                width: b,
                height: c
            }
        },
        v = function(a) {
            var b = X(a);
            if (b) {
                if (b.length == 1 && b[0].tagName == "A") {
                    var c = h(b[0]);
                    if (c.length == 1 && c[0].tagName == "IMG") {
                        var d = u(c[0]);
                        if (d.width == 1 && d.height == 1) return g(a)
                    }
                }
                if (b.length == 1 && b[0].tagName == "DIV" && b[0].className == "byburt_empty") return g(a)
            }
            return /<script.*navigator\.appversion\.indexof\(\'msie 3\'\).*iframe.*oas_url.*realmedia\/ads\/click_nx\.ads.*(<a.*empty\.gif.*<img.*width=1.*height=1.*)<\/a/i.test(a.replace(/\x0a|\x0d/g, "")) || /<a.*?href=\"http:\/\/oas.*?\.gif.*?<img.*?width="*1"*.*?height="*1"*.*?/i.test(a.replace(/\x0a|\x0d/g, "")) ? g(a) : null
        },
        w = function(a) {
            return (a.match(/class="at_ad"/mg) || []).length === 4 && a.match(/Annonstorget/i)
        };
        a[r] = function(c, d, e) {
            var h = function(a, c) {
                var f = d.logurl + "?" + c;
                b(f);
                var g = e.onMessage;
                g && typeof g == "function" && g(f)
            };
            try {
                e = e || {},
                d = d || {};
                if (!c) throw "Must supply an ad tag";
                if (!d.agentVersion) throw "Must supply an agent version";
                if (e.mediaKey && e.apiKey) throw "Cannot supply both a media key and an api key";
                if (!e.mediaKey && !e.apiKey) throw "Must supply either a media key or an api key";
                if (!by) {
                    var i = [];
                    i.push(bz - (new Date).getTime()),
                    i.push(navigator.userAgent),
                    i.push(window.location.href),
                    by = Y(V(i.join(" ")))
                }
                if (w(c)) {
                    var n = /<div class=\"at_ad\" id=\"([a-z0-9_]+)\"(.+\n)+?.+<\/div>/gm,
                    o = c.replace(n,
                    function(b, c) {
                        var f = {};
                        return be(e,
                        function(a, b) {
                            a === "placementName" ? f[a] = c: f[a] = b
                        }),
                        f.noAfterTag = !0,
                        a[r](b, d, f)
                    });
                    return o
                }
                if (d.rfm) {
                    g = function(a) {
                        return a.replace(/(['"])<\/script>(['"])/g, "$1</scr$1 + $1ipt>$2")
                    },
                    e.sessionId = e.sessionId || bm(),
                    e.adId = e.adId || I + ++P + "_" + e.sessionId;
                    if (!br(bq(), e.sample)) return c
                } else e.clickEscapes = e.clickEscapes || 1;
                var p = "",
                s = d.noscriptIgnore ? null: j(c),
                u = !1;
                c = k(c);
                var x = v(c);
                if (x) e.empty = !0,
                e.clickEnabled = !1,
                p = x;
                else if (!d.logurl) e.clickEnabled = !1,
                p = g(c);
                else {
                    var y = q(c, d.logurl, e.apiKey, e.sessionId, d.rfm ? null: e);
                    if (y) p = g(y),
                    e.clickEnabled = !0;
                    else {
                        p = g(c),
                        e.clickEnabled = !1;
                        if (e.apiKey) throw "Parsefail: Could not adapt ad";
                        if (t(c)) {
                            var z = Z(),
                            A = /https?:\/\/localhost/,
                            D = !1;
                            D = d.logurl && !A.test(z),
                            D = D || e.onMessage,
                            D ? l(C - d.logurl.length, "parsefail", {
                                av: E,
                                mk: e.mediaKey,
                                wn: e.siteName,
                                eu: escape(z),
                                pi: bn(),
                                ui: bq(),
                                ms: escape(bs({
                                    adtag: c,
                                    params: d,
                                    config: e
                                }))
                            },
                            function(a) {
                                h(d.logurl, a)
                            },
                            "ms") : u = !0
                        }
                    }
                }
                var G = function() {
                    var a = F + d.agentVersion,
                    b = [],
                    c = e.noAfterTag,
                    g = bD && !e.empty;
                    d.noAgent || b.push('<script type="text/javascript" src="http://' + M + "/agent-v" + d.agentVersion + '.js"></script>');
                    var h = function() {
                        var a = [];
                        for (var b in e) e.hasOwnProperty(b) && a.push("  " + b + ": " + bs(e[b]));
                        return a.join(",\n")
                    },
                    i = {
                        si: "' + si + '",
                        click: "' + clickUrl + '",
                        str_plus: "' + '"
                    };
                    return p = p.replace(/@@@BURT_([A-Z_]+)@@@/g,
                    function(a, b) {
                        return i[b.toLowerCase()]
                    }),
                    d.rfm ? (b = b.concat([bt(e.adId), p, c || g ? "": bu(), '<script type="text/javascript">', "window." + a + " = window." + a + " || [];", "window." + a + ".push({", h(), "});", "</script>"]), g && !c && (b = b.concat(['<script type="text/javascript">window.' + m + " = { counter: " + N + ', url: "' + B + '", callback: function() { if (window.' + f + ") { document.write(window." + f + "); window." + f + ' = null; } document.write("<span style=\\"display:none;\\" class=\\"' + K + '\\"></span>"); } };</scr' + "ipt>", '<script type="text/javascript" src="' + B + '"></scr' + "ipt>"]))) : b = b.concat(['<script type="text/javascript">', "window." + a + " = window." + a + " || [];", "window." + a + ".push({", h() + ",", "  enclosedCallback: function(si, ai, qs, clickUrl) {", "    document.write('" + p + "');", "  }", "});", "</script>"]),
                    s && b.push(s),
                    d.showParseFail && b.push("<!-- parseFail = " + u + "-->"),
                    b.join("\n")
                };
                return G()
            } catch(H) {
                if (d.raiseErrors) throw H;
                try {
                    return l(C - d.logurl.length, "error", {
                        av: O + "-adapt",
                        eu: escape(Z()),
                        wn: escape(e.sitename),
                        ms: escape("adapt: " + (H.message ? H.message: H))
                    },
                    function(a) {
                        h(d.logurl, a)
                    },
                    "ms"),
                    c
                } catch(J) {
                    return c
                }
            }
        }
    } (),
    function() {
        bi(window, "message",
        function(a) {
            var b = function(a) {
                var b = document.createElement("a");
                b.href = a;
                var c = b.host.split(":")[0];
                if (!c) return ! 1;
                var d = c.split(".").slice( - 2).join("."),
                e = ["localhost", "burtcorp.com", "richmetrics.com"];
                return bj(e, d) != -1
            };
            b(a.origin) && a.data.slice(0, 14) === "rich-inject-js" && bk(a.data.slice(15))
        }),
        bi(window, "load",
        function(a) {
            window.top.postMessage && window.top != window && window.top && window.top.postMessage("rich-tracking", "*")
        })
    } ();
    var bv = function(a, b) {
        try {
            var c = Array.prototype.slice.call(arguments);
            c = c.slice(1, c.length);
            for (var d = 0; d < c.length; d++) {
                var e = c[d];
                a = a[e]
            }
            return typeof a != "undefined"
        } catch(f) {
            return ! 1
        }
    },
    bw = 0,
    bx = 0,
    by,
    bz = (new Date).getTime(),
    bA = !1,
    bB = !1,
    bC = !(bv(window, "top") && bv(window.top, "document") && bv(window.top.document, "firstChild")),
    bD = navigator.appName == "Microsoft Internet Explorer" || navigator.appName == "Opera",
    bE = navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion && parseFloat(navigator.appVersion.split("MSIE")[1]) <= 9,
    bF = window.WebSocket || window.MozWebSocket; (function() {
        var a = !1,
        b = [];
        if (window[n] && typeof window[n] == "function") return;
        var c = function() {
            if (!document.body) {
                setTimeout(c, 13);
                return
            }
            for (var a = 0; a < b.length; a++) b[a]();
            b = []
        },
        d = function() {
            if (document.addEventListener) {
                var a = function() {
                    document.removeEventListener("DOMContentLoaded", a, !1),
                    c()
                };
                document.addEventListener("DOMContentLoaded", a, !1),
                window.addEventListener("load", c, !1)
            } else if (document.attachEvent) {
                var d = function() {
                    document.readyState === "complete" && (document.detachEvent("onreadystatechange", d), c())
                };
                document.attachEvent("onreadystatechange", d),
                window.attachEvent("onload", c);
                var e = !1;
                try {
                    e = window.frameElement === null
                } catch(f) {}
                if (document.documentElement.doScroll && e) {
                    var g = function() {
                        if (b.length === 0) return;
                        try {
                            document.documentElement.doScroll("left")
                        } catch(a) {
                            setTimeout(g, 1);
                            return
                        }
                        c()
                    };
                    g()
                }
            }
        };
        window[n] = function(e) {
            b.push(e),
            document.readyState === "complete" ? c() : a || (d(), a = !0)
        }
    })(),
    function() {
        var a = "NETTQKDNPLAD",
        b = "nettavisen.no",
        c = "//nettavisenlog.richmetrics.com/log",
        sampleFreq = 1;
        if (window.byburt_disable) return;
        var d = function(a) {
            var b = {
                rm: "popup"
            };
            return b[a] || "absolute"
        },
        e = function(a) {
            var b = window.Fusion.adComponents;
            return b[a] && b[a][0] ? b[a][0].ad: null
        },
        f = function() {
            try {
                var a = new RegExp(b + "$");
                if (!a.test(location.host)) return "external";
                var c = window.location.pathname.split("/");
                if (c.length >= 2) {
                    var d = [];
                    for (var e = 1; e < c.length - 1; e++) d.push(c[e]);
                    var f = d.join("-");
                    return f === "" ? "frontpage": f
                }
            } catch(g) {
                return "unknown"
            }
        } (),
        g = window.Fusion.getComponent;
        window.Fusion.getComponent = function(h) {
            var i = e(h),
            j = g.apply(this, arguments);
            if (h) {
                var k = {
                    segments: {
                        layout: window.Fusion.layout,
                        mediaZone: window.Fusion.mediaZone
                    },
                    placementName: h,
                    mediaKey: a,
                    siteName: b,
                    category: f,
                    sample: sampleFreq,
                    mediaLogUrl: c,
                    placementKind: d(h)
                };
                i && (k.adTagId = i),
                j || (j = '<div class="byburt_empty"></div>');
                var l = window[r](j, {
                    rfm: !0,
                    agentVersion: D,
                    noAgent: !0,
                    noscriptIgnore: !0,
                    logurl: c
                },
                k);
                return h === "digitaldm1" && $() === "msie" && navigator.appVersion && parseFloat(navigator.appVersion.split("MSIE")[1]) <= 6 && (l = l.replace('class="kundeavis"', 'class="kundeavis" style="display: inline;"')),
                l
            }
            return j
        };
        var h = function(d, e) {
            var g = {
                placementName: d,
                mediaKey: a,
                siteName: b,
                sample: sampleFreq,
                category: f,
                mediaLogUrl: c,
                placementKind: "absolute",
                clickEnabled: !1
            };
            e(g),
            window[G] = window[G] || [],
            window[G].push(g)
        },
        i = _(function() {
            if (location.pathname === "/") {
                h("bottom_google",
                function(a) {
                    var b = document.getElementById("main_col");
                    if (b) {
                        var c = b.lastChild;
                        for (var d = 0; d < 5; d++) {
                            if (c.tagName && c.tagName === "DIV") {
                                a.adNodes = [c];
                                break
                            }
                            c = c.previousSibling
                        }
                    }
                    a.adNodes || (a.empty = !0, a.adNodes = [])
                });
                var a = document.getElementById("temabilag"),
                b = bh(bg([a]), ["DIV"], !0);
                b = bf(b,
                function(a) {
                    return a.className && a.className.indexOf("tema_annonse") !== -1
                });
                for (var c = 0; c < 6; c++) {
                    var d = "tema_annonse_" + (c + 1);
                    h(d,
                    function(a) {
                        b[c] ? (a.adNodes = [b[c]], a.clickCallback = function(b) {
                            var c = bh(a.adNodes, ["A"], !0);
                            be(c,
                            function(a) {
                                a.href = b + a.href
                            })
                        },
                        a.clickEnabled = !0) : (a.adNodes = [], a.empty = !0)
                    })
                }
            }
        });
        window[n](i)
    } ()
})()
