Atlas={Go:function(c,p,l,v,u){var dr=document.referrer;this.m_dm.single.project=p;this.m_dm.p.country.v=c;this.m_dm.p.location.v=l;this.m_dm.p.url.v=encodeURIComponent(dr);this.m_dm.p.domain.v=this.gd(dr);this.m_dm.p.keywords.v=this.gk(dr);this.m_dm.p.search.v=this.gr(dr);this.m_dm.p.source.v=this.qs("source");if(v)this.View();if(u)this.bu();document.attachEvent("onclick",_a.Click)},SetCountry:function(c){this.m_dm.p.country.v=c},SetLocation:function(l){this.m_dm.p.location.v=l},SetLanguage:function(l){this.m_dm.p.language.v=l},SetTimePivot:function(t){this.m_tp=t},gk:function(i){for(var search in this.m_sp)if(i.indexOf(this.m_sp[search].f)==0)return this.qs(this.m_sp[search].k,i).replace(/[+]/g,",");return ""},gr:function(i){for(var search in this.m_sp)if(i.indexOf(this.m_sp[search].f)==0)return search;return ""},gd:function(i){var regex="(?:http|https)://(.*?)/";if(i&&i.length>0){var m=i.match(regex);if(m&&m.length>1)return encodeURIComponent(m[1])}return ""},qs:function(s,u){s+="=";var h=u?u:window.location.href,ss=h.indexOf(s),a="&";q=h.indexOf("?");if(q>0&&ss>q){sh=h.substring(ss+s.length);return sh.indexOf(a)>0?sh.substring(0,sh.indexOf(a)):sh}return ""},m_al:[],m_tp:5,m_image:new Image,m_dm:{single:{url:"switch.atdmt.com",type:"action/riax_msn_lookoftheday",version:"v3"},p:{language:{v:navigator.language?navigator.language:navigator.browserLanguage},country:{v:""},location:{v:""},action:{v:"",r:1},actionname:{v:"",r:1},section:{v:"",r:1},source:{v:""},time:{v:""},resolution:{v:screen.width+"x"+screen.height},search:{v:""},keywords:{v:""},domain:{v:""},url:{v:""}},bu:function(){var u=["http:/"];for(var s in this.single)u.push(this.single[s]);for(var p in this.p){var v=this.p[p].v;if(v!="")u.push(p+"."+v);if(this.p[p].r)this.p[p].v=""}return u.join("/")}},Click:function(){(new _a.Event).Send()},Action:function(x){var a=this.cs(x),p=a.split("|");for(var i=0;i<p.length;++i)switch(i){case 0:this.m_dm.p.location.v=p[i];break;case 1:this.m_dm.p.action.v=p[i];break;case 2:this.m_dm.p.actionname.v=p[i];break;case 3:this.m_dm.p.section.v=p[i];break}var url=this.m_dm.bu();this.li(url);for(var i=0;i<this.m_al.length;++i){var cb=this.m_al[i];if(typeof cb=="function")cb(url)}},View:function(){this.Action("view")},OnAction:function(f){this.m_al.push(f)},Event:function(){var me=this;me.anchor=_ga(event.srcElement);this.Send=function(){var link=me.anchor;if(!link)return;var track=link.getAttribute("track");track=!track||track.length==0?link.id:track;if(!track||track.length==0)return;_a.Action(track)};function _ga(el){while(el&&!(el.tagName=="A"))el=el.parentNode;return el}},bu:function(a){var then=new Date;window.attachEvent("onunload",function(){var s=Math.round(((new Date).getTime()-then.getTime())/1000);_a.m_dm.p.time.v=s;_a.Action("unload")})},m_sp:{Live:{f:"http://search.live.com/results.aspx?",k:"q"},Google:{f:"http://www.google.com/search?",k:"q"},Yahoo:{f:"http://search.yahoo.com/search?",k:"p"},Ask:{f:"http://www.ask.com/web?",k:"q"},Baidu:{f:"http://www.baidu.com/s?",k:"wd"}},li:function(i){_a.m_image.src=i+"/?"+Math.random()},cs:function(i){return i.replace(/\/|\?|&|\.|#/g,"_")}};function _be(target){if(target&&!target.attachEvent)target.attachEvent=function(t,c){t=t.substring(2);target.addEventListener(t,gwe,false);target.addEventListener(t,c,false);function gwe(e){try{var i=0;while(e.target&&e.target.nodeType!=1&&++i<50)e.target=e.target.parentNode}catch(ex){e.target=null}e.srcElement=e.target;window.event=e}}}_be(window);_be(document);_a=Atlas