Atlas={Go:function(c,d,b,f,e){var a=document.referrer;this.m_dataMap.single.project=d;this.m_dataMap.pair.country.value=c;this.m_dataMap.pair.location.value=b;this.m_dataMap.pair.url.value=encodeURIComponent(a);this.m_dataMap.pair.domain.value=this.GetDomain(a);this.m_dataMap.pair.keywords.value=this.GetSearchKeywords(a);this.m_dataMap.pair.search.value=this.GetSearchResult(a);this.m_dataMap.pair.source.value=this.GetQuerystringValue("source");this.m_dataMap.pair.var1.value=this.GetCookieValue("var1");this.m_dataMap.pair.var2.value=this.GetCookieValue("var2");this.m_dataMap.pair.var3.value=this.GetDoveDomain();if(parseInt(this.m_dataMap.pair.var1.value)<0)this.m_dataMap.pair.var1.value=null;if(parseInt(this.m_dataMap.pair.var2.value)<0)this.m_dataMap.pair.var2.value=null;if(f)this.View();if(e)this.BindUnloadEvent();document.attachEvent("onmouseup",Atlas.Click)},SetCountry:function(a){this.m_dataMap.pair.country.value=a},SetLocation:function(a){this.m_dataMap.pair.location.value=a},SetSection:function(a){this.m_dataMap.pair.section.value=a},SetActionname:function(a){this.m_dataMap.pair.actionname.value=a},SetLanguage:function(a){this.m_dataMap.pair.language.value=a},SetTimePivot:function(a){this.m_timePivot=a},GetSearchKeywords:function(b){for(var a in this.m_searchProviders)if(b.indexOf(this.m_searchProviders[a].form)==0)return this.GetQuerystringValue(this.m_searchProviders[a].key,b).replace(/[+]/g,",");return ""},GetSearchResult:function(b){for(var a in this.m_searchProviders)if(b.indexOf(this.m_searchProviders[a].form)==0)return a;return ""},GetDomain:function(b){var c="(?:http|https)://(.*?)/";if(b&&b.length>0){var a=b.match(c);if(a&&a.length>1)return encodeURIComponent(a[1])}return ""},GetDoveDomain:function(){var a=this.GetCookieValue("SiteReturnUrl");if(a&&a.length>0)return this.GetDomain(a);else return window.location.host},GetQuerystringValue:function(d,c){var a=(c?c:window.location.href).toString().match(d+"=([^&#]*)(?:[#&]*)"),b=a?a.length:-1;if(b>0)return a[b-1];return ""},GetCookieValue:function(a){a+="=";var b=document.cookie,c=b.indexOf(a);if(c>-1){var d=b.indexOf(";",c+a.length);return b.substring(c+a.length,d==-1?b.length:d)}else return ""},m_actionListeners:[],m_timePivot:5,m_image:new Image,m_dataMap:{single:{url:"switch.atdmt.com",type:"action",project:"",version:"v3"},pair:{language:{value:navigator.language?navigator.language:navigator.browserLanguage},country:{value:""},location:{value:""},action:{value:"",reset:1},actionname:{value:"",reset:1},section:{value:"",reset:1},source:{value:""},var1:{value:""},var2:{value:""},var3:{value:""},time:{value:""},resolution:{value:screen.width+"x"+screen.height},search:{value:""},keywords:{value:""},domain:{value:""},url:{value:""}},buildUrl:function(){var b=[window.location.protocol+"/"];for(var c in this.single)b.push(this.single[c]);for(var a in this.pair){var d=this.pair[a].value;if(d!="")b.push(a+"."+d);if(this.pair[a].reset)this.pair[a].value=""}return b.join("/")}},m_searchProviders:{Live:{form:"http://www.bing.com/search?",key:"q"},Google:{form:"http://www.google.com/search?",key:"q"},Yahoo:{form:"http://search.yahoo.com/search?",key:"p"},Ask:{form:"http://www.ask.com/web?",key:"q"},Baidu:{form:"http://www.baidu.com/s?",key:"wd"}},Click:function(){(new Atlas.Event).Send()},Action:function(e){var f=this.CleanString(e),b=f.split("|");for(var a=0;a<b.length;++a)switch(a){case 0:this.m_dataMap.pair.action.value=b[a];break;case 1:this.m_dataMap.pair.actionname.value=escape(b[a]);break;case 2:this.m_dataMap.pair.section.value=escape(b[a])}var c=this.m_dataMap.buildUrl();this.LoadImage(c);for(var a=0;a<this.m_actionListeners.length;++a){var d=this.m_actionListeners[a];if(typeof d=="function")d(c)}},View:function(){this.Action("view")},OnAction:function(a){this.m_actionListeners.push(a)},Event:function(){var a=this;a.anchor=b(event.srcElement);this.Send=function(){var c=a.anchor;if(!c)return;var b=c.getAttribute("track");b=!b||b.length==0?c.id:b;if(!b||b.length==0)return;if(b.indexOf("|")==-1)return;Atlas.Action(b)};function b(a){while(a&&!(a.tagName=="A"))a=a.parentNode;return a}},BindUnloadEvent:function(){var a=new Date;window.attachEvent("onunload",function(){var b=Math.round(((new Date).getTime()-a.getTime())/1000);Atlas.m_dataMap.pair.time.value=b;Atlas.Action("unload")})},LoadImage:function(a){Atlas.m_image.src=a+"/?"+Math.random()},CleanString:function(a){return a.replace(/\/|\?|&|\.|#/g,"_")}};function __bindEventHdlr(a){if(a&&!a.attachEvent)a.attachEvent=function(b,d){b=b.substring(2);a.addEventListener(b,c,false);a.addEventListener(b,d,false);function c(a){try{var b=0;while(a.target&&a.target.nodeType!=1&&++b<50)a.target=a.target.parentNode}catch(c){}window.event=a}}}__bindEventHdlr(window);__bindEventHdlr(document)