(function(g,a){var b=this,q=Msn.Util,d=q.ArgWithDefault,c=document,r=3000,e=Msn.DOM;if(!a||!a.xaml||!a.xaml.source)return;var f=a.xaml.source;if(!!a.xaml.proxy)f=a.xaml.proxy+"?xml_url="+f.encodeURIComponent();b.id=d(a.id,"SilverlightControl");var i=0;while(!!c.getElementById(b.id+i))i++;b.id=b.id+i;if(typeof a.context==="string")a.context=a.context.parseJSON();if(!a.context)a.context={};a.context.__constructorArgs=a;if(!a.context)a.context={};a.context.__constructorArgs=a;a.version=d(a.version,"1");Msn.ThumbNail.FeedGlobal.setContent(a.context.feedfailUrl);function l(){var d=0,h=false;if(navigator){var i=navigator.vendor;if(i){var j=i.indexOf("Apple");if(j!=-1)if(a.dwnLevelEnable==false){if(a.sltrack instanceof Array&&typeof a.sltrack[0]==="string"){d=c.createElement("img");d.src=a.sltrack[0]}var e="<div class='nosilverlight' style='padding:0;width:"+a.width+"px;height:"+a.height+"px;"+(!!a.backgroundImage?"background-image:url("+a.backgroundImage+")":"")+"'>";e+="</div>";g.innerHTML=e;b.inplaceInstallPromptSet=1;h=true}}}if(h==false&&Silverlight.isInstalled(a.version)){(function(c){if(c.responseXML&&c.responseXML.documentElement&&c.responseXML.documentElement.tagName.toLowerCase()=="canvas")Silverlight.createObjectEx(b.args);else if(a.dwnLevelEnable==true){var d="<div class='nosilverlight' style='margin:0;padding:0;width:"+a.width+"px;height:"+a.height+"px;"+(!!a.backgroundImage?"background-image:url("+a.backgroundImage+")":"")+"'>";k()}}).RQ(f);if(a.sltrack instanceof Array&&typeof a.sltrack[1]==="string"){d=c.createElement("img");d.src=a.sltrack[1]}}else if(!b.inplaceInstallPromptSet){if(a.sltrack instanceof Array&&typeof a.sltrack[0]==="string"){d=c.createElement("img");d.src=a.sltrack[0]}var e="<div class='nosilverlight' style='padding:0;width:"+a.width+"px;height:"+a.height+"px;"+(!!a.backgroundImage?"background-image:url("+a.backgroundImage+")":"")+"'>";if(a.dwnLevelEnable==false)e+=Silverlight.buildPromptHTML(a);e+="</div>";g.innerHTML=e;b.inplaceInstallPromptSet=1;if(a.dwnLevelEnable==true)k()}}function k(){var k=!!a.context.feedUrl?a.context.feedUrl:"http://extra.msn.com/thumbnailfeed.aspx",j=(!!a.context.jsonProxy?a.context.jsonProxy:"http://extra.msn.com/json.aspx")+"?xml_url=",h=null,f=null,e=null,d=null,b=c.createElement("div"),i=function(q){var a=q.responseText.parseJSON(),k=-1;if(!(a&&a.rss&&a.rss.channel))a=Msn.ThumbNail.FeedGlobal.getContent().parseJSON();b.id="thumbnail";var r=a.rss.channel.item.length;while(++k<r){f=a.rss.channel.item[k].title;e=a.rss.channel.item[k].titledesc;h=a.rss.channel.item[k].enclosure.url;d=a.rss.channel.item[k].link;var j=c.createElement("img");j.src=h;j.width="96";j.height="96";var i=c.createElement("div"),m=c.createElement("a");m.href=d;var p=c.createElement("div");p.className="tbtitle";p.innerHTML=f;var l=c.createElement("div");l.className="tbtitletxt";l.innerHTML=e;b.appendChild(i);m.appendChild(j);i.appendChild(m);if(d.toLowerCase()==location.href.toLowerCase())i.className="thumbdef";else{i.className="thumb";i.appendChild(l);o.hook(j,"mouseover");n.hook(j,"mouseout")}i.appendChild(p)}g.childNodes[0].appendChild(b)};i.RQ(j+k.encodeURIComponent())}function o(c){c=e.Event(c);var b=e.Target(c),a=b.parentNode.parentNode;b.width="120";b.height="120";e.AddClass(a,"sel");a.childNodes[1].style.visibility="visible";a.childNodes[2].style.visibility="visible";a.childNodes[2].style.marginLeft="0px"}function n(c){c=e.Event(c);var b=e.Target(c),a=b.parentNode.parentNode;b.width="96";b.height="96";e.DelClass(a,"sel");a.childNodes[1].style.visibility="hidden";a.childNodes[2].style.visibility="hidden"}if(typeof a.onLoad==="string"){var m=a.onLoad.split(".");a.onLoad=window;for(var j=0,h;h=m[j];j++){if(!a.onLoad[h]){a.onLoad=null;break}a.onLoad=a.onLoad[h]}}var p=function(a){return function(e,d,c){b.binding=new a(e,d,c)}}(a.onLoad);b.args={source:f,parentElement:g,id:b.id,properties:{width:d(a.width,"1"),height:d(a.height,"1"),version:a.version,enableHtmlAccess:d(a.enableHtmlAccess,"true"),inplaceInstallPrompt:d(a.inplaceInstallPrompt,true),framerate:d(a.framerate,"24"),background:a.background||null},events:{onError:a.onError||null,onLoad:p||null},initParams:a.initParams||null,context:a.context};l();return b}).as("Msn.Ag.Control");(function(){}).as("msn.ag.control",Msn.Ag.Control);(function(k,i){var h=this,m=document,a=Msn.DOM,l=a.InnerText,j=Msn.Util,f=j.ArgWithDefault,g=k.getElementsByTagName("form")[0],b=g["q"],c=f(i.defaultTextValue,"Best on MSN");function d(b){b=a.Event(b);var d=a.Target(b);if(d.value==c)d.value=""}function e(b){b=a.Event(b);var d=a.Target(b);if(d.value=="")d.value=c}h.dispose=function(){d.unhook(b,"focus");e.unhook(b,"blur")};d.hook(b,"focus");e.hook(b,"blur")}).as("Msn.Specials.Textboxhint");(function(){}).as("msn.specials.textboxhint",Msn.Specials.Textboxhint);(function(){var a;this.setContent=function(b){(function(b){if(b.responseText)a=b.responseText}).RQ(b)};this.getContent=function(){return a}}).ns("Msn.ThumbNail.FeedGlobal")