function RegisterNamespaces(){for(var b=0;b<arguments.length;b++){var e=arguments[b].split("."),a=window;for(var c=0;c<e.length;c++){var d=e[c];if(!a[d])a[d]=function(){};a=a[d]}if(!a._Private){a._Private=function(){};a.Error=function(){}}}}RegisterNamespaces("Msn.Browser","Msn.Debug.Performance");Msn.Browser.IsMozilla=function(){return typeof document.implementation!="undefined"&&typeof document.implementation.createDocument!="undefined"&&typeof HTMLDocument!="undefined"};Msn.Browser.AttachMozillaCompatibility=function(a){function e(){var b=a.document.getElementsByName("msn-moz-custom");if(b.length>0)Msn.Browser.MozillaCompatMode=b[0].getAttribute("content").toLowerCase()=="enabled";else Msn.Browser.MozillaCompatMode=false}e();function c(a){window.event=a}function i(b,a,d){a=a.slice(2);if(a!="mouseenter"&&a!="mouseleave")b.addEventListener(a,c,true);else{b.addEventListener("mouseover",c,true);b.addEventListener("mouseout",c,true);b.addEventListener("mouseover",f,false);b.addEventListener("mouseout",g,false)}b.addEventListener(a,d,false)}function f(){if(!this.contains(event.fromElement)){event.initEvent("mouseenter",false,false);this.dispatchEvent(event)}}function g(){if(!this.contains(event.toElement)){event.initEvent("mouseleave",false,false);this.dispatchEvent(event)}}function h(c,a,b){c.removeEventListener(a.slice(2),b,false)}function b(a){try{while(a&&a.nodeType!=1)a=a.parentNode}catch(b){a=null}return a}a.attachEvent=a.HTMLDocument.prototype.attachEvent=a.HTMLElement.prototype.attachEvent=function(b,a){i(this,b,a)};a.detachEvent=a.HTMLDocument.prototype.detachEvent=a.HTMLElement.prototype.detachEvent=function(b,a){h(this,b,a)};a.HTMLElement.prototype.__defineGetter__("parentElement",function(){return b(this.parentNode)});a.HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent});a.HTMLElement.prototype.__defineSetter__("innerText",function(b){var a=document.createTextNode(b);this.innerHTML="";this.appendChild(a)});a.Event.prototype.__defineGetter__("srcElement",function(){var a=b(this.target);return a});a.Event.prototype.__defineSetter__("cancelBubble",function(a){if(a)this.stopPropagation()});function d(a){var b={x:0,y:0};while(a){b.x+=a.offsetLeft;b.y+=a.offsetTop;a=a.offsetParent}return b}a.Event.prototype.__defineGetter__("offsetX",function(){return window.pageXOffset+this.clientX-d(this.srcElement).x});a.Event.prototype.__defineGetter__("offsetY",function(){return window.pageYOffset+this.clientY-d(this.srcElement).y});a.Event.prototype.__defineSetter__("returnValue",function(a){if(!a)this.preventDefault();this.cancelDefault=a;return a});a.Event.prototype.__defineGetter__("returnValue",function(){return this.cancelDefault});a.Event.prototype.__defineGetter__("fromElement",function(){var a;if(this.type=="mouseover")a=this.relatedTarget;else if(this.type=="mouseout")a=this.target;return b(a)});a.Event.prototype.__defineGetter__("toElement",function(){var a;if(this.type=="mouseout")a=this.relatedTarget;else if(this.type=="mouseover")a=this.target;return b(a)});a.Event.prototype.__defineGetter__("button",function(){return this.which==1?1:this.which==2?4:2})};if(Msn.Browser.IsMozilla())Msn.Browser.AttachMozillaCompatibility(self);if(!window.Msn)window.Msn={};Msn.Gtracking=new function(){var e=null,j=this,d=null,f=document,b=window,c=false,r="http://g.msn.com/_0USHP/22",C=1000,E=500,h=["g.msn.com"],v=null;if(b.gTrackExclude)h=b.gTrackExclude;if(b.gTrackDebug)c=b.gTrackDebug!==false;var x=/^(([^:\/?#]+)\:)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=null,n="",p="",q="",s="",g=null,A=null,a=null,o="gt_no_oob",G="partner_link";function l(){b.clearTimeout(A);if(d){d.onerror=d.onload=null;d=null}}function y(){var e=F(event.srcElement);if(e&&e.id!=o&&event.button!=2){l();a=null;if(event.returnValue!==false){var f=j.CreateReport(event.srcElement);if(f){g=e.href;a=self;if(event.shiftKey||event.ctrlKey)a=null;var h=e.getAttribute("target");if(a&&h)while(a&&h!=a.name)a=a===a.parent?null:a.parent;if(c)b.alert("Tracking: "+k(f));d=new Image;if(a){event.returnValue=false;d.onload=K;d.onerror=J;A=b.setTimeout(L,C)}d.src=f}}}}function F(a){while(a&&a.tagName!="A"&&a.tagName!="AREA")a=a.parentElement;return a}function K(){if(d&&this===d)m()}function J(){if(d&&this===d)m("Track Error")}function L(){m("Track Timeout")}function m(e){l();if(a)if(c)b.alert((e?e+"\n":"")+"Navigate: "+k(g));else if(document.all)try{var d=a.document.getElementById(o);if(!d){d=a.document.createElement("a");d.id=o;a.document.body.appendChild(d)}else if(d.removeAttribute)d.removeAttribute("target");d.href=g;d.click()}catch(f){a.location=g}else a.location=g}this.CreateReport=function(d,k){var m="";try{z();if(e){var j=null,g=null,h=null,l="",a="",i=-1;while(d){switch(d.tagName){case "A":case "AREA":if(!j){j=d;g=u(d.getAttribute("href"));if(!g)return "";if(!h){h=d.innerText;if(!h)h=d.getAttribute("alt")}l=H(g)}break;case "IMG":if(!h)h=d.getAttribute("alt");break;case "FORM":if(!j){j=d;g=u(d.getAttribute("action"));if(!g)break;h="[form submission]";i=1}break}if(d.id){if(j&&i<0)i=w(d,j);a=">"+d.id+a}if(a)break;d=d.parentElement}if(g){if(a.length>0)a=a.substring(1);else{a="body";if(i<0)i=w(f.body,j)}if(k)a=a+"|"+k;a=v+">"+a;if(event.srcElement.className==G){g.match("(http(s?):/{2})([-_.!~*'()a-zA-Z0-9;:@=+$,%#]+)([/?&]?)");a=a+">"+RegExp.$3}g=g.replace("#","%23");m=D(r)+"?"+g+"&&ps="+q+"&pi="+p+"&di="+n+"&gt1="+l+"&ce="+(i>0?i:0)+"&cm="+encodeURIComponent(a)+"&hl="+encodeURIComponent(h)+"&su="+s}}else if(c)b.alert("No ctag on the page.")}catch(o){if(c)b.alert("Error: "+o.name+"\n"+o.message)}return m};this.CreateReport2=function(a,h,d,i,g){var f="";try{z();if(e){if(a)f=D(r)+"?"+a+"&&ps="+q+"&pi="+p+"&di="+n+"&gt1="+g+"&ce="+(d>0?d:0)+"&cm="+encodeURIComponent(h)+"&hl="+encodeURIComponent(i)+"&su="+s}else if(c)b.alert("No ctag on the page.")}catch(j){if(c)b.alert("Error: "+j.name+"\n"+j.message)}return f};function z(){if(e===null){e=f.getElementById("ctag");if(!e)e=f.getElementById("CTag");if(e){var h=e.getAttribute("src");n=i(h,"di");p=i(h,"pi");q=i(h,"ps");s=i(h,"tp")}else e="";var d=f.getElementsByTagName("META");for(var c=0;c<d.length;++c){var g=d[c].getAttribute("name");if(g&&g.toLowerCase()=="g-link"){var b,k=d[c].getAttribute("content");if(k){var a=k.split(";");if(a[0]){b=parseInt(a[0]);if(!isNaN(b))C=b}if(a[1])r=a[1];if(a[2]){b=parseInt(a[2]);if(!isNaN(b))E=b}}}else if(g&&g.toLowerCase()=="pageid")v=d[c].getAttribute("content")}var j=f.getElementsByTagName("BASE");if(j.length==1)t=j[0].getAttribute("href")}}function i(c,d){var b=new RegExp("[?&]"+d+"=([^&]+)","i"),a=b.exec(c);return a?a[1]:""}function D(a){var f=/([^\/]+)\/[^\/\?]+\/?(\?.*)?$/,d=f.exec(a);if(d){var b=d[1],e=b.charAt(0);if(c&&b.substring(0,3)!="_1_")a=a.replace(b,(e=="_"?"_1":"_1_")+b);else if(e!="_")a=a.replace(b,"_"+b)}return a}function H(c){var b=/[\?\&]GT1=(\d+)/i,a=b.exec(c);return a?a[1]:""}function u(c){var b=null,a=x.exec(c);if(!a)b=c;else if(a[4]&&I(a[4].toLowerCase())||a[2]&&a[2].toLowerCase()=="javascript")b=null;else if(!t||a[2])b=c;else b=t+c;return b}function I(b){if(h&&h.length)for(var a=0;a<h.length;++a)if(b===h[a])return true;return false}function w(a,c){if(!a)return 0;if(a==c)return 1;var b=B(a,c);return b>0?b:0}function B(e,f,a){if(!a)a=-1;for(var c=0;a<0&&c<e.childNodes.length;++c){var b=e.childNodes[c];if(b.nodeType==1){if(b==f)return -a;if(!b.id){switch(b.tagName){case "A":case "AREA":var d=b.getAttribute("href");if(d&&d.indexOf("javascript:")!==0)--a;break}a=B(b,f,a)}}}return a}this.TrackClick=function(f,d){l();var a=j.CreateReport(f,d);if(a){var e=new Image;e.src=a;if(c)b.alert("Tracking: "+k(a))}};this.TrackReport=function(a){if(a)if(c)b.alert("Tracking: "+k(a));else{var e=new Image;e.src=a;var f=new Date,d=new Date;while(d.getTime()-f.getTime()<E)d=new Date}return !c};this.SetDebug=function(a){c=a!==false};function k(c){var b="",a=x.exec(c);if(!a)b=c;else if(!a[7])b=a[1]+a[3]+a[5]+(a[8]?a[8]:"");else b=a[1]+a[3]+a[5]+"\n\t?"+a[7].replace(/\&/g,"\n\t&")+(a[8]?"\n\t"+a[8]:"");return b}this.oncreate=function(){if(f.attachEvent){f.attachEvent("onclick",y);b.attachEvent("onunload",j.ondestroy)}};this.ondestroy=function(){if(f.detachEvent){b.detachEvent("onunload",j.ondestroy);f.detachEvent("onclick",y)}};this.oncreate();return this}