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)
