
function checkDefined(o)
{return((typeof(o)!="undefined")&&(null!=o));}
function checkString(s)
{return((typeof(s)=="string")&&(s.length>0));}
function checkFloat(f,min,max)
{if(parseFloat(f)||(0==f))
{if(checkDefined(min))
{if(f<min)
{return false;}}
if(checkDefined(max))
{if(f>max)
{return false;}}
return true;}
return false;}
function checkInt(f,min,max)
{if((null!=f)&&((typeof(f)!="string")||(""!=f))&&!isNaN(f))
{if(checkDefined(min))
{if(f<min)
{return false;}}
if(checkDefined(max))
{if(f>max)
{return false;}}
return true;}
return false;}
function checkObject(o)
{return(typeof(o)=="object"&&(null!=o));}
function checkFunction(o)
{return(typeof(o)=="function");}
function checkGuid(str)
{var re=/^\{?[a-fA-F\d]{8}-?([a-fA-F\d]{4}-?){3}[a-fA-F\d]{12}\}?$/;return re.test(str);}
function checkArray(array,minLength,maxLength)
{var arrayCheck=(array instanceof Array);if(checkInt(minLength))
{arrayCheck=arrayCheck&&(array.length>=minLength);}
if(checkInt(maxLength))
{arrayCheck=arrayCheck&&(array.length<=maxLength);}
return arrayCheck;}
function getUrlParam(param,df)
{var params=document.location.search.split('&');for(var i=0;i<params.length;i++)
{var qm=(i==0?"?":"");if(params[i].slice(0,params[i].indexOf('=')).toLowerCase()==(qm+param.toLowerCase()))
{return unescape(params[i].slice(params[i].indexOf('=')+1));}}
return df;}
function HTMLEncodeString(s)
{if((typeof(s)=="string")&&(s.length>0))
{s=s.replace(/\&/g,"&amp;");s=s.replace(/\</g,"&lt;");s=s.replace(/\>/g,"&gt;");s=s.replace(/\"/g,"&quot;");s=s.replace(/\'/g,"&#39;");}
return s;}
function pageBeforeUnload()
{__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};}
if(window.attachEvent)
{window.attachEvent("onbeforeunload",pageBeforeUnload);}
else if(window.addEventListener)
{window.addEventListener("beforeunload",pageBeforeUnload,false);}
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=key+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
_19+="</object>";}
return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}
if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};deconcept.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;};deconcept.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(document.getElementsByTagName("OBJECT").length>0&&document.getElementsByTagName("OBJECT")[0].parentNode.childNodes.length>0)
{document.getElementsByTagName("OBJECT")[0].parentNode.childNodes[0].removeNode();}};if(typeof window.onunload=="function"){var oldunload=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();oldunload();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}
if(Array.prototype.push==null){Array.prototype.push=function(_30){this[this.length]=_30;return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var Msn={};Msn.Video={};Msn.Video.OnVideoTitle=function(text,idPrefix)
{if(checkString(text)&&checkString(idPrefix))
{var elem=document.getElementById(idPrefix+"_title");elem.innerHTML=text;}}
Msn.Video.OnLinkback=function(text,url,idPrefix)
{if(checkString(text)&&checkString(url)&&checkString(idPrefix))
{var elem=document.getElementById(idPrefix+"_linkback");elem.innerHTML="<a target=\"_blank\" href=\""+url+"\">"+text+"</a>";}}
Msn.Video.OnAdLoaded=function(adData,idPrefix)
{if(checkObject(adData)&&checkString(adData.imageUrl)&&checkArray(adData.clickUrls,2)&&checkString(idPrefix))
{var elem=document.getElementById(idPrefix+"_banner");elem.innerHTML="<a style='border:none' href='"+adData.clickUrls[1]+"'><img style='border:none' src='"+adData.imageUrl+"' width=300px height=60px></a>";}}
Msn.Video.GetHostLocation=function()
{return window.location.host;}
InlineVideoPlayer=function()
{var _this=this;var _headlineDiv=null;var _containerId;this.initialize=function(p)
{_containerId=p.containerId;var _f=p.f;var _fg=p.fg;var _type=p.type;var _prop1=p.prop1;var _prop2=p.prop2;var _prop3=p.prop3;var _mk=p.mk;var _sort=p.sort;var _headline=p.headline;var _affiliateName=p.affiliateName;var _skin=p.skin;var _conf=p.conf;if(_conf==null)
{_conf="false";}
else
{_conf=_conf.toLowerCase();switch(_conf)
{case"true":case"false":break;default:_conf=false;}}
if(_containerId==null)
return;var container=document.getElementById(_containerId);if(container==null)
return;_headlineDiv=addDiv(container,"headline",p);var moduleDiv=addDiv(container,"module",p);var titleDiv=addDiv(moduleDiv,"title",p);var playerdiv=addDiv(moduleDiv,"player",p);var linkbackDiv=addDiv(moduleDiv,"linkback",p);var bannerDiv=addDiv(moduleDiv,"banner",p);var flashObjectId=_containerId+"_flashObject";var swfPath="http://video.syndication.msn.com/ivp/inlineplayer/www/flash/InlinePlayer.swf?v=3.0.543.10";var _fo=new FlashObject(swfPath,flashObjectId,"300","269","8","#000000",false);_fo.addParam("allowScriptAccess","always");_fo.addParam("wmode","opaque");_fo.addParam("menu","false");_fo.addParam("base",".");if(_f!=null)
_fo.addVariable("fr",_f);var fg=getFgString(_fg);if(fg!=null)
_fo.addVariable("fg",fg);_fo.addVariable("radUrl","http://rad.msn.com/ADSAdClient31.dll?GetAd?PG=");_fo.addVariable("pg","MSVAP6");_fo.addVariable("bsbpg","MSVAP7");_fo.addVariable("localAdEnabled","true");_fo.addVariable("localAdProviderUrl","http://msnap.adbureau.net/xtserver/aamsz=apaffiliatevideo/");_fo.addVariable("timePlaying",180);_fo.addVariable("cbprefix","Msn.Video.");_fo.addVariable("cbdata",_containerId);_fo.addVariable("d",stripProtocol("http://video.syndication.msn.com/ivp"));_fo.addVariable("bd",stripProtocol("http://video.syndication.msn.com/ivp")+"/inlineplayer/www");if(_skin!=null&&(_skin=="0"||_skin=="1"||_skin=="2"||_skin=="3"||_skin=="4"))
_fo.addVariable("skin",_skin);_fo.addVariable("sMode","true");_fo.addVariable("sUxd",stripProtocol("http://video.syndication.msn.com/ivp"));_fo.addVariable("sRpp",stripProtocol("http://catalog.video.syndication.msn.com/videoservice"));_fo.addVariable("sMpp","http://video.ap.org/v/default.aspx");if(_type!=null)
{_type=_type.toLowerCase();switch(_type)
{case"byproviderids":_prop2=_prop2.split(',')[0];case"bymarket":case"byuuids":case"bytag":case"bysearch":_fo.addVariable("sType",_type);_fo.addVariable("sProp1",_prop1);_fo.addVariable("sProp2",_prop2);_fo.addVariable("sProp3",_prop3);_fo.addVariable("sMk",_mk);break;default:_fo.addVariable("sType","bymarket");_fo.addVariable("sMk",_mk);}}
else if(_conf=="false")
{_fo.addVariable("sType","bymarket");_fo.addVariable("sMk",_mk);}
if(_sort!=null)_sort=_sort.toLowerCase();if(_sort=="hourlycount"||_sort=="dailycount"||_sort=="weeklycount"||_sort=="monthlycount"||_sort=="totalcount")
{_fo.addVariable("sSrt",_sort);}
else
{_fo.addVariable("sSrt","default");}
if(_headline!=null)
_headlineDiv.innerHTML=_headline;if(_affiliateName!=null)
_fo.addVariable("sAfn",_affiliateName);_fo.addVariable("sPrv",'false');_fo.write(playerdiv.id);}
function addDiv(container,className,params)
{var el=document.createElement("div");el.id=_containerId+"_"+className;switch(className)
{case"headline":el.style.color=isHexColor(params.headlineColor)?params.headlineColor:"#AB0110";el.style.fontFamily="Tahoma, Arial, Verdana";el.style.fontSize="9pt";el.style.fontWeight="bold";el.style.width="300px";el.style.padding="7px";break;case"module":if(params.borderColor!="none")
{el.style.borderStyle="solid";el.style.borderColor=isHexColor(params.borderColor)?params.borderColor:"#BBDDEE";el.style.borderWidth="1px";}
el.style.padding=isNonnegativeInteger(params.padding)?params.padding+"px":"4px";el.style.fontFamily="Tahoma, Arial, Verdana";el.style.fontSize="8pt";el.style.width="300px";break;case"title":el.style.minHeight="14px";break;case"linkback":el.style.padding="4px 0px 4px 0px";break;case"banner":break;}
return container.appendChild(el);}
function stripProtocol(s)
{s=s.replace("http://","");s=s.replace("https://","");return s;}
function getFgString(fg)
{if(fg==null)
return null;switch(fg)
{case"1":return"homepage";case"2":return"top_section";case"3":return"article";default:return null;}}
function isNonnegativeInteger(s)
{var secondArg=false;if(isNonnegativeInteger.arguments.length>1)
secondArg=isNonnegativeInteger.arguments[1];return(isSignedInteger(s,secondArg)&&((isEmpty(s)&&secondArg)||(parseInt(s)>=0)));}
function isPositiveInteger(s)
{var secondArg=false;if(isPositiveInteger.arguments.length>1)
secondArg=isPositiveInteger.arguments[1];return(isSignedInteger(s,secondArg)&&((isEmpty(s)&&secondArg)||(parseInt(s)>0)));}
function isSignedInteger(s)
{if(isEmpty(s))
if(isSignedInteger.arguments.length==1)
return false;else
return(isSignedInteger.arguments[1]==true);else
{var startPos=0;var secondArg=false;if(isSignedInteger.arguments.length>1)
secondArg=isSignedInteger.arguments[1];if((s.charAt(0)=="-")||(s.charAt(0)=="+"))
startPos=1;return(isInteger(s.substring(startPos,s.length),secondArg))}}
function isInteger(s)
{var i;if(isEmpty(s))
if(isInteger.arguments.length==1)
return 0;else
return(isInteger.arguments[1]==true);for(i=0;i<s.length;i++)
{var c=s.charAt(i);if(!isDigit(c))return false;}
return true;}
function isEmpty(s)
{return((s==null)||(s.length==0))}
function isDigit(c)
{return((c>="0")&&(c<="9"))}
function isHexLetter(c)
{c=c.toLowerCase();return((c=="a")||(c=="b")||(c=="c")||(c=="d")||(c=="e")||(c=="f"));}
function isHexColor(s)
{if(isEmpty(s))return false;if(s.length!=7)return false;if(s.charAt(0)!="#")return false;for(i=1;i<s.length;i++)
{var c=s.charAt(i);if(!isDigit(c)&&!isHexLetter(c))return false;}
return true;}
return this;}
if(inlinePlayerParameters!=null)
{var ivp=new InlineVideoPlayer();ivp.initialize(inlinePlayerParameters);}