function NolTracker(n,t){this.pvar=n;this.mergeFeatures(t)}function nol_t(n,t){return new NolTracker(n,t)}NolTracker.prototype.version="6.0.25";NolTracker.prototype.scriptName=function(){try{var n=document.getElementsByTagName("script"),t=n[n.length-1].getAttribute("src").match(/[^\/]*$/)}catch(i){}return t||"v60.js"}();NolTracker.prototype.pmap=[["action","at",0],["campaign","ca",1],["col_depth","cd",0],["conn_type","ct",0],["cookies_enabled","ck",0],["creative","cr",1],["execution","ce",1],["flash","fl",0],["ip_address","ip",0],["is_hp","hp",0],["java_enabled","je",0],["language","lg",0],["ownership","ou",1],["page_url","si",1],["placement","pc",1],["primary_group","pg",1],["referrer","rp",1],["resource","rt",0],["result","rn",1],["result_flag","rf",0],["revenue","rv",0],["sample_size","ss",0],["screen_res","sr",0],["stream_dur","sd",0],["sub_resource","st",0],["survey","sv",1],["tag_source","ts",1],["cookie_overwrite","id",0],["timezone","tz",0]];NolTracker.prototype.feat={check_cookie:1,detect_flash:0,detect_technical:1,document_title:0,check_fraud:0,filters:undefined,session_cookie:0,landing_page:1,link_overlay:0,pause_time:500,auto_post:1,sample_rate:1,useLocalStorage:1,surveys_enabled:0};NolTracker.prototype.CONST={max_tags:20};NolTracker.prototype.record=function(){var t,i,n;this.postChk=!1;this.page_url=""+window.location;this.referrer=""+document.referrer;try{if(this.feat.check_fraud&&top.location.href.indexOf(document.domain)===-1)return this.detected_fraud=!0,this;this.detected_fraud=!1}catch(r){return this.detected_fraud=!0,this}if(this.feat.detect_technical&&(this.java_enabled=navigator.javaEnabled()===!0?"y":"n",document.body.addBehavior&&(document.body.addBehavior("#default#clientCaps"),document.body.addBehavior("#default#homePage"),this.conn_type=document.body.connectionType,this.is_hp=document.body.isHomePage(location.href)?"y":"n"),window.screen&&(this.screen_res=window.screen.width+"x"+window.screen.height,this.col_depth=window.screen.colorDepth),navigator.userLanguage?this.language=navigator.userLanguage:navigator.language&&(this.language=navigator.language),navigator.cookieEnabled&&(this.pvar.cookies_enabled=navigator.cookieEnabled===!0?"y":"n"),this.timezone=(new Date).getTimezoneOffset()/-60),this.feat.detect_flash)if(navigator.mimeTypes&&navigator.mimeTypes.length>0)t="application/x-shockwave-flash",navigator.mimeTypes[t]&&navigator.mimeTypes[t].enabledPlugin&&(i=this.getVersion(navigator.mimeTypes[t].enabledPlugin.description,1),i&&(this.flash=i));else if(window.ActiveXObject)for(n=15;n>0;n--)try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n)){this.flash=n;break}}catch(u){}this.feat.link_overlay&&this.regLinkOverlay();try{typeof localStorage=="undefined"&&(this.feat.useLocalStorage=0)}catch(f){this.feat.useLocalStorage=0}return this.feat.useLocalStorage&&(localstorageframe=[this.getSchemeHost(),"storageframe.html"].join(""),this.iframe(localstorageframe,"LOCSTORAGE")),this};NolTracker.prototype.regListen=function(){var n=this;return function(t){t.origin.indexOf("imrworldwide.com")!==-1&&(n.cookie_overwrite=t.data);n.postChk&&n.post()}};NolTracker.prototype.iframe=function(n,t){try{var i=window.document.createElement("iframe");i.style.width="1px";i.style.height="1px";i.style.position="absolute";i.style.top="-7px";i.style.left="-7px";i.style.border="0";i.src=n;i.setAttribute("id",t);i.setAttribute("scrolling","no");window.document.body.insertBefore(i,window.document.body.firstChild);window.addEventListener?addEventListener("message",this.regListen(),!1):attachEvent("onmessage",this.regListen())}catch(r){r.code=r.code?r.code:r.code=1;throw r;}};NolTracker.prototype.prefix=function(){var t=arguments[0]&&arguments[0].api?arguments[0].api:"m",n=[this.getSchemeHost(),"cgi-bin/",t,"?","rnd=",(new Date).getTime(),"&ci=",this.pvar.cid,"&js=1"];return t==="m"&&n.push("&cg=",escape(arguments[0]&&arguments[0].content?arguments[0].content:this.pvar.content||"0")),this.scriptName&&n.push("&ts=",this.scriptName),this.version&&n.push("&vn=",this.version),n.join("")};NolTracker.prototype.filter=function(n){if(this.feat.filters)for(var t in this.feat.filters)this.feat.filters.hasOwnProperty(t)&&(n=this.feat.filters[t](n));return n};NolTracker.prototype.post=function(){var n,h,f,t,i,c,r,l,o,s,a;if(this.feat.useLocalStorage&&typeof this.cookie_overwrite=="undefined")return this.postChk=!0,this;if(this.postChk=!1,n=[this.prefix()],n.push("&cc=",this.feat.check_cookie?"1":"0"),this.feat.document_title&&(h=escape(document.title),h&&n.push("&tl=",h)),this.feat.landing_page&&this.referrer&&document.location.search.search(/[&?]nol\./)!==-1){f=[];t=document.location.search.substring(document.location.search.lastIndexOf("?")+1).split("&");for(i in t)t.hasOwnProperty(i)&&t[i].search(/^nol\./)!==-1&&(t[i].search(/^nol\.redirect/)!==-1?c=t[i].split("=",2)[1]:f.push("&",t[i]));f.length>0&&(n.push("&lp=1"),n=n.concat(f));this.page_url=this.page_url.replace(/[&?]nol\..*?=[^&]*/g,"").replace(/&&/g,"&").replace(/\?&/,"?").replace(/[&\?]$/,"");this.referrer.search(/[&?]nol\./)&&(this.referrer=this.referrer.replace(/[&?]nol\..*?=[^&]*/g,"").replace(/&&/g,"&").replace(/\?&/,"?").replace(/[&\?]$/,""))}for(r=0,l=this.pmap.length;r<l;r++){var e=this.pmap[r][0],v=this.pmap[r][1],y=this.pmap[r][2],u=null;this.pvar[e]?u=this.pvar[e]:this[e]&&(u=this[e]);u&&n.push("&",v,"=",y?escape(u):u)}if(this.pvar.custom){o=0;for(s in this.pvar.custom)if(this.pvar.custom.hasOwnProperty(s)){if(o>=this.CONST.max_tags)break;a=this.pvar.custom[s];n.push("&c",o,"=",escape(s),",",escape(a));o++}}return this.postData(n.join("")),c&&setTimeout(function(){window.location=c},this.feat.pause_time),this};NolTracker.prototype.postEvent=function(){var n=[this.prefix({content:arguments[0].content})],i=arguments[0].page_url||this.pvar.page_url||this.page_url,t;return arguments[0].event_type?(t=[arguments[0].event_type,escape(i),escape(this.pvar.page_url||this.page_url)].join("_"),n.push("&cc=1","&si=",t,"&rp=",this.previousEventPage||escape(window.location)),this.cookie_overwrite&&n.push("&id=",this.cookie_overwrite),this.previousEventPage=t):n.push("&cc=0","&si=",this.pvar.cid,"-ctgw-",escape(i),"&rp=",escape(window.location)),this.postData(n.join("")),this};NolTracker.prototype.postLinkTrack=function(){return this.postEvent(arguments[0]),this.pause(this.feat.pause_time),this};NolTracker.prototype.postEventTrack=function(){return this.postEvent(arguments[0]),this};NolTracker.prototype.postClickTrack=function(){if(this.postEvent(arguments[0]),arguments[0].page_url){var n=arguments[0].page_url;setTimeout(function(){window.location=n},this.feat.pause_time)}return this};NolTracker.prototype.linkTrack=function(){this.postLinkTrack({page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.eventTrack=function(){this.postEventTrack({page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.clickTrack=function(){this.postClickTrack({page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.pageEvent=function(){this.postEventTrack({event_type:"page",page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.slideEvent=function(){this.postEventTrack({event_type:"slide",page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.sectionEvent=function(){this.postEventTrack({event_type:"section",page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.downloadEvent=function(){this.postLinkTrack({event_type:"download",page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.clickEvent=function(){this.postClickTrack({event_type:"click_link",page_url:arguments[0],content:arguments[1]})};NolTracker.prototype.regLinkOverlay=function(){if(document.getElementById){var t=this,n=document.body.onclick;document.body.onclick=function(i){t.catchLinkOverlay(i);n&&n(i)}}};NolTracker.prototype.sendIt=function(n,t,i,r){var u=[this.prefix(),"&cc=0","&si=",this.pvar.cid,"-ctpo-",escape(unescape(n).replace(/^\s+|\s+$/g,"").replace(/\s+/g," ")),"&rp=",escape(this.pvar.link_url||window.location),"&tt=",escape(t.toLowerCase()),"&cn=",escape(i.toLowerCase()),"&cv=",escape(unescape(r).replace(/^\s+|\s+$/g,"").replace(/\s+/g," "))];this.postData(u.join(""));this.pause(this.feat.pause_time)};NolTracker.prototype.sendALink=function(n){var t=n.innerHTML.toLowerCase().indexOf("img")>-1?"image":"text";this.sendIt(n.href,n.tagName,t,n.innerHTML)};NolTracker.prototype.sendForm=function(n){if(n.form!==null&&n.form.action!==null){var t="";n.type==="image"?t=n.src:n.tagName==="BUTTON"?(t=n.innerHTML,t===""&&(t=n.value)):t=n.value;this.sendIt(n.form.action,n.form.tagName,n.type,t)}};NolTracker.prototype.catchLinkOverlay=function(n){var t=n?n.target:window.event.srcElement;if((t.tagName==="INPUT"||t.tagName==="BUTTON")&&(t.type==="image"||t.type==="submit"||t.type==="button"))this.sendForm(t);else for(;t!==null&&t.tagName!=="BODY";t=t.parentNode)if(t.tagName==="A"&&t.href.length>0){this.sendALink(t);break}};NolTracker.prototype.invite=function(){var r,n,u,f;if(this.detected_fraud||this.feat.surveys_enabled!==1)return this;for(r=[this.prefix({api:"j"}),"&cc=0","&se=",this.feat.surveys_enabled?"1":"0","&te=0"],n=0,u=this.pmap.length;n<u;n++){var i=this.pmap[n][0],e=this.pmap[n][1],o=this.pmap[n][2],t=null;this.pvar[i]?t=this.pvar[i]:this[i]&&(t=this[i]);t&&r.push("&",e,"=",o?escape(t):t)}return f=["<scr",'ipt type="text/javascript" src="',r.join(""),'"><\/scr',"ipt>"].join(""),document.write(f),this};NolTracker.prototype.in_sample=function(){return this.random()<=this.feat.sample_rate};NolTracker.prototype.do_sample=function(){return this.in_sample()===!0&&this.invite(),this};NolTracker.prototype.postData=function(n){try{if(this.detected_fraud)return;this.feat.filters&&(n=this.filter(n));var t=new Image(1,1);t.onerror=t.onload=function(){t.onerror=t.onload=null};t.src=n}catch(i){}};NolTracker.prototype.getVersion=function(n,t){for(var i=0,r=0,u=0;u<t&&i>=0;u++)i>0&&(r=i+1),i=n.indexOf(".",r);return i>0?n.substring(r,i).match(/\d+$/):null};NolTracker.prototype.mergeFeatures=function(n){var i,t;if(typeof n!="undefined"){i={};for(t in this.feat)i[t]=typeof n[t]=="undefined"?this.feat[t]:n[t];this.feat=i}};NolTracker.prototype.getSchemeHost=function(){var n=[location.protocol.indexOf("https")!==-1?"https://":"http://",this.pvar.server,this.pvar.server.indexOf("imrworldwide.com")===-1?".imrworldwide.com":"","/"];return n.join("")};NolTracker.prototype.pause=function(n){if(!window.ActiveXObject){if(navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1)return;for(var t=(new Date).getTime()+n;new Date<t;);}};NolTracker.prototype.random=function(){var n=714025;return typeof this.random_seed=="undefined"&&(this.random_seed=(new Date).getTime()%n),this.random_seed=(this.random_seed*4096+150889)%n,this.random_seed/n};Array.prototype.push||(Array.prototype.push=function(){for(var n=0;n<arguments.length;n++)this[this.length]=arguments[n]})