/* Copyright 2002-2010 */
/* Released: 2010-05-10 */

document.nmCustomerId = 'leo';
// *** Mandatory code ***
function postEvent( type, subType, name, text, number){
   try{var loc = new String(window.document.location);if(loc.length>800)loc=loc.slice(0,796)+'...';var post = document.createElement('script');
   post.src = 'http'+(document.location.protocol=='https:'?'s':'')+'://'+document.nmCustomerId+'.netminers.dk/tracker/dispatch.aspx?action='+type+'&n='+Math.random()+'&nav='+encodeURIComponent(loc)+'&cid='+document.nmCustomerId+'&sub='+subType+'&ti1='+encodeURIComponent(name)+'&tva='+encodeURIComponent(text)+'&num='+encodeURIComponent(''+number);
   var parent = document.getElementsByTagName('body');if( parent.length == 0 )parent = document.getElementsByTagName('head');parent[0].appendChild(post)}catch(e){}
}

function postFlashEvent( eventName ){        
   postEvent( 'PageView', 'Flash',     eventName, '', '' );
}


function nmtrack() {

    var srcBcSep = '>';
    function buildBreadCrumb() {

        takeAllFirst('*', 'breadcrumbs', 'a');
    }
    /* DON'T CHANGE ANYTHING BELOW */
    var accountId = 'leo'; var nm_ver = 3; var nm_rev = 0;
    var destBcSep = '>';
    var requestBindInfo = false;
    var bc = []; var nm_title = (typeof (document.netminers) == 'object' && document.netminers.title) ? document.netminers.title : ''; var dbg = false;
    function take(s, p) { if (s == null) return; if (s.innerHTML) s = trim(it(s)); else if (typeof (s) == 'object' && s.length) { for (var i = 0; i < s.length; i++) take(s[i], p); return; } var l = s.split(p || srcBcSep); for (var i = 0; i < l.length; i++) bc[bc.length] = l[i]; }
    function takeById(i, p) { take(document.getElementById(i), p); }
    function takeFirst(q, r, t) { var e = getElementsByClass(q, r, t); if (e != null && e.length > 0) { if (arguments.length > 3) { var args = []; var o = 0; var j = 0; for (var i = 3; i < arguments.length; i++) { if (j == 1) { args[j++] = e[0]; } args[j++] = arguments[i]; } takeFirst.apply(this, args); } else take(e[0]); } }
    function takeFirstTag(t) { takeFirst(null, null, t); }
    function takeAllFirst(q, r, t, q1, t1) { var e = getElementsByClass(q, r, t); for (var i = 0; i < e.length; i++) if (q1 != null || t1 != null) takeFirst(q1, e[i], t1); else take(e[i]); }
    function remove() { for (var a = 0; a < arguments.length; a++) { var id = arguments[a]; if (typeof (id) == 'number') bc.splice(id, 1); else if (typeof (id) == 'string') { var r = new RegExp(id); for (var i = 0; i < bc.length; i++) { if (r.test(bc[i])) remove(i); } } } }
    function removeLast() { return bc.splice(bc.length - 1, 1); }
    function swap(i, j) { if (bc.length <= i && bc.length <= j) return; var tmp = bc[i]; bc[i] = bc[j]; bc[j] = tmp; }
    function read(i) { return bc[i]; }
    function readLast() { return bc[bc.length - 1]; }
    function update(i, newItem) { bc[i] = newItem; }
    function reverse() { bc.reverse(); }
    function insert(i, newItem) { bc.splice(i, 0, newItem); }
    function smooth(onlyFirst) { for (var i = 0; i < bc.length; i++) bc[i] = smoothWords(bc[i], onlyFirst); }
    function getElementsByClass(c, n, t) { var r = []; if (n == null) n = document; if (typeof (n) == 'string') n = document.getElementById(n); if (n == null) return r; if (c == null) c = '*'; if (t == null) t = '*'; var e = n.getElementsByTagName(t); var l = e.length; var t2 = new RegExp("(^|\\s)" + c + "(\\s|$)"); for (i = 0, j = 0; i < l; i++) if (t2.test(e[i].className)) { r[j] = e[i]; j++; } return r; }
    function trim(s) { return s.replace(/^[\s\xA0]+|[\s\xA0]+$/g, ''); }
    function it(e) { if (!e) return ''; var txt = ''; for (var i = 0; i < e.childNodes.length; i++) { switch (e.childNodes.item(i).nodeType) { case 1: txt += it(e.childNodes.item(i)); break; case 3: txt += e.childNodes.item(i).nodeValue; break; } } return txt; }
    function cb(s) { return s.replace(new RegExp('[\s]+' + srcBcSep + '[\s]+'), ' ' + srcBcSep + ' '); }
    function rdl() { var bc2 = []; var cur = null; for (var i = 0; i < bc.length; i++) { if (trim(bc[i]).length > 0) { if ((cur != null && cur.toLowerCase()) != trim(bc[i]).toLowerCase()) { cur = trim(bc[i]); bc2[bc2.length] = cur; } } } bc = bc2; }
    function te(a) { for (var i = 0; i < a.length; i++) a[i] = trim(a[i]); return a; }
    try {
        var loc = new String(window.document.location);
        if (typeof (document.netminers) != 'object') document.netminers = {};
        if ((typeof (document.netminers.trackPage) == 'boolean' && document.netminers.trackPage == false) || loc.toLowerCase().indexOf('nmtrackpage=false') != -1) return;
        buildBreadCrumb();
        if (document.netminers.additionalSuperContext) bc = te(cb(document.netminers.additionalSuperContext).split(srcBcSep)).concat(bc);
        if (document.netminers.additionalSubContext) bc = bc.concat(te(cb(document.netminers.additionalSubContext).split(srcBcSep)));
        if (nm_title != '') bc = cb(trim(nm_title.replace(bcRemove, ''))).split(srcBcSep);
        rdl();
        nm_title = bc.join(' ' + destBcSep + ' ');
        var loc2 = loc; try { var toploc = new String(top.document.location); loc2 = toploc.indexOf('nm_extag') != -1 ? toploc : loc2; } catch (e) { } if (nm_title == '') nm_title = document.title;
        if (dbg) alert(nm_title);
        var ref = ''; var c = document.cookie;
        if (c.indexOf('nm_exref') != -1) { var ca = c.split(';'); for (i = 0; i < c.length; i++) { var item = new String(ca[i]); var idx = item.indexOf('nm_exref'); if (idx != -1) ref = new String(item.substr(idx + 9)); } document.cookie = 'nm_exref='; }
        if (ref == '') { ref = document.referrer; try { ref = top.document.referrer; } catch (e) { } }
        var begext = loc2.indexOf('nm_extag='); var ext = ''; if (begext != -1) { begext += 9; var endext = loc2.indexOf('&', begext); ext = endext == -1 ? loc2.substr(begext) : loc2.substr(begext, endext - begext); ext = encodeURIComponent(ext); }
        nm_title = '!' + nm_ver + '.' + nm_rev + '!' + nm_title; nm_title = encodeURIComponent(nm_title); loc = encodeURIComponent(loc); ref = encodeURIComponent(ref); ext = encodeURIComponent(ext);
        if (nm_title.length > 250) nm_title = nm_title.slice(0, 246) + '...'; if (loc.length > 800) loc = loc.slice(0, 796) + '...'; if (ref.length > 800) ref = ref.slice(0, 796) + '...';
        var script = document.createElement('SCRIPT');
        script.language = 'javascript';
        script.src = 'http' + (document.location.protocol == 'https:' ? 's' : '') + '://' + accountId + '.netminers.dk/tracker/dispatch.aspx?action=log' + '&n=' + Math.random() + '&nav=' + loc + '&cid=' + accountId + (ref.length > 0 ? ('&ref=' + ref) : '') + '&ti1=' + nm_title + '&ext=' + ext + (requestBindInfo ? '&bind=true' : '');
        document.getElementsByTagName('body')[0].appendChild(script);
        return decodeURIComponent(nm_title);
    } catch (e) { if (dbg) throw e; }
}
if (window.attachEvent) { window.attachEvent('onload', nmtrack); } else if (window.addEventListener) { window.addEventListener('load', nmtrack, true); }
else { var oldonload = window.onload; if (typeof oldonload != 'function') { window.onload = nmtrack; } else { window.onload = function() { nmtrack(); oldonload(); } } }

