/* (c) Netminers 2002-2007 */
function nmtrack() {
   try{
   var cid = 'vestas';
   var nm_title = ''; 
   var actTitle = document.title;
   var loc=new String(window.document.location);
   var actUrl = loc;
   var actCategory =actUrl.replace(/.*\/vestas\/\w+\/\w+\/(\w+)\/.*/,"$1");
   actCategory = actCategory.replace(/_/g, " ");
   actTitle = actTitle.replace(/^Vestas - /, "Vestas - " + actCategory + " - ");
   nm_title = actTitle;
   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;
   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':'')+'://'+cid+'.netminers.dk/tracker/dispatch.aspx?action=log'+'&n='+Math.random()+'&nav='+loc+'&cid='+cid+(ref.length>0?('&ref='+ref):'') +'&ti1='+nm_title+'&ext='+ext;
   document.getElementsByTagName('body')[0].appendChild( script );
   }catch(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();}}}

