var host=document.location.host.toString().toLowerCase();var ext=[".pdf",".doc",".xls",".ppt",".mp3",".csv",".zip",".wav",".mov",".docx",".xlsx",".pptx"];function autotag(){for(var a=0;a<document.links.length;a++){iLink=document.links[a];if(iLink.href.toLowerCase().indexOf(host)==-1){if(iLink.target=="_blank"||popUp(iLink)){if(iLink.onclick==""||iLink.onclick==null){iLink.onclick=function(){ntptEventTag("ev=linkclick&EXITURL="+encodeURIComponent(this.href))}}else{if(window.attachEvent){iLink.tmpclick=iLink.onclick;iLink.onclick=function(){ntptEventTag("ev=linkclick&EXITURL="+encodeURIComponent(this.href));return this.tmpclick()}}else{EV(iLink,"click",function(){ntptEventTag("ev=linkclick&EXITURL="+encodeURIComponent(this.href))})}}}else{if(iLink.onclick==""||iLink.onclick==null){iLink.onclick=function(){return ntptLinkTag(this,"lc="+encodeURIComponent(document.URL)+"&rf="+encodeURIComponent(document.referrer)+"&ev=linkclick&exiturl="+encodeURIComponent(this.href))}}else{if(window.attachEvent&&iLink.onclick.toString().indexOf("ntptLinkTag")>-1){iLink.tmpclick=iLink.onclick;iLink.onclick=function(){ntptEventTag("ev=linkclick&EXITURL="+encodeURIComponent(this.href));return this.tmpclick()}}else{if(window.attachEvent){iLink.tmpclick=iLink.onclick;iLink.onclick=function(){return ntptLinkTag(this,"lc="+encodeURIComponent(document.URL)+"&rf="+encodeURIComponent(document.referrer)+"&ev=linkclick&exiturl="+encodeURIComponent(this.href));return this.tmpclick()}}else{if(iLink.onclick.toString().indexOf("ntptLinkTag")>-1){EV(iLink,"mousedown",function(){ntptEventTag("ev=linkclick&EXITURL="+encodeURIComponent(this.href))})}else{EV(iLink,"click",function(){return ntptLinkTag(this,"lc="+encodeURIComponent(document.URL)+"&rf="+encodeURIComponent(document.referrer)+"&ev=linkclick&exiturl="+encodeURIComponent(this.href))})}}}}}}}}function popUp(a){if(a.onclick!=undefined){if(a.onclick.toString().toLowerCase().indexOf("window.open")>-1){return true}else{return false}}else{return false}}function EV(f,e,h,g){if(f.addEventListener){f.addEventListener(e,h,false)}else{if(f.attachEvent){f.attachEvent(((g==1)?"":"on")+e,h)}}}EV(window,"load",autotag);
