var dmtry_hasFocus=true;function dmtry_onblur(){dmtry_hasFocus=false}function dmtry_onfocus(){dmtry_hasFocus=true}if(
/*@cc_on!@*/
false){document.attachEvent("onfocusin",dmtry_onfocus);document.attachEvent("onfocusout",dmtry_onblur)}else{window.addEventListener("focus",dmtry_onfocus,false);window.addEventListener("blur",dmtry_onblur,false)}Array.prototype.contains=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return true}}return false};function Action(a,c){this.type=a;this.description=c;var b=this}Action.DEFINED={IMP:new Action("IMPRESSION","Displayed on client"),CLK:new Action("CLICK","User click"),CNV:new Action("CONVERSION","User conversion")};function Antenna(n,r,c){this.version="2.1.2";this.timerID=null;this.timeOnAd=0;this.ifr=false;this.fif=false;var h=this;this.props=new Array;function o(){var s=n.split("/");var t=0;h.props.bid=0;if(s.length>3){h.props.bid=s[t++]}h.props.gid=s[t++];h.props.pid=s[t++];h.props.cid=s[t++];h.props.sid=l(1000000);h.props.url=k();if(this.ifr&&!this.fif){h.props["if"]=1}}function m(){h.props.rand=l(1000000);var s=f();var t=d();if(s>=0){h.props.x=s}if(t>=0){h.props.y=t}}function p(){var t="/";for(var s=0;s<Antenna.PATHORDER.length;s++){t+=h.props[Antenna.PATHORDER[s]]+"/"}t+="1.ver";return t}function a(t){var s=t*1000;h.timerID=setInterval("antennas["+c+'].sendResponse(new Action("TIMER",antennas['+c+"].timeOnAd+="+t+"))",s)}function e(w,t){var B="?";if(w.type.toUpperCase()=="IMPRESSION"){for(var v in h.props){if(Antenna.QUERYPARAMS.contains(v)){var u="";try{u=encodeURIComponent(h.props[v])}catch(z){u=escape(h.props[v])}B+=v+"="+u+"&"}}B+="num="+c;a(2)}else{if(w.type.toUpperCase()=="TIMER"){if(h.timeOnAd>300){clearInterval(h.timerID)}var s=f();var A=d();if(s>=0){B+="x="+s+"&"}if(A>=0){B+="y="+A+"&"}}B+="actionType="+w.type.toUpperCase()+"&";B+="actionDesc="+w.description+"&"}return B}function b(){return h.sessionId}function l(s){return Math.floor(Math.random()*(s+1))}function k(){var s="";try{if(location.href!=top.location.href&&top.location.href){this.fif=true;this.ifr=true}s=top.location.href;if(!s){this.ifr=true}}catch(t){this.ifr=true}if(!s){s=document.referrer}return s}function f(){var s=0;var w=window;if(this.ifr){if(this.fif){w=top;for(var u=0;u<top.frames.length;u++){if(self==top.frames[u]){s+=top.frames[u].frameElement.offsetLeft}}}else{return -1}}var t=-1;if(typeof(w.innerWidth)=="number"){t=w.innerWidth}else{if(w.document.documentElement&&w.document.documentElement.clientWidth){t=w.document.documentElement.clientWidth}else{if(w.document.body&&w.document.body.clientWidth){t=w.document.body.clientWidth}}}var v=dmtry_images[c];if(typeof(v.x)=="number"){s+=v.x}else{while(v){s+=v.offsetLeft+v.clientLeft;v=v.offsetParent}}if(t<=0){return -1}else{return Math.round(s/t*100)}}function d(){var w=0;var v=window;if(this.ifr){if(this.fif){v=top;for(var t=0;t<top.frames.length;t++){if(self==top.frames[t]){w+=top.frames[t].frameElement.offsetTop}}}else{return -1}}var s=-1;if(typeof(v.innerWidth)=="number"){s=v.innerHeight}else{if(v.document.documentElement&&v.document.documentElement.clientHeight){s=v.document.documentElement.clientHeight}else{if(v.document.body&&v.document.body.clientHeight){s=v.document.body.clientHeight}}}var u=dmtry_images[c];if(typeof(u.y)=="number"){w+=u.y}else{while(u){w+=u.offsetTop+u.clientTop;u=u.offsetParent}}if(s<=0){return -1}else{return Math.round(w/s*100)}}function g(){var t="";for(var s in h.props){t+=s+": "+h.props[s]+"\n"}}function j(s){return(s.constructor==Array)}function i(s){return(s.constructor==Object)}function q(u){m();var s=p();var v=e(u,Antenna.MAX_URL_LENGTH-s.length);var t="http://"+Antenna.HOSTNAME;if(u.type.toUpperCase()=="IMPRESSION"){t=t+"/redir"}t=t+s+v;return t}this.sendResponse=function(t){if(!(t.constructor==Action||t.constructor==Object)||t==null||t.type==null){return false}if(t.type.toUpperCase()=="TIMER"){if(dmtry_hasFocus==false){h.timeOnAd-=2;return false}if(h.timeOnAd%10!=0){return false}}if(document.images){var s=new Image();s.src=q(t);dmtry_images[c].src=s.src}return true};o();if(r!=null&&typeof(r)!="undefined"){this.sendResponse(r)}}Antenna.MAX_URL_LENGTH=2048;Antenna.HOSTNAME="log.dmtry.com";Antenna.PATHORDER=["rand","bid","gid","pid","cid","sid"];Antenna.QUERYPARAMS=["url","x","y","if"];var antennas;var dmtry_images;function dmtry_new(c){if(!antennas){antennas=new Array}if(!dmtry_images){dmtry_images=new Array}var b=antennas.length;var a=document.getElementById("dtrack");if(a){a.id="dtrack_old";dmtry_images[b]=a;antennas[b]=new Antenna(c,Action.DEFINED.IMP,b)}else{dmtry_fail(c,"noImage")}}function dmtry_fail(a,b){temp=new Image();temp.src="http://log.dmtry.com/0/"+a+"/0/1.ver?actionType=e&actionDesc="+b}function dmtry_getIds(){var c=document.getElementsByTagName("script");for(var a=0;a<c.length;a++){var b=c[a].src;if(b.indexOf("antenna2.js?")>=0&&c[a].dmtry===undefined){c[a].dmtry=true;return c[a].src.replace(/^[^\?]+\??/,"")}}}var dmtry_queryString=dmtry_getIds();if(dmtry_queryString!=""){dmtry_new(dmtry_queryString.replace(/_/g,"/"))};