function nmtrack() {

   var accountId  = 'netminers';
   var srcBcSep   = '';
   function BuildCustomBreadcrumb() {
      /* Custom bc code here */   
   }

   var destBcSep  = '>';
   var bcUniqueId = null;
   var bcRemove = new RegExp('');
   var removeDuplicateLevels = true;
   var bc = []; var nm_title = (typeof(document.netminers) == 'object' && document.netminers.title) ? document.netminers.title : ''; var dbg = false;
   function buildBreadCrumb() { if(bcUniqueId != null && srcBcSep != null) { var obj = document.getElementById(bcUniqueId); if(obj != null) { bc = cb(trim(it(obj).replace(bcRemove, ''))).split(srcBcSep); return; } } BuildCustomBreadcrumb(); }

   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 = []; for(var i = 0; i < bc.length; i++) if(bc2.length == 0 || bc2[bc2.length-1] && trim(bc2[bc2.length-1]).toLowerCase() != trim(bc[i]).toLowerCase()) bc2[bc2.length] = trim(bc[i]); 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(removeDuplicateLevels) rdl();
   if(nm_title != '') bc = cb(trim(nm_title.replace(bcRemove, ''))).split(srcBcSep);
   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=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;
   document.getElementsByTagName('body')[0].appendChild( script );
   }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();}}}
