if(!window.Msn)window.Msn={};if(!window.Msn.Video)window.Msn.Video=new function(){};Msn.Video._loaded=null;Msn.Video.OnVideoTitle=function(text,id){id=id+"_t";if(checkString(text)&&checkString(id)){var el=document.getElementById(id);if(el)el.innerHTML=text}};Msn.Video.OnMediaCompleted=function(id){id=id+"_t";var el=document.getElementById(id);if(el)el.innerHTML=""};Msn.Video.OnLinkback=function(text,url,id){id=id+"_m";var c,el=document.getElementById(id),css;if(el){el.innerHTML="";for(c=0;c<=text.length-1;c++)if(checkString(text[c])&&checkString(url[c])){css=c==text.length-1?"linkback last":"linkback";el.innerHTML=el.innerHTML+'<a class="'+css+'" href="'+url[c]+'" target="_blank">'+text[c]+"</a>"}}};Msn.Video.OnAdLoaded=function(adData,id){id=id+"_a";if(checkObject(adData)&&adData.imageUrl&&checkArray(adData.clickUrls,2)&&checkString(id)){var el=document.getElementById(id);if(el)el.innerHTML='<a class="ad" href="'+adData.clickUrls[1]+'" target="_blank"><img src="'+adData.imageUrl+'" width="300" height="60"></a>'}};Msn.Video.OnAdSurveyAvailable=function(obj,id){if(checkObject(obj)){id=id+"_r";var el=document.getElementById(id)||document.body;if(el)try{var script=document.createElement("SCRIPT");script.type="text/javascript";el.appendChild(script);script.src=obj.url}catch(e){}}};Msn.Video.EVENT_FLASH_DETECT="flash_detect";function isIE(){return navigator.userAgent.toLowerCase().indexOf("msie")!=-1}function checkDefined(o){return typeof o!="undefined"&&null!=o}function checkString(s){return typeof s=="string"&&s.length>0}function checkObject(o){return typeof o=="object"&&null!=o}function checkArray(array,minLength){var arrayCheck=array instanceof Array;if(minLength!="")arrayCheck=arrayCheck&&array.length>=minLength;returnarrayCheck}function checkFunction(o){return typeof o=="function"}function checkInt(f,min,max){if(null!=f&&(typeof f!="string"||""!=f)&&!isNaN(f)){if(checkDefined(min)&&f<min)return false;if(checkDefined(max)&&f>max)return false;return true}return false}function openStandardWindow(url,target){return openWindow(url,target,1024,768,"resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes,status=yes,location=yes")}Msn.Video.FlashObject=function(id,s,w,h,params){var that=this,attrKeys=[],attrValues=[],_objectNode=null,_installCtrl=null,_minVersionFailed=false,_id=id,_src=s,_params=params,_versionDetectionFailed=false,_majorVersion=0,_minorVersion=0,_revisionVersion=0,_parent;_params=_params||{};if(_params["wmode"]==undefined)_params["wmode"]="transparent";if(_params["bgColor"]==undefined)_params["bgColor"]="#000000";if(_params["base"]==undefined)_params["base"]=".";if(_params["menu"]==undefined)_params["menu"]="false";Msn.Video.FlashVersionDetectInstance.addListener(this);this.onEvent=function(source,type,param,param2){switch(type){case Msn.Video.EVENT_FLASH_DETECT:if(!Msn.Video.FlashVersionDetectInstance.checkVersion(_majorVersion,_minorVersion,_revisionVersion))this.onVersionDetectionFailure();default:break}};this.getObjectNode=function(){return _objectNode};this.setInstallCtrl=function(ctrl,major,minor,revision){if(ctrl!=undefined)_installCtrl=ctrl;_majorVersion=major!=undefined?major:0;_minorVersion=minor!=undefined?minor:0;_revisionVersion=revision!=undefined?revision:0};this.onDispose=function(){if(isIE())try{for(var f in _objectNode)if(checkFunction(_objectNode[f]))_objectNode[f]=empty}catch(e){}_objectNode=null};this.onVersionDetectionFailure=function(){_versionDetectionFailed=true;this.render(_parent)};this.verifyIEInstall=function(){var n=document.getElementById(_id+"Install");if(n)that.onVersionDetectionFailure()};this.render=function(p){_parent=p;_parent.innerHTML="";if(null!=p&&checkString(_src)){if(Msn.Video.FlashVersionDetectInstance&&!Msn.Video.FlashVersionDetectInstance.checkVersion(_majorVersion,_minorVersion,_revisionVersion))_versionDetectionFailed=true;if(_versionDetectionFailed&&_installCtrl)_installCtrl.render(p);else if(isIE()){p.innerHTML='<object id="'+_id+'" '+'name="'+_id+'" '+'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+'height="'+h+'" '+'width="'+w+'"> '+'<param name="movie" value="'+_src+'">'+'<param name="flashvars" value="'+_params["flashvars"]+'"/> '+'<param name="menu" value="'+_params["menu"]+'">'+'<param name="wmode" value="'+_params["wmode"]+'">'+'<param name="play" value="0">'+'<param name="quality" value="High">'+'<param name="allowScriptAccess" value="always">'+'<param name="allowFullScreen" value="true">'+'<param name="bgcolor" value="'+_params["bgcolor"]+'">'+'<param name="base" value="'+_params["base"]+'">'+'<div id="'+_id+'Install"></div>'+"</object>";_objectNode=p.childNodes[0];if(_installCtrl)setTimeout(this.verifyIEInstall,1e3)}else{_objectNode=document.createElement("EMBED");_objectNode.id=_id;_objectNode.setAttribute("name",_id);_objectNode.setAttribute("bgcolor",_params["bgcolor"]);_objectNode.setAttribute("allowScriptAccess","always");_objectNode.setAttribute("menu",_params["menu"]);_objectNode.setAttribute("quality","high");_objectNode.setAttribute("type","application/x-shockwave-flash");_objectNode.setAttribute("src",_src);_objectNode.setAttribute("width",w);_objectNode.setAttribute("height",h);_objectNode.setAttribute("flashVars",_params["flashvars"]);_objectNode.setAttribute("wmode",_params["wmode"]);_objectNode.setAttribute("base",_params["base"]);_objectNode.setAttribute("allowFullScreen","true");p.appendChild(_objectNode);if(_installCtrl&&!(navigator.plugins!=null&&navigator.plugins.length>0&&(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])))this.onVersionDetectionFailure()}}else _objectNode=null}};Msn.Video.FlashVersionDetect=function(){var that=this,_major,_minor,_revision,_listeners=[];if(!checkDefined(Msn.Video.FlashVersionDetectInstance))Msn.Video.FlashVersionDetectInstance=this;this.addListener=function(listener){_listeners.push(listener)};this.fireEvent=function(event,param1,param2){for(var i=0;i<_listeners.length;i++)if(checkDefined(_listeners[i])&&checkFunction(_listeners[i].onEvent))_listeners[i].onEvent(this,event,param1,param2)};this.render=function(p){if(null!=p){p.style.position="absolute";var id="versiondetect",url="http://images.video.msn.com/flash/versionDetect.swf",obj=new Msn.Video.FlashObject(id,url,1,1);obj.render(p);var node=obj.getObjectNode();if(node){if(node.attachEvent)node.attachEvent("fscommand",that.onVersion);window[id+"_DoFSCommand"]=that.onVersion}else _major=_minor=_revision=0}};this.checkVersion=function(major,minor,revision){if(_major>major||_major==undefined)return true;else if(_major==major)if(_minor>minor||_minor==undefined)return true;else if(_minor==minor&&(_revision>=revision||_revision==undefined))return true;return false};this.onVersion=function(v){try{var temp=v.split(" ")[1];temp=temp.split(",");_major=checkInt(temp[0])?temp[0]:0;_minor=checkInt(temp[1])?temp[1]:0;_revision=checkInt(temp[2])?temp[2]:0;that.fireEvent(Msn.Video.EVENT_FLASH_DETECT,v)}catch(e){}}};Msn.Video.FlashInstall=function(content){var that=this,_content=content;this.cfg={REQUIRE_FLASH:"Please install the latest version of the free Adobe Flash Player. ",REQUIRE_FLASH_LINK:"Download now.",HELP_FLASH:"For help with Flash, see Adobe's ",HELP_FLASH_LINK:"Flash Player Support page.",FLASH_INSTALL_URL:"http://g.msn.com/0VD0/34/67?CM=not_auto_flash",FLASH_HELP_URL:"http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15511"};this.onFlashInstall=function(){setTimeout(that.onFlashInstallComplete,1e3)};this.onFlashInstallComplete=function(){openStandardWindow(that.cfg.FLASH_INSTALL_URL,"_blank")};this.render=function(p){if(null!=p)if(checkDefined(_content))p.appendChild(_content);else{var d=document.createElement("DIV");d.className="flashInstallParent";p.appendChild(d);var n=document.createElement("DIV");n.className="flashInstall";n.style.backgroundColor="#e0e0e0";n.style.color="#666";n.style.fontFamily="Tahoma";n.style.fontSize="8pt";n.style.fontWeight="bold";n.style.padding="30px";d.appendChild(n);var span=document.createElement("span");span.innerHTML=that.cfg.REQUIRE_FLASH;n.appendChild(span);var link=document.createElement("a");link.setAttribute("href",that.cfg.FLASH_INSTALL_URL);link.setAttribute("target","_blank");link.innerHTML=that.cfg.REQUIRE_FLASH_LINK;link.style.color="#07519a";n.appendChild(link);n.appendChild(document.createElement("BR"));n.appendChild(document.createElement("BR"));span=document.createElement("span");span.innerHTML=that.cfg.HELP_FLASH;n.appendChild(span);link=document.createElement("a");link.setAttribute("href",that.cfg.FLASH_HELP_URL);link.setAttribute("target","_blank");link.innerHTML=that.cfg.HELP_FLASH_LINK;link.style.color="#07519a";n.appendChild(link)}}};if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(version){if(version==undefined)version=null;var isVersionSupported=false,container=null;try{var control=null,tryNS=false;if(window.ActiveXObject)try{control=new ActiveXObject("AgControl.AgControl");if(version===null)isVersionSupported=true;else if(control.IsVersionSupported(version))isVersionSupported=true;control=null}catch(e){tryNS=true}else tryNS=true;if(tryNS){var plugin=navigator.plugins["Silverlight Plug-In"];if(plugin)if(version===null)isVersionSupported=true;else{var actualVer=plugin.description;if(actualVer==="1.0.30226.2")actualVer="2.0.30226.2";var actualVerArray=actualVer.split(".");while(actualVerArray.length>3)actualVerArray.pop();while(actualVerArray.length<4)actualVerArray.push(0);var reqVerArray=version.split(".");while(reqVerArray.length>4)reqVerArray.pop();var requiredVersionPart,actualVersionPart,index=0;do{requiredVersionPart=parseInt(reqVerArray[index]);actualVersionPart=parseInt(actualVerArray[index]);index++}while(index<reqVerArray.length&&requiredVersionPart===actualVersionPart);if(requiredVersionPart<=actualVersionPart&&!isNaN(requiredVersionPart))isVersionSupported=true}}}catch(e){isVersionSupported=false}return isVersionSupported};Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(e){}if(Silverlight.isInstalled(null)&&!Silverlight.__onSilverlightInstalledCalled){Silverlight.onSilverlightInstalled();Silverlight.__onSilverlightInstalledCalled=true}else setTimeout(Silverlight.WaitForInstallCompletion,3e3)}};Silverlight.__startup=function(){navigator.plugins.refresh();Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);if(!Silverlight.isBrowserRestartRequired){Silverlight.WaitForInstallCompletion();if(!Silverlight.__installationEventFired){Silverlight.onInstallRequired();Silverlight.__installationEventFired=true}}else if(window.navigator.mimeTypes){var mimeSL2=navigator.mimeTypes["application/x-silverlight-2"],mimeSL2b2=navigator.mimeTypes["application/x-silverlight-2-b2"],mimeSL2b1=navigator.mimeTypes["application/x-silverlight-2-b1"],mimeHighestBeta=mimeSL2b1;if(mimeSL2b2)mimeHighestBeta=mimeSL2b2;if(!mimeSL2&&(mimeSL2b1||mimeSL2b2)){if(!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}}else if(mimeSL2&&mimeHighestBeta)if(mimeSL2.enabledPlugin&&mimeHighestBeta.enabledPlugin)if(mimeSL2.enabledPlugin.description!=mimeHighestBeta.enabledPlugin.description)if(!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}}if(!Silverlight.disableAutoStartup)if(window.removeEventListener)window.removeEventListener("load",Silverlight.__startup,false);else window.detachEvent("onload",Silverlight.__startup)};if(!Silverlight.disableAutoStartup)if(window.addEventListener)window.addEventListener("load",Silverlight.__startup,false);else window.attachEvent("onload",Silverlight.__startup);Silverlight.createObject=function(source,parentElement,id,properties,events,initParams,userContext){var slPluginHelper={},slProperties=properties,slEvents=events;slPluginHelper.version=slProperties.version;slProperties.source=source;slPluginHelper.alt=slProperties.alt;if(initParams)slProperties.initParams=initParams;if(slProperties.isWindowless&&!slProperties.windowless)slProperties.windowless=slProperties.isWindowless;if(slProperties.framerate&&!slProperties.maxFramerate)slProperties.maxFramerate=slProperties.framerate;if(id&&!slProperties.id)slProperties.id=id;delete slProperties.ignoreBrowserVer;delete slProperties.inplaceInstallPrompt;delete slProperties.version;delete slProperties.isWindowless;delete slProperties.framerate;delete slProperties.data;delete slProperties.src;delete slProperties.alt;if(Silverlight.isInstalled(slPluginHelper.version)){for(var name in slEvents)if(slEvents[name]){if(name=="onLoad"&&typeof slEvents[name]=="function"&&slEvents[name].length!=1){var onLoadHandler=slEvents[name];slEvents[name]=function(sender){return onLoadHandler(document.getElementById(id),userContext,sender)}}var handlerName=Silverlight.__getHandlerName(slEvents[name]);if(handlerName!=null){slProperties[name]=handlerName;slEvents[name]=null}else throw"typeof events."+name+" must be 'function' or 'string'"}slPluginHTML=Silverlight.buildHTML(slProperties)}else slPluginHTML=Silverlight.buildPromptHTML(slPluginHelper);if(parentElement)parentElement.innerHTML=slPluginHTML;else return slPluginHTML};Silverlight.buildHTML=function(slProperties){var htmlBuilder=[];htmlBuilder.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');if(slProperties.id!=null)htmlBuilder.push(' id="'+Silverlight.HtmlAttributeEncode(slProperties.id)+'"');if(slProperties.width!=null)htmlBuilder.push(' width="'+slProperties.width+'"');if(slProperties.height!=null)htmlBuilder.push(' height="'+slProperties.height+'"');htmlBuilder.push(" >");delete slProperties.id;delete slProperties.width;delete slProperties.height;for(var name in slProperties)if(slProperties[name])htmlBuilder.push('<param name="'+Silverlight.HtmlAttributeEncode(name)+'" value="'+Silverlight.HtmlAttributeEncode(slProperties[name])+'" />');htmlBuilder.push("</object>");return htmlBuilder.join("")};Silverlight.createObjectEx=function(params){var parameters=params,html=Silverlight.createObject(parameters.source,parameters.parentElement,parameters.id,parameters.properties,parameters.events,parameters.initParams,parameters.context);if(parameters.parentElement==null)return html};Silverlight.buildPromptHTML=function(slPluginHelper){var slPluginHTML="",urlRoot=Silverlight.fwlinkRoot,version=slPluginHelper.version;if(slPluginHelper.alt)slPluginHTML=slPluginHelper.alt;else{if(!version)version="";slPluginHTML="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";slPluginHTML=slPluginHTML.replace("{1}",version);slPluginHTML=slPluginHTML.replace("{2}",urlRoot+"108181")}return slPluginHTML};Silverlight.getSilverlight=function(version){if(Silverlight.onGetSilverlight)Silverlight.onGetSilverlight();var shortVer="",reqVerArray=String(version).split(".");if(reqVerArray.length>1){var majorNum=parseInt(reqVerArray[0]);if(isNaN(majorNum)||majorNum<2)shortVer="1.0";else shortVer=reqVerArray[0]+"."+reqVerArray[1]}var verArg="";if(shortVer.match(/^\d+\056\d+$/))verArg="&v="+shortVer;Silverlight.followFWLink("114576"+verArg)};Silverlight.followFWLink=function(linkid){top.location=Silverlight.fwlinkRoot+String(linkid)};Silverlight.HtmlAttributeEncode=function(strInput){var c,retVal="";if(strInput==null)return null;for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c>43&&c<58&&c!=47||c==95)retVal=retVal+String.fromCharCode(c);else retVal=retVal+"&#"+c+";"}return retVal};Silverlight.default_error_handler=function(sender,args){var iErrorCode,errorType=args.ErrorType;iErrorCode=args.ErrorCode;var errMsg="\nSilverlight error message     \n";errMsg+="ErrorCode: "+iErrorCode+"\n";errMsg+="ErrorType: "+errorType+"       \n";errMsg+="Message: "+args.ErrorMessage+"     \n";if(errorType=="ParserError"){errMsg+="XamlFile: "+args.xamlFile+"     \n";errMsg+="Line: "+args.lineNumber+"     \n";errMsg+="Position: "+args.charPosition+"     \n"}else if(errorType=="RuntimeError"){if(args.lineNumber!=0){errMsg+="Line: "+args.lineNumber+"     \n";errMsg+="Position: "+args.charPosition+"     \n"}errMsg+="MethodName: "+args.methodName+"     \n"}alert(errMsg)};Silverlight.__cleanup=function(){for(var i=Silverlight._silverlightCount-1;i>=0;i--)window["__slEvent"+i]=null;Silverlight._silverlightCount=0;if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.__getHandlerName=function(handler){var handlerName="";if(typeof handler=="string")handlerName=handler;else if(typeof handler=="function"){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else window.attachEvent("onunload",Silverlight.__cleanup);var count=Silverlight._silverlightCount++;handlerName="__slEvent"+count;window[handlerName]=handler}else handlerName=null;return handlerName};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(sender,args){var retVal=false;try{if(args.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else if(args.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else if(args.ErrorCode==5014||args.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(args.getHost()))retVal=true}else retVal=true}catch(e){}return retVal};Silverlight.IsVersionAvailableOnLoad=function(sender){var retVal=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(sender.getHost()))retVal=true}catch(e){}return retVal};Silverlight.__verifySilverlight2UpgradeSuccess=function(host){var retVal=false,version="2.0.31005",installationEvent=null;try{if(host.IsVersionSupported(version+".99")){installationEvent=Silverlight.onRequiredVersionAvailable;retVal=true}else if(host.IsVersionSupported(version+".0"))installationEvent=Silverlight.onRestartRequired;else installationEvent=Silverlight.onUpgradeRequired;if(installationEvent&&!Silverlight.__installationEventFired){installationEvent();Silverlight.__installationEventFired=true}}catch(e){}return retVal};if(!window.Msn)window.Msn={};if(!window.Msn.VideoSL)window.Msn.VideoSL={};Msn.VideoSL.Inline=function(id){var that=this,t=id+"_t",p=id+"_p",m=id+"_m",a=id+"_a",pobj=id+"_pobj",events,timeout,loaded;this.Build=function(v,w,h,src,props,evts){that.BuildLayout();that.BuildPlayer(v,w,h,src,props,evts)};this.BuildLayout=function(){var el=document.getElementById(id);if(el)el.innerHTML='<div class="video1"><h3 id="'+t+'"></h3><div id="'+p+'"></div><div id="'+m+'"></div><div id="'+a+'"></div></div>'};this.BuildPlayer=function(v,w,h,src,props,evts){var vs={ifs:"true",playlistmin:"2"},i;for(i in v)vs[i]=v[i];v=[];for(i in vs)if(vs[i])v.push(i+"="+vs[i].replace(/,/g,"%2C"));v=v.join(",");var properties={width:w?w:300,height:h?h:269,background:"black",framerate:"30",version:"2.0.31005",enableHtmlAccess:"true"};for(var x in props)properties[x]=props[x];events=evts;var ex={source:src?src:"http://images.video.msn.com/sl/inline.xap",parentElement:document.getElementById(p),id:pobj,properties:properties,events:{onLoad:that.OnLoad,onError:that.OnError},initParams:v,context:null};Silverlight.createObjectEx(ex);timeout=setTimeout(that.OnLoad,100)};this.OnLoad=function(s,c,src){if(timeout!=null){clearTimeout(timeout);timeout=null}var obj=document.getElementById(pobj);if(obj!=null&&obj.IsLoaded){if(!loaded){loaded=true;var il=obj.Content.Inline;il.addEventListener("PropertyChanged",onIPC);st(il.Title);sb(il.Banner);sl(il.Links);if(events!=null&&typeof events.onLoad=="function")events.onLoad(s,c,src)}}else timeout=setTimeout(that.OnLoad,100)};this.OnError=function(s,args){if(events!=null&&typeof events.onError=="function")events.onError(s,args)};function onIPC(s,d){var n=d.PropertyName,v=d.PropertyValue;if(n=="Title")st(v);if(n=="Banner")sb(v);if(n=="Links")sl(v)}function st(v){var el=document.getElementById(t);if(el)el.innerHTML=v==null?"":v}function sb(v){var el=document.getElementById(a);if(el)el.innerHTML=v==null?"":'<a class="ad" href="'+v.Target+'" target="_blank"><img src="'+v.Image+'" width="300" height="60"></a>'}function sl(v){var el=document.getElementById(m),c,css,s="";if(el){for(c=0;v!=null&&c<=v.length-1;c++){css=c==v.length-1?"linkback last":"linkback";s+='<a class="'+css+'" href="'+v[c].Uri+'" target="_blank">'+v[c].Value+"</a>"}el.innerHTML=s}}};Msn.Video.Widgets={player:{current:"flash/soapbox1_1.swf"},playerRTL:{current:"flash/soapbox1_1RTL.swf"},playerad:{current:"flash/soapbox1_1.swf"},slplayer:{current:"sl/inline.xap",silverlight:true},slplayerad:{current:"sl/inline.xap",silverlight:true},gallery:{current:"flash/gallerywidget/1_0/gallerywidget.swf"},galleryRTL:{current:"flash/gallerywidget/1_0/gallerywidgetRTL.swf"},customplayer:{current:"flash/customplayer/1_0/customplayer.swf"},uploader:{current:"flash/uploaderwidget/1_1/uploaderwidget.swf","2":"flash/uploaderwidget/2_0/uploaderwidget.swf","2.0":"flash/uploaderwidget/2_0/uploaderwidget.swf","2_0":"flash/uploaderwidget/2_0/uploaderwidget.swf","1.1":"flash/uploaderwidget/1_1/uploaderwidget.swf","1_1":"flash/uploaderwidget/1_1/uploaderwidget.swf","1":"flash/uploaderwidget/uploaderwidget.swf","1.0":"flash/uploaderwidget/uploaderwidget.swf","1_0":"flash/uploaderwidget/uploaderwidget.swf"}};Msn.Video.createWidget=function(divId,src,w,h,flashvars,widgetId,params,version,root,downlevel){var container=document.getElementById(divId),isSL=false;if(checkDefined(container)){src=src.toLowerCase();var origSrc=src;if(Msn.Video.Widgets[src]){isSL=Msn.Video.Widgets[src].silverlight==true;if(root){if(root.indexOf("http://")!=0)root="http://"+root;if(root.lastIndexOf("/")!=root.length-1)root+="/"}version=version||"current";src=(root||"http://images.video.msn.com/")+(Msn.Video.Widgets[src][version]?Msn.Video.Widgets[src][version]:Msn.Video.Widgets[src]["current"])}var detectDiv=document.createElement("div");detectDiv.setAttribute("id",divId+"_detect");container.appendChild(detectDiv);var detectObj=new Msn.Video.FlashVersionDetect,contentDiv=document.createElement("div");contentDiv.setAttribute("id",divId+"_content");container.appendChild(contentDiv);var fvv={};for(var i in flashvars)fvv[i]=flashvars[i].replace(/\&/g,"%26");if(origSrc=="playerad"){contentDiv=Msn.Video.buildPlayerAdElements(contentDiv,divId);fvv["cbprefix"]="Msn.Video.";fvv["cbdata"]=divId;fvv["adDivs"]=(checkString(fvv["adDivs"])?fvv["adDivs"]+";":"")+divId+"_a,300,60"}if(origSrc.substring(0,6)=="player"&&!checkString(fvv["mode"]))fvv["mode"]=checkString(fvv["mode"])?fvv["mode"]:"inline";params=params||{};if(isSL){var flashvars={};for(var k in fvv){var key=k;if(k.split(".").length==2)key=k.split(".")[1];flashvars[key]=decodeURIComponent(fvv[k])}var player=new Msn.VideoSL.Inline(divId);if(origSrc=="slplayerad")player.Build(flashvars,w,h,src,params);else{contentDiv.innerHTML="<div id='"+divId+"_p'></div>";player.BuildPlayer(flashvars,w,h,src,params)}}else{var fvs="";for(var i in fvv)fvs+=i+"="+fvv[i]+"&";params["flashvars"]=fvs;var flash=new Msn.Video.FlashObject(widgetId||divId+"_flash",src,w,h,params);flash.setInstallCtrl(new Msn.Video.FlashInstall(downlevel),9);detectObj.render(detectDiv);flash.render(contentDiv);return flash.getObjectNode()}}};Msn.Video.buildPlayerAdElements=function(div,id){var v='<div class="video1"><h3 id="'+id+'_t"></h3><div id="'+id+'_p"></div><div id="'+id+'_m"></div><div id="'+id+'_a"></div><div id="'+id+'_r"></div></div>';div.innerHTML=v;var playerNode=document.getElementById(id+"_p");return playerNode};Msn.Video._loaded=(new Date).getTime()