if(!Object.prototype.hasOwnProperty){
Object.prototype.hasOwnProperty=function(_1){
var _2=false;
var _3=this.__proto__;
if(_3){
this.__proto__=null;
_2=_1 in this;
this.__proto__=_3;
}else{
_2=_1 in this;
}
return _2;
};
}
if(!Function.prototype.apply){
Function.prototype.apply=function(o,a){
var r,x="____apply";
if(typeof o!="object"&&typeof o!="function"){
o={};
}
o[x]=this;
switch((a&&a.length)||0){
case 0:
r=o[x]();
break;
case 1:
r=o[x](a[0]);
break;
case 2:
r=o[x](a[0],a[1]);
break;
case 3:
r=o[x](a[0],a[1],a[2]);
break;
case 4:
r=o[x](a[0],a[1],a[2],a[3]);
break;
case 5:
r=o[x](a[0],a[1],a[2],a[3],a[4]);
break;
case 6:
r=o[x](a[0],a[1],a[2],a[3],a[4],a[5]);
break;
case 7:
r=o[x](a[0],a[1],a[2],a[3],a[4],a[5],a[6]);
break;
case 8:
r=o[x](a[0],a[1],a[2],a[3],a[4],a[5],a[7]);
break;
case 9:
r=o[x](a[0],a[1],a[2],a[3],a[4],a[5],a[8]);
break;
default:
MN.Log.error("Too many arguments to apply.");
}
delete o[x];
return r;
};
}
if(!Array.prototype.splice){
Array.prototype.splice=function(s,d){
var a=[],e,i=Math.max(arguments.length-2,0),k=0,l=this.length,n,v,x;
s=s||0;
if(s<0){
s+=l;
}
s=Math.max(Math.min(s,l),0);
d=Math.max(Math.min((typeof d=="number"&&isFinite(d))?d:l,l-s),0);
v=i-d;
n=l+v;
while(k<d){
e=this[s+k];
if(typeof e!="undefined"){
a[k]=e;
}
k+=1;
}
x=l-s-d;
if(v<0){
k=s+i;
while(x){
this[k]=this[k-v];
k+=1;
x-=1;
}
this.length=n;
}else{
if(v>0){
k=1;
while(x){
this[n-k]=this[l-k];
k+=1;
x-=1;
}
}
}
for(k=0;k<i;++k){
this[s+k]=arguments[k+2];
}
return a;
};
}
if(!Array.prototype.pop){
Array.prototype.pop=function(){
return this.splice(this.length-1,1)[0];
};
}
if(!Array.prototype.push){
Array.prototype.push=function(){
this.splice.apply(this,[this.length,0].concat(Array.prototype.slice.apply(arguments)));
return this.length;
};
}
if(!Array.prototype.shift){
Array.prototype.shift=function(){
return this.splice(0,1)[0];
};
}
if(!Array.prototype.unshift){
Array.prototype.unshift=function(){
this.splice.apply(this,[0,0].concat(Array.prototype.slice.apply(arguments)));
return this.length;
};
}
if(!Array.prototype.map&&!(document.all&&document.attachEvent)){
Array.prototype.map=function(_a){
var a=[];
var _c=null;
for(var i=0;i<this.length;i++){
_c=_a(this[i]);
console.log("Setting a["+i+"] to "+_c);
a[i]=_c;
}
return a;
};
}
if(!String.prototype.strip){
String.prototype.strip=function(){
var _e=this.replace(/^\s+/g,"");
return _e.replace(/\s+$/g,"");
};
}
if(!String.prototype.endswith){
String.prototype.endswith=function(s){
return this.substr(this.length-s.length)==s;
};
}
if(!String.prototype.startswith){
String.prototype.startswith=function(s){
return this.substring(0,s.length)==s;
};
}
if(!String.prototype.format){
String.prototype.format=function(){
var _11=arguments;
var i=0;
var x=function(){
return _11[i++];
};
return this.replace(/(%s)/g,x);
};
}
if("d%sb".format("f")!="dfb"){
String.prototype.format=function(){
var _14=this.toString();
var _15=MN.ToArray(arguments);
for(var i=0;i<_15.length;i++){
var loc=_14.indexOf("%s");
if(loc==-1){
break;
}
_14=_14.slice(0,loc)+_15[i]+_14.slice(loc+2);
}
return _14;
};
}
MN={RELEASE_VERSION:"071705000006",nonIE:((document.all&&document.attachEvent)?false:true),$:function(){
var ret=[];
for(var i=0,al=arguments.length;i<al;i++){
var e=arguments[i];
if(typeof (e)=="string"){
e=document.getElementById(e);
}
if(arguments.length==1){
return e;
}
ret.push(e);
}
return ret;
},cloneObj:function(_1b){
if(typeof (_1b)!="object"||_1b===null){
return _1b;
}
var _1c=null;
if(_1b instanceof Array){
_1c=[];
}else{
_1c={};
}
for(var _1d in _1b){
_1c[_1d]=MN.cloneObj(_1b[_1d]);
}
return _1c;
},SetInnerText:function(el,_1f){
if(MN.nonIE){
el.innerHTML=_1f;
}else{
el.innerText=_1f;
}
},Class:function(_20){
func=function(){
MN.BindMethods(this);
if(arguments[0]!="__MNnoinit__"){
this.initialize.apply(this,arguments);
}
};
if(_20){
func.prototype=new _20("__MNnoinit__");
}
return func;
},BindMethods:function(_21){
for(var _22 in _21){
var _23=_21[_22];
if(typeof (_23)=="function"&&_22!="initialize"){
_21[_22]=MN.MakeBound(_21,_23);
}
}
},MakeBound:function(_24,_25){
var _26=_25;
if(_26.__originalMethod){
_26=_26.__originalMethod;
}
var _27=function(){
return _26.apply(_24,arguments);
};
_27.__originalMethod=_26;
return _27;
},EvalJSON:function(raw){
var obj=MN.JSON.parse(raw);
return obj;
},PadDigits:function(n,_2b,_2c){
if(!_2c){
_2c="0";
}
n=n.toString();
var pad="";
for(var i=0,len=_2b-n.length;i<len;i++){
pad+=_2c;
}
return pad+n;
},GetPageParams:function(){
return MN.URL.GetParams(window.location.search);
},GetWindowSize:function(){
var w,h;
if(window.innerWidth){
return [window.innerWidth,window.innerHeight];
}
if(document.documentElement&&document.documentElement.clientHeight){
return [document.documentElement.clientWidth,document.documentElement.clientHeight];
}
if(document.body&&document.body.clientWidth){
return [document.body.clientWidth,document.body.clientHeight];
}
return [0,0];
},GetTimestamp:function(_30){
var now=new Date();
var _32="%s:%s:%s".format(MN.PadDigits(now.getHours(),2),MN.PadDigits(now.getMinutes(),2),MN.PadDigits(now.getSeconds(),2));
if(_30){
_32+=":"+MN.PadDigits(now.getMilliseconds(),3,"0");
}
return _32;
},ConvertToTimestamp:function(s,_34,_35){
if(s<0){
s=0;
}
var h=Math.floor(s/3600);
s-=h*3600;
var m=Math.floor(s/60);
s-=m*60;
var _38;
if(!_35){
_38=String(Math.floor(s));
}else{
_38=s.toFixed(_35);
}
var ret="";
if(h>0||_34){
ret=MN.PadDigits(h,2)+":";
}
ret+=MN.PadDigits(m,2)+":";
if(_38.length<2){
ret+="0";
}
return ret+_38;
},ConvertToTimestamp2:function(arg,_3b){
var ret="";
var _3d=false;
var _3e="";
var obj=null;
if(typeof arg=="number"){
obj=MN.SecToObj(arg);
}else{
if(typeof arg=="object"){
obj=arg;
}else{
logError("MN.ConvertToTimestamp: Invalid argument: ",arg);
return ret;
}
}
if(_3b.charAt(0)>="a"&&_3b.charAt(0)<="z"){
_3d=true;
}
_3b=_3b.toLowerCase();
var _40=_3b.split(":");
for(var i=0;i<_40.length;i++){
if(_40[i].charAt(0)=="h"){
if(_3d){
ret+=MN.HourTo12Time(obj.hour).hour+":";
_3e=MN.HourTo12Time(obj.hour).am_pm;
}else{
if(_40[i].indexOf("?")==-1||obj.hour>0){
ret+=_40[i].charAt(1)=="h"?MN.PadDigits(obj.hour,2):obj.hour;
ret+=":";
}
}
}else{
if(_40[i].charAt(0)=="m"){
if(_40[i].charAt(1)=="m"||_3b.indexOf("h")!=-1){
ret+=MN.PadDigits(obj.minute,2);
}else{
ret+=obj.minute;
}
ret+=":";
}else{
if(_40[i].charAt(0)=="s"&&_40[i].charAt(1)=="s"){
var _42=_40[i].split(".")[1];
if(_42){
ret+=MN.PadDigits(obj.second.toFixed(_42.length),_42.length+2);
}else{
ret+=MN.PadDigits(String(Math.floor(obj.second)),2);
}
ret+=":";
}
}
}
}
ret=ret.slice(0,-1);
ret+=_3e;
return ret;
},ConvertFromTimestamp:function(s){
s=s||"0";
if(typeof (s)!="string"){
return s;
}
var _44=s.split(":");
while(_44.length<3){
_44.unshift("0");
}
return (parseInt(_44[0],10)*60+parseInt(_44[1],10))*60+parseFloat(_44[2]);
},SecToObj:function(s){
if(s<0){
s=0;
}
var h=Math.floor(s/3600);
s-=h*3600;
var m=Math.floor(s/60);
s-=m*60;
return {"hour":h,"minute":m,"second":s};
},HourTo12Time:function(h){
var _49="am";
if(h>=12){
if(h!=12){
h=h-12;
}
_49="pm";
}else{
if(h===0){
h=12;
}
}
return {"hour":h,"am_pm":_49};
},ToArray:function(_4a){
var _4b=[];
for(var i=0,fl=_4a.length;i<fl;i++){
_4b.push(_4a[i]);
}
return _4b;
},Update:function(_4d,src){
for(var _4f in src){
_4d[_4f]=src[_4f];
}
return _4d;
},LoadTestLib:function(){
MN.Log.ShowPane(0);
MN.RQA={};
if(MN.RQA._pane){
return;
}
MN.RQA._form=document.createElement("form");
MN.RQA._form.name="remoteQAForm";
MN.RQA._form.id="remoteQAForm";
MN.RQA._form.innerHTML="Test Info Area<br>";
MN.RQA._script=document.createElement("script");
MN.RQA._script.src="testRemote.js";
MN.RQA._script.type="text/javascript";
document.body.appendChild(MN.RQA._script);
MN.RQA._pane=document.createElement("div");
MN.Update(MN.RQA._pane.style,{"display":"block","width":"100%","overflow":"auto","position":"fixed","left":"0px","bottom":"0px","font":"8pt Verdana,sans-serif","height":"10em","backgroundColor":"white","borderTop":"2px solid black"});
MN.RQA._pane.appendChild(MN.RQA._form);
document.body.appendChild(MN.RQA._pane);
},ParsePlayerError:function(msg){
var _51=msg.split(",");
var _52=_51[0].split(":")[1];
_52=_52.substring(1,_52.length-1);
var err=_51[1].split(":")[1];
err=parseInt(err.substring(1,err.length-1),10);
var m="";
for(j=2;j<_51.length;j++){
m=m+","+_51[j];
}
var _55=m.split(":")[1];
_55=_55.substring(1,_55.length-1);
return {"domain":_52,"err":err,"msg":_55};
},Round:function(_56,_57){
return Math.round(parseFloat(_56)*Math.pow(10,_57))/Math.pow(10,_57);
},_supportsOverlays:null};
if(!MN.Config){
MN.Config={reqPlayerVersions:{"win":"071706000001","mac":"071706000001"},availPlayerVersions:{"win":"071706000001","mac":"071706000001"},omnitureReportSuite:"mvnet00001111",omnitureDefaultPubID:"A0000099",enableOmnitureAnalytics:false,enableGoogleAnalytics:false,fallbackPubID:"",viewTrackURLTemplate:"http://moveservices.appspot.com/viewstats/viewed.gif?pubID=%pub_id%&assetID=%asset_id%",globalConfigUrl:"http://player.movenetworks.com/qm/move/sdkconfig.js"};
}
MN.Cookie={Set:function(key,_59,_5a,_5b,_5c){
if(!_5b){
_5b="/";
}
var _5d="";
if(_5a){
var d=new Date();
d.setTime(d.getTime()+(_5a*86400000));
_5d="; expires="+d.toGMTString();
}
if(_5c){
document.cookie="%s=%s%s; path=%s; domain=%s".format(key,_59,_5d,_5b,_5c);
}else{
document.cookie="%s=%s%s; path=%s".format(key,_59,_5d,_5b);
}
},Get:function(key){
key=key+"=";
var _60=document.cookie.split(";");
for(var i=0,pl=_60.length;i<pl;i++){
var c=_60[i].strip();
if(c.indexOf(key)===0){
return c.substring(key.length,c.length);
}
}
return null;
},Clear:function(key){
MN.Cookie.Set(key,"",-1);
}};
MN.URL={Root:function(url){
if(!url){
return "";
}
var i=url.indexOf("://");
if(i==-1){
return "";
}
i+=3;
i=url.indexOf("/",i);
if(i==-1){
return url+"/";
}
return url.substr(0,i+1);
},Base:function(url){
if(!url){
return "";
}
var i=url.indexOf("://");
if(i==-1){
return "";
}
i+=2;
var _68=url.lastIndexOf("/");
if(i==_68){
return url+"/";
}
return url.substr(0,_68+1);
},Join:function(_69,rel){
if(!_69){
_69=window.location.href;
_69=_69.substring(0,_69.lastIndexOf("/")+1);
}
if(!rel){
return _69;
}
if(rel.indexOf("://")!=-1){
return rel;
}
if(rel.charAt(0)=="/"){
return MN.URL.Root(_69)+rel.substr(1);
}
return MN.URL.Base(_69)+rel;
},GetParams:function(url){
var ret={};
var q=url.indexOf("?");
if(q==-1){
return ret;
}
var _6e=url.substr(q+1).split("&");
for(var i=0,pl=_6e.length;i<pl;i++){
var _70=_6e[i].split("=",2);
if(_70.length==1){
ret[_70[0]]=true;
}else{
if(_70.length==2){
ret[_70[0]]=decodeURIComponent(_70[1]);
}
}
}
return ret;
},SetParams:function(url,_72){
var q=url.indexOf("?");
if(q!=-1){
url=url.substr(0,q);
}
var _74=[];
for(var i in (_72||{})){
_74.push(encodeURIComponent(i)+"="+encodeURIComponent(_72[i]));
}
if(_74.length===0){
return url;
}
return url+"?"+_74.join("&");
},AddParams:function(url,_77){
var _78=[];
for(var i in (_77||{})){
_78.push(encodeURIComponent(i)+"="+encodeURIComponent(_77[i]));
}
if(_78.length===0){
return url;
}
if(url.indexOf("?")==-1){
url+="?";
}else{
url+="&";
}
return url+_78.join("&");
},track:function(url){
var img=new Image();
img.src=url;
return url;
}};
MN.Event={windowLoaded:false,pointerX:function(_7c){
return _7c.pageX||(_7c.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
},pointerY:function(_7d){
return _7d.pageY||(_7d.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
},_listenerFuncs:[],Observe:function(obj,_7f,cb){
obj=MN.$(obj);
if(_7f=="EvalScript"){
logError("Invalid registration for OnEvalScript");
return;
}
if(_7f=="EvalScript_fromflashobject"){
_7f="EvalScript";
}
var _81="_"+_7f.toLowerCase()+"Listeners";
if(_7f=="EvalScript"){
if(obj[_81]){
logError("Multiple registration attempts for OnEvalScript not allowed");
return;
}
}
if(!obj[_81]){
obj[_81]=[];
var _82=obj[_81];
var _83=function(){
var _84;
for(var i=0,ll=_82.length;i<ll;i++){
try{
_84=_82[i].apply(this,arguments);
}
catch(e){
}
}
return _84;
};
if(obj.addEventListener){
obj.addEventListener(_7f,_83,false);
}else{
if(obj.attachEvent){
obj.attachEvent("on"+_7f,_83);
}
}
MN.Event._listenerFuncs.push([obj,_7f,_83]);
}
var _86=obj[_81];
for(var i=0,hl=_86.length;i<hl;i++){
if(_86[i]==cb){
return;
}
}
_86.push(cb);
},StopObserving:function(obj,_89,cb){
obj=MN.$(obj);
var _8b="_%sListeners".format(_89.toLowerCase());
var _8c=obj[_8b];
if(!_8c){
return;
}
for(var i=0;i<_8c.length;i++){
if(_8c[i]==cb){
_8c.splice(i,1);
if(_8c.length===0){
var _8e=null;
var _8f=MN.Event._listenerFuncs;
for(var j=0;j<_8f.length;j++){
var _91=_8f[j];
if(_91[0]==obj&&_91[1]==_89){
_8e=_91[2];
_8f.splice(j,1);
break;
}
}
if(!_8e){
logError("Could not find all_listener to remove");
}else{
if(obj.removeEventListener){
obj.removeEventListener(_89,_8e,false);
}else{
obj.detachEvent("on"+_89,_8e);
}
}
obj[_8b]=null;
}
break;
}
}
},RemoveAllObservers:function(){
for(var i=0;i<MN.Event._listenerFuncs.length;i++){
var _93=MN.Event._listenerFuncs[i];
var obj=_93[0];
var _95=_93[1];
obj["_%sListeners".format(_95.toLowerCase())]=null;
var _96=_93[2];
_93[0]=null;
if(obj.removeEventListener){
obj.removeEventListener(_95,_96,false);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_95,_96);
}
}
MN.Event._listenerFuncs[i]=null;
}
}};
MN.Event.Observe(window,"load",function(){
MN.Event.windowLoaded=true;
});
MN.Exceptions={ReportingError:function(msg){
this.msg=msg;
}};
var cloneObj=function(_98){
MN.Log.warn("Use of top-level function 'cloneObj' is deprecated and will be removed in a future release.  Use MN.cloneObj instead.");
return MN.cloneObj(_98);
};
MN.Event.Observe(window,"unload",MN.Event.RemoveAllObservers);
MN.EventSource=MN.Class();
MN.EventSource.prototype.initialize=function(){
this.events={};
};
MN.EventSource.prototype.addEventListener=function(_99,_9a){
_99=_99.toLowerCase();
if(!this.events[_99]){
this.events[_99]=[];
}
var _9b=this.events[_99];
for(var i=0,ll=_9b.length;i<ll;i++){
var _9d=_9b[i];
if(_9a==_9d){
return;
}
}
_9b.push(_9a);
};
MN.EventSource.prototype.attachEvent=function(_9e,_9f){
if(!_9e.toLowerCase().startswith("on")){
logError("attachEvent expects \"on<eventname>\" events not",_9e);
}else{
this.addEventListener(_9e.substr(2),_9f);
}
};
MN.EventSource.prototype.removeEventListener=function(_a0,_a1){
_a0=_a0.toLowerCase();
var _a2=this.events[_a0];
if(!_a2){
return;
}
var _a3=[];
for(var i=0,ll=_a2.length;i<ll;i++){
var _a5=_a2[i];
if(_a5!=_a1){
_a3.push(_a5);
}
}
this.events[_a0]=_a3;
};
MN.EventSource.prototype.FireEvent=function(_a6){
_a6=_a6.toLowerCase();
var _a7=this.events[_a6];
if(!_a7){
return;
}
var _a8=MN.ToArray(arguments).slice(1);
for(var i=0,ll=_a7.length;i<ll;i++){
var _aa=_a7[i];
try{
_aa.apply(this,_a8);
}
catch(e){
logError("Listener",_aa,"for event",_a6,"had uncaught exception:",e.message||e);
}
}
};
MN.EventSource.prototype.PostEvent=function(_ab){
_ab=_ab.toLowerCase();
var _ac=this.events[_ab];
if(!_ac){
return;
}
var _ad=MN.ToArray(arguments).slice(1);
var _ae=this;
for(var i=0,ll=_ac.length;i<ll;i++){
var _b0=_ac[i];
if(_b0){
setTimeout(function(){
try{
_b0.apply(_ae,_ad);
}
catch(e){
logError("Listener",_b0,"for event",_ab,"had uncaught exception:",e.message||e);
}
},1);
}
}
};
MN.AJAX={Create:function(){
try{
return new XMLHttpRequest();
}
catch(e1){
}
try{
return new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e2){
}
try{
return new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e3){
}
return null;
},Get:function(url,cb){
var _b3=MN.ToArray(arguments).slice(2);
var _b4={};
for(var i=0,al=_b3.length/2;i<al;i++){
_b4[_b3[i*2]]=_b3[i*2+1];
}
return MN.AJAX.Call({method:"GET",url:url,callback:cb,params:_b4});
},Post:function(url,cb){
var _b8=MN.ToArray(arguments).slice(2);
var _b9={};
for(var i=0,al=_b8.length/2;i<al;i++){
_b9[_b8[i*2]]=_b8[i*2+1];
}
return MN.AJAX.Call({method:"POST",url:url,callback:cb,params:_b9});
},Submit:function(_bb,cb){
_bb=MN.$(_bb);
var opt={method:"POST",url:_bb.action,cache:false,callback:cb};
var _be=[];
var _bf=function(_c0,_c1){
_be.push(encodeURIComponent(_c0)+"="+encodeURIComponent(_c1));
};
for(var i=0,fl=_bb.length;i<fl;i++){
var el=_bb.elements[i];
if(!el.name){
continue;
}
switch(el.type.toLowerCase()){
case "hidden":
case "textarea":
case "text":
case "password":
_bf(el.name,el.value);
break;
case "radio":
case "checkbox":
if(el.checked){
_bf(el.name,el.value);
}
break;
case "button":
case "submit":
break;
case "select-one":
var _c4=el.selectedIndex;
if(_c4>=0){
var _c5=el.options[_c4];
var _c6=_c5.value;
if(!_c6){
_c6=_c5.text;
}
_bf(el.name,_c6);
}
break;
case "select-multiple":
for(var j=0,elen=el.length;j<elen;j++){
var _c8=el.options[j];
if(_c8.selected){
var _c9=_c8.value;
if(!_c9){
_c9=_c8.text;
}
_bf(el.name,_c9);
}
}
break;
default:
logError("MN.AJAX.Submit not handling",el.name,el.type,el.value);
break;
}
}
var _ca=MN.ToArray(arguments).slice(2);
for(var k=0,al=_ca.length/2;k<al;k++){
_bf(_ca[k*2],_ca[k*2+1]);
}
opt.body=_be.join("&");
return MN.AJAX.Call(opt);
},Call:function(_cc){
var _cd=null;
var _ce=_cc.method||"GET";
var url=_cc.url;
if(!url){
_cd="Missing AJAX URL";
}
if(!_cc.callback){
_cd="Missing AJAX callback";
}
var req=MN.AJAX.Create();
if(!req){
_cd="AJAX not supported";
}
if(_cd){
if(_cc.callback){
return _cc.callback({status:400,statusText:_cd,responseText:""});
}else{
return logError("No AJAX callback given");
}
}
var _d1=_cc.params||{};
MN.Update(_d1,MN.URL.GetParams(url));
url=MN.URL.SetParams(url,{});
var _d2=_cc.headers||{};
if(MN.AJAX.forceNoCache||!_cc.cache){
_d2["Cache-control"]="no-cache";
if(_ce=="GET"){
_d1.__bah=(new Date()).getTime();
}
}
if(_ce=="POST"){
_d2["Content-type"]="application/x-www-form-urlencoded";
}
var _d3=_cc.body||"";
if(_ce=="POST"){
var _d4=MN.URL.SetParams("",_d1).substr(1);
if(_d4){
if(_d3){
_d3=_d3+"&"+_d4;
}else{
_d3=_d4;
}
}
_d2["Content-length"]=_d3.length;
}else{
_d3=null;
url=MN.URL.SetParams(url,_d1);
}
var tag=_cc.tag;
var cb=_cc.callback;
req.open(_ce,url);
for(var h in _d2){
if(_d2.hasOwnProperty(h)){
req.setRequestHeader(h,_d2[h]);
}
}
req.onreadystatechange=function(){
if(req.readyState==4&&cb){
var _d8={status:req.status,statusText:req.statusText,responseText:req.responseText,tag:tag};
cb(_d8);
}
};
if(_d3){
req.send(_d3);
}else{
req.send(null);
}
},forceNoCache:false};
MN.CSS={AddClass:function(_d9,_da){
if(!_da){
return;
}
var el=MN.$(_d9);
if(!el){
return;
}
var _dc=MN.CSS.GetClasses(el);
for(var i=0,cl=_dc.length;i<cl;i++){
if(_dc[i]==_da){
return;
}
}
el.className=el.className+" "+_da;
},RemoveClass:function(_de,_df){
if(!_df){
return;
}
var el=MN.$(_de);
if(!el){
return;
}
var _e1=MN.CSS.GetClasses(el);
var _e2=[];
for(var i=0,cl=_e1.length;i<cl;i++){
var _e4=_e1[i];
if(_e4!=_df){
_e2.push(_e4);
}
}
el.className=_e2.join(" ");
},GetClasses:function(_e5){
var el=MN.$(_e5);
if(!el||!el.className){
return [];
}
return el.className.split(" ");
},GetElementsByClassName:function(_e7,_e8,_e9){
var _ea=[];
if(_e7.hasChildNodes()){
var _eb;
var _ec=_e7.childNodes;
for(var i=0,cl=_ec.length;i<cl;i++){
_eb=_ec[i];
if(_eb.nodeType==1){
if(_eb.className==_e8){
_ea.push(_eb);
}
if(_e9){
_ea=_ea.concat(this.GetElementsByClassName(_eb,_e8,_e9));
}
}
}
}
return _ea;
}};
MN.DOM={SetAttribute:function(el,_ef,_f0){
if(_ef=="klass"||_ef.toLowerCase()=="class"){
el.className=_f0;
}else{
if(_ef=="body"){
el.innerHTML=_f0;
}else{
if(_ef.toLowerCase().startswith("on")&&el.attachEvent){
eval("var f = function() { %s }".format(_f0));
el.attachEvent(_ef,f);
}else{
el.setAttribute(_ef,_f0);
}
}
}
},CreateElement:function(_f1){
var _f2=document.createElement(_f1.tag);
delete _f1.tag;
var _f3=null;
if(_f1.parent){
_f3=MN.$(_f1.parent);
delete _f1.parent;
}
var _f4=null;
if(_f1.pos){
_f4=_f1.pos;
delete _f1.pos;
}
var _f5=MN.DOM.SetAttribute;
for(var _f6 in _f1){
if(_f1.hasOwnProperty(_f6)){
_f5(_f2,_f6,_f1[_f6]);
}
}
if(_f3){
if(_f4===null){
_f3.appendChild(_f2);
}else{
_f3.insertBefore(_f2,_f3.childNodes[_f4]);
}
}
return _f2;
}};
MN.Position={cumulativeOffset:function(_f7){
var _f8=0,valueL=0;
do{
_f8+=_f7.offsetTop||0;
valueL+=_f7.offsetLeft||0;
_f7=_f7.offsetParent;
}while(_f7);
return [valueL,_f8];
},GetRelative:function(_f9,x,y){
var _fc=MN.Position.cumulativeOffset(MN.$(_f9));
return [x-_fc[0],y-_fc[1]];
}};
MN._FindLibBase=function(){
var tag=MN._getMNScriptTag();
var src=tag.src;
if(!src||!src.endswith("movenetworks.js")){
return "";
}
return MN.URL.Join(null,src.substring(0,src.lastIndexOf("movenetworks.js")));
};
MN._getMNScriptTag=function(){
if(typeof (MN._ScriptTag)!="undefined"&&MN._ScriptTag!==null){
return MN._ScriptTag;
}
var _ff=document.getElementsByTagName("script");
for(var i=0,tl=_ff.length;i<tl;i++){
var tag=_ff[i];
var src=tag.src;
if(!src||!src.endswith("movenetworks.js")){
continue;
}
return tag;
}
return null;
};
MN._allLibs={};
MN._allStyles={};
MN._ScriptTag=MN._getMNScriptTag();
MN._libBase=MN._FindLibBase();
MN.UpdateAllLibs=function(){
var tags=document.getElementsByTagName("script");
for(var i=0,tl=tags.length;i<tl;i++){
var src=tags[i].getAttribute("src");
if(src){
MN._allLibs[src]=true;
}
}
};
MN.FindLibraryURL=function(_106){
MN.UpdateAllLibs();
for(var i in MN._allLibs){
if(MN._allLibs.hasOwnProperty(i)){
if(i.indexOf(_106)!=-1){
return i;
}
}
}
return null;
};
MN.LoadLibrary=function(src){
src=MN.URL.Join(MN._libBase,src);
if(!src.endswith(".js")){
src=src+".js";
}
if(MN._allLibs[src]){
return;
}
MN._allLibs[src]=true;
if("MN_LoadLibIntoDOM" in window){
var e=document.createElement("script");
e.src=src;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
}else{
document.write("<sc"+"ript type=\"text/javascript\" src=\""+src+"\">"+"<"+"/scri"+"pt>");
}
};
MN.LoadStylesheet=function(src){
src=MN.URL.Join(MN._libBase,src);
if(!src.endswith(".css")){
src=src+".css";
}
if(MN._allStyles[src]){
return MN._allStyles[src];
}
if(MN.nonIE){
var head=document.getElementsByTagName("head");
if(head[0]){
var css=document.createElement("link");
css.rel="stylesheet";
css.href=src;
css.type="text/css";
head[0].appendChild(css);
MN._allStyles[src]=document.styleSheets[document.styleSheets.length-1];
}
}else{
MN._allStyles[src]=document.createStyleSheet(src);
}
return MN._allStyles[src];
};
MN.InitPopups=function(_10d){
log("PAGE: Initializing popups from anchor tags");
_10d=_10d||document.body;
var _10e=_10d.getElementsByTagName("a");
for(var i=0,al=_10e.length;i<al;i++){
var _110=_10e[i];
if(_110.className.indexOf("mn_popup")!=-1){
var func=MN.MakeBound(_110,MN.PopupWin);
MN.Event.Observe(_110,"click",func);
_110.onclick=function(){
return false;
};
}
}
log("PAGE: Done with popups");
};
MN.PopupWin=function(){
var _112=this.getAttribute("popup_width")||650;
var _113=this.getAttribute("popup_height")||664;
window.open(this.getAttribute("href"),"popup","width="+_112+",height="+_113+",status=yes,scrollbars=yes,resizable=yes,location=no,toolbar=no");
};
MN._getImports=function(){
var tag=MN._getMNScriptTag();
var _115=tag.getAttribute("import");
if(!_115){
return;
}
return _115.split(" ");
};
MN.LoadAllLibraries=function(){
var _116=MN._getImports();
var _117=[];
if(_116){
for(var j=0,il=_116.length;j<il;j++){
var name=_116[j].strip();
if(name&&name!="logging"){
_117.push(name);
}
}
for(var k=0,ll=_117.length;k<ll;k++){
MN.LoadLibrary(_117[k]);
}
}
};
MN.LoadSkinLibraries=function(_11b){
var tag=MN._getMNScriptTag();
var _11d=tag.getAttribute("skins");
_11d=_11d.split(" ");
var _11e=[];
for(var j=0,il=_11d.length;j<il;j++){
var name=_11d[j].strip();
if(name){
_11e.push(name);
}
}
for(var k=0,ll=_11e.length;k<ll;k++){
MN.LoadSkinLibrary(_11e[k]);
}
};
MN.LoadSkinLibrary=function(_122){
MN.LoadLibrary(MN.URL.Join(MN._skinPath,_122));
};
MN.LoadGlobalConfig=function(){
MN.LoadLibrary(MN.Config.globalConfigUrl);
};
MN.LoadGlobalConfig();
MN.loadLogging=function(){
MN.Log={};
MN.Log.LogLevels={};
var _123=["init","IsVisible","ShowPane","log","debug","info","warn","error"];
var _124=0;
for(_124=0;_124<_123.length;_124++){
MN.Log[_123[_124]]=function(){
};
}
MN.Log.logError=MN.Log.error;
log=MN.Log.log;
logDebug=MN.Log.debug;
logInfo=MN.Log.info;
logWarn=MN.Log.warn;
logError=MN.Log.error;
var _125=MN._getImports();
var i=0;
if(_125){
for(i=0;i<_125.length;i++){
if(_125[i]=="logging"){
MN.LoadLibrary("logging");
break;
}
}
}
};
MN.loadLogging();
MN.JSON=function(){
function f(n){
return n<10?"0"+n:n;
}
Date.prototype.toJSON=function(){
return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z";
};
var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"};
function stringify(_129,_12a){
var a,i,k,l,v;
switch(typeof _129){
case "string":
return (/["\\\x00-\x1f]/).test(_129)?"\""+_129.replace(/[\x00-\x1f\\"]/g,function(a){
var c=m[a];
if(c){
return c;
}
c=a.charCodeAt();
return "\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
})+"\"":"\""+_129+"\"";
case "number":
return isFinite(_129)?String(_129):"null";
case "boolean":
return String(_129);
case "null":
return "null";
case "object":
if(!_129){
return "null";
}
if(typeof _129.toJSON==="function"){
return stringify(_129.toJSON());
}
a=[];
if(_129.constructor===Array){
l=_129.length;
for(i=0;i<l;i+=1){
a.push(stringify(_129[i],_12a)||"null");
}
return "["+a.join(",")+"]";
}
if(_12a){
l=_12a.length;
for(i=0;i<l;i+=1){
k=_12a[i];
if(typeof k==="string"){
v=stringify(_129[k],_12a);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}else{
for(k in _129){
if(typeof k==="string"){
v=stringify(_129[k],_12a);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}
return "{"+a.join(",")+"}";
}
}
return {stringify:stringify,parse:function(text,_12f){
var j;
if(!text){
return {};
}
function walk(k,v){
var i,n;
if(v&&typeof v==="object"){
for(i in v){
if(Object.prototype.hasOwnProperty.apply(v,[i])){
n=walk(i,v[i]);
if(n!==undefined){
v[i]=n;
}
}
}
}
return _12f(k,v);
}
if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,"@").replace(/['"][^"\\\n\r]*["']|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){
j=eval("("+text+")");
return typeof _12f==="function"?walk("",j):j;
}
throw new SyntaxError("parseJSON");
}};
}();
if(!this.JSON){
this.JSON=MN.JSON;
}
MN.safeToEval=function(js){
var _135=js.indexOf("(");
var func=js.substring(0,_135);
var _137=js.substring(_135+1,js.length-1);
if(_137===undefined){
return false;
}
_137=MN.JSON.parse("{\"params\":["+_137+"]}").params;
if(func!="eval"&&func!="setTimeout"&&func!="setInterval"){
return true;
}
return false;
};
if(!window.$){
window.$=MN.$;
}
MN.LoadAllLibraries();
if(!MN.TrackInstall){
MN.TrackInstall={};
}
MN.TrackInstall.Events={RequestLibrary:1,ValidateLibrary:2,InstallInvite:3,InstallBegin:4,InstallSuccess:5,UpgradeBegin:6,UpgradeReinstall:7,UpgradeSuccess:8,RestartRequired:9,ModuleRequest:10,ModuleSuccess:11};
MN.TrackInstall.Omniture={reportingServer:"movenetworks.112.2o7.net",protocol:"https",reportSuite:MN.Config.omnitureReportSuite,defaultPubID:MN.Config.omnitureDefaultPubID,propMap:{"prop1":"v1","prop2":"v2","prop3":"v3","prop4":"v4"},attachListener:function(){
if(MN.QMPInstall&&MN.QMPInstall.events){
MN.Event.Observe(MN.QMPInstall.events,"track",MN.TrackInstall.Omniture.OnTrack);
}else{
setTimeout(MN.TrackInstall.Omniture.attachListener);
}
},OnTrack:function(_138,_139){
var QI=MN.QMPInstall;
var MTO=MN.TrackInstall.Omniture;
if(!_139){
_139={};
}
_139.prop5="event"+_138;
if(MN.Config.enableOmnitureAnalytics){
log("omniturea:OT: %s".format(_138));
MTO.loadImg(MTO.getImgURL(MTO.eventMap[_138],_139));
}
},paramsToStr:function(_13c){
var MTO=MN.TrackInstall.Omniture;
var _13e="";
var _13f=true;
var _140,eVar;
for(var _141 in _13c){
if(_13c.hasOwnProperty(_141)){
if(!_13f){
_13e+="&";
}
_13f=false;
eVar=MTO.propMap[_141];
if(eVar){
_13e+=escape(eVar)+"="+escape(_13c[_141])+"&";
}
if(_141.startswith("prop")){
_140="c"+_141.substr(4);
}
_13e+=escape(_140)+"="+escape(_13c[_141]);
}
}
return _13e;
},getReportSuite:function(){
return MN.TrackInstall.Omniture.reportSuite;
},_getPubID:function(){
var _142="";
var _143=MN._libBase.split("/");
if(_143[3]=="pub"){
_142=_143[4];
}
if(_142===""){
_142=MN.Config.fallbackPubID;
}
return _142;
},getPubID:function(){
var MTO=MN.TrackInstall.Omniture;
var _145=MTO.defaultPubID;
var _146=MTO._getPubID();
if(_146!=""){
_145=_146;
}
return _145;
},getServerParams:function(){
var MTO=MN.TrackInstall.Omniture;
var _148=encodeURIComponent(MN.URL.Join(MN._libBase,"movenetworks.js"));
var s="server=%s&v6=%s".format(_148,_148);
return s;
},getPageNameParams:function(){
var s="pageName=%s&v5=%s".format(window.location.host,window.location.host);
return s;
},getPubIDParams:function(){
var MTO=MN.TrackInstall.Omniture;
var s="v7=%s".format(MTO.getPubID());
return s;
},getEventParams:function(_14d){
var s="events=";
var e;
var _150=true;
for(var i=0;i<_14d.length;i++){
if(!_150){
s+=",";
}
s+="event"+_14d[i];
_150=false;
}
return s;
},getImgURL:function(_152,_153){
var _154=new Date().getTime()+Math.floor(Math.random()*(99999-0+1));
var MTO=MN.TrackInstall.Omniture;
var is=MTO.protocol+"://"+MTO.reportingServer+"/b/ss/";
is+=MTO.getReportSuite()+"/1/MN."+MN.RELEASE_VERSION+"/"+_154;
is+="?[AQB]";
is+="&"+MTO.getPageNameParams();
is+="&"+MTO.getServerParams();
is+="&"+MTO.getPubIDParams();
is+="&"+MTO.getEventParams([_152]);
if(_153){
is+="&"+MTO.paramsToStr(_153);
}
is+="&[AQE]";
log("MTO.getImgURL.is: '%s'".format(is));
return is;
},loadImg:function(_157){
var img=new Image();
img.src=_157;
}};
var _MO=MN.TrackInstall.Omniture;
_MO.attachListener();
_MO.eventMap={};
_MO.eventMap[MN.TrackInstall.Events.RequestLibrary]=1;
_MO.eventMap[MN.TrackInstall.Events.ValidateLibrary]=2;
_MO.eventMap[MN.TrackInstall.Events.InstallInvite]=3;
_MO.eventMap[MN.TrackInstall.Events.InstallBegin]=4;
_MO.eventMap[MN.TrackInstall.Events.InstallSuccess]=5;
_MO.eventMap[MN.TrackInstall.Events.UpgradeBegin]=6;
_MO.eventMap[MN.TrackInstall.Events.UpgradeReinstall]=7;
_MO.eventMap[MN.TrackInstall.Events.UpgradeSuccess]=8;
_MO.eventMap[MN.TrackInstall.Events.RestartRequired]=9;
_MO.eventMap[MN.TrackInstall.Events.ModuleRequest]=10;
_MO.eventMap[MN.TrackInstall.Events.ModuleSuccess]=11;
_MO=undefined;
MN.QMPInstall={allowWinIE:true,allowWinMozilla:true,allowWinChrome:true,allowWinSafari:true,allowWinOpera:false,allowMacPPC:true,allowMaci386:true,allowMacUniversal:false,allowMacMozilla:true,allowMacSafari:true,allowMacOpera:true,allowWinVista:true,allowWin7:true,allowVisMozilla:true,allowVisIE:true,allowNonOfficialFirefox:false,nonOfficialFirefoxNames:["minefield","shiretoko","namoroka"],allowOldUpgradeAPI:true,allowWinJavaInstaller:false,pluginRefreshFlag:false,os:"other",osIsGood:false,browser:"other",browserIsGood:false,macProc:"other",osIsPanther:false,osIsVista:false,osIsWin2k:false,WillNotInstall:false,installInProgress:false,packagePrefix:"",upgradeAutoRetries:2,bgUpgradeFailed:false,InstallUpgradeCheckRetries:500,originalVersion:0,QMP_VERSION_LENGTH:12,_beforeUpgradeVersion:null,_useForceReinstall:false,_currentInstallerBaseUrlIndex:-1,hideHTML:false,Events:{InstallInvite:"InstallInvite",InstallStatus:"InstallStatus",InstallSuccess:"InstallSuccess",InstallError:"InstallError",InstallMessage:"InstallMessage",RestartRequired:"RestartRequired",UpgradeReinstall:"UpgradeReinstall"},_installers:[],_installLists:{},events:new MN.EventSource(),FireEvent:function(_159,_15a,_15b){
var _15c="";
if(_15a){
for(var _15d in _15a){
if(_15a.hasOwnProperty(_15d)){
_15c+="param"+_15a[_15d];
}
}
}
var _15e="MNAnalytic"+_159+_15c+"Fired";
log("cookieName =",_15e);
if(!MN.Cookie.Get(_15e)||_15b){
MN.QMPInstall.events.FireEvent("track",_159,_15a);
MN.Cookie.Set(_15e,"1");
}
},DispatchInstallEvent:function(_15f,_160,_161){
var _162="";
if(_160){
for(var _163 in _160){
if(_160.hasOwnProperty(_163)&&_163!="msg"){
_162+="param"+_160[_163];
}
}
}
var _164="MN.QMPInstall."+_15f+_162+"Fired";
log("cookieName =",_164);
if(!MN.Cookie.Get(_164)||_161){
MN.QMPInstall.events.FireEvent("install",_15f,_160);
MN.Cookie.Set(_164,"1");
}
},libBase:MN._libBase,SetLibBase:function(s){
MN.QMPInstall.libBase=s;
},clientModulesBase:MN.URL.Join(MN._libBase,"modules"),SetClientModulesBase:function(s){
MN.QMPInstall.clientModulesBase=s;
},oses:[],browsers:[],modules:{},modulesPlayer:null,failedModuleCount:0,playerParentID:null,playerID:null,playerWidth:null,playerHeight:null,playerHidden:false,OS:function(){
return MN.QMPInstall.os;
},OSIsGood:function(){
return MN.QMPInstall.osIsGood;
},Browser:function(){
return MN.QMPInstall.browser;
},BrowserIsGood:function(){
return MN.QMPInstall.browserIsGood;
},controller:null,Init:function(){
QI=MN.QMPInstall;
QI.controller=new QI.controllers.Base();
if(QI.allowWin7){
QI.oses.push("Microsoft Windows XP/Vista/7");
}else{
if(QI.allowWinVista){
QI.oses.push("Microsoft Windows XP/Vista");
}else{
QI.oses.push("Microsoft Windows XP (not Vista)");
}
}
if(QI.allowMaci386){
QI.oses.push("(i386) Apple Macintosh OS X or later");
}
if(QI.allowMacPPC){
QI.oses.push("(PPC) Apple Macintosh OS X or later");
}
var ua=navigator.userAgent.toLowerCase();
if(QI.allowNonOfficialFirefox){
for(var i=0,len=QI.nonOfficialFirefoxNames.length;i<len;i++){
ua=ua.replace(RegExp(QI.nonOfficialFirefoxNames[i]),"firefox");
}
}
if(ua.indexOf("win")!=-1||ua.indexOf("mozilla/4.0 (compatible; msie 6.0)")!=-1){
QI.os="win";
if(QI.allowWinIE){
QI.browsers.push("Microsoft Internet Explorer 6.0 and 7.0");
}
if(QI.allowWinMozilla){
QI.browsers.push("Mozilla Firefox 2.0 or later");
}
if(QI.allowWinChrome){
QI.browsers.push("Google Chrome");
}
if(QI.allowWinSafari){
QI.browsers.push("Apple Safari/Webkit 3 or later");
}
if(QI.allowWinOpera){
QI.browsers.push("Opera 9 or later");
}
if(ua.indexOf("16bit")==-1&&ua.indexOf("win 9x")==-1&&ua.indexOf("windows 98")==-1&&ua.indexOf("win98")==-1&&(QI.allowWinVista||ua.indexOf("windows nt 6")==-1)){
QI.osIsGood=true;
}
if(QI.allowWinVista&&ua.indexOf("windows nt 6")!=-1){
QI.os="win";
QI.osIsVista=true;
QI.allowOldUpgradeAPI=false;
}
if(ua.indexOf("windows nt 5.0")!=-1){
QI.osIsWin2k=true;
}
}else{
if((QI.allowMacPPC||QI.allowMaci386)&&ua.indexOf("macintosh")!=-1){
QI.os="mac";
if(QI.allowMacSafari){
QI.browsers.push("Safari 2.0 or later");
}
if(QI.allowMacMozilla){
QI.browsers.push("Firefox 2.0 or later");
}
if(QI.allowMacOpera){
QI.browsers.push("Opera 9 or later");
}
if(ua.indexOf("intel mac")!=-1){
QI.macProc="i386";
}else{
QI.macProc="ppc";
}
if(ua.indexOf("os x")!=-1){
if((QI.allowMaci386&&QI.macProc=="i386")||(QI.allowMacPPC&&QI.macProc=="ppc")){
QI.osIsGood=true;
}
}
}
}
if(!QI.osIsGood){
return;
}
var _169=["webtv","hotjava","spoofer","flock"];
var _16a=false;
for(var i=0,sorryLen=_169.length;i<sorryLen;i++){
if(ua.indexOf(_169[i])!=-1){
return;
}
}
if(QI.os=="win"){
if(QI.allowWinIE&&ua.indexOf("msie")!=-1){
QI.browser="ie";
if(parseInt(navigator.appVersion,10)<4||ua.indexOf("msie 4")!=-1||ua.indexOf("msie 5.0")!=-1){
return;
}
QI.browserIsGood=true;
}else{
if(QI.allowWinMozilla&&(navigator.vendor=="Firefox"||ua.indexOf("firefox")!=-1)){
QI.browser="mozilla";
if(ua.indexOf("mozilla/5")==-1||ua.indexOf("compatible")!=-1){
return;
}
var ver=parseFloat(ua.substring(ua.indexOf("firefox/")+8));
if(ver<1.5){
return;
}
QI.browserIsGood=true;
}else{
if(QI.allowWinChrome&&(navigator.vendor=="Google Inc.")){
QI.browser="mozilla";
QI.browserIsGood=true;
QI._useForceReinstall=true;
if(ua.indexOf("chrome/1")!=-1){
QI.pluginRefreshFlag=true;
}
}else{
if(QI.allowWinSafari&&(navigator.vendor=="Apple Computer, Inc.")){
QI.browser="mozilla";
QI.browserIsGood=true;
}else{
if(QI.allowWinOpera&&(ua.indexOf("opera/9")!=-1)){
QI.browser="other";
QI.browserIsGood=true;
}
}
}
}
}
}else{
if(QI.os=="mac"){
if(QI.allowMacSafari&&ua.indexOf("safari")!=-1){
QI.browser="safari";
var _16c=parseInt(ua.substring(ua.indexOf("safari/")+7),10);
var _16d=parseInt(ua.substring(ua.indexOf("applewebkit/")+12),10);
if(_16c<312){
return;
}else{
if(_16c==312){
QI.osIsPanther=true;
}
}
QI.browserIsGood=true;
}else{
if(QI.allowMacMozilla&&(navigator.vendor=="Firefox"||ua.indexOf("firefox")!=-1)){
QI.browser="mozilla";
if(ua.indexOf("mozilla/5")==-1||ua.indexOf("compatible")!=-1){
return;
}
var fver=parseFloat(ua.substring(ua.indexOf("firefox/")+8));
if(fver<1.5){
return;
}
QI.browserIsGood=true;
}else{
if(QI.allowMacOpera&&(ua.indexOf("opera/9")!=-1)){
QI.browser="other";
QI.browserIsGood=true;
}
}
}
}
}
if(!QI.browserIsGood){
return;
}
var name=QI.os+"_"+QI.browser;
var _170=QI.controllers[name];
if(_170){
QI.controller=new _170();
}
},alreadyProbed:false,installedVersion:null,unpaddedVersion:null,GetInstalledVersion:function(){
var QI=MN.QMPInstall;
var _172=null;
if(QI.alreadyProbed){
return QI.installedVersion;
}
if(!QI.OSIsGood()){
return null;
}
if(!QI.BrowserIsGood()){
return null;
}
QI.controller.RefreshPlugins();
_172=QI.controller.GetInstalledVersion();
QI.unpaddedVersion=_172;
if(_172){
_172=QI._padVersionString(_172,QI.QMP_VERSION_LENGTH);
}
QI.installedVersion=_172;
QI.alreadyProbed=true;
return QI.installedVersion;
},_padVersionString:function(_173,_174){
while(_173.length<_174){
_173="0"+_173;
}
return _173;
},ResetProbe:function(){
MN.QMPInstall.alreadyProbed=false;
},InstallRequired:function(){
var QI=MN.QMPInstall;
return (QI.GetInstalledVersion()===null)||QI.IsBGMacVersion();
},UpgradeRequired:function(){
var QI=MN.QMPInstall;
if(QI.osIsWin2k){
return false;
}
var ver=QI.GetInstalledVersion();
log("ver : %s >> MinRequired: %s".format(ver,QI.GetMinRequiredVer()));
return ver!==null&&ver<QI.GetMinRequiredVer();
},CanPlay:function(){
var QI=MN.QMPInstall;
return QI.OSIsGood()&&QI.BrowserIsGood()&&!QI.InstallRequired()&&!QI.UpgradeRequired();
},AddModule:function(_179,_17a){
var QI=MN.QMPInstall;
var mod=new QI.Module(_179,_17a);
QI.modules[_179]=mod;
},MakePlayerID:function(_17d){
return _17d+"_QMP";
},GetSilverlightVersion:function(){
var QI=MN.QMPInstall;
return QI.controller.GetSilverlightVersion();
},EmitObj:function(_17f,w,h,_182,_183,_184,_185,_186){
var QI=MN.QMPInstall;
var name=null;
var _189="";
QI.forcedUpgrade=_183;
if(QI.osIsPanther){
if(MN.Cookie.Get("needrestart")){
log("Panther upgraded. Need browser restart.");
QI._requestRestart(_17f);
}
}
if(!_182){
_182=QI.MakePlayerID(_17f);
}
if(w===null||w===undefined){
w=480;
}
if(h===null||h===undefined){
h=360;
}
if(w&&(parseInt(w,10)===w)){
w+="px";
}
if(h&&(parseInt(h,10)===h)){
h+="px";
}
QI.playerParentID=_17f;
QI.playerID=_182;
for(name in _186){
if(_186.hasOwnProperty(name)){
_189+="<PARAM NAME=\"%s\" VALUE=\"%s\">".format(name,_186[name]);
}
}
if(_184){
_189+="<PARAM NAME=\"VersionTest\" VALUE=\"1\">";
}
if(_185){
_189+="<PARAM NAME=\"FlashObject\" VALUE=\"1\">";
}
_189+="<PARAM NAME=\"movePlayerId\" VALUE=\""+_182+"\">";
log("Created param for movePlayerId to "+_182);
var html=QI.controller.GetObjectStr(_184).format(_182,w,h,"",_189);
MN.$(_17f).innerHTML=html;
var _18b=this._postEmitObj;
setTimeout(function(){
_18b(_17f,w,h,_182,_183,_184,_185,_186);
},1);
if(!QI.osIsWin2k){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_182,0,_183);
},100);
}
return _182;
},_postEmitObj:function(_18c,w,h,_18f,_190,_191,_192,_193){
var _194=MN.$(_18f);
MN.Event.Observe(_194,"Error",QI._PlayerError);
_194.Set("SDKVersion",String(MN.RELEASE_VERSION));
_194.Set("SilverlightVersion",QI.GetSilverlightVersion());
if(!_191&&!_192){
QI._unloadModules(_194);
if(QI._ModulesLeft()>0){
QI._SetModulesURL(_194);
QI.modulesPlayer=_194;
QI._RequestModules();
}
}
if(QI.OS()=="win"){
var _195=_194.GetSetting("RendererUseOverlays");
log("Overlays set to : %s".format(_195));
if(_195!="no"){
log("Turning off overlays");
_194.PutSetting("RendererUseOverlays","no");
MN.$(_18c).innerHTML="";
QI.EmitObj(_18c,w,h,_18f,_190,_191,_192,_193);
}
}
if(_194&&(_194.PlayerId!==null)){
QI.playerIDToPlayer[_194.PlayerId]=_194;
}else{
if(QI.Browser()!="ie"){
QI.nullPlayers.push(_194);
setTimeout(function(){
QI.ScanPlayerIDs(false);
},100);
}
}
},_SetModulesURL:function(_196){
log("Setting modules URL to "+QI.clientModulesBase);
_196.Set("ModulesURL",QI.clientModulesBase);
},_ModulesLeft:function(){
var _197=0;
for(var i in MN.QMPInstall.modules){
if(MN.QMPInstall.modules.hasOwnProperty(i)){
_197++;
}
}
return _197;
},_HideClient:function(){
if(!QI.playerHidden){
playerObj=MN.$(QI.playerID);
QI.playerWidth=playerObj.style.width;
QI.playerHeight=playerObj.style.height;
playerObj.style.width="0px";
playerObj.style.height="1px";
QI.playerHidden=true;
log("Client hidden");
}
},_UnhideClient:function(){
if(QI.playerHidden){
playerObj=MN.$(QI.playerID);
playerObj.style.width=QI.playerWidth;
playerObj.style.height=QI.playerHeight;
QI.playerHidden=false;
log("Client Un-hidden");
}
},_ShowModulesMessage:function(){
var QI=MN.QMPInstall;
var _19a=QI._createParams;
var msg;
msg=QI.MSG_DOWNLOADMODULES_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_19a.parentID,msg:msg});
if(!_19a.hideHTML){
var _19c=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(!mm){
var e=document.createElement("div");
e.id="modulemessage";
e.innerHTML=QI.MSG_DOWNLOADMODULES;
_19c.appendChild(e);
}else{
var mms=MN.$("modulemessagespan");
mms.innerHTML+=".";
}
}
},_RemoveModulesMessage:function(){
var QI=MN.QMPInstall;
var _1a1=QI._createParams;
if(!_1a1.hideHTML){
var _1a2=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(mm){
_1a2.removeChild(mm);
}
}
},_RequestModules:function(){
QI=MN.QMPInstall;
if(QI._ModulesLeft()>0){
QI._HideClient();
QI._ShowModulesMessage();
QI.failedModuleCount=0;
MN.Event.Observe(QI.modulesPlayer,"ModuleLoaded",QI._ModuleLoaded);
for(var _1a4 in QI.modules){
if(QI.modules.hasOwnProperty(_1a4)){
var _1a5=QI.modules[_1a4];
log("Loading requested module '%s'".format(_1a5.name));
if(typeof QI.modulesPlayer.LoadModule=="undefined"){
log("This player has no LoadModule method, skipping module load");
return;
}
_1a5.dltries++;
log("Try #%s for module '%s'".format(_1a5.dltries,_1a5.name));
if(_1a5.dltries>3){
log("Download attempts for module '%s' = %s, giving up".format(_1a5.name,_1a5.dltries));
delete (QI.modules[_1a5.name]);
}else{
try{
QI.FireEvent(MN.TrackInstall.Events.ModuleRequest,{prop4:_1a5.name});
QI.modulesPlayer.LoadModule(_1a5.name);
}
catch(e){
log("LoadModule failed: ",e);
delete (QI.modules[_1a5.name]);
}
}
}
}
}
},_ModuleLoaded:function(_1a6){
log("Module '%s' loaded".format(_1a6));
QI.FireEvent(MN.TrackInstall.Events.ModuleSuccess,{prop4:_1a6});
if(typeof QI.modules[_1a6]!="undefined"){
delete (QI.modules[_1a6]);
}
},_PlayerError:function(msg){
var o=MN.ParsePlayerError(msg);
if(o.domain=="LoadModule"){
if(o.err=="2"){
MN.QMPInstall._ModuleLoadError(o.msg);
}
}else{
logError("Client Error: %s (%s): %s".format(o.domain,o.err,o.msg));
}
},_ModuleLoadError:function(_1a9){
var QI=MN.QMPInstall;
log("Client says module '%s' failed to load, trying again.".format(_1a9));
QI.failedModuleCount++;
},_forceReinstall:function(){
var QI=MN.QMPInstall;
QI.InstallUpgradeCheckRetries=40;
QI.PrepCanInstall(true);
},NeedBGUpgrade:function(_1ac){
return have<avail;
},_AsyncStartUpgrade:function(_1ad,_1ae,_1af){
var QI=MN.QMPInstall;
var _1b1=QI._createParams;
if(!_1ae){
_1ae=0;
}
var _1b2=MN.$(_1ad);
if(!_1b2||!_1b2.Version){
if(_1af||_1ae<20){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_1ad,_1ae+1,_1af);
},250);
}else{
logError("QI.SBI:Failed to grab player instance for bgup :: playerID = %s".format(_1ad));
}
return;
}
var _1b3=0;
try{
_1b3=parseInt(_1b2.Get("Download.APIVersion")||0,10);
}
catch(e){
}
var _1b4=_1b2.Version;
var _1b5=QI.osIsVista&&(_1b4<="000007033101");
if(_1b5){
log("old vista, need to force");
_1af=true;
}
if(_1b3<1||_1b5){
log("QI.SBI:Current client does not support background upgrades : may be vista forced upgrade");
if(_1af){
QI._forceReinstall();
}
return;
}
if(_1af){
QI.ShowUpgradeStart(_1b1.parentID);
}
var _1b6=QI.GetAvailableVer();
QI._beforeUpgradeVersion=_1b2.Get("Download.LatestVersion");
if(!QI._beforeUpgradeVersion){
logError("QI.SBI:Failed to retrieve latest installed version");
return;
}
log("QI.ASU: QI._beforeUpgradeVersion=%s, available=%s".format(QI._beforeUpgradeVersion,_1b6));
if(QI._beforeUpgradeVersion>=_1b6){
log("QI.SBI:Skipping background update: already up to date");
return;
}
var url=QI.controller.MakeUpgradeURL(false,_1af);
var _1b8=url.split("/");
var _1b9=_1b8[_1b8.length-1];
var _1ba=_1b9.split(".")[1];
var key="Download.%s.%s.%s".format(_1af?"Force":"NoForce",_1b6,_1b9);
log("QI.SBI:Telling player to upgrade:");
log("QI.SBI:&nbsp;&nbsp;",key);
log("QI.SBI:&nbsp;&nbsp;",url);
QI.FireEvent(MN.TrackInstall.Events.UpgradeBegin,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI._beforeUpgradeVersion+" to "+_1b6,prop3:_1ba});
_1b2.Set(key,url);
var _1bc="Download.Status.%s.%s".format(_1b6,_1b9);
QI._MonitorUpgrade(_1b2,_1bc,_1af);
},_MonitorUpgrade:function(_1bd,_1be,_1bf){
var QI=MN.QMPInstall;
var _1c1=QI._createParams;
var _1c2=true;
if(QI.bgUpgradeFailed===true){
_1c2=false;
return;
}
var _1c3=_1bd.Get(_1be)||"";
var _1c4=_1c3.split(",");
if(_1c4.length==4){
var _1c5=_1c4[0];
var _1c6=_1c4[1];
var _1c7=_1c4[3];
if(!isNaN(_1c6)){
_1c6=Math.floor(_1c6);
}
log("QI.MBU:",_1c5,_1c6,_1c7);
if(_1c5=="downloading"||_1c5=="downloadSucceeded"||_1c5=="installing"){
if(_1bf&&_1c5=="downloading"){
if(!isNaN(_1c6)&&_1c6>0){
QI.ShowUpgradeProgress(_1c1.parentID,"Loading (%s% complete)".format(_1c6));
}else{
QI.ShowUpgradeProgress(_1c1.parentID,"Connecting to update server...");
}
}
}else{
_1c2=false;
log("QI.MBU: stopping tracking");
var ok=(_1c5.toLowerCase().indexOf("failed")==-1&&_1c5.toLowerCase().indexOf("error")==-1);
if(ok){
QI.ShowUpgradeProgress(_1c1.parentID,"Loading (100% complete)".format(_1c6));
}
setTimeout(function(){
QI.OnUpgradeDone(ok,_1bf,_1c5,_1c6,_1bd.Get("Download.LatestVersion"));
},1);
}
}
if(_1c2){
setTimeout(function(){
QI._MonitorUpgrade(_1bd,_1be,_1bf);
},_1bf?250:5000);
}
},_requestRestart:function(_1c9){
var QI=MN.QMPInstall;
log("_requestRestart");
MN.Cookie.Set("needrestart","1");
QI.FireEvent(MN.TrackInstall.Events.RestartRequired);
msg=QI.MSG_NEEDRESTART_TXT;
QI.DispatchInstallEvent(QI.Events.RestartRequired,{pid:_1c9,msg:msg});
if(!QI._createParams.hideHTML){
MN.$(_1c9).innerHTML=QI.MSG_NEEDRESTART;
}
},_unloadModules:function(_1cb){
var QI=MN.QMPInstall;
var os=QI.OS();
var _1ce=QI._createParams;
log("_unloadModules: checking QI.originalVersion, which is",QI.originalVersion);
if(os=="win"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084059"){
QI._requestRestart(_1ce.parentID);
}
if(os=="mac"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084039"){
QI._requestRestart(_1ce.parentID);
}
},_displayBadOS:function(_1cf){
var QI=MN.QMPInstall;
msg=QI.MSG_BADOS_TXT.format(QI.oses.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_1cf,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_BADOS.format(QI.oses.join("<br>"));
MN.$(_1cf).innerHTML=msg;
}
},_displayBadBrowser:function(_1d1){
var QI=MN.QMPInstall;
msg=QI.MSG_BADBROWSER_TXT.format(QI.browsers.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_1d1,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_BADBROWSER.format(QI.browsers.join("<br>"));
MN.$(_1d1).innerHTML=msg;
}
},_displayInviteInstall:function(_1d3){
var msg;
var QI=MN.QMPInstall;
var _1d6=QI._createParams;
_1d3=Boolean(_1d3);
if(_1d3){
QI.FireEvent(MN.TrackInstall.Events.UpgradeReinstall,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
msg=QI.MSG_NEEDREINSTALL_TXT;
QI.DispatchInstallEvent(QI.Events.UpgradeReinstall,{pid:_1d6.parentID,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_NEEDREINSTALL;
MN.$(QI._createParams.parentID).innerHTML=msg;
}
return;
}else{
QI.FireEvent(MN.TrackInstall.Events.InstallInvite,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
msg=QI.MSG_CANINSTALL_TXT;
QI.DispatchInstallEvent(QI.Events.InstallInvite,{pid:_1d6.parentID,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_CANINSTALL;
MN.$(QI._createParams.parentID).innerHTML=msg;
QI.DispatchInstallEvent(QI.Events.InstallInvite,{pid:_1d6.parentID});
}
return;
}
},setFirstTime:function(val){
if(val!==false){
MN.Cookie.Set("firstInstall",true,365);
}else{
MN.Cookie.Clear("firstInstall");
}
},isFirstTime:function(){
if(MN.Cookie.Get("firstInstall")){
return true;
}else{
return false;
}
},CreatePlayer:function(_1d8,_1d9,w,h,_1dc,_1dd){
var QI=MN.QMPInstall;
if(QI.installInProgress){
return;
}
if(_1dd===null||_1dd===undefined){
QI.hideHTML=false;
log("hideHTML = false");
}else{
QI.hideHTML=_1dd;
log("hideHTML = %s".format(QI.hideHTML));
}
if(!_1dc){
_1dc=QI.MakePlayerID(_1d8);
}
if(MN.Cookie.Get("needrestart")){
QI._requestRestart(_1d8);
return;
}
var _1df=_1d9;
QI.RegisterCustomInstaller(function(_1e0){
QI.setFirstTime(false);
_1e0();
});
_1d9=function(){
var _1e1=Array.prototype.slice.call(arguments);
QI._callCustomInstallers(_1d8,function(){
_1df.apply(null,_1e1);
},w,h,_1dc,_1dd);
};
QI._createParams={"parentID":_1d8,"playerID":_1dc,"DoneCB":_1d9,"w":w,"h":h,"hideHTML":QI.hideHTML};
if(QI.InstallRequired()){
var msg="";
if(!QI.OSIsGood()||QI.osIsWin2k){
QI._displayBadOS(_1d8);
return;
}
if(!QI.BrowserIsGood()){
QI._displayBadBrowser(_1d8);
return;
}
QI.FireEvent(MN.TrackInstall.Events.ValidateLibrary,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer()});
QI.setFirstTime();
QI.installInProgress=true;
QI.PrepCanInstall(false);
return;
}else{
if(QI.UpgradeRequired()){
if(QI._completedUpgrade){
QI._requestRestart(_1d8);
}else{
QI.FireEvent(MN.TrackInstall.Events.ValidateLibrary,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer()});
setTimeout(function(){
QI.StartUpgrade(0);
},2000);
}
return;
}else{
log("all good - create the player");
QI.FireEvent(MN.TrackInstall.Events.ValidateLibrary,{prop1:MN.RELEASE_VERSION,prop2:"play "+QI.GetInstalledVersion()});
QI.EmitObj(_1d8,w,h,_1dc,false,false);
QI._CallAfterModules(_1d9);
}
}
},RegisterCustomInstaller:function(_1e3){
var QI=MN.QMPInstall;
QI._installers.push(_1e3);
},_callCustomInstallers:function(_1e5,_1e6,w,h,_1e9,_1ea){
var QI=MN.QMPInstall;
QI._installLists[_1e5]=QI._installers.slice();
QI._installLists[_1e5].push(_1e6);
QI._customInstallerCallback(_1e5,arguments);
},_customInstallerCallback:function(_1ec,args){
var QI=MN.QMPInstall;
var _1ef=Array.prototype.slice.call(args);
var _1f0=function(){
QI._customInstallerCallback(_1ec,args);
};
_1ef.unshift(_1f0);
var _1f1;
_1f1=QI._installLists[_1ec].shift();
_1f1.apply(QI,_1ef);
},_CallAfterModules:function(func){
var QI=MN.QMPInstall;
if(QI._ModulesLeft()>QI.failedModuleCount){
log("Waiting for %s module(s) to load".format(QI._ModulesLeft()));
setTimeout(function(){
QI._CallAfterModules(func);
},500);
}else{
if(QI.failedModuleCount>0){
QI._RequestModules();
setTimeout(function(){
QI._CallAfterModules(func);
},500);
}else{
log("All modules loaded");
QI._RemoveModulesMessage();
QI._UnhideClient();
setTimeout(function(){
func(true);
},100);
}
}
},_usingJavaInstaller:null,PrepCanInstall:function(_1f4){
var QI=MN.QMPInstall;
var _1f6=QI._createParams;
var _1f7=QI.controller.HaveReliableJava();
log("PCI:have reliable java",_1f7);
if(_1f7===null){
if(QI.Browser()=="safari"||QI.Browser()=="firefox"&&QI.OS()=="mac"){
log("creating applet via innerHTML");
_1f6.appletDiv=document.createElement("div");
_1f6.appletDiv.id="_qmpInstallerAppletDiv";
_1f6.appletDiv.innerHTML="<applet id=\"_qmpCheckJavaApplet\" code=\"CheckJava.class\" codebase=\"%s\" style=\"width:1px; height:1px\" MAYSCRIPT><param name=\"pkgurl\" value=\"%s\" /></applet>".format(QI.libBase);
document.body.appendChild(_1f6.appletDiv);
}else{
log("creating applet via createElement");
var _1f8=document.createElement("applet");
_1f8.setAttribute("id","_qmpCheckJavaApplet");
_1f8.setAttribute("code","CheckJava.class");
_1f8.setAttribute("codebase",QI.libBase);
_1f8.style.display="block";
_1f8.style.width="1px";
_1f8.style.height="1px";
_1f8.setAttribute("MAYSCRIPT","true");
document.body.appendChild(_1f8);
}
setTimeout(function(){
QI.CheckAppletLoad(0,_1f4);
},250);
}else{
QI._usingJavaInstaller=_1f7;
QI._displayInviteInstall(_1f4);
return;
}
},CheckAppletLoad:function(_1f9,_1fa){
var _1fb=_1f9||0;
var QI=MN.QMPInstall;
var _1fd=MN.$("_qmpCheckJavaApplet");
var _1fe="";
if(_1fd){
var _1ff=false;
try{
_1fe=_1fd.GetJavaVersion();
log("applet says javaVer",_1fe);
QI._usingJavaInstaller=true;
_1ff=true;
}
catch(e){
logError("Error getting applet java version: ",e.message,_1fb);
_1fb++;
if((QI.Browser()=="ie"&&_1fd.readyState==4)||_1fb>30){
QI._usingJavaInstaller=false;
_1ff=true;
}
}
if(_1ff){
QI._displayInviteInstall(_1fa);
return;
}
}
setTimeout(function(){
MN.QMPInstall.CheckAppletLoad(_1fb);
},333);
},StartInstall:function(_200){
var QI=MN.QMPInstall;
var _202=QI._createParams;
var msg;
QI.FireEvent(MN.TrackInstall.Events.InstallBegin,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
if(QI.MSG_INSTALLING!==""){
msg=QI.MSG_INSTALLING;
}else{
msg=QI.controller.GetInstallMessageTxt();
}
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_202.parentID,msg:msg});
if(!_202.hideHTML){
if(QI.MSG_INSTALLING!==""){
MN.$(QI._createParams.parentID).innerHTML=QI.MSG_INSTALLING;
}else{
MN.$(QI._createParams.parentID).innerHTML=QI.controller.GetInstallMessage();
}
}
if(QI._usingJavaInstaller&&!_200){
setTimeout(function(){
QI.appletProgressCount=0;
QI.fakeProgress=0;
log("StartInstall:using Java installer");
var _204=QI.controller.MakeSetupURL();
var _205=MN.URL.Join(QI.libBase,"SInstallApplet%s.jar".format(MN.RELEASE_VERSION));
if(QI.Browser()=="safari"||!QI.allowHokeyAppletThang){
log("creating applet via innerHTML");
log("pkgurl : %s".format(_204));
_202.appletDiv=document.createElement("div");
_202.appletDiv.id="_qmpInstallerAppletDiv";
_202.appletDiv.innerHTML="<applet id=\"_qmpInstallerApplet\" code=\"InstallApplet.class\" archive=\"%s\" style=\"width:1px; height:1px\" MAYSCRIPT><param name=\"pkgurl\" value=\"%s\" /><PARAM name=\"progressbar\" value=\"true\" /></applet>".format(_205,_204);
document.body.appendChild(_202.appletDiv);
}else{
log("creating applet via createElement");
log("pkgurl : %s".format(_204));
var _206=document.createElement("applet");
_206.setAttribute("id","_qmpInstallerApplet");
_206.setAttribute("code","InstallApplet.class");
_206.setAttribute("archive",_205);
_206.style.display="block";
_206.style.width="1px";
_206.style.height="1px";
_206.setAttribute("MAYSCRIPT","true");
var _207=document.createElement("param");
_207.setAttribute("name","pkgurl");
_207.setAttribute("value",_204);
_206.appendChild(_207);
document.body.appendChild(_206);
}
setTimeout(QI.CheckInstallProgress,500);
log("applet created");
},100);
}else{
if(QI.controller.RequiresJavaInstaller()){
msg=QI.MSG_NOINSTALLMETHOD_TXT;
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_202.parentID,msg:msg});
if(!_202.hideHTML){
msg=QI.MSG_NOINSTALLMETHOD;
MN.$(_202.parentID).innerHTML=msg;
}
}else{
var url;
if(QI.os=="mac"){
msg=QI.MSG_DMGINSTALLMETHOD_TXT.format(MN.QMPInstall.controller.MakeDMGURL());
QI.DispatchInstallEvent(QI.Events.InstallMessage,{pid:_202.parentID,msg:msg});
if(!_202.hideHTML){
msg=QI.MSG_DMGINSTALLMETHOD.format(MN.QMPInstall.controller.MakeDMGURL());
MN.$(QI._createParams.parentID).innerHTML=msg;
}
MN.QMPInstall.FireEvent(MN.TrackInstall.Events.INSTALLDMG);
url=MN.QMPInstall.controller.MakeDMGURL();
}else{
url=QI.controller.MakeSetupURL();
}
log("StartInstall",url);
QI.installCheckCount=0;
setTimeout(QI.CheckInstallProgress,250);
window.location.href=url;
}
}
},CheckAppletProgress:function(_209){
var QI=MN.QMPInstall;
var _20b=_209||0;
var _20c=MN.$("_qmpInstallerApplet");
var _20d=0;
if(_20c){
try{
_20d=_20c.GetProgressPercent();
}
catch(e){
_20b++;
if(_20b>3&&!QI.controller.RequiresJavaInstaller()){
log("Java installer failed to start, switching to .exe mode");
QI.allowWinJavaInstaller=false;
QI._usingJavaInstaller=false;
QI.StartInstall();
return;
}
}
}
if(_20d<100){
setTimeout(function(){
MN.QMPInstall.CheckAppletProgress(_20b);
},500);
}
},OnAppletProgress:function(msg,_20f){
var QI=MN.QMPInstall;
var _211=QI._createParams;
if(!isNaN(_20f)){
_20f=Math.floor(_20f);
}
log("OnAppletProgress",msg,_20f);
MN.QMPInstall.appletProgressCount++;
var _212=msg+" : "+_20f;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_211.parentID,msg:_212});
if(!_211.hideHTML){
var p=MN.$("moveplay_installprogressmsg");
if(p){
p.innerHTML=msg;
}
}
var off=100;
var po=MN.$("moveplay_progressouter");
if(po){
off=po.offsetWidth||100;
}
var w=Math.round(off*_20f/100);
if(w>=off){
w=off-1;
}
var pi=MN.$("moveplay_progressinner");
if(pi){
pi.style.width=w+"px";
}
},OnAppletDebug:function(msg){
log("appletdebug:",msg);
},OnAppletSecurityException:function(msg){
var QI=MN.QMPInstall;
if(msg.indexOf("FileNotFoundException")!=-1){
logError("Deployment Error: build not found at URL");
alert("We are unable to complete the install at this time.");
QI.WillNotInstall=true;
msg="Missing file, install failed";
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:QI._createParams.parentID,msg:msg});
}else{
if(msg.indexOf("AccessControlException")!=-1){
MN.QMPInstall.FireEvent(MN.TrackInstall.Events.TRUSTREJECT);
msg="You have chosen not to trust the applet. If you would like to try again, close and restart your browser.";
alert(msg);
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:QI._createParams.parentID,msg:msg});
}
}
},installCheckCount:0,oCheckCount:0,CheckInstallProgress:function(){
var QI=MN.QMPInstall;
var _21c=QI.installCheckCount;
var _21d=null;
if(!_21c){
_21c=0;
}
if(QI.WillNotInstall){
msg="Install will not happen.  Could be applet not trusted, or cannot find client package to download";
logError(msg);
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:QI._createParams.parentID,msg:message});
return;
}
QI.ResetProbe();
var ver=QI.GetInstalledVersion();
log("CheckInstallProgress: installed version =",ver);
if(!ver&&QI._usingJavaInstaller&&QI.appletProgressCount===0){
QI.fakeProgress+=0.333;
if(QI.fakeProgress>=100){
QI.fakeProgress=100;
}
QI.OnAppletProgress("Loading...",QI.fakeProgress);
QI.appletProgressCount--;
}
if(ver&&ver>=QI.GetAvailableVer()){
if(_21c>0){
QI.FireEvent(MN.TrackInstall.Events.InstallSuccess,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
_21d=QI._createParams;
QI.ScanPlayerIDs(true);
setTimeout(function(){
log("Attempting to create player again.");
QI.installInProgress=false;
log("QI:CIP: params.parentID :: %s".format(_21d.parentID));
log("QI:CIP: params.playerID :: %s".format(_21d.playerID));
MN.QMPInstall.CreatePlayer(_21d.parentID,_21d.DoneCB,_21d.w,_21d.h,_21d.playerID,_21d.hideHTML);
QI.DispatchInstallEvent(QI.Events.InstallSuccess,{pid:_21d.parentID});
},100);
return;
}
QI.installCheckCount++;
}
QI.oCheckCount++;
if(QI.osIsVista&&QI.oCheckCount>QI.InstallUpgradeCheckRetries){
QI._requestRestart(QI._createParams.parentID);
return;
}
setTimeout(QI.CheckInstallProgress,300);
return;
},ShowUpgradeStart:function(_21f){
var QI=MN.QMPInstall;
msg=QI.MSG_NEEDUPGRADE_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_21f,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_NEEDUPGRADE;
MN.$(_21f).innerHTML=msg;
}
},ShowUpgradeProgress:function(_221,msg){
var QI=MN.QMPInstall;
msg=QI.MSG_UPGRADING.format(msg);
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_221,msg:msg});
if(!QI._createParams.hideHTML){
msg=MN.QMPInstall.MSG_UPGRADING.format(msg);
var sp=MN.$("_qmpUpgradeProgress");
if(sp){
sp.innerHTML=msg;
}
}
},ShowUpgradeDone:function(_225){
var QI=MN.QMPInstall;
var _227=QI._createParams;
if(QI.osIsPanther){
QI.ShowUpgradeProgress(_227.parentID,"Upgrade done, Please restart your browser.");
}else{
QI.ShowUpgradeProgress(_227.parentID,"Upgrade done, playback will start soon...");
}
},ShowUpgradeError:function(_228,_229){
var QI=MN.QMPInstall;
var _22b=QI._createParams;
if(!_22b.hideHTML){
msg=MN.QMPInstall.MSG_UPGRADEFAILED.format(_229||"");
if(QI.os=="mac"){
url=MN.QMPInstall.controller.MakeDMGURL();
}else{
url=QI.controller.MakeSetupURL();
}
msg+=" <a href='javascript:MN.QMPInstall.StartUpgrade(0);'>Retry</a> or <a href='"+url+"'>Direct Download</a>";
var sp=MN.$("_qmpUpgradeProgress");
if(sp){
sp.innerHTML=msg;
}
}
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_228,msg:_229});
},StartUpgrade:function(_22d){
var _22e=_22d||0;
var QI=MN.QMPInstall;
var _230=QI._createParams;
_230.upAttempts=_22e+1;
QI.originalVersion=QI.GetInstalledVersion();
log("Set QI.originalVersion to",QI.originalVersion);
if(QI._useForceReinstall){
log("Force reinstall requested");
QI._forceReinstall();
return;
}
if(_22e<=3&&QI.allowOldUpgradeAPI&&QI.controller.UseOldUpgradeAPI()){
QI._forceReinstall();
return;
}
if(QI.osIsPanther){
MN.Cookie.Set("needrestart","1");
}
_230.upPlayerDiv=document.createElement("div");
_230.upPlayerDiv.id="_qmpUpgradePlayer";
_230.upPlayerDiv.style.display="block";
_230.upPlayerDiv.style.width="1px";
_230.upPlayerDiv.style.height="0px";
document.body.appendChild(_230.upPlayerDiv);
setTimeout(function(){
QI.EmitObj("_qmpUpgradePlayer",1,1,null,true,true);
},10);
},OnUpgradeDone:function(_231,_232,_233,_234,_235){
var QI=MN.QMPInstall;
var _237=QI._createParams;
if(_231){
QI.ShowUpgradeDone(_237.parentID);
QI.FireEvent(MN.TrackInstall.Events.UpgradeSuccess,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI._beforeUpgradeVersion+" to "+_235,prop3:QI.controller.packageExt});
}
if(_237.upPlayerDiv){
_237.upPlayerDiv.innerHTML="";
document.body.removeChild(_237.upPlayerDiv);
_237.upPlayerDiv=null;
}
QI.ResetProbe();
if(!_232){
return;
}
if(QI.osIsPanther){
return;
}
if(_231){
log("QI.OUD: Retrying CreatePlayer");
QI._completedUpgrade=true;
QI.ScanPlayerIDs(true);
setTimeout(function(){
MN.QMPInstall.CreatePlayer(_237.parentID,_237.DoneCB,_237.w,_237.h,_237.playerID,_237.hideHTML);
},2000);
}else{
if((_237.upAttempts<=QI.upgradeAutoRetries)&&(_235<"071705000000")){
log("Upgrade failed; trying again ("+_237.upAttempts+" out of "+QI.upgradeAutoRetries+" attempts made)");
QI.ShowUpgradeProgress(_237.parentID,"Download failed; retrying...");
setTimeout(function(){
MN.QMPInstall.StartUpgrade(_237.upAttempts);
},750);
}else{
if(QI._getNextInstallerBaseUrl()!=""){
log("Upgrade failed; using next fail-over url "+QI._getCurrentInstallerBaseUrl());
setTimeout(function(){
MN.QMPInstall.StartUpgrade(0);
},750);
}else{
if(_234=="0"){
_234="Could not download file";
}
if(_234=="1"){
_234="invalid package URL";
}else{
if(_234=="2"){
_234="failed to build patch to downloaded file";
}else{
if(_234=="3"){
_234="failed to unpack upgrade package";
}else{
if(_234=="4"){
_234="failed to run upgrade installer";
}
}
}
}
QI.ShowUpgradeError(_237.parentID,_234);
}
}
}
},_getNextInstallerBaseUrl:function(){
var QI=MN.QMPInstall;
if(("globalConfig" in MN)&&("fgUpgradeFallbackUrls" in MN.globalConfig)){
QI._currentInstallerBaseUrlIndex+=1;
if(QI._currentInstallerBaseUrlIndex>=MN.globalConfig.fgUpgradeFallbackUrls.length){
return "";
}else{
return QI._getCurrentInstallerBaseUrl();
}
}else{
return "";
}
},_getCurrentInstallerBaseUrl:function(){
var QI=MN.QMPInstall;
if(QI._currentInstallerBaseUrlIndex==-1){
return QI.libBase;
}
if(("globalConfig" in MN)&&("fgUpgradeFallbackUrls" in MN.globalConfig)){
if(QI._currentInstallerBaseUrlIndex>=MN.globalConfig.fgUpgradeFallbackUrls.length){
return "";
}else{
var url=MN.globalConfig.fgUpgradeFallbackUrls[QI._currentInstallerBaseUrlIndex];
if(!url.endswith("/")){
url=url+"/";
}
return url;
}
}else{
return "";
}
},_completedUpgrade:false,_createParams:{},playerIDToPlayer:{},nullPlayers:[],GetMinRequiredVer:function(_23b){
var QI=MN.QMPInstall;
if(!_23b){
_23b=QI.OS();
}
var ver=QI.reqVersions[_23b];
if(!ver){
ver="000000000000";
}
log("Minimum required ver: "+QI._padVersionString(ver,QI.QMP_VERSION_LENGTH));
return QI._padVersionString(ver,QI.QMP_VERSION_LENGTH);
},GetAvailableVer:function(_23e){
var QI=MN.QMPInstall;
return QI._padVersionString(QI.GetAvailableVerUnpadded(_23e),QI.QMP_VERSION_LENGTH);
},GetAvailableVerUnpadded:function(_240){
var QI=MN.QMPInstall;
if(!_240){
_240=QI.OS();
}
if(!QI.availVersions[_240]){
QI.availVersions[_240]="";
}
return QI.availVersions[_240];
},IsBGMacVersion:function(){
var QI=MN.QMPInstall;
var _243=QI.controller.GetInstalledVersion();
var _244=false;
var _245=["000007030901","000007032909","000007032907","000007032905","000007032903","000007032901","000007022601","000007022601","000007021503","000007010901"];
for(i=0;i<_245.length;i++){
if(_243==_245[i]){
_244=true;
break;
}
}
return _244;
},ScanPlayerIDs:function(_246){
var QI=MN.QMPInstall;
if(_246){
QI.playerIDToPlayer={};
QI.nullPlayers=[];
return;
}
var pID=null;
var p=null;
var _24a=[];
for(var i=0,pl=QI.nullPlayers.length;i<pl;i++){
p=QI.nullPlayers[i];
pID=p.PlayerId;
if(!pID){
_24a.push(p);
log("FOUND still null");
}else{
QI.playerIDToPlayer[pID]=p;
}
}
QI.nullPlayers=_24a;
var _24c={};
for(pID in QI.playerIDToPlayer){
if(QI.playerIDToPlayer.hasOwnProperty(pID)){
p=QI.playerIDToPlayer[pID];
var _24d=p.PlayerId;
_24c[_24d]=p;
}
}
QI.playerIDToPlayer=_24c;
}};
MN.QMPInstall.reqVersions=MN.Config.reqPlayerVersions;
MN.QMPInstall.availVersions=MN.Config.availPlayerVersions;
MN.QMPInstall.controllers={};
MN.QMPInstall.controllers.Base=MN.Class();
_p=MN.QMPInstall.controllers.Base.prototype;
_p.initialize=function(){
this._name="Base";
this.useFakeEvents=true;
this.justUpgraded=false;
this.standaloneExt="";
this.packageExt="";
this.slOpt=MN._getMNScriptTag().getAttribute("SL");
this.refreshFlag=MN.QMPInstall.pluginRefreshFlag;
};
_p.GetInstallMessage=function(){
var QI=MN.QMPInstall;
var msg=QI.MSG_BASE_INSTALLING_PREFIX;
if(QI._usingJavaInstaller){
msg+=QI.MSG_INSTALL_java+QI.MSG_BASE_INSTALLING_POSTFIX;
}else{
if(QI.os=="win"&&QI.browser=="mozilla"){
msg+=QI["MSG_INSTALL_"+this.GetName()]+"</div>";
}else{
msg+=QI["MSG_INSTALL_"+this.GetName()]+QI.MSG_BASE_INSTALLING_POSTFIX;
}
}
return msg;
};
_p.GetInstallMessageTxt=function(){
var QI=MN.QMPInstall;
var msg=QI.MSG_BASE_INSTALLING_PREFIX_TXT;
if(QI._usingJavaInstaller){
msg+=QI.MSG_INSTALL_java+QI.MSG_BASE_INSTALLING_POSTFIX_TXT;
}else{
if(QI.os=="win"&&QI.browser=="mozilla"){
msg+=QI["MSG_INSTALL_"+this.GetName()+"_TXT"];
}else{
msg+=QI["MSG_INSTALL_"+this.GetName()]+QI.MSG_BASE_INSTALLING_POSTFIX_TXT;
}
}
return msg;
};
_p.UseOldUpgradeAPI=function(){
return false;
};
_p.RequiresJavaInstaller=function(){
return false;
};
_p.HaveReliableJava=function(){
var QI=MN.QMPInstall;
if(QI.OS()=="win"&&!QI.allowWinJavaInstaller){
return false;
}
try{
if(!navigator.javaEnabled()&&navigator.userAgent.toLowerCase().indexOf("firefox/3")==-1){
return false;
}
}
catch(e){
log("javaEnabled triggered",e);
return false;
}
if(QI.Browser()=="ie"){
if(navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1){
return false;
}
return null;
}
for(var i=0,nplen=navigator.plugins.length;i<nplen;i++){
var _254=navigator.plugins[i];
if(!_254||_254.name.toLowerCase().indexOf("java")==-1){
continue;
}
for(var j=0,pl=_254.length;j<pl;j++){
var _256=_254[j];
if(!_256){
continue;
}
if(_256.type&&_256.type.toLowerCase().indexOf("java-applet")!=-1){
return true;
}
}
}
return false;
};
_p.GetName=function(){
return this._name;
};
_p.GetPackageName=function(){
return this._name;
};
_p.GetObjectStr=function(_257){
return "<object id=\"%s\" style=\"width:%s; height:%s\" type=\""+this.mimeStr+"\"%s>%s</object>";
};
_p.RefreshPlugins=function(){
try{
navigator.plugins.refresh(this.refreshFlag);
navigator.plugins.length;
}
catch(e){
logError("RefreshPlugins failed",e,e.message);
}
};
_p.MakeUpgradeURL=function(_258){
logError("MakeUpgradeURL must be overriden");
return false;
};
_p.MakeSetupURL=function(){
logError("MakeSetupURL must be overriden");
return false;
};
_p.WaitForInstall=function(_259){
this.RefreshPlugins();
var _25a=navigator.plugins[this.pluginName];
if(_25a!==undefined&&_25a!==null){
var _25b=_25a.description.split(" ")[1];
MN.QMPInstall.alreadyProbed=false;
_259(_25b);
return;
}
var _25c=this.WaitForInstall;
setTimeout(function(){
_25c(_259);
},300);
};
_p.GetInstalledVersion=function(){
if(!navigator.plugins){
return null;
}
this.RefreshPlugins();
var _25d=null;
var _25e=null;
var _25f=null;
var _260=null;
var _261=null;
for(var i=0,npl=navigator.plugins.length;i<npl;i++){
var _263=navigator.plugins[i];
if(typeof (_263)=="undefined"){
logWarn("Undefined plug-in found; firefox workaround enabled");
this.mimeStr="application/x-vnd.movenetworks.qm";
return MN.QMPInstall.GetAvailableVer();
}
if(_263.description.slice(0,7)!="npmnqmp"){
continue;
}
for(var j=0,pl=_263.length;j<pl;j++){
var t=_263[j].type;
if(t=="application/x-vnd.movenetworks.qm"){
_25d=_263.description;
}else{
if(t=="application/x-vnd.moveplay.qm"){
_25e=_263.description;
}else{
if(t=="application/x-vnd.moveplay1.qm"){
_25f=_263.description;
}else{
if(t=="application/x-vnd.moveplay2.qm"){
_260=_263.description;
}else{
if(t=="application/x-vnd.moveplayer.qm"){
_261=_263.description;
}
}
}
}
}
}
}
var desc=_261;
var mime="application/x-vnd.moveplayer.qm";
if(!_261&&_25f&&_260){
desc=_25f;
mime="application/x-vnd.moveplay1.qm";
if(_260>desc){
desc=_260;
mime="application/x-vnd.moveplay2.qm";
}
}
if(!desc){
desc=_25e;
mime="application/x-vnd.moveplay.qm";
}
if(!desc){
desc=_260;
mime="application/x-vnd.moveplay2.qm";
}
if(!desc){
desc=_25d;
mime="application/x-vnd.movenetworks.qm";
}
if(!desc){
return null;
}
this.mimeStr=mime;
log("Will use MIME type",mime);
return desc.split(" ")[1];
};
_p.GetSilverlightVersion=function(){
this.RefreshPlugins();
var _268=navigator.plugins["Silverlight Plug-In"];
if(_268!==undefined&&_268!==null){
var _269=_268.description;
if(_269==="1.0.30226.2"){
_269="2.0.30226.2";
}
var _26a=_269.split(".");
while(_26a.length>3){
_26a.pop();
}
return _26a.join(".");
}else{
return "";
}
};
MN.QMPInstall.controllers.win=MN.Class(MN.QMPInstall.controllers.Base);
_p=MN.QMPInstall.controllers.win.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.Base.prototype.initialize.apply(this);
};
_p.MakeSetupURL=function(){
return this.MakeUpgradeURL();
};
_p.MakeUpgradeURL=function(_26b,_26c){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVerUnpadded();
if(arguments.length<2||_26c){
if(QI.GetSilverlightVersion()===""&&(this.slOpt=="fg"||this.slOpt=="force")){
upgradeURL=MN.URL.Join(QI._getCurrentInstallerBaseUrl(),"MoveMediaPlayerWinSilverlight_%s.%s".format(ver,this.packageExt));
}else{
upgradeURL=MN.URL.Join(QI._getCurrentInstallerBaseUrl(),"MoveMediaPlayerWin_%s.%s".format(ver,this.packageExt));
}
}else{
upgradeURL=MN.URL.Join(QI._getCurrentInstallerBaseUrl(),"MoveMediaPlayerWinSilent_%s.%s".format(ver,this.packageExt));
}
return upgradeURL;
};
MN.QMPInstall.controllers.win_ie=MN.Class(MN.QMPInstall.controllers.win);
_p=MN.QMPInstall.controllers.win_ie.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.win.prototype.initialize.apply(this);
this._name="win_ie";
this.useFakeEvents=false;
this.ocxNewCLSIDs=["fc345d4c-b8f4-4674-bff7-3c37d2e535ee","fd6484ed-ebe3-4c3d-938a-8238003b41b7"];
this.ocxOldCLSIDs=["e3e02f12-2adb-478c-8742-5f0819f9f0f4","e473a65c-8087-49a3-affd-c5bc4a10669b"];
this.ocxCLSIDs=[];
this.vtID="_qmpTempOCX";
this.vtDiv=null;
this.monitorID=0;
this.standaloneExt="exe";
this.packageExt="exe";
};
_p.GetObjectStr=function(_26f){
var _270=this.ocxCLSIDs[0];
if(this.notRunningAvailable){
_270=this.ocxCLSIDs[1];
}
return "<OBJECT ID=\"%s\" style=\"width:%s; height:%s\" CLASSID=\"CLSID:"+_270+"\"%s>%s</OBJECT>";
};
_p.RefreshPlugins=function(){
this._FindClassIDs();
};
_p.WaitForInstall=function(_271){
var ver=this.GetActiveXObjectVersion();
if(ver!==null){
MN.QMPInstall.alreadyProbed=false;
_271(ver);
return;
}
var _273=this.WaitForInstall;
setTimeout(function(){
_273(_271);
},300);
};
_p.GetActiveXObjectVersion=function(type){
var _275;
try{
_275=new ActiveXObject("QSP2IE.QSP2IE");
if(_275){
return this._probeControlVersion(_275,type);
}
}
catch(e){
if(e.message=="Object doesn't support this property or method"){
return this._probeControlVersion(_275,type);
}
}
return null;
};
_p._probeControlVersion=function(_276,type){
if(!type){
return _276.Version;
}else{
if(type=="latest"){
return _276.RegistryVersion;
}else{
if(type=="api"){
return _276.Get("Download.APIVersion");
}
}
}
};
_p.GetInstalledVersion=function(){
var _278=this.GetActiveXObjectVersion("latest");
var _279=this.GetActiveXObjectVersion();
var _27a=this.GetActiveXObjectVersion("api");
this.notRunningAvailable=(_278&&_279&&_278>_279);
this.supportsForcedUpgrades=(_27a>0);
return _278;
};
_p._FindClassIDs=function(){
this.ocxCLSIDs=this.ocxNewCLSIDs;
log("Trying new class IDs first");
this._CreateTempOCX();
var vt=MN.$(this.vtID);
if(typeof vt.Version=="undefined"){
log("Nothing found with the new class IDs, falling back to old");
this.ocxCLSIDs=this.ocxOldCLSIDs;
}
this._DestroyTempOCX();
};
_p._CreateTempOCX=function(_27c){
if(this.vtDiv!==null){
return;
}
this.vtDiv=document.createElement("div");
document.body.appendChild(this.vtDiv);
this.vtDiv.innerHTML=this.GetObjectStr(true).format(this.vtID,0,0,_27c||"","<PARAM name=\"VersionTest\" value=\"1\">");
};
_p._DestroyTempOCX=function(){
if(this.vtDiv===null){
return;
}
this.vtDiv.innerHTML="";
document.body.removeChild(this.vtDiv);
this.vtDiv=null;
};
_p.UseOldUpgradeAPI=function(){
var QI=MN.QMPInstall;
var _27e=QI.GetInstalledVersion();
return !(_27e>"000007010301");
};
_p.GetSilverlightVersion=function(){
try{
var _27f=new ActiveXObject("AgControl.AgControl");
if(!_27f){
return "";
}else{
if(_27f.IsVersionSupported("2.0.31000")){
return "2.0.31000";
}else{
if(_27f.IsVersionSupported("2.0")){
return "2.0.0";
}else{
if(_27f.IsVersionSupported("1.0")){
return "1.0.0";
}else{
if(_27f.IsVersionSupported(null)){
return "0.0.0";
}else{
return "";
}
}
}
}
}
}
catch(e){
return "";
}
};
MN.QMPInstall.controllers.win_mozilla=MN.Class(MN.QMPInstall.controllers.win);
MN.QMPInstall.controllers.win_other=MN.QMPInstall.controllers.win_mozilla;
_p=MN.QMPInstall.controllers.win_mozilla.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.win.prototype.initialize.apply(this);
this._name="win_mozilla";
this.standaloneExt="exe";
this.packageExt="exe";
this.pluginName="Move Streaming Media Player";
};
_p.GetInstalledVersion=function(){
if(typeof (navigator.plugins[this.pluginName])!="undefined"){
this.mimeStr="application/x-vnd.mnplayer.qm";
var _280=navigator.plugins[this.pluginName].filename;
var _281=/npqmp([0-9]+)\.dll/;
var _282=_281.exec(_280);
if(_282===null){
return "999999999999";
}else{
return _282[1];
}
}
return MN.QMPInstall.controllers.Base.prototype.GetInstalledVersion.apply(this);
};
_p.ShowUpgradeMsg=function(_283){
var QI=MN.QMPInstall;
var msg;
if(QI._createParams.hideHTML){
msg=(QI.MSG_UPGRADE_WIN_MOZILLA!=="")?QI.MSG_UPGRADE_WIN_MOZILLA:QI.MSG_UPGRADE_BASE_WIN_MOZILLA_TXT;
QI.DispatchInstallEvent(MN.QMPInstall.Events.InstallMessage,{pid:_283,msg:msg});
}else{
if(QI.MSG_UPGRADE_WIN_MOZILLA!==""){
MN.$(_283).innerHTML=QI.MSG_UPGRADE_WIN_MOZILLA;
}
MN.$(_283).innerHTML=QI.MSG_UPGRADE_BASE_WIN_MOZILLA;
}
};
_p=undefined;
MN.QMPInstall.controllers.mac_mozilla=MN.Class(MN.QMPInstall.controllers.Base);
_p=MN.QMPInstall.controllers.mac_mozilla.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.Base.prototype.initialize.apply(this);
this._name="mac_mozilla";
this.standaloneExt="tar";
this.packageExt="tar";
this.dmgExt="dmg";
this.pluginName="MoveNetworks Quantum Media Player";
this.defaultMime="application/x-vnd.moveplayer.qm";
};
_p.RequiresJavaInstaller=function(){
return false;
};
_p.MakeUpgradeURL=function(_286,_287){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVerUnpadded();
if(QI.allowMacUniversal){
url="qmpsetup%s_mac_mozilla_%s.%s".format(QI.packagePrefix,ver,this.standaloneExt);
}else{
url="qmpsetup%s_mac_%s_mozilla_%s.%s".format(QI.packagePrefix,QI.macProc,ver,this.standaloneExt);
if(QI.GetSilverlightVersion()===""&&QI.macProc=="i386"&&(this.slOpt=="fg"||this.slOpt=="force")&&(arguments.length<2||_287)){
url="sl_"+url;
}
}
log("MakeSetupURL : %s".format(url));
return MN.URL.Join(QI._getCurrentInstallerBaseUrl(),url);
};
_p.MakeDMGURL=function(){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVer();
url="qmpsetup%s_mac_mozilla_%s.%s".format(QI.packagePrefix,ver,this.dmgExt);
if(QI.GetSilverlightVersion()===""&&QI.macProc=="i386"&&(this.slOpt=="fg"||this.slOpt=="force")){
url="sl_"+url;
}
log("MakeDMGURL : %s".format(url));
return MN.URL.Join(MN._libBase,url);
};
_p.MakeSetupURL=function(){
return this.MakeUpgradeURL();
};
_p=undefined;
MN.QMPInstall.controllers.mac_safari=MN.QMPInstall.controllers.mac_mozilla;
MN.QMPInstall.Init();
MN.QMPInstall.MSG_BADOS="<div id=\"moveplay_install\">We're sorry, but only the following operating systems are supported at this time:<br><br>%s<br><br>Please check back soon for support for other operating systems.</div>";
MN.QMPInstall.MSG_BADOS_TXT="We're sorry, but only the following operating systems are supported at this time:<br><br>%s<br><br>Please check back soon for support for other operating systems.";
MN.QMPInstall.MSG_BADBROWSER="<div id=\"moveplay_install\">We're sorry, but only the following browsers are supported on your operating system at this time:<br><br>%s<br><br>Please check back soon for support for other browsers.</div>";
MN.QMPInstall.MSG_BADBROWSER_TXT="We're sorry, but only the following browsers are supported on your operating system at this time:<br><br>%s<br><br>Please check back soon for support for other browsers.";
MN.QMPInstall.MSG_NEEDREINSTALL="<div id=\"moveplay_install\">In order to view this content, you need an update to the player. The update is quick and easy, just <a href=\"#\" onclick=\"MN.QMPInstall.StartInstall();\">click here</a>.</div>";
MN.QMPInstall.MSG_NEEDREINSTALL_TXT="In order to view this content, you need an update to the player. \nThe update is quick and easy, just accept the install invitation.";
MN.QMPInstall.MSG_NEEDUPGRADE="<div id=\"moveplay_install\">Please wait a moment while an updated version of the player loads. <br><br>When it finishes loading, playback will start automatically.<br><br><span id=\"_qmpUpgradeProgress\"></span></div>";
MN.QMPInstall.MSG_UPGRADING="%s";
MN.QMPInstall.MSG_UPGRADE_WIN_MOZILLA="";
MN.QMPInstall.MSG_NEEDUPGRADE_TXT="Please wait a moment while an updated version of the player loads. <br><br>When it finishes loading, playback will start automatically.";
MN.QMPInstall.MSG_UPGRADE_BASE_WIN_MOZILLA="<div id=\"moveplay_install\">Upgrade Available<br /><br />\nIf this is your first time upgrading, please follow steps 1-4.  If you are a returning customer, please see step 5.<br /><br />\n1) When the bar appears at the top of your browser, click the \"Edit Options\" button.<br />\n2) In the \"Allowed Sites\" dialog window click the \"Allow\" button.<br /> \n3) Click the \"Close\" button.<br />\n4) <a href=\"#\" onclick=\"MN.QMPInstall.StartInstall();\">Click here to continue</a> the install.<br />\n5) On the \"Software Installation\" dialog window click Install Now<br />\n</div>";
MN.QMPInstall.MSG_UPGRADE_BASE_WIN_MOZILLA_TXT="Upgrade Available<br /><br />\nIf this is your first time upgrading, please follow steps 1-3.  If you are a returning customer, please see step 4.<br /><br />\n1) When the bar appears at the top of your browser, click the \"Edit Options\" button.<br />\n2) In the \"Allowed Sites\" dialog window click the \"Allow\" button.<br /> \n3) Click the \"Close\" button.<br />\n4) On the \"Software Installation\" dialog window click Install Now<br />\n</div>";
MN.QMPInstall.MSG_UPGRADEFAILED="<div id=\"moveplay_install\">Unfortunately, the player could not load at this time:<br>%s<br><br>. Please check your network connection and try again later.</div>";
MN.QMPInstall.MSG_UPGRADEFAILED_TXT="Unfortunately, the player could not load at this time:<br>%s<br><br>. Please check your network connection and try again later.";
MN.QMPInstall.MSG_CANINSTALL="<div id=\"moveplay_install\">\n<span id=\"moveplay_feature1\">\n<span class=\"moveplay_featuretitle\">Highest Quality</span><br><span class=\"moveplay_featuredesc\">HD-like video experience</span></span>\n<br><br>\n<span id=\"moveplay_feature2\"><span class=\"moveplay_featuretitle\">No Buffering</span><br><span class=\"moveplay_featuredesc\">fast start and continuous play</span></span>\n<br><br>\n<span id=\"moveplay_feature3\"><span class=\"moveplay_featuretitle\">DVD-Like Navigation</span><br><span class=\"moveplay_featuredesc\">includes fast-forward and rewind</span></span>\n<br>\n<center><a href=\"#\" onclick=\"MN.QMPInstall.StartInstall()\"><img border=\"0\" src=\"%s\"></a><br><img src=\"%s\"><br>\n<span id=\"moveplay_eula\">By clicking the button you agree to the <a target=\"_new\" href=\"http://www.movenetworks.com/terms.html\">terms and conditions</a>.</span>\n</center>\n</div>".format(MN.URL.Join(QI.libBase,"moveplaywatchnow.jpg"),MN.URL.Join(QI.libBase,"moveplaywillload.jpg"));
MN.QMPInstall.MSG_CANINSTALL_TXT="<b>Highest Quality</b><br>HD-like video experience<br><br><b>No Buffering</b><br>fast start and continuous play<br><br><b>DVD-Like Navigation</b><br>includes fast-forward and rewind<br><img src=\"%s\"><br><br>\nBy clicking the OK button you agree <br>to the <font color=\"#FF0000\"> <a target=\"_new\" href=\"http://www.movenetworks.com/terms.html\">terms and conditions</a></font>.\n\n".format(MN.URL.Join(QI.libBase,"moveplaywillload.jpg"));
MN.QMPInstall.MSG_INSTALL_win_mozilla="Select the option to \"Run\" or \"Open\" when prompted to prepare the player for playback.";
MN.QMPInstall.MSG_INSTALL_win_mozilla_TXT=MN.QMPInstall.MSG_INSTALL_win_mozilla;
MN.QMPInstall.MSG_INSTALL_win_ie="Select the option to \"Run\" or \"Open\" when prompted to prepare the player for playback.";
MN.QMPInstall.MSG_INSTALL_java="Please select to \"Trust\" or \"Run\" the Java Applet when prompted.";
MN.QMPInstall.MSG_INSTALLING="";
MN.QMPInstall.MSG_BASE_INSTALLING_PREFIX="<div id=\"moveplay_install\">\n<span class=\"moveplay_featuretitle\">Loading Move Media Player, please wait...</span>\n<br><br>";
MN.QMPInstall.MSG_BASE_INSTALLING_PREFIX_TXT="Loading Move Media Player, please wait...<br><br>";
MN.QMPInstall.MSG_BASE_INSTALLING_POSTFIX=" <span class=\"moveplay_featuredesc\">  Once successfully loaded, a video will start playing in this window.</span>\n<br><br>\n<div id=\"moveplay_progressouter\"><div id=\"moveplay_progressinner\"></div></div><span id=\"moveplay_installprogressmsg\">Loading...</span>\n</div>";
MN.QMPInstall.MSG_BASE_INSTALLING_POSTFIX_TXT="\nOnce successfully loaded, a video will start playing.<br><br><br>Loading...\n";
MN.QMPInstall.MSG_DMGINSTALLMETHOD="<div id=\"moveplay_install\">\n<span class=\"moveplay_featuretitle\">DMG Install.</span>\n<br><br>\n<span class=\"moveplay_featuredesc\">Java is either not installed or\ndisabled. Please perform a manual installation from the\n<a href=\"%s\">disk\nimage</a> and reload this page.\nAlternatively enable java or install it from \n<a href=\"http://java.com/en/download/index.jsp\">java.com</a> and reload\nthis page.</span>\n</div>";
MN.QMPInstall.MSG_DMGINSTALLMETHOD_TXT="<b>DMG Install.</b><br><br>Java is either not installed or\ndisabled. Please perform a manual installation from the <font color = \"#FF0000\"> <a href=\"%s\">disk image</a></font> \nand reload this page.\nAlternatively enable java or install it from <font color = \"#FF0000\"> <a target=\"_new\" href=\"http://java.com/en/download/index.jsp\">java.com</a> </font> and reload this page.";
MN.QMPInstall.MSG_NOINSTALLMETHOD="<div id=\"moveplay_install\"> \n<span class=\"moveplay_featuretitle\">Cannot load player.</span>\n<br><br>\n<span class=\"moveplay_featuredesc\">Your platform requires Java in order to load the player. Please\nenable java or visit <a href=\"http://java.com/en/download/index.jsp\">java.com</a> to obtain Java.</span>\n</div>";
MN.QMPInstall.MSG_NOINSTALLMETHOD_TXT="<b>Cannot load player.</b><br><br>Your platform requires Java in order to load the player. Please\nenable java or visit <font color = \"FF0000\"><a href=\"http://java.com/en/download/index.jsp\">java.com</a></font> to obtain Java.";
MN.QMPInstall.MSG_NEEDRESTART="<div id=\"moveplay_install\"><span class=\"moveplay_featuretitle\">Please restart your browser.</span>\n<br><br>\n<span class=\"moveplay_featuredesc\">In order to complete the operation, please completely shut down your browser and start it again.</div>.";
MN.QMPInstall.MSG_NEEDRESTART_TXT="Please restart your browser.<br><br>In order to complete the operation, please completely shut down your browser and start it again.";
MN.QMPInstall.MSG_DOWNLOADMODULES="<div id=\"moveplay_install\">\n<span class=\"moveplay_featuretitle\" id=\"modulemessagespan\">Finalizing player initialization; please wait.</span>\n<br><br>";
MN.QMPInstall.MSG_DOWNLOADMODULES_TXT="Finalizing player initialization; please wait.<br><br>";
if(MN.QMPInstall.controller.useFakeEvents){
_QMPFireNonIEEvent=function(_28c,_28d){
var QI=MN.QMPInstall;
var _28f=QI.playerIDToPlayer[_28c];
if(!_28f){
QI.ScanPlayerIDs(false);
_28f=QI.playerIDToPlayer[_28c];
}
var args=MN.ToArray(arguments).slice(2);
if(!_28f){
log("Could not find player",_28c," - ignoring",_28d,"event, args =",args);
return;
}
var _291=_28f["_"+_28d+"Listeners"];
if(!_291){
return;
}
setTimeout(function(){
for(var i=0,ll=_291.length;i<ll;i++){
var _293=_291[i];
if(_293){
try{
_293.apply(this,args);
}
catch(e){
logError("Listener",_293,"for event",_28d,"had uncaught exception:",e.message||e);
}
}
}
},1);
};
_QMPEventOnError=function(_294,msg){
_QMPFireNonIEEvent(_294,"error",msg);
};
_QMPEventOnBitRateChanged=function(_296,_297,_298){
_QMPFireNonIEEvent(_296,"bitratechanged",_297,_298);
};
_QMPEventOnPlayStateChanged=function(_299,_29a,_29b){
_QMPFireNonIEEvent(_299,"playstatechanged",_29a,_29b);
};
_QMPEventOnUpgradeProgress=function(_29c,_29d,_29e){
_QMPFireNonIEEvent(_29c,"upgradeprogress",_29d,_29e);
};
_QMPEventOnScript=function(_29f,key,_2a1){
_QMPFireNonIEEvent(_29f,"script",key,_2a1);
};
_QMPEventOnAudioControl=function(_2a2,_2a3,_2a4){
_QMPFireNonIEEvent(_2a2,"audiocontrol",_2a3,_2a4);
};
_QMPEventOnAsyncTaskDone=function(_2a5,_2a6,_2a7,_2a8){
_QMPFireNonIEEvent(_2a5,"asynctaskdone",_2a6,_2a7,_2a8);
};
_QMPEventOnScrubBumper=function(_2a9,_2aa){
_QMPFireNonIEEvent(_2a9,"scrubbumper",_2aa);
};
_QMPEventOnLiveBumper=function(_2ab){
_QMPFireNonIEEvent(_2ab,"livebumper");
};
_QMPEventOnBitmapReady=function(_2ac,_2ad,url){
_QMPFireNonIEEvent(_2ac,"bitmapready",_2ad,url);
};
_QMPEventOnModuleLoaded=function(_2af,_2b0){
_QMPFireNonIEEvent(_2af,"moduleloaded",_2b0);
};
_QMPEventOnUIStateChanged=function(_2b1,_2b2){
_QMPFireNonIEEvent(_2b1,"uistatechanged",_2b2);
};
_QMPEventOnSLIDownloadProgress=function(_2b3,_2b4){
_QMPFireNonIEEvent(_2b3,"slidownloadprogress",_2b4);
};
_QMPEventOnSilverlightInstall=function(_2b5,_2b6){
_QMPFireNonIEEvent(_2b5,"silverlightinstall",_2b6);
};
}
MN.QMPInstall.Module=MN.Class(MN.EventSource);
var _qp=MN.QMPInstall.Module.prototype;
_qp.initialize=function Module(name,_2b8,_2b9){
MN.EventSource.prototype.initialize.apply(this);
this.name=name;
this.initParams=_2b8;
this.loaded=false;
this.dltries=0;
};
_qp=undefined;
MN.QMPInstall.reqVersions=MN.Config.reqPlayerVersions;
MN.QMPInstall.availVersions=MN.Config.availPlayerVersions;
MN.QMPInstall.Silverlight={installRun:false,finishedCbFunc:null,strings:{userPrompt:"Would you like to install Microsoft Silverlight?",forcePrompt:"This site requires Microsoft Silverlight.  Click OK to install Silverlight.",downloadingMessage:"Silverlight will be downloaded from Microsoft Servers",loading:"Loading...",acceptBtn:"Accept",rejectBtn:"Reject",nowInstalling:"Now installing Silverlight..."},width:"",height:"",PromptDiv:null,eulaURL:"http://go.microsoft.com/fwlink/?LinkId=132502",spinnerFileName:"move_spinner.gif",intervalId:-1,progressBar:null,targetDiv:null,_helperPlayer:null,needsInstall:function(){
var QI=MN.QMPInstall;
var QIS=MN.QMPInstall.Silverlight;
if(QI.GetInstalledVersion()<"071300000000"){
return false;
}
if(QIS.getInstallOpts()=="force"&&!QIS.silverlightInstalled()){
return true;
}else{
if(QIS.getInstallOpts()=="no"||QIS.getInstallOpts()=="alt"||QIS.silverlightInstalled()||QIS.installRun||QIS.SLInstallAttempted()||(QIS.getInstallOpts()=="bg"&&QI.OS()=="mac")){
return false;
}else{
return true;
}
}
},standaloneInstall:function(_2bc,_2bd,w,h){
var QI=MN.QMPInstall;
var QIS=QI.Silverlight;
var _2c2="__slInstallHelper__";
if(QIS.silverlightInstalled()){
return false;
}
QI.EmitObj(_2bd,"1px","1px",_2c2,false,true);
if(w===null||w===undefined){
w=480;
}
if(h===null||h===undefined){
h=360;
}
if(w&&(parseInt(w,10)===w)){
w+="px";
}
if(h&&(parseInt(h,10)===h)){
h+="px";
}
QIS._helperPlayer=MN.$(_2c2);
newCB=function(){
MN.$(_2bd).removeChild(QIS._helperPlayer);
QIS._helperPlayer=null;
_2bc(MN.QMPInstall.Silverlight.slSuccess);
};
MN.QMPInstall.Silverlight.doInstall(newCB,_2bd,null,w,h,_2c2,true);
return true;
},doInstall:function(_2c3,_2c4,_2c5,w,h,_2c8,_2c9){
var QIS=MN.QMPInstall.Silverlight;
if(!QIS.needsInstall()){
_2c3();
return;
}
QIS.installRun=true;
QIS.SLInstallAttempted(true);
if(!(arguments.length>6&&_2c9)&&!QIS.UserAcceptsInstall()){
_2c3();
return;
}
QIS.finishedCbFunc=_2c3;
QIS._helperPlayer=MN.$(_2c8);
if(w===null||w===undefined){
w=480;
}
if(h===null||h===undefined){
h=360;
}
if(w&&(parseInt(w,10)===w)){
w+="px";
}
if(h&&(parseInt(h,10)===h)){
h+="px";
}
QIS.width=w;
QIS.height=h;
QIS.targetDiv=MN.$(_2c4);
if(QIS.getInstallOpts()=="fg"||QIS.getInstallOpts()=="force"){
QIS.doForegoundInstall.apply(null,arguments);
}else{
QIS.doBackgroundInstall.apply(null,arguments);
}
},startForegoundInstall:function(){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2cd=document.createElement("div");
_2cd.style.width=QIS.width;
_2cd.style.height=QIS.height;
QI._HideClient();
QIS.targetDiv.appendChild(_2cd);
QIS.PromptDiv=_2cd;
QIS.GenerateFgInstallStatus(_2cd);
log("Beginning Silverlight FG install");
QIS._helperPlayer.Set("SilverlightInstall","Background");
MN.Event.Observe(QIS._helperPlayer,"slidownloadprogress",QIS.DownloadStatusUpdate);
MN.Event.Observe(QIS._helperPlayer,"silverlightinstall",QIS.ForegroundInstallComplete);
},GenerateFgInstallStatus:function(_2ce){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2d1=document.createElement("table");
_2d1.style.width="100%";
_2d1.style.height="100%";
_2d1.style.border="1px solid black";
_2d1.style.color="#333333";
_2d1.style.backgroundColor="#FFFFFF";
var _2d2=document.createElement("tbody");
_2d1.appendChild(_2d2);
var _2d3=document.createElement("tr");
_2d2.appendChild(_2d3);
borderCont=document.createElement("td");
borderCont.align="center";
borderCont.vAlign="middle";
_2d3.appendChild(borderCont);
borderCont.innerHTML="<p><span id='MN_INSTALL_SL_DL_PROMPT' style='font-weight: bolder'>"+QIS.strings.downloadingMessage+"</span></strong></p>";
var img=document.createElement("img");
img.alt=QIS.strings.loading;
img.src=QIS.getSpinnerURL();
borderCont.appendChild(img);
borderCont.appendChild(document.createElement("p"));
QIS.progressBar=QI.ProgressBar.create("80%","10px");
QIS.progressBar.style.align="center";
borderCont.appendChild(QIS.progressBar);
_2ce.appendChild(_2d1);
},progressUpdatedFgInstall:function(_2d5){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
QIS.progressBar.setProgress(_2d5);
},ForegroundInstallComplete:function(_2d8){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
MN.QMPInstall.Silverlight.slSuccess=(_2d8==1);
if(_2d8==1){
log("Silverlight foreground install succeeded!");
}else{
log("Silverlight foreground install failed!");
}
QIS.PromptDiv.parentNode.removeChild(QIS.PromptDiv);
QI._UnhideClient();
QIS.finishedCbFunc();
QIS.finishedCbFunc=null;
},doBackgroundInstall:function(_2db,_2dc,_2dd,w,h,_2e0){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2e3=document.createElement("div");
_2e3.style.width=w;
_2e3.style.height=h;
QI._HideClient();
MN.$(_2dc).appendChild(_2e3);
QIS.PromptDiv=_2e3;
QIS.GenerateEULAPrompt(_2e3);
},doForegoundInstall:function(_2e4,_2e5,_2e6,w,h,_2e9){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2ec=document.createElement("div");
_2ec.style.width=w;
_2ec.style.height=h;
QI._HideClient();
MN.$(_2e5).appendChild(_2ec);
QIS.PromptDiv=_2ec;
QIS.GenerateEULAPrompt(_2ec);
},GenerateEULAPrompt:function(_2ed){
var QIS=MN.QMPInstall.Silverlight;
var _2ef=document.createElement("div");
_2ef.style.border="1px solid black";
_2ef.style.height="100%";
_2ef.style.color="#333333";
_2ef.style.backgroundColor="#FFFFFF";
var _2f0=document.createElement("div");
_2f0.style.marginTop="7px";
_2f0.style.marginBottom="7px";
_2f0.innerHTML="<span style='font-weight: bolder; font-size: 13px; text-decoration: underline'>"+QIS.strings.downloadingMessage+"</strong><br><br>";
var _2f1=document.createElement("span");
_2f1.style.border="2px solid black";
_2f1.style.padding="5px";
_2f1.style.marginRight="5px";
_2f1.style.cursor="pointer";
_2f1.style.paddingTop="5px";
_2f1.onclick=QIS.AcceptClicked;
_2f1.onmouseover=QIS.btnMouseOver;
_2f1.onmouseout=QIS.btnMouseOut;
var _2f2=_2f1.cloneNode(true);
_2f2.onclick=QIS.RejectClicked;
_2f2.onmouseover=QIS.btnMouseOver;
_2f2.onmouseout=QIS.btnMouseOut;
_2f1.innerHTML=QIS.strings.acceptBtn.toUpperCase();
_2f2.innerHTML=QIS.strings.rejectBtn.toUpperCase();
_2f0.appendChild(_2f1);
_2f0.appendChild(_2f2);
_2ef.appendChild(_2f0);
_2ef.style.paddingRight="2px";
_2ed.appendChild(_2ef);
var _2f3=60;
var _2f4=480;
if(QI.Browser()=="ie"){
if(_2f0.offsetHeight>0){
_2f3=_2f0.offsetHeight;
}
_2f4=_2ed.offsetHeight;
}else{
if(_2f0.clientHeight>0){
_2f3=_2f0.clientHeight;
}
_2f4=_2ed.clientHeight;
}
var _2f5=_2ed.clientHeight-_2f3-16;
var _2f6=document.createElement("iframe");
_2f6.style.border="1px dotted black";
_2f6.style.width="100%";
_2f6.style.height=_2f5+"px";
_2f6.src=QIS.getSlEulaURL();
_2ef.insertBefore(_2f6,_2f0);
},DownloadStatusUpdate:function(_2f7){
var QIS=MN.QMPInstall.Silverlight;
if(QIS.progressBar!==null){
QIS.progressBar.setProgress(_2f7);
if(_2f7==100){
MN.$("MN_INSTALL_SL_DL_PROMPT").innerHTML=QIS.strings.nowInstalling;
QIS.progressBar.parentNode.removeChild(QIS.progressBar);
QIS.progressBar=null;
}
}else{
log("download status: "+_2f7.toString());
}
},startBackgroundInstall:function(){
var QI=MN.QMPInstall;
var QIS=MN.QMPInstall.Silverlight;
log("Beginning download of Silverlight from Microsoft");
QIS._helperPlayer.Set("SilverlightInstall","Background");
MN.Event.Observe(QIS._helperPlayer,"slidownloadprogress",QIS.DownloadStatusUpdate);
MN.Event.Observe(QIS._helperPlayer,"silverlightinstall",QIS.BackgroundInstallComplete);
QI._UnhideClient();
QIS.finishedCbFunc();
QIS.finishedCbFunc=null;
},BackgroundInstallComplete:function(res){
MN.QMPInstall.Silverlight.slSuccess=(res==1);
log("Background install complete");
},AcceptClicked:function(){
var QI=MN.QMPInstall;
var QIS=MN.QMPInstall.Silverlight;
QIS.PromptDiv.parentNode.removeChild(QIS.PromptDiv);
if(QIS.getInstallOpts()=="fg"||QIS.getInstallOpts()=="force"){
QIS.startForegoundInstall();
}else{
QIS.startBackgroundInstall();
}
},RejectClicked:function(){
var QI=MN.QMPInstall;
var QIS=MN.QMPInstall.Silverlight;
QIS.PromptDiv.parentNode.removeChild(QIS.PromptDiv);
QI._UnhideClient();
QIS.finishedCbFunc();
QIS.finishedCbFunc=null;
},btnMouseOver:function(){
this.style.border="2px solid #661111";
this.style.textDecoration="underline";
},btnMouseOut:function(){
this.style.border="2px solid black";
this.style.textDecoration="none";
},getSlEulaURL:function(){
var QIS=MN.QMPInstall.Silverlight;
return QIS.eulaURL;
},getSpinnerURL:function(){
var QIS=MN.QMPInstall.Silverlight;
return MN.URL.Join(MN._libBase,QIS.spinnerFileName);
},getInstallOpts:function(){
var opt=MN._getMNScriptTag().getAttribute("SL");
if(opt=="no"||opt=="bg"||opt=="alt"||opt=="fg"||opt=="force"){
return opt;
}else{
return "no";
}
},silverlightInstalled:function(){
var QI=MN.QMPInstall;
return (QI.GetSilverlightVersion()!=="");
},SLInstallAttempted:function(val){
if(arguments.length>0){
if(val!==false){
MN.Cookie.Set("slInstallAttempted",true,365);
}else{
MN.Cookie.Clear("slInstallAttempted");
}
}else{
if(MN.Cookie.Get("slInstallAttempted")){
return true;
}else{
return false;
}
}
},UserAcceptsInstall:function(){
var QIS=MN.QMPInstall.Silverlight;
if(QIS.getInstallOpts()=="force"){
return confirm(QIS.strings.forcePrompt);
}else{
return confirm(QIS.strings.userPrompt);
}
}};
MN.QMPInstall.RegisterCustomInstaller(MN.QMPInstall.Silverlight.doInstall);
if(!MN){
MN={};
}
if(!MN.Capabilities){
MN.Capabilities={};
}
MN.Capabilities.HWInfo=function(_306){
if(typeof _306=="string"){
this._player=MN.$(_306);
}else{
this._player=_306.player;
}
};
MN.Capabilities.HWInfo.prototype.meetsMinReqs=function(){
var _307=this.getVideoRenderer().toUpperCase()!="NO RENDERER";
var _308=this.getCPUSpeed()>1000||this.getCPUSpeed()===0;
return _307&&_308;
};
MN.Capabilities.HWInfo.prototype.getCPUCount=function(){
return Number(this._player.Get("Computer.CPUCount"));
};
MN.Capabilities.HWInfo.prototype.getCPUSpeed=function(){
return Number(this._player.Get("Computer.CPUSpeed"));
};
MN.Capabilities.HWInfo.prototype.getCPUType=function(){
return this._player.Get("Computer.CPUType");
};
MN.Capabilities.HWInfo.prototype.getVideoRenderer=function(){
return this._player.Get("Computer.VideoRenderer");
};
MN.Capabilities.HWInfo.prototype.getFreeDiskSpace=function(){
return Number(this._player.Get("Computer.FreeDiskSpace"));
};
MN.Capabilities.HWInfo.prototype.getRAMSize=function(){
return Number(this._player.Get("Computer.RAMSize"));
};
MN.Capabilities.HWInfo.prototype.getVideoRAMSize=function(){
return Number(this._player.Get("Computer.VRAMSize"));
};
if(typeof MN=="undefined"){
var MN=new Object();
}
if(typeof MN.deconcept=="undefined"){
MN.deconcept=new Object();
}
if(typeof MN.deconcept.util=="undefined"){
MN.deconcept.util=new Object();
}
if(typeof MN.deconcept.SWFObjectUtil=="undefined"){
MN.deconcept.SWFObjectUtil=new Object();
}
MN.deconcept.SWFObject=function(swf,id,w,h,ver,c,_30f,_310,_311,_312){
if(!document.getElementById){
return;
}
this.DETECT_KEY=_312?_312:"detectflash";
this.skipDetect=MN.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(swf){
this.setAttribute("swf",swf);
}
if(id){
this.setAttribute("id",id);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(ver){
this.setAttribute("version",new MN.deconcept.PlayerVersion(ver.toString().split(".")));
}
this.installedVer=MN.deconcept.SWFObjectUtil.getPlayerVersion();
if(!window.opera&&document.all&&this.installedVer.major>7){
MN.deconcept.SWFObject.doPrepUnload=true;
}
if(c){
this.addParam("bgcolor",c);
}
var q=_30f?_30f:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",false);
this.setAttribute("doExpressInstall",false);
var xir=(_310)?_310:window.location;
this.setAttribute("xiRedirectUrl",xir);
this.setAttribute("redirectUrl","");
if(_311){
this.setAttribute("redirectUrl",_311);
}
};
MN.deconcept.SWFObject.prototype={useExpressInstall:function(path){
this.xiSWFPath=!path?"expressinstall.swf":path;
this.setAttribute("useExpressInstall",true);
},setAttribute:function(name,_317){
this.attributes[name]=_317;
},getAttribute:function(name){
return this.attributes[name];
},addParam:function(name,_31a){
this.params[name]=_31a;
},getParams:function(){
return this.params;
},addVariable:function(name,_31c){
this.variables[name]=_31c;
},getVariable:function(name){
return this.variables[name];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _31e=new Array();
var key;
var _320=this.getVariables();
for(key in _320){
_31e[_31e.length]=key+"="+_320[key];
}
return _31e;
},getSWFHTML:function(){
var _321="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
this.setAttribute("swf",this.xiSWFPath);
}
_321="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";
_321+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _322=this.getParams();
for(var key in _322){
_321+=[key]+"=\""+_322[key]+"\" ";
}
var _324=this.getVariablePairs().join("&");
if(_324.length>0){
_321+="flashvars=\""+_324+"\"";
}
_321+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
this.setAttribute("swf",this.xiSWFPath);
}
_321="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";
_321+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _322=this.getParams();
for(var key in _322){
_321+="<param name=\""+key+"\" value=\""+_322[key]+"\" />";
}
var _324=this.getVariablePairs().join("&");
if(_324.length>0){
_321+="<param name=\"flashvars\" value=\""+_324+"\" />";
}
_321+="</object>";
}
return _321;
},write:function(_325){
if(this.getAttribute("useExpressInstall")){
var _326=new MN.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_326)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",encodeURIComponent(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 _325=="string")?document.getElementById(_325):_325;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
MN.deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _328=new MN.deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_328=new MN.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}
}else{
if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){
var axo=1;
var _32b=3;
while(axo){
try{
_32b++;
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_32b);
_328=new MN.deconcept.PlayerVersion([_32b,0,0]);
}
catch(e){
axo=null;
}
}
}else{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(e){
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_328=new MN.deconcept.PlayerVersion([6,0,21]);
axo.AllowScriptAccess="always";
}
catch(e){
if(_328.major==6){
return _328;
}
}
try{
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(e){
}
}
if(axo!=null){
_328=new MN.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
}
}
return _328;
};
MN.deconcept.PlayerVersion=function(_32c){
this.major=_32c[0]!=null?parseInt(_32c[0]):0;
this.minor=_32c[1]!=null?parseInt(_32c[1]):0;
this.rev=_32c[2]!=null?parseInt(_32c[2]):0;
};
MN.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;
};
MN.deconcept.util={getRequestParameter:function(_32e){
var q=document.location.search||document.location.hash;
if(_32e==null){
return q;
}
if(q){
var _330=q.substring(1).split("&");
for(var i=0;i<_330.length;i++){
if(_330[i].substring(0,_330[i].indexOf("="))==_32e){
return _330[i].substring((_330[i].indexOf("=")+1));
}
}
}
return "";
}};
MN.deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _332=document.getElementsByTagName("OBJECT");
for(var i=_332.length-1;i>=0;i--){
_332[i].style.display="none";
for(var x in _332[i]){
if(typeof _332[i][x]=="function"){
_332[i][x]=function(){
};
}
}
}
};
if(MN.deconcept.SWFObject.doPrepUnload){
if(!MN.deconcept.unloadSet){
MN.deconcept.SWFObjectUtil.prepUnload=function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
window.attachEvent("onunload",MN.deconcept.SWFObjectUtil.cleanupSWFs);
};
window.attachEvent("onbeforeunload",MN.deconcept.SWFObjectUtil.prepUnload);
MN.deconcept.unloadSet=true;
}
}
if(!document.getElementById&&document.all){
document.getElementById=function(id){
return document.all[id];
};
}
if(!this.MN){
MN={};
}
if(!MN.ASUtils){
MN.ASUtils={paramsToASXML:function(_336){
var _337=function(_338,ind){
var _33a=null;
var i=null;
var n=null;
var xml="";
if(_338===null){
return "<null/>";
}else{
if(_338===true){
return "<true/>";
}else{
if(_338===false){
return "<false/>";
}else{
if(_338 instanceof Array){
xml+=ind+"<array>";
for(i=0,n=_338.length;i<n;i++){
xml+=ind+"<property id=\""+i+"\">";
xml+=ind+_337(_338[i],ind+"\t")+"\n";
xml+=ind+"</property>";
}
xml+=ind+"</array>";
}else{
if(typeof (_338)=="object"){
xml+=ind+"<object>";
for(_33a in _338){
if(_338.hasOwnProperty(_33a)){
xml+=ind+"<property id=\""+_33a+"\">";
xml+=ind+_337(_338[_33a],ind+"\t")+"\n";
xml+=ind+"</property>";
}
}
xml+=ind+"</object>";
}else{
var _33e=typeof (_338);
xml+=ind+"<"+_33e+">"+_338.toString()+"</"+_33e+">";
}
}
}
}
}
return xml;
};
xml="";
var i=null;
var n=null;
for(i=0,n=_336.length;i<n;i++){
xml+=_337(_336[i],"");
}
return xml.replace(/\t|\n/g,"");
}};
}
var OnEvalScript=function(js){
js=js.replace(/&apos;/g,"'");
js=js.replace(/&quot;/g,"\"");
var _342=eval(js);
return _342;
};
if(!MN){
MN={};
}
if(!MN.Flash){
MN.Flash={};
}
MN.Flash._meetsRecs=null;
MN.Flash._meetsReqs=null;
MN.Flash.meetsRequirements=function(pwp){
if(MN.Flash._meetsReqs!==null){
return MN.Flash._meetsReqs;
}
var caps=new MN.Capabilities.HWInfo(pwp);
if(MN.QMPInstall.OS()=="win"){
if(!pwp.overlaysSupported()){
log("MN.Flash.meetsRequirements: Video renderer '"+videoRenderer+"'");
MN.Flash._meetsReqs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
var _345=caps.getCPUType();
if(_345.indexOf("PowerPC")>-1){
log("MN.Flash.meetsRequirements: CPU type '"+_345+"' contains 'PowerPC'");
MN.Flash._meetsReqs=false;
return false;
}
}
}
MN.Flash._meetsReqs=true;
return true;
};
MN.Flash.meetsRecommendations=function(pwp){
if(MN.Flash._meetsRecs!==null){
return MN.Flash._meetsRecs;
}
if(!MN.Flash.meetsRequirements(pwp)){
MN.Flash._meetsRecs=false;
return false;
}
var caps=new MN.Capabilities.HWInfo(pwp);
var _348=caps.getRAMSize();
if(_348<502){
log("MN.Flash.meetsRecommendations: RAM size "+_348+" < 502");
MN.Flash._meetsRecs=false;
return false;
}
var _349=caps.getCPUCount();
var _34a=caps.getCPUSpeed();
var _34b=parseInt(caps.getVideoRAMSize(),10);
if(MN.QMPInstall.OS()=="win"){
if(_349<2&&_34a<2390){
log("MN.Flash.meetsRecommendations: CPU count "+_349+" < 2 AND CPU speed "+_34a+" < 2390");
MN.Flash._meetsRecs=false;
return false;
}
if(_34b<118&&_34b!==0){
log("MN.Flash.meetsRecommendations: Video RAM size "+_34b+" < 118");
MN.Flash._meetsRecs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
if(_349<2&&_34a<1190){
log("MN.Flash.meetsRecommendations: CPU count "+_349+" < 2 AND CPU speed "+_34a+" < 1190");
MN.Flash._meetsRecs=false;
return false;
}
if(_34b<118){
log("MN.Flash.meetsRecommendations: Video RAM size "+_34b+" < 118");
MN.Flash._meetsRecs=false;
return false;
}
}
}
MN.Flash._meetsRecs=true;
return true;
};
MN.Flash.ErrorTypes={MISSING_PARAMS:"Flash overlay parameter missing",SYS_NOT_SUPPORTED:"Flash overlays not supported on this system"};
if(!MN){
MN={};
}
if(!MN.Flash){
MN.Flash={};
}
MN.Flash.FSDK={_autoIdPrefix:"__mn__flash_instance_",_nextInstanceNum:1,_jsVars:[],createInstanceNum:function(){
return MN.Flash.FSDK._nextInstanceNum++;
},findId:function(hint,_34d){
var id=null;
if(hint){
var e=document.getElementById(hint);
if(MN.Flash.FSDK.elementIsInstance(e,_34d)){
return e.id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByName(hint),_34d);
if(id){
return id;
}
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("object"),_34d);
if(id){
return id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("embed"),_34d);
if(id){
return id;
}
return "";
},findIdInCollection:function(_350,_351){
for(var i in _350){
if(_350.hasOwnProperty(i)){
var e=_350[i];
if(MN.Flash.FSDK.elementIsInstance(e,_351)){
if(!e.id){
e.id=MN.Flash.FSDK._autoIdPrefix+_351;
}
return e.id;
}
}
}
return "";
},elementIsInstance:function(_354,_355){
if(_354&&_354._mn_getFlashInstanceNum&&(_354._mn_getFlashInstanceNum()==_355)){
return true;
}
return false;
},call:function(_356,_357,_358){
var fn=eval(_356);
var args=[];
var i=null;
for(i=3;i<arguments.length;i++){
args.push(arguments[i]);
}
if(_358){
for(i in _358){
if(_358.hasOwnProperty(i)){
var _35c=_358[i];
args[_35c]=eval(args[_35c]);
}
}
}
var r=fn.apply(null,args);
if(!_357){
return r;
}else{
return "MN.Flash.FSDK._jsVars["+(MN.Flash.FSDK._jsVars.push(r)-1)+"]";
}
},evalJS:function(_35e){
return eval(_35e);
},newInstanceOf:function(Fn){
switch(arguments.length-1){
case (0):
return new Fn();
case (1):
return new Fn(arguments[1]);
case (2):
return new Fn(arguments[1],arguments[2]);
case (3):
return new Fn(arguments[1],arguments[2],arguments[3]);
case (4):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4]);
case (5):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);
case (6):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);
case (7):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);
case (8):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);
case (9):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);
case (10):
return new Fn(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);
}
},setObjectProperty:function(obj,_361,_362){
var r=(obj[_361]=_362);
return r;
},getObjectProperty:function(obj,_365){
return obj[_365];
},invokeObjectMethod:function(obj,_367){
switch(arguments.length-2){
case (0):
return obj[_367]();
case (1):
return obj[_367](arguments[2]);
case (2):
return obj[_367](arguments[2],arguments[3]);
case (3):
return obj[_367](arguments[2],arguments[3],arguments[4]);
case (4):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5]);
case (5):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);
case (6):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);
case (7):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);
case (8):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);
case (9):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);
case (10):
return obj[_367](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12]);
}
}};
MN.Flash.FlashObject=MN.Class(MN.EventSource);
_FlashObject_proto=MN.Flash.FlashObject.prototype;
_FlashObject_proto.initialize=function(_368){
MN.EventSource.prototype.initialize.apply(this);
var QI=MN.QMPInstall;
var ua=navigator.userAgent;
this.disabled="";
if(QI.osIsVista&&QI.browser=="mozilla"&&MN.$(_368.playerID).Version<"071302000000"&&_368.disableFF3Vista){
var ver=parseFloat(ua.substring(ua.indexOf("irefox/")+7));
if(ver>=3){
log("Flash overlays are currently disabled for Firefox 3 on Vista.");
this.disabled="Flash overlays are currently disabled for Firefox 3 on Vista.";
return;
}
}
this._flashObject=new MN.Flash._flashObjByOS(_368);
if(this._flashObject.disabled){
this.disabled=this._flashObject.disabled;
}
MN.Flash._flashObjects.push(this);
};
_FlashObject_proto.write=function(_36c){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
this._flashObject.write(_36c);
}
};
_FlashObject_proto.callExt=function(){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
var args=MN.ToArray(arguments);
return this._flashObject.callExt.apply(this._flashObject,args);
}
};
_FlashObject_proto.addParam=function(name,_36f){
this._flashObject.addParam(name,_36f);
};
_FlashObject_proto.addVariable=function(name,_371){
this._flashObject.addVariable(name,_371);
};
_FlashObject_proto.changeMovie=function(_372){
this._flashObject.changeMovie(_372);
};
_FlashObject_proto.close=function(){
this._flashObject.close();
};
_FlashObject_proto.setFullScreenPosition=function(_373){
this._flashObject.setFullScreenPosition(_373);
};
_FlashObject_proto.getPlayerID=function(){
return this._flashObject.getPlayerID();
};
_FlashObject_proto.show=function(){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
this._flashObject.show();
}
};
_FlashObject_proto.hide=function(){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
this._flashObject.hide();
}
};
_FlashObject_proto.useAlpha=function(_374){
this._flashObject.useAlpha(_374);
};
_FlashObject_proto=undefined;
MN.Flash._FlashObjectCommon=MN.Class();
MN.Flash._FlashObjectCommon._zOrder=0;
MN.Flash._FlashObjectCommon.prototype.initialize=function(_375){
this._params={};
this._vars={};
this._playerID=_375.playerID;
this.disabled="";
if(!this._playerID){
this.disabled=MN.Flash.ErrorTypes.MISSING_PARAMS;
return;
}
if(!MN.Flash.meetsRequirements(this._playerID)){
this.disabled=MN.Flash.ErrorTypes.SYS_NOT_SUPPORTED;
return;
}
if(!Boolean(_375.overrideRecommendations)&&!MN.Flash.meetsRecommendations(this._playerID)){
this.disabled=MN.Flash.ErrorTypes.SYS_NOT_SUPPORTED;
return;
}
this._id=_375.id;
this._bgColor=null;
this._wmode="transparent";
this.loadConfig(_375);
this._zOrder=MN.Flash._FlashObjectCommon._zOrder;
MN.Flash._FlashObjectCommon._zOrder+=1;
};
MN.Flash._FlashObjectCommon.prototype.getPlayerID=function(){
return this._playerID;
};
MN.Flash._FlashObjectCommon.prototype.findPlayerZIndex=function(){
var _376=MN.$(this._playerID);
var _377=_376;
var i=0;
do{
if(_377.style&&(_377.style.zIndex|_377.style.zIndex===0)){
var zIdx=parseInt(_377.style.zIndex,10);
return (zIdx);
}else{
_377=_377.parentNode;
}
}while(_377&&(i++<20));
return 0;
};
MN.Flash._FlashObjectCommon.prototype.loadConfig=function(_37a){
if(_37a.url&&!_37a.url.startswith("http:")&&!_37a.url.startswith("https:")){
_37a.url=MN.URL.Join(null,_37a.url);
}
if(_37a.url){
this._url=_37a.url;
}
if(_37a.width){
this._width=_37a.width;
}
if(_37a.height){
this._height=_37a.height;
}
if(_37a.flashVersion){
this._flashVersion=_37a.flashVersion;
}
if(_37a.bgColor){
this._bgColor=_37a.bgColor;
}
if(_37a.wmode){
this._wmode=_37a.wmode;
}
if(_37a.fullscreenPosition){
this._fullScreenPosition=_37a.fullscreenPosition||null;
}else{
if(_37a.fullScreenPosition){
this._fullScreenPosition=_37a.fullScreenPosition||null;
}
}
};
MN.Flash._FlashObjectCommon.prototype.write=function(_37b){
throw new Error("MN.FlashObject.write must be overridden");
};
MN.Flash._FlashObjectCommon.prototype.close=function(){
throw new Error("MN.FlashObject.close must be overridden");
};
MN.Flash._FlashObjectCommon.prototype.changeMovie=function(){
throw new Error("MN.FlashObject.changeMovie must be overridden");
};
MN.Flash._FlashObjectCommon.prototype._findMovieObj=function(){
this._movieObj=MN.$(this._id);
if(!this._movieObj){
var that=this;
setTimeout(function(){
that._findMovieObj();
},50);
return;
}
};
MN.Flash._FlashObjectCommon.prototype.callExt=function(func){
throw new Error("MN.FlashObject.callExt must be overridden");
};
MN.Flash._FlashObjectCommon.prototype.addParam=function(name,_37f){
this._params[name]=_37f;
};
MN.Flash._FlashObjectCommon.prototype.addVariable=function(name,_381){
this._vars[name]=_381;
};
MN.Flash._FlashObjectCommon.prototype.show=function(){
throw new Error("MN.FlashObject.show must be overridden");
};
MN.Flash._FlashObjectCommon.prototype.hide=function(){
throw new Error("MN.FlashObject.hide must be overridden");
};
MN.Flash._MacFlashObject=MN.Class(MN.Flash._FlashObjectCommon);
MN.Flash._MacFlashObject.prototype.initialize=function(_382){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_382);
this.parentID=null;
this.closed=true;
};
MN.Flash._MacFlashObject.prototype._addAllParams=function(swf){
for(var p in this._params){
if(this._params.hasOwnProperty(p)){
swf.addParam(p,this._params[p]);
}
}
};
MN.Flash._MacFlashObject.prototype._addAllVars=function(swf){
for(var v in this._vars){
if(this._vars.hasOwnProperty(v)){
swf.addVariable(v,this._vars[v]);
}
}
};
MN.Flash._MacFlashObject.prototype.write=function(_387){
var swf=new MN.deconcept.SWFObject(this._url,this._id,this._width,this._height,this._flashVersion,this._bgColor);
if(this._wmode){
this.addParam("wmode",this._wmode);
}
this.addParam("mmp_id",this._playerID);
this.addParam("mmp_layer",this._zOrder);
this.addParam("fullscreenPosition",this._fullScreenPosition);
this.addVariable("movieID",this._id);
this.addVariable("overlayNum",this._zOrder);
this._addAllParams(swf);
this._addAllVars(swf);
swf.write(_387);
this._findMovieObj();
this.parentID=_387;
this.closed=false;
};
MN.Flash._MacFlashObject.prototype.close=function(){
MN.$(this.parentID).innerHTML="";
this.closed=true;
};
MN.Flash._MacFlashObject.prototype.changeMovie=function(_389){
if(!this.parentID){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_389);
this.write(this.parentID);
};
MN.Flash._MacFlashObject.prototype.callExt=function(){
var a=arguments;
var m=arguments[0];
var o=this._movieObj;
var args="";
for(var i=1,len=arguments.length;i<len;i++){
args+=", a["+i+"]";
}
if(args.length){
args=args.substring(2);
}
var js="o[m]("+args+")";
var _390=eval(js);
return _390;
};
MN.Flash._MacFlashObject.prototype.setFullScreenPosition=function(_391){
var _392=MN.$(this._playerID);
this._fullScreenPosition=_391;
_392.Set("FlashFullscreenPosition",this._id+","+this._fullScreenPosition);
};
MN.Flash._MacFlashObject.prototype.show=function(){
var _393=MN.$(this._playerID);
var _394=_393.GetOverlay(this._id);
_394.show();
};
MN.Flash._MacFlashObject.prototype.hide=function(){
var _395=MN.$(this._playerID);
var _396=_395.GetOverlay(this._id);
_396.hide();
};
MN.Flash._MacFlashObject.prototype.useAlpha=function(_397){
var _398=MN.$(this._playerID);
var _399=_398.GetOverlay(this._id);
var val=true;
if(!_397){
val=false;
}
_399.transparency=val;
};
MN.Flash._WinFlashObject=MN.Class(MN.Flash._FlashObjectCommon);
MN.Flash._WinFlashObject.prototype.initialize=function(_39b){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_39b);
this.closed=true;
};
MN.Flash._WinFlashObject.prototype._setupEvalHandler=function(){
MN.Event.Observe(this._movieObj,"EvalScript_fromflashobject",OnEvalScript);
};
MN.Flash._WinFlashObject.prototype._setWMode=function(_39c){
log("Set WMode to",this._wmode);
this._movieObj.Set("Flash","WMode,"+_39c);
};
MN.Flash._WinFlashObject.prototype._startSWF=function(){
if(!this._movieObj){
var that=this;
setTimeout(function(){
that._startSWF();
},100);
return;
}
if(this._wmode){
this._setWMode(this._wmode);
}
if(this._fullScreenPosition){
this._movieObj.Set("Flash","FullScreenPosition,"+this._fullScreenPosition);
}
this.addVariable("overlayNum",this._zOrder);
this.addVariable("movieID",this._id);
var _39e=this._getVarString();
this._movieObj.Set("Flash","Variables,"+_39e);
this._movieObj.Set("Flash","Open,"+this._url);
this._setupEvalHandler();
this.closed=false;
};
MN.Flash._WinFlashObject.prototype.write=function(_39f){
var _3a0=MN.$(this._playerID).Get("PlayerID");
var _3a1={};
if(_3a0||_3a0===0){
_3a1.PlayerID=_3a0;
}
MN.QMPInstall.EmitObj(_39f,this._width,this._height,this._id,false,false,true,_3a1);
this._findMovieObj();
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.close=function(){
this._movieObj.Set("Flash","Close");
this.closed=true;
};
MN.Flash._WinFlashObject.prototype.changeMovie=function(_3a2){
if(!this._movieObj){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_3a2);
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.callExt=function(func){
var _3a4=MN.ASUtils.paramsToASXML(MN.ToArray(arguments).slice(1,arguments.length));
var cmd="Flash.ExtInt."+func+"."+_3a4;
return (this._movieObj.Get(cmd));
};
MN.Flash._WinFlashObject.prototype._getVarString=function(){
var _3a6="";
var _3a7=true;
for(var v in this._vars){
if(this._vars.hasOwnProperty(v)){
if(_3a7){
_3a6+=v+"="+this._vars[v];
_3a7=false;
}else{
_3a6+="&"+v+"="+this._vars[v];
}
}
}
return _3a6;
};
MN.Flash._WinFlashObject.prototype.setFullScreenPosition=function(_3a9){
this._fullScreenPosition=_3a9;
this._movieObj.Set("Flash","FullScreenPosition,"+this._fullScreenPosition);
};
MN.Flash._WinFlashObject.prototype.show=function(){
this._movieObj.Set("Flash","Show");
this._movieObj.style.visibility="visible";
};
MN.Flash._WinFlashObject.prototype.hide=function(){
this._movieObj.Set("Flash","Hide");
this._movieObj.style.visibility="hidden";
};
MN.Flash._WinFlashObject.prototype.useAlpha=function(_3aa){
var val="transparent";
if(!_3aa){
val="opaque";
}
this._setWMode(val);
};
MN.Flash._flashObjByOS=null;
var findOS=function(){
if(!MN.QMPInstall||!MN.QMPInstall.OS){
setTimeout(findOS,50);
return;
}
var os=MN.QMPInstall.OS();
if(os=="mac"){
MN.Flash._flashObjByOS=MN.Flash._MacFlashObject;
}else{
if(os=="win"){
MN.Flash._flashObjByOS=MN.Flash._WinFlashObject;
}
}
};
findOS();
MN.Flash._flashObjects=[];
if(!MN.QMP){
MN.QMP={};
}
MN.QMP.EventTypes={SHOW_CHANGED:"ShowChanged",PAUSED_CHANGED:"PausedChanged",NEXT_CLIP:"NextClip",NEXT_TIMELINE:"NextTimeline",BITMAP_READY:"BitmapReady",PLAY_STATE_CHANGED:"PlayStateChanged",BIT_RATE_CHANGED:"BitRateChanged",UI_STATE_CHANGED:"UIStateChanged",NOT_SUSTAINABLE:"NotSustainable",ERROR:"Error",SCRIPT:"Script",AUDIO_CONTROL:"AudioControl",SCRUB_BUMPER:"ScrubBumper",LIVE_BUMPER:"LiveBumper",TIMELINE_LOADED:"TimelineLoaded",MUTED_CHANGED:"MutedChanged",OVERLAY_MOUSE_MOVE:"OverlayMouseMove",OVERLAY_MOUSE_OVER:"OverlayMouseOver",OVERLAY_ROLL_OVER:"OverlayRollOver",OVERLAY_MOUSE_UP:"OverlayMouseUp",OVERLAY_MOUSE_DOWN:"OverlayMouseDown",OVERLAY_MOUSE_OUT:"OverlayMouseOut",OVERLAY_ROLL_OUT:"OverlayRollOut",OVERLAY_UPDATE:"OverlayUpdate",OVERLAY_IMAGE_LOADED:"OverlayImageLoaded"};
MN.QMP.PlayState={"Init":0,"Opening":1,"Buffering":2,"Loading":2,"Playing":3,"Stopped":4,"MediaEnded":5,"Error":6,"Stalled":7,"Authorizing":8,"Waiting":255};
MN.QMP.PS=MN.QMP.PlayState;
var _ps=MN.Update({},MN.QMP.PS);
for(var name in _ps){
if(_ps.hasOwnProperty(name)){
var v=_ps[name];
MN.QMP.PS[name.toUpperCase()]=v;
try{
MN.QMP.PS[v]=name;
}
catch(e){
}
}
}
_ps=undefined;
MN.QVT={useServerClock:true,clockAdjustSec:0,_helperPlayer:null,ClearHelper:function(){
if(MN.QVT._helperPlayer){
MN.Event.StopObserving(player,"AsyncTaskDone",MN.QVT._OnAsyncTaskDone);
MN.QVT._helperPlayer=null;
}
},_DeputizePlayer:function(_3ad){
var _3ae=MN.$(_3ad);
MN.QVT._helperPlayer=_3ae;
MN.Event.Observe(_3ae,"AsyncTaskDone",MN.QVT._OnAsyncTaskDone);
},CreatePlayer:function(_3af,_3b0,w,h,_3b3){
if(!_3b3){
_3b3=MN.QMPInstall.MakePlayerID(_3af);
}
var _3b4=function(_3b5){
if(_3b5){
MN.QVT._DeputizePlayer(_3b3);
return _3b0(new MN.QVT.PlayerWrapper(MN.$(_3b3),MN.$(_3af)));
}else{
return _3b0(null);
}
};
MN.QMPInstall.CreatePlayer(_3af,_3b4,w,h,_3b3);
},EmitObj:function(_3b6,w,h,_3b9){
_3b9=MN.QMPInstall.EmitObj(_3b6,w,h,_3b9);
MN.QVT._DeputizePlayer(_3b9);
return new MN.QVT.PlayerWrapper(MN.$(_3b9));
},_taskID:0,_tasks:{},_StartTask:function(_3ba,url,_3bc){
var _3bd=MN.QVT._taskID+1;
MN.QVT._taskID=_3bd;
MN.QVT._tasks["w"+_3bd]={"cb":_3bc,"url":url};
var _3be=MN.QVT._helperPlayer;
if(!_3be){
logError("No helper player exists!");
MN.QVT._OnAsyncTaskDone(_3bd,"","");
}else{
_3be[_3ba](_3bd,url);
}
},_qvtCache:{},AcquireQVT:function(raw){
var ret=MN.QVT._qvtCache[raw];
if(!ret){
ret=new MN.QVT.QVT(raw);
MN.QVT._qvtCache[raw]=ret;
ret._qvtlibCacheKey=raw;
ret._qvtlibCacheRefs=0;
}else{
ret.StartReloadTimer();
}
ret.IncRef();
return ret;
},IncRefQVT:function(qvt){
if(qvt){
if(typeof (qvt._qvtlibCacheRefs)!="number"){
qvt._qvtlibCacheRefs=0;
}
qvt._qvtlibCacheRefs+=1;
}
return qvt;
},ReleaseQVT:function(qvt){
if(qvt){
if(typeof (qvt._qvtlibCacheRefs)!="number"){
qvt._qvtlibCacheRefs=0;
}
qvt._qvtlibCacheRefs-=1;
if(qvt._qvtlibCacheRefs<=0){
qvt.allowReloads=false;
if(MN.QVT._qvtCache[qvt._qvtlibCacheKey]){
delete MN.QVT._qvtCache[qvt._qvtlibCacheKey];
}
}
}
return qvt;
},LoadQVT:function(url,_3c4){
log("STARTING LOAD OF",url);
MN.QVT._StartTask("AsyncLoadJSON",url,_3c4);
},LoadQMX:function(url,_3c6){
MN.QVT._StartTask("AsyncLoadQMX",url,_3c6);
},_OnAsyncTaskDone:function(_3c7,_3c8,_3c9){
_3c7="w"+_3c7;
var task=MN.QVT._tasks[_3c7];
if(task){
delete MN.QVT._tasks[_3c7];
setTimeout(function(){
task.cb(task.url,_3c8,_3c9);
},10);
}
},ParseTimestamp:function(s){
var d={};
if(!s){
return d;
}
var _3cd=s.split(",");
for(var i=0,pl=_3cd.length;i<pl;i++){
var part=_3cd[i].strip();
if(part=="gmt"||part=="utc"){
d.type="utc";
}else{
if(part=="day"){
d.type="day";
}else{
if(part=="anchor"){
d.anchor=true;
}else{
if(part=="wrap"){
d.wrap=true;
}else{
var _3d0=parseFloat(part);
if(!isNaN(_3d0)){
d.offset=_3d0;
}else{
log("ParseTimestamp failed to use",part);
}
}
}
}
}
}
if(d.wrap&&!d.anchor){
d.wrap=false;
log("Ignoring timestamp wrap flag because not anchored");
}
return d;
},getDSXDateTime:function(){
if(MN.QVT._helperPlayer){
return MN.QVT._helperPlayer.Get("DSXDateTime");
}
return "";
},_QMXCache:{},MAX_SHOW_RATING:100,MIN_SHOW_RATING:0,Error:function(msg){
this.msg=this.message=msg;
}};
if(!MN.QVT.CustomStatsTypes){
MN.QVT.CustomStatsTypes={CLIP_RANGE_START:"mv_crs",CLIP_RANGE_END:"mv_cre",TIMELINE_URL:"mv_murl",TIMELINE_SEEK_POS:"mv_tls",TIMELINE_TYPE:"mv_mtp",TIMELINE_ID:"mv_mid",MEDIA_DATE:"mv_date",SDK_VERSION:"mv_sdkv",SEGMENT_TYPE:"mv_stp",SEGMENT_ID:"mv_sid",SEGMENT_PUB_ID:"mv_spid",SEGMENT_SEQ:"mv_sseq",CONTAINER_ID:"mv_cid",CONTAINER_PUB_ID:"mv_cpid",ASSET_ID:"mv_aid",ASSET_PUB_ID:"mv_apid"};
}
if(!MN.QVT.TimelineTypes){
MN.QVT.TimelineTypes={BROADCAST_FEED:"bf",WEB_FEED:"wf",VOD_CATEGORY:"vc",VOD_CLIP:"vp",DIRECT_QMX:"dq"};
}
if(!MN.QVT.SegmentTypes){
MN.QVT.SegmentTypes={CONTENT:"ct",UNKNOWN:"un"};
}
MN.QVT.Streamlet={timeToStreamletNum:function(time){
var _3d3=-1;
if(time>=0){
_3d3=Math.floor((time/2)+1);
}
return _3d3;
},streamletNumToAtmHex:function(_3d4){
return MN.PadDigits(_3d4.toString(16),8,0).toUpperCase();
}};
MN.QVT.QVT=MN.Class(MN.EventSource);
var _qp=MN.QVT.QVT.prototype;
_qp.initialize=function(raw,_3d6){
MN.EventSource.prototype.initialize.apply(this);
this.playState=MN.QMP.PS.INIT;
this.meta={};
this.initRaw=raw;
this.loadedRaw="";
this.metadataLoaded=false;
this.initialLoadDone=false;
this.haveTimestamp=false;
this.timestampObj={};
this.willLoadQMX=false;
this.loading=false;
this.qvtURL=null;
this.baseURL=null;
this.valid=false;
this.duration=0;
this.anchored=false;
this.startTimestamp=0;
this.httpRespHeaders={};
this.useServerClock=MN.QVT.useServerClock;
this.shows=[];
this.haveAnyLive=false;
this.allowReloads=true;
this.shouldCheckClip=false;
this._timelineType=null;
this._timelineID=null;
this._timelineDate=null;
this.ForceReload(false);
this.parentNode=_3d6;
this._reloadId=-1;
};
_qp.GetSource=function(){
return this.initRaw;
};
_qp.IncRef=function(){
return MN.QVT.IncRefQVT(this);
};
_qp.DecRef=function(){
return MN.QVT.ReleaseQVT(this);
};
_qp.IsValid=function(){
return this.valid;
};
_qp.StartTimestamp=function(){
return this.startTimestamp;
};
_qp.ForceReload=function(_3d7){
log("ForceReload started");
if(this.loading){
return;
}
this.loading=true;
if(typeof _3d7!="boolean"){
_3d7=true;
}
this.shouldCheckClip=_3d7;
var _3d8=this.PrimaryURL();
if(!_3d8){
_3d8=this.initRaw;
}
this.pinCache=false;
if(_3d8 instanceof Object){
_3d8.reload=0;
this._ReadQVT(_3d8);
}else{
_3d8=_3d8.strip();
var _3d9=_3d8.toLowerCase();
if(_3d9.startswith("http://")||_3d9.startswith("qsp://")){
var _3da=_3d9;
var _3db=_3da.indexOf("?");
if(_3db!=-1){
_3da=_3da.substr(0,_3db);
}
this.baseURL=MN.URL.Base(_3d9);
if(_3da.endswith(".qmx")){
this._timelineType=MN.QVT.TimelineTypes.DIRECT_QMX;
_3d8="{'clips':[{'url':'"+_3d8+"'}]}";
this._ReadQVT(_3d8);
}else{
this.pinCache=true;
this.qvtURL=_3d9;
var _3dc=this._ReadQVT;
MN.QVT.LoadQVT(_3d8,function(url,_3de,_3df){
_3dc(_3de,_3df);
});
}
}else{
if(!_3d9.startswith("{")||!_3d9.endswith("}")){
throw new MN.QVT.Error("Unrecognized QVT format");
}else{
this._ReadQVT(_3d8);
}
}
}
};
_qp._ReadQVT=function(raw,_3e1){
log("READ QVT");
this.loadedRaw=raw;
if(!raw){
this.valid=false;
this.loading=false;
logError("_ReadQVT failed to load");
this.PostEvent("TimelineLoaded",this);
this.StartReloadTimer();
return;
}
var obj=null;
if(raw instanceof Object){
obj=raw;
}else{
obj=MN.EvalJSON(raw);
}
var meta=MN.Update({},obj);
var _3e4=[];
var i=null;
var mcl=null;
this._calcClockAdjust(_3e1);
var clip=null;
if(meta.clips){
for(i=0,mcl=meta.clips.length;i<mcl;i++){
clip=meta.clips[i];
clip.isGap=!clip.url;
clip.duration=null;
clip.durationGrowing=false;
clip.rangeStart=0;
clip.rangeEnd=null;
clip.tlStartTime=null;
clip.tlStopTime=null;
clip.timesReady=false;
if(clip.range){
var _3e8=clip.range.split(",");
if(_3e8.length==2){
clip.rangeStart=parseFloat(_3e8[0])||0;
if(parseFloat(_3e8[1])==-1){
clip.rangeEnd=null;
}else{
clip.rangeEnd=parseFloat(_3e8[1])||null;
}
}
}
if(!clip.url&&clip.rangeEnd===null){
continue;
}
_3e4.push(clip);
}
}
meta.clips=_3e4;
this.meta=meta;
this.metadataLoaded=false;
var _3e9=meta.metadata;
if(_3e9){
_3e9=this._ExpandURL(_3e9);
var _3ea=this._ApplyExternalMetadata;
log("starting external metadata load of",_3e9);
MN.QVT.LoadQVT(_3e9,function(url,_3ec,_3ed){
var obj=MN.EvalJSON(_3ec);
_3ea(obj);
});
}else{
this.metadataLoaded=true;
}
this.haveTimestamp=false;
this.timestampObj={"empty":true};
this._RecalcClipTimes();
this.willLoadQMX=false;
for(i=0,mcl=meta.clips.length;i<mcl;i++){
clip=meta.clips[i];
var _3ef=(typeof (MN.QVT._QMXCache[clip.url])!="undefined");
if(!clip.timesReady&&!_3ef){
this.willLoadQMX=true;
var _3f0=this._RecalcClipTimes;
log("starting check for",clip.url);
MN.QVT.LoadQMX(clip.url,function(url,_3f2,_3f3){
var obj=MN.EvalJSON(_3f2);
MN.QVT._QMXCache[url]=obj;
_3f0();
});
}
}
};
_qp.timelineType=function(){
var _3f5=MN.QVT.TimelineTypes;
if(!this._timelineType){
var _3f6=this.meta.title;
if(_3f6&&_3f6.startswith("WFCh")){
this._timelineType=_3f5.WEB_FEED;
}else{
if(_3f6&&_3f6.startswith("Source")){
this._timelineType=_3f5.BROADCAST_FEED;
}else{
if("external_id" in this.meta){
this._timelineType=_3f5.VOD_CLIP;
}else{
this._timelineType=_3f5.VOD_CATEGORY;
}
}
}
}
if(!this._timelineType){
this._timelineType="";
}
return this._timelineType;
};
_qp.timelineID=function(){
var _3f7=MN.QVT.TimelineTypes;
if(!this._timelineID){
switch(this.timelineType()){
case _3f7.BROADCAST_FEED:
this._timelineID=this.meta.title.replace(/Source (\d+) timeline.*/,"$1");
break;
case _3f7.WEB_FEED:
this._timelineID=this.meta.title.replace(/WFCh (\d+)_.*/,"$1");
break;
case _3f7.VOD_CLIP:
this._timelineID=this.meta.id;
break;
case _3f7.VOD_CATEGORY:
this._timelineID=this.meta.id;
break;
default:
break;
}
if(!this._timelineID){
this._timelineID="";
}
}
return this._timelineID;
};
_qp.timelineDate=function(){
var _3f8=this.timelineType();
var _3f9=MN.QVT.TimelineTypes;
if(_3f8==_3f9.BROADCAST_FEED&&!this._timelineDate){
var _3fa=this.meta.title;
var year=_3fa.replace(/Source \w+ timeline (\w+),.*/,"$1");
var _3fc=MN.PadDigits(_3fa.replace(/Source \w+ timeline \w+,(\w+),.*/,"$1"),2);
var day=MN.PadDigits(_3fa.replace(/Source \w+ timeline \w+,\w+,(\w+).*/,"$1"),2);
this._timelineDate="%s%s%s".format(year,_3fc,day);
}else{
if(_3f8==_3f9.WEB_FEED&&!this._timelineDate){
this._timelineDate=this.meta.title.replace(/WFCh \w+_(\w+)/,"20$1");
}
}
if(!this._timelineDate){
this._timelineDate="";
}
return this._timelineDate;
};
_qp._parseDsxDateTime=function(_3fe){
if(typeof (_3fe)!=typeof ("")){
return null;
}
if(_3fe==""){
return null;
}
var _3ff=_3fe.split("/");
var _400=_3ff[0];
var _401=parseInt(_3ff[1],10);
var _402=new Date();
var _403=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/;
if(_400.toString().match(new RegExp(_403))){
var d=_400.match(new RegExp(_403));
var _405=0;
_402.setUTCDate(1);
_402.setUTCFullYear(parseInt(d[1],10));
_402.setUTCMonth(parseInt(d[3],10)-1);
_402.setUTCDate(parseInt(d[5],10));
_402.setUTCHours(parseInt(d[7],10));
_402.setUTCMinutes(parseInt(d[9],10));
_402.setUTCSeconds(parseInt(d[11],10));
var ms=_401;
if(d[12]){
ms+=parseFloat(d[12])*1000;
}
_402.setUTCMilliseconds(ms);
if(d[13]!="Z"){
_405=(d[15]*60)+parseInt(d[17],10);
_405*=((d[14]=="-")?-1:1);
_402.setTime(_402.getTime()-_405*60*1000);
}
}else{
_402.setTime(Date.parse(_400));
}
return _402;
};
_qp._parseRespHeaders=function(_407){
var _408={};
for(var i=0,rl=_407.length;i<rl;i++){
var h=_407[i];
var x=h.indexOf(":");
if(x!=-1){
_408[h.substr(0,x).toLowerCase()]=h.substr(x+1).strip();
}
}
return _408;
},_qp._calcClockAdjust=function(_40c){
var _40d=MN.QVT.getDSXDateTime();
var _40e=null;
if(_40d!==""){
_40e=this._parseDsxDateTime(_40d);
}
if((_40c||_40e)&&this.useServerClock){
var _40f=(new Date()).getTime();
_40c=_40c.split("\n");
this.httpRespHeaders=this._parseRespHeaders(_40c);
if(_40e){
MN.QVT.clockAdjustSec=(_40e.getTime()-_40f)/1000;
log("clock adjust from dsx server",MN.QVT.clockAdjustSec);
}else{
if(this.httpRespHeaders.date){
var _410=(new Date(this.httpRespHeaders.date)).getTime();
if(isFinite(_410)){
MN.QVT.clockAdjustSec=(_410-_40f)/1000;
}
log("clock adjust from http headers",MN.QVT.clockAdjustSec);
}
}
}
};
_qp._ApplyExternalMetadata=function(meta){
if(!meta){
logError("Failed to load external metadata");
}else{
log("Applying external metadata");
for(var prop in meta){
if(meta.hasOwnProperty(prop)){
if(prop=="clips"){
for(var i=0,mcl=meta.clips.length;i<mcl;i++){
var _414=meta.clips[i];
var _415=this.meta.clips[i];
for(var _416 in _414){
if(_414.hasOwnProperty(_416)){
if(_416!="url"&&_416!="range"){
_415[_416]=_414[_416];
}
}
}
}
}else{
this.meta[prop]=meta[prop];
}
}
}
}
this.metadataLoaded=true;
this._RecalcClipTimes();
};
_qp._RecalcClipTimes=function(){
var ts=null;
if(this.metadataLoaded&&this.timestampObj.empty){
this.timestampObj=MN.QVT.ParseTimestamp(this.meta.timestamp);
ts=this.timestampObj;
if(ts.type=="day"||(ts.type=="utc"&&ts.offset)){
this.haveTimestamp=true;
}
}
var _418=this.meta.clips;
var _419=[];
var _41a=true;
var _41b=0;
var i=null;
var clip=null;
var show=null;
var _41f;
var cl=null;
for(i=0,cl=_418.length;i<cl;i++){
_41f=[];
clip=_418[i];
if(clip.timestamp){
this.haveTimestamp=true;
}
var _421=MN.QVT._QMXCache[clip.url];
if(_421){
clip._qmxTimestamp=(_421.startTimestamp||0)+clip.rangeStart;
this.haveTimestamp=true;
}
if(clip.rangeEnd===null){
if(_421){
if(_421.duration){
clip.rangeEnd=_421.duration;
}else{
_419.push(i);
continue;
}
if(_421.live){
clip.duration=MN.Round(clip.rangeEnd-clip.rangeStart,3);
clip.rangeEnd=null;
clip.live=true;
this.haveAnyLive=true;
clip.durationGrowing=true;
delete MN.QVT._QMXCache[clip.url];
if(!clip.timestamp){
clip.timestamp=clip._qmxTimestamp;
}
}
}
}
if(typeof (clip.rangeStart)=="number"&&(clip.live||clip.rangeEnd!==null)){
if(clip.rangeEnd){
clip.duration=MN.Round(clip.rangeEnd-clip.rangeStart,3);
}
clip.timesReady=true;
if(_41a&&this.metadataLoaded){
clip.tlStartTime=_41b;
clip.tlStopTime=MN.Round(_41b+clip.duration,3);
_41b=clip.tlStopTime;
if(!clip.shows){
clip.shows=[MN.Update({},clip)];
}else{
var _422=clip.tlStartTime;
for(var j=0,csl=clip.shows.length;j<csl;j++){
show=clip.shows[j];
if(j===0){
show.tlStartTime=clip.tlStartTime;
}else{
show.tlStartTime=MN.Round(clip.tlStartTime+(show.start||0),3);
}
if(show.tlStartTime>=clip.tlStopTime){
show.tlStartTime=MN.Round(clip.tlStopTime-1,3);
}
show.tlStopTime=clip.tlStopTime;
show.duration=MN.Round(show.tlStopTime-show.tlStartTime,3);
if(j>0){
var _424=_41f[j-1];
_424.tlStopTime=show.tlStartTime;
_424.duration=MN.Round(_424.tlStopTime-_424.tlStartTime,3);
}
_41f.push(show);
}
clip.shows=_41f;
}
}
}else{
_41a=false;
}
}
if(_419.length>0){
_419.reverse();
var bcl=_419.length;
for(i=0;i<bcl;i++){
_418.splice(_419[i],1);
}
}
if(_41a&&this.metadataLoaded&&!this.haveTimestamp&&!this.willLoadQMX){
var meta=this.meta;
for(i=meta.clips.length-1;i>=0;i--){
clip=meta.clips[i];
if(!clip.url){
continue;
}
var _427=(typeof (MN.QVT._QMXCache[clip.url])!="undefined");
if(!_427){
this.willLoadQMX=true;
var _428=this._RecalcClipTimes;
log("starting timestamp check for",clip.url);
MN.QVT.LoadQMX(clip.url,function(url,_42a,_42b){
var obj=MN.EvalJSON(_42a);
MN.QVT._QMXCache[url]=obj;
_428();
});
break;
}
}
if(!this.willLoadQMX){
this.haveTimestamp=true;
}
}
this.duration=_41b;
if(_41a&&this.metadataLoaded&&this.haveTimestamp){
var _42d=-1;
var _42e=-1;
for(i=0;i<this.meta.clips.length;i++){
clip=this.meta.clips[i];
if(clip.timestamp){
_42d=i;
}
if(clip._qmxTimestamp){
_42e=i;
}
}
var _42f=false;
if(_42d==-1){
_42d=_42e;
_42f=true;
}
this.startTimestamp=0;
if(_42d!=-1){
clip=this.meta.clips[_42d];
this.startTimestamp=_42f?clip._qmxTimestamp:clip.timestamp;
for(i=0;i<_42d;i++){
clip=this.meta.clips[i];
this.startTimestamp=MN.Round(this.startTimestamp-clip.duration,3);
clip.live=false;
}
}
if(this.meta.timestamp){
ts=this.timestampObj;
if(ts.type=="utc"&&ts.offset!==null){
this.startTimestamp=ts.offset;
}
if(ts.type=="day"){
var _430=new Date();
_430.setHours(0,0,0,0);
this.startTimestamp=MN.Round(_430.getTime()/1000,3);
if(ts.offset){
this.startTimestamp=MN.Round(this.startTimestamp+ts.offset,3);
}
}
this.anchored=ts.anchor;
if(this.anchored&&ts.wrap){
var _431=this.GetTimelineNow();
this.startTimestamp+=(this.duration*Math.floor(_431/this.duration));
}
}
log("TL TIMESTAMP",this.startTimestamp);
_41f=[];
for(i=0;i<this.meta.clips.length;i++){
_41f=_41f.concat(this.meta.clips[i].shows);
}
if(this.meta.shows){
_41f=[];
for(i=0;i<this.meta.shows.length;i++){
show=this.meta.shows[i];
show.tlStartTime=parseFloat(show.start)||0;
if(i===0){
show.tlStartTime=0;
}
show.tlStopTime=this.duration;
if(i>0){
_41f[i-1].tlStopTime=show.tlStartTime;
}
_41f.push(show);
}
for(i=0;i<_41f.length;i++){
show=_41f[i];
show.duration=MN.Round(show.tlStopTime-show.tlStartTime,3);
}
}
if(_41f.length>0&&this.meta.showsTimestamp){
var _432=MN.QVT.ParseTimestamp(this.meta.showsTimestamp);
if(_432.type!="utc"){
log("showsTimestamp has an invalid type, ignoring",_432.type);
_432.offset=0;
}
var _433=MN.Round(_432.offset-this.startTimestamp,3);
log("Will adjust timeline by",_433);
_41f[0].start=_41f[0].start||0;
for(i=0;i<_41f.length;i++){
show=_41f[i];
show.start=MN.Round(show.start+_433,3);
show.tlStartTime=MN.Round(show.tlStartTime+_433,3);
show.tlStopTime=MN.Round(show.tlStopTime+_433,3);
}
while(_41f.length>0&&_41f[0].tlStopTime<=0){
_41f.shift();
}
if(_41f.length>0){
show=_41f[0];
if(show.start<=0){
show.start=0;
show.tlStartTime=0;
show.duration=show.tlStopTime;
}else{
var _434={};
_434.start=0;
_434.tlStartTime=0;
_434.title="";
_434.duration=show.tlStartTime;
_434.tlStopTime=show.tlStartTime;
_434._filler=true;
_41f.unshift(_434);
}
}
}
for(i=0;i<_41f.length;i++){
var s=_41f[i];
if(s.tlStartTime<=this.duration&&s.tlStopTime>this.duration){
s.tlStopTime=this.duration;
s.duration=MN.Round(s.tlStopTime-s.tlStartTime,3);
_41f=_41f.slice(0,i+1);
break;
}
}
this.shows=_41f;
if(!this.initialLoadDone&&this.pinCache){
this.IncRef();
}
this.initialLoadDone=true;
this.loading=false;
this.valid=this.meta.clips.length>0;
this.PostEvent("TimelineLoaded",this);
this.StartReloadTimer();
log("RELOADED showcount=%s, dur=%s".format(this.shows.length,this.Duration()));
}
};
_qp.StartReloadTimer=function(){
if(this.IsOpenEnded()){
log("Starting QVT reload timer for "+this.meta.reload+" seconds.");
var _436=this.ForceReload;
this._reloadId=setTimeout(function(){
_436();
},this.meta.reload*1000);
}
};
_qp.StopReloadTimer=function(){
clearTimeout(this._reloadId);
this._reloadId=-1;
};
_qp.IsAnchored=function(){
return this.anchored;
};
_qp.IsOpenEnded=function(){
retval=false;
if(this.allowReloads&&this.meta.reload){
retval=this.meta.reload>0;
}
return retval;
};
_qp.IsLoading=function(){
return this.loading;
};
_qp.HaveAnyLive=function(){
return this.haveAnyLive;
};
_qp.InitialLoadDone=function(){
return this.initialLoadDone;
};
_qp.GetTimelineNow=function(){
if(!this.anchored){
return 0;
}
var _437=Math.round((MN.QVT.clockAdjustSec+(new Date()).getTime()/1000-this.startTimestamp)*10000);
_437=_437/10000;
return _437;
};
_qp._ExpandURL=function(url){
if(!url){
return url;
}
return MN.URL.Join(this.baseURL,url);
};
_qp.Metadata=function(name,i){
var ret="";
if(typeof (i)=="number"){
if(i>=0&&i<this.shows.length){
ret=this.shows[i][name];
}
}else{
ret=this.meta[name];
}
return ret;
};
_qp.Title=function(){
var _43c=MN.ToArray(arguments);
_43c.unshift("title");
return this.Metadata.apply(this,_43c);
};
_qp.PrimaryURL=function(){
var url=this.Metadata("primaryQVTURL")||this.qvtURL;
if(typeof url=="string"&&!url.startswith("http://")){
url=this._ExpandURL(url);
}
return url;
};
_qp.Timezone=function(){
return this.Metadata("timezone");
};
_qp.PosToDatetime=function(pos){
var _43f=(this.Timezone()||0)*3600;
var d=new Date(1000*(pos+this.StartTimestamp()+_43f));
return {year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),dow:d.getUTCDay()};
};
_qp.StartDatetime=function(){
return this.PosToDatetime(0);
};
_qp.UpdateDuration=function(_441,_442){
var _443=this.meta.clips[_441].duration;
_442=MN.Round(_442-this.meta.clips[_441].rangeStart,3);
this.meta.clips[_441].duration=_442;
this.duration=this.duration-_443+_442;
};
_qp.IsGap=function(i){
if(typeof (i)!="number"){
return null;
}
return this.meta.clips[i].isGap?true:false;
};
_qp.Duration=function(i){
if(typeof (i)!="number"){
if(this.anchored){
var _446=this.GetTimelineNow();
return Math.min(_446,this.duration);
}else{
return this.duration;
}
}
return this.Metadata("duration",i);
};
_qp.StartTime=function(i){
return this.Metadata("tlStartTime",i);
};
_qp.StopTime=function(i){
return this.Metadata("tlStopTime",i);
};
_qp.NextURL=function(){
return this._ExpandURL(this.Metadata("next"));
};
_qp.PrevURL=function(){
return this._ExpandURL(this.Metadata("prev"));
};
_qp.GetSummary=function(){
var o={"duration":this.Duration(),"shows":[],"live":this.HaveAnyLive()};
if(!this.IsValid()){
return o;
}
for(var i=0;i<this.shows.length;i++){
var show=this.shows[i];
var c={"startTime":this.StartTime(i),"stopTime":this.StopTime(i),"duration":this.Duration(i),"title":this.Title(i),"showNum":i,"isGap":this.IsGap(i)};
o.shows.push(c);
}
return o;
};
_qp.ShowCount=function(){
if(!this.IsValid()){
return 0;
}
return this.shows.length;
};
_qp.ClipCount=function(){
if(!this.IsValid()){
return 0;
}
return this.meta.clips.length;
};
_qp.ClipToTimeline=function(_44d,_44e){
if(!this.IsValid()){
return 0;
}
if(_44d>=this.meta.clips.length){
return this.duration;
}
if(_44d<0){
return 0;
}
var clip=this.meta.clips[_44d];
var _450=MN.Round(_44e-clip.rangeStart,3);
if(_450<0){
_450=0;
}
return MN.Round(clip.tlStartTime+_450,3);
};
_qp._MakePosObj=function(url,_452,_453,_454,_455){
if(_454===undefined){
_454=0;
}
if(_455===undefined){
_455=this.PrimaryURL();
}
return {"url":url,"clipNum":_452,"startPos":_453,"stopPos":_454,"qvtURL":_455};
};
_qp.GetClipAsPosObj=function(_456){
var c=this.meta.clips[_456];
return this._MakePosObj(c.url,_456,c.rangeStart,c.rangeEnd);
};
_qp.GetClip=function(_458){
if(_458<0||!this.meta.clips||_458>=this.meta.clips.length){
return null;
}
return this.meta.clips[_458];
};
_qp.TimelineToShow=function(pos){
if(!this.IsValid()){
return -1;
}
if(typeof (pos)=="string"){
pos=parseFloat(pos);
}else{
if(typeof (pos)!="number"){
return -1;
}
}
pos=Math.round(pos*10000)/10000;
if(pos>=this.duration){
return this.shows.length-1;
}
for(var i=0;i<this.shows.length;i++){
var show=this.shows[i];
if(show.tlStartTime<=pos&&pos<show.tlStopTime){
return i;
}
}
return -1;
};
_qp.TimelineToClip=function(pos){
if(!this.IsValid()){
return 0;
}
if(typeof (pos)=="string"){
pos=parseFloat(pos);
}else{
if(typeof (pos)!="number"){
return null;
}
}
pos=MN.ConvertFromTimestamp(pos);
var _45d=-1;
var _45e=0;
var _45f=0;
var _460=this.GetTimelineNow();
var i=null;
var clip=null;
if(pos==-1&&this.anchored){
pos=_460;
}
if(pos==-1){
if(this.haveAnyLive){
for(i=0;i<this.meta.clips.length;i++){
clip=this.meta.clips[i];
if(clip.live){
return this._MakePosObj(clip.url,i,-1,clip.rangeEnd);
}
}
}
pos=0;
}
if(this.anchored){
pos=Math.min(pos,_460);
}
pos=Math.round(pos*10000)/10000;
if(pos>=this.duration){
_45f=this.meta.clips.length-1;
_45d=this.meta.clips[_45f].rangeEnd;
if(typeof (_45d)!="number"){
_45e=-1;
_45d=0;
}else{
log("Requested pos %s beyond timeline (%s), seeking to end".format(pos,this.duration));
_45e=_45d-0.5;
}
}else{
for(i=0;i<this.meta.clips.length;i++){
clip=this.meta.clips[i];
if(clip.tlStartTime<=pos&&pos<MN.Round(clip.tlStartTime+clip.duration,3)){
_45f=i;
_45e=MN.Round(pos-clip.tlStartTime+clip.rangeStart,3);
_45d=clip.rangeEnd;
break;
}
}
}
var url=this.meta.clips[_45f].url;
var ret=this._MakePosObj(url,_45f,_45e,_45d);
return ret;
};
_qp._checkShowRating=function(_465){
if(_465<MN.QVT.MIN_SHOW_RATING){
throw new RangeError("Provided rating "+_465+" below MIN_SHOW_RATING");
}
if(_465>MN.QVT.MAX_SHOW_RATING){
throw new RangeError("Provided rating "+_465+" beyond MAX_SHOW_RATING");
}
};
_qp._checkShowIndex=function(_466){
if(!(this.meta.shows)){
throw new RangeError("Required show data not found for show rating");
}
if(_466<0||_466>this.meta.shows.length-1){
throw new RangeError("Provided showIndex is not within the range of shows");
}
};
MN.QVT.QVT._assetRatingURLTemplate="http://moveservices.appspot.com/viewstats/rate.gif?pubID=%pub_id%&assetID=%asset_id%&value=%rating%";
_qp.rateShow=function(_467,_468,_469){
this._checkShowIndex(_468);
this._checkShowRating(_467);
var _46a=this.meta.shows[_468].asset_id;
if(!_46a){
throw new MN.Exceptions.ReportingError("Could not determine asset ID for rating report");
}
var _46b=this.meta.shows[_468].publisher_id;
log("pubID = "+_46b);
if(!_46b){
throw new MN.Exceptions.ReportingError("Could not determine publisher ID for rating report");
}
MN.QVT.QVT.registerAssetRating(_467,_46a,_46b,_469);
};
MN.QVT.QVT.registerAssetRating=function(_46c,_46d,_46e,_46f){
var _470=MN.QVT.QVT.getAssetRatingURLTemplate().replace("%rating%",_46c).replace("%asset_id%",_46d).replace("%pub_id%",_46e);
_470=MN.URL.AddParams(_470,_46f);
log("Asset rating URL: "+_470);
MN.URL.track(_470);
};
MN.QVT.QVT.getAssetRatingURLTemplate=function(){
return MN.QVT.QVT._assetRatingURLTemplate;
};
MN.QVT.QVT.setAssetRatingURLTemplate=function(_471){
MN.QVT.QVT._assetRatingURLTemplate=_471;
};
_qp.getThumbURL=function(time,size,step,_475){
var _476=_475?_475:"thumbs/";
var step=step?step:2;
if(_476.charAt(_476.length-1)!="/"){
_476+="/";
}
var _477=this.TimelineToClip(time);
if(this.IsGap(_477.clipNum)){
return "";
}
var base=MN.URL.Join(MN.URL.Base(_477.url),_476);
var _479=MN.QVT.Streamlet.timeToStreamletNum(_477.startPos);
var _47a=step/2;
var _479=Math.floor((_479-1)/_47a)*_47a+1;
var _47b=MN.QVT.Streamlet.streamletNumToAtmHex(_479)+".jpg";
return MN.URL.Join(base,_47b);
};
_qp=undefined;
if(!MN.QMP.Overlays){
MN.QMP.Overlays={};
}
MN.QMP.Overlays.OverlayManager=MN.Class(MN.EventSource);
_om=MN.QMP.Overlays.OverlayManager.prototype;
_om.initialize=function(pwp){
MN.EventSource.prototype.initialize.apply(this);
this._pwp=pwp;
this._overlays={};
this.stage=this.createOverlay("");
this.addOverlay("stage",this.stage);
this.substage=this.createOverlay("");
this.addOverlay("substage",this.substage);
this.videostage=this.createOverlay("");
this.substage.addOverlay("videostage",this.videostage);
MN.Event.Observe(this.substage,"update",this._UpdateVideoStage);
MN.Event.Observe(this._pwp,"PlayStateChanged",this._UpdateVideoStage);
var _47d=MN.QMP.EventTypes;
MN.Event.Observe(this._pwp,_47d.OVERLAY_MOUSE_MOVE,this._OverlayMouseMove);
MN.Event.Observe(this._pwp,_47d.OVERLAY_MOUSE_OVER,this._OverlayMouseOver);
MN.Event.Observe(this._pwp,_47d.OVERLAY_MOUSE_OUT,this._OverlayMouseOut);
MN.Event.Observe(this._pwp,_47d.OVERLAY_ROLL_OVER,this._OverlayRollOver);
MN.Event.Observe(this._pwp,_47d.OVERLAY_ROLL_OUT,this._OverlayRollOut);
MN.Event.Observe(this._pwp,_47d.OVERLAY_MOUSE_UP,this._OverlayMouseUp);
MN.Event.Observe(this._pwp,_47d.OVERLAY_MOUSE_DOWN,this._OverlayMouseDown);
MN.Event.Observe(this._pwp,_47d.OVERLAY_UPDATE,this._OverlayUpdate);
MN.Event.Observe(this._pwp,_47d.OVERLAY_IMAGE_LOADED,this._OverlayImageLoaded);
var _47e="";
};
_om.createOverlay=function(type,_480){
if(typeof (MN.QMP.Overlays[type+"MoveOverlay"])!=="undefined"){
return new MN.QMP.Overlays[type+"MoveOverlay"](this._pwp,this,_480);
}else{
return null;
}
};
_om.addOverlay=function(name,_482){
if(this._overlays[name]||name.length===0||typeof (_482)!="object"||typeof (_482._name)!="string"||_482._name.length!==0){
return null;
}
if(name=="substage"||name=="stage"){
this._overlays[name]=_482;
_482._name=name;
return _482;
}
return _482._createClientOverlay(name);
};
_om.getOverlay=function(name){
return this._overlays[name];
};
_om._OverlayMouseMove=function(j,k,x,y,_488,_489){
if(this._overlays[_488]){
this._overlays[_488]._mouseMove(j,k,x,y,_489);
}
};
_om._OverlayMouseOver=function(j,k,x,y,_48e,_48f){
if(this._overlays[_48e]){
this._overlays[_48e]._mouseOver(j,k,x,y,_48f);
}
};
_om._OverlayRollOver=function(j,k,x,y,_494){
if(this._overlays[_494]){
this._overlays[_494]._rollOver(j,k,x,y);
}
};
_om._OverlayMouseUp=function(j,k,x,y,_499,_49a){
if(_49a==_499){
if(this._mouseDownTarget==_499){
this._FireBubbleClick(j,k,x,y,_499);
}else{
this._mouseDownTarget="";
}
}
if(this._overlays[_499]){
this._overlays[_499]._mouseUp(j,k,x,y,_49a);
}
};
_om._FireBubbleClick=function(j,k,x,y,_49f){
var _4a0=_49f;
do{
if(this._overlays[_4a0]){
var _4a1=this._overlays[_4a0].getRelativeCoords(x,y);
this._OverlayClick(_4a1[0],_4a1[1],x,y,_4a0,_49f);
}
if(_4a0.lastIndexOf(".")>-1){
_4a0=_4a0.substr(0,_4a0.lastIndexOf("."));
}else{
_4a0="";
}
}while(_4a0!=="");
};
_om._OverlayMouseDown=function(j,k,x,y,_4a6,_4a7){
if(_4a7==_4a6){
this._mouseDownTarget=_4a7;
}
if(this._overlays[_4a6]){
this._overlays[_4a6]._mouseDown(j,k,x,y,_4a7);
}
};
_om._OverlayClick=function(j,k,x,y,_4ac,_4ad){
if(this._overlays[_4ac]){
this._overlays[_4ac]._click(j,k,x,y,_4ad);
}
};
_om._OverlayMouseOut=function(_4ae,_4af){
if(this._overlays[_4ae]){
this._overlays[_4ae]._mouseOut(_4af);
}
};
_om._OverlayRollOut=function(_4b0){
if(this._overlays[_4b0]){
this._overlays[_4b0]._rollOut();
}
};
_om._OverlayUpdate=function(left,top,_4b3,_4b4,_4b5,_4b6,_4b7){
if(this._overlays[_4b7]){
this._overlays[_4b7]._updatePosition(left,top,_4b3,_4b4,_4b5,_4b6);
}
};
_om._OverlayImageLoaded=function(_4b8,_4b9,_4ba,_4bb){
if(this._overlays[_4ba]){
this._overlays[_4ba]._imageLoaded(_4b8,_4b9,_4bb);
}
};
_om._UpdateVideoStage=function(){
var pwp=this._pwp;
var _4bd=this.substage;
var _4be=pwp.UserAspectRatio()?pwp.UserAspectRatio():pwp.RealAspectRatio();
var _4bf=_4bd.width;
var _4c0=_4bd.height;
var _4c1=_4bf/_4c0;
var _4c2={"width":"0px","height":"0px","left":"0px","top":"0px"};
if(_4be>_4c1){
_4c2.width=_4bf;
_4c2.height=Math.ceil(_4bf/_4be);
_4c2.left=0;
_4c2.top=Math.ceil((_4c0-_4c2.height)/2);
}else{
if(_4c1>_4be){
_4c2.width=Math.ceil(_4c0*_4be);
_4c2.height=_4c0;
_4c2.left=Math.ceil((_4bf-_4c2.width)/2);
_4c2.top=0;
}else{
_4c2.width=_4bf;
_4c2.height=_4c0;
_4c2.left=0;
_4c2.top=0;
}
}
_4c2.width+="px";
_4c2.height+="px";
_4c2.left+="px";
_4c2.top+="px";
this.videostage.update(_4c2);
};
MN.QMP.Overlays.MoveOverlay=MN.Class(MN.EventSource);
_mo=MN.QMP.Overlays.MoveOverlay.prototype;
MN.QMP.Overlays.EventTypes={MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout",ROLL_OVER:"rollover",ROLL_OUT:"rollout",MOUSE_MOVE:"mousemove",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",CLICK:"click",UPDATE:"update",IMAGE_LOADED:"imageloaded"};
_mo.initialize=function(pwp,_4c4,_4c5){
MN.EventSource.prototype.initialize.apply(this);
this._manager=_4c4;
this._pwp=pwp;
this._name="";
var _4c6=this._buildOptionsFromArray(_4c5);
this.startOptions=_4c6;
this.alpha=0;
this.left=0;
this.right=0;
this.top=0;
this.bottom=0;
this.width=0;
this.height=0;
this.absoluteLeft=0;
this.absoluteRight=0;
this.absoluteTop=0;
this.absoluteBottom=0;
this.logging=false;
if(typeof (this._type)!="undefined"){
if(this._type=="text"){
if(typeof (_4c6.caption)=="undefined"){
_4c6.caption="";
}
if(typeof (_4c6.font)!="undefined"){
_4c6.font="'%s'".format(_4c6.font);
}
this._curText=_4c6.caption;
_4c6.caption="'%s'".format(_4c6.caption);
_4c6.type="text";
}else{
if(this._type=="image"){
this._curImage=_4c6.url;
_4c6.url="'%s'".format(_4c6.url);
_4c6.type="image";
}
}
}
this.curOptions=_4c6;
};
_mo.addOverlay=function(name,_4c8){
var _4c9=this._name+"."+name;
if(this._manager._overlays[_4c9]||this._name.length===0||name.length===0||typeof (_4c8)!="object"||typeof (_4c8._name)!="string"||_4c8._name.length!==0){
return null;
}
return _4c8._createClientOverlay(_4c9);
};
_mo._createClientOverlay=function(name){
var _4cb=this._buildOptionString(this.curOptions);
var _4cc="%s;%s".format(name,_4cb);
this._name=name;
this._pwp.Set("overlay.create",_4cc);
this._manager._overlays[name]=this;
return this._manager._overlays[name];
};
_mo.name=function(){
return this._name;
};
_mo.update=function(_4cd){
var _4ce=this._buildOptionsFromArray(_4cd);
var _4cf=this.curOptions;
for(var key in _4ce){
_4cf[key]=_4ce[key];
}
this.set(_4cf);
};
_mo.escape=function(str){
if(str.substr(0,1)=="'"&&str.substr(str.length-1,1)=="'"){
str=str.substr(1,str.length-2);
}
str=str.replace(/\\?'/g,"\\'");
if(str.charAt(str.length-1)=="\\"){
str+=" ";
}
str="'%s'".format(str);
return str;
};
_mo.set=function(_4d2){
var _4d3=this._buildOptionsFromArray(_4d2);
if(typeof (_4d3.caption)!="undefined"){
this._curText=_4d3.caption;
_4d3.caption=this.escape(_4d3.caption);
if(typeof (_4d3.font)!="undefined"){
_4d3.font=this.escape(_4d3.font);
}
_4d3.type="text";
}
if(typeof (_4d3.url)!="undefined"){
this._curImage=_4d3.url;
_4d3.url=this.escape(_4d3.url);
_4d3.type="image";
}
this.curOptions=_4d3;
var _4d4=this._buildOptionString(_4d3);
var _4d5="%s;%s".format(this._name,_4d4);
if(this.logging){
log("Making SET call: %s".format(_4d5));
}
this._pwp.Set("overlay.update",_4d5);
};
_mo._buildOptionString=function(_4d6){
var str="";
for(var key in _4d6){
if(typeof (_4d6[key])=="string"&&_4d6[key].indexOf(" ")!==-1){
_4d6[key]=this.escape(_4d6[key]);
}
if(str.length>0){
str+=" ";
}
str+="%s:%s".format(key,_4d6[key]);
}
return str;
};
_mo._buildOptionsFromArray=function(_4d9){
var _4da={};
if(!(_4d9 instanceof Array)){
_4d9=[_4d9];
}
for(var i=0;i<_4d9.length;i++){
var _4dc=_4d9[i];
if(_4dc instanceof Array){
_4dc=this._buildOptionsFromArray(_4dc);
}
for(var key in _4dc){
_4da[key]=_4dc[key];
}
}
return _4da;
};
_mo.getOverlay=function(name){
var _4df=this._name+"."+name;
return this._manager._overlays[_4df];
};
_mo.getRelativeCoords=function(x,y){
var relX=x-this.absoluteLeft;
var relY=y-this.absoluteTop;
return [relX,relY];
};
_mo._mouseMove=function(j,k,x,y,_4e8){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_MOVE,this,j,k,x,y,_4e8);
};
_mo._mouseOver=function(j,k,x,y,_4ed){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_OVER,this,j,k,x,y,_4ed);
};
_mo._rollOver=function(j,k,x,y){
this.FireEvent(MN.QMP.Overlays.EventTypes.ROLL_OVER,this,j,k,x,y);
};
_mo._mouseUp=function(j,k,x,y,_4f6){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_UP,this,j,k,x,y,_4f6);
};
_mo._mouseDown=function(j,k,x,y,_4fb){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_DOWN,this,j,k,x,y,_4fb);
};
_mo._click=function(j,k,x,y,_500){
this.FireEvent(MN.QMP.Overlays.EventTypes.CLICK,this,j,k,x,y,_500);
};
_mo._mouseOut=function(_501){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_OUT,this,_501);
};
_mo._rollOut=function(){
this.FireEvent(MN.QMP.Overlays.EventTypes.ROLL_OUT,this);
};
_mo._updatePosition=function(left,top,_504,_505,_506,_507){
this.alpha=_506;
this.width=_504;
this.height=_505;
var _508=null;
_508=this._manager.getOverlay(this._name.substring(0,this._name.lastIndexOf(".")));
if(_508===null||typeof (_508)=="undefined"){
_508=this._manager.getOverlay("stage");
}
var _509=this._manager.getOverlay("stage");
this.absoluteLeft=left;
this.absoluteTop=top;
this.left=left-_508.absoluteLeft;
this.top=top-_508.absoluteTop;
if(this._name=="stage"){
this.absoluteRight=0;
this.absoluteBottom=0;
this.right=0;
this.bottom=0;
}else{
this.absoluteRight=_509.width-left-_504;
this.absoluteBottom=_509.height-top-_505;
this.right=this.absoluteRight-_508.absoluteRight;
this.bottom=this.absoluteBottom-_508.absoluteBottom;
}
this.FireEvent(MN.QMP.Overlays.EventTypes.UPDATE,this,left,top,_504,_505,_506,_507);
};
_mo._imageLoaded=function(_50a,_50b,_50c){
this.FireEvent(MN.QMP.Overlays.EventTypes.IMAGE_LOADED,this,_50a,_50b,_50c);
};
MN.QMP.Overlays.TextMoveOverlay=MN.Class(MN.QMP.Overlays.MoveOverlay);
var _tmo=MN.QMP.Overlays.TextMoveOverlay.prototype;
_tmo.initialize=function(pwp,_50e,_50f){
this._type="text";
MN.QMP.Overlays.MoveOverlay.prototype.initialize.apply(this,arguments);
};
_tmo.setText=function(text){
this._curText=text;
this.update({"caption":text});
};
_tmo.getText=function(){
return this._curText;
};
MN.QMP.Overlays.ImageMoveOverlay=MN.Class(MN.QMP.Overlays.MoveOverlay);
var _imo=MN.QMP.Overlays.ImageMoveOverlay.prototype;
_imo.initialize=function(pwp,_512,_513){
this._type="image";
MN.QMP.Overlays.MoveOverlay.prototype.initialize.apply(this,arguments);
};
_imo.setImage=function(url){
this._curImage=url;
this.update({"url":url});
};
_imo.getImage=function(){
return this._curImage;
};
MN.QVT.PlayerWrapper=MN.Class(MN.EventSource);
_pwp=MN.QVT.PlayerWrapper.prototype;
_pwp.initialize=function(_515){
MN.EventSource.prototype.initialize.apply(this);
this._customStats={};
this.playbackStarted=false;
this.qvt=null;
this.oldqvt=null;
this.lastPlayStateCall=0;
this.playState=MN.QMP.PS.INIT;
this.currentClipNum=0;
this.currentClipStart=null;
this.currentURL="";
this.currentStopPos=-1;
this.player=_515;
this.playerVersion=_515.Version;
this.autoPlayNext=true;
this.waitingForMoreTimeline=false;
this.waitForInitialLoadID=-1;
this.playOnInitialLoad=null;
this.lastCurrentPosCall=0;
this.reportedSeekPos=0;
this.inGap=false;
this.gapIntervalID=-1;
this.gapCurrentPos=0;
this.gapPaused=false;
this.scrubbing=false;
this.preScrubPaused=false;
this.checkShowIntervalID=-1;
this.preloadDuration=12;
this._nextClipSafe=true;
this._firstPlay=true;
this._quantCastURL="http://flash.quantserve.com/pixel.swf";
this._adWrapper=null;
this.lastCurrentShow=-1;
this._bypassCurrentPosCache=false;
this._observeEvents();
this.OverlayManager=new MN.QMP.Overlays.OverlayManager(this);
};
_pwp._observeEvents=function(){
var _516=MN.QMP.EventTypes;
MN.Event.Observe(this.player,_516.PLAY_STATE_CHANGED,this._PlayerPlayStateChanged);
MN.Event.Observe(this.player,_516.BIT_RATE_CHANGED,this._PlayerBitRateChanged);
MN.Event.Observe(this.player,_516.ERROR,this._PlayerError);
MN.Event.Observe(this.player,_516.SCRIPT,this._PlayerScript);
MN.Event.Observe(this.player,_516.AUDIO_CONTROL,this._PlayerAudioControl);
MN.Event.Observe(this.player,_516.SCRUB_BUMPER,this._PlayerScrubBumper);
MN.Event.Observe(this.player,_516.LIVE_BUMPER,this._PlayerLiveBumper);
MN.Event.Observe(this.player,_516.BITMAP_READY,this._BitmapReady);
MN.Event.Observe(this.player,_516.UI_STATE_CHANGED,this._PlayerUIStateChanged);
MN.Event.Observe(this.player,_516.OVERLAY_MOUSE_MOVE,this._PlayerOverlayMouseMove);
MN.Event.Observe(this.player,_516.OVERLAY_MOUSE_OVER,this._PlayerOverlayMouseOver);
MN.Event.Observe(this.player,_516.OVERLAY_ROLL_OVER,this._PlayerOverlayRollOver);
MN.Event.Observe(this.player,_516.OVERLAY_MOUSE_UP,this._PlayerOverlayMouseUp);
MN.Event.Observe(this.player,_516.OVERLAY_MOUSE_DOWN,this._PlayerOverlayMouseDown);
MN.Event.Observe(this.player,_516.OVERLAY_MOUSE_OUT,this._PlayerOverlayMouseOut);
MN.Event.Observe(this.player,_516.OVERLAY_ROLL_OUT,this._PlayerOverlayRollOut);
MN.Event.Observe(this.player,_516.OVERLAY_UPDATE,this._PlayerOverlayUpdate);
MN.Event.Observe(this.player,_516.OVERLAY_IMAGE_LOADED,this._PlayerOverlayImageLoaded);
};
_pwp.Scrub=function(rate){
if(!this.scrubbing){
this.scrubbing=true;
var ps=this.playState;
var PS=MN.QMP.PS;
if(0){
this._PlayerLog("Ignoring scrub command - current play state is",PS[ps]);
return false;
}
this._PlayerLog("Entering scrub mode");
this.preScrubPaused=this.player.Paused;
}
if(this.player.Scrub(rate>=0,Math.abs(rate))!==0){
this._PlayerLog("no scrub!");
this.scrubbing=false;
this.player.ScrubStop(this.preScrubPaused?1:0);
return false;
}
return true;
};
_pwp.StopScrubbing=function(){
if(!this.scrubbing){
this._PlayerLog("Ignoring scrubstop command - not scrubbing");
return;
}
var mode=0;
if(this.preScrubPaused){
mode=1;
}
this.scrubbing=false;
this.player.ScrubStop(mode);
this._PlayerLog("Scrubbing stopped");
};
_pwp.IsScrubbing=function(){
return this.scrubbing;
};
_pwp.SetAutoPlayNext=function(b){
this.autoPlayNext=b;
};
_pwp.GetCurrentURL=function(){
return this.currentURL;
};
_pwp.visible=function(_51c){
if(arguments.length===0){
return MN.$(this.player.id).style.visibility!="hidden";
}
if(_51c){
MN.$(this.player.id).style.visibility="visible";
}else{
MN.$(this.player.id).style.visibility="hidden";
this._hideFlashOverlays(false);
}
var hfo=this._hideFlashOverlays;
setTimeout(function(){
hfo(_51c);
},10);
};
_pwp._hideFlashOverlays=function(_51e){
if(MN.Flash&&MN.Flash._flashObjects){
for(var idx in MN.Flash._flashObjects){
var _520=MN.Flash._flashObjects[idx];
if(_520.getPlayerID()!=this.player.id){
continue;
}else{
if(_51e){
_520.show();
}else{
_520.hide();
}
}
}
}
};
_pwp.overlaysSupported=function(){
if(MN._supportsOverlays!==null){
return MN._supportsOverlays;
}
var caps=new MN.Capabilities.HWInfo(this);
var _522=caps.getVideoRenderer().toUpperCase();
if(_522=="NO RENDERER"||_522=="DX7"||_522=="VFW"){
MN._supportsOverlays=false;
}else{
MN._supportsOverlays=true;
}
return MN._supportsOverlays;
};
_pwp._CheckCurrentShow=function(){
if(!this.qvt||!this.qvt.IsValid()||this.qvt.loading){
return;
}
var _523=this.CurrentShow(null,true);
if(_523>=0&&_523!=this.lastCurrentShow){
this.lastCurrentShow=_523;
this._registerView(_523);
this.PostEvent(MN.QMP.EventTypes.SHOW_CHANGED,_523,this.qvt.Title(_523)||"");
}
};
_pwp._TimeToOldClip=function(){
var now=this.CurrentPosition();
var clip=null;
for(var i=0,omcl=this.oldqvt.meta.clips.length;i<omcl;i++){
clip=this.oldqvt.meta.clips[i];
if(clip.tlStartTime<=now&&now<clip.tlStopTime){
break;
}
}
return clip;
};
_pwp._CheckCurrentClip=function(){
if(this.qvt.shouldCheckClip!==true){
return;
}
this.qvt.shouldCheckClip=false;
var _527=this._TimeToOldClip();
if(!_527){
logError("Couldn't figure out which old clip we were playing.  Trouble ahead.");
return;
}
var _528=_527.url;
var _529=_527.tlStartTime;
var _52a=_527.tlStopTime;
var _52b=null;
var _52c=null;
var _52d=null;
var _52e=null;
var now=this.CurrentPosition();
var _530=this.qvt.TimelineToClip(now);
var _531=_530.clipNum;
if(_531>=0){
_52b=this.qvt.meta.clips[_531];
if(_52b){
_52c=_52b.url;
_52d=_52b.tlStartTime;
_52e=_52b.tlStopTime;
}
}
if(_52c==_528&&_52d==_529&&_52e!=_52a){
this._SetStopPosition(_52b.rangeEnd);
log("Edited timeline: Adjusting clip stop position to ",_52b.rangeEnd);
}else{
if(this.CurrentPlayState()==MN.QMP.PS.PLAYING&&(_52c!=_528||_52d!=_529||_52e!=_52a)){
log("Edited timeline: Restarting playback for new clip");
this._Play(_530);
}
}
};
_pwp._SetStopPosition=function(pos){
this.currentStopPos=pos;
this.player.SetStopPosition(pos);
};
_pwp._setStandardCustomStats=function(_533){
this._clearCustomStats();
var _534=this.qvt.PrimaryURL();
if(_533.qvtURL!=_534){
log("_setStandardCustomStats: Primary QVT URL has changed; cancelling standard custom stats");
log("_setStandardCustomStats: "+_533.qvtURL+" != "+_534);
return;
}
log("_setStandardCustomStats: Sending stats for qvt URL "+_533.qvtURL+" clip "+_533.clipNum);
this._customStats=MN.QVT.StatsGenerator.getCustomStats(this.qvt,this.qvt.ClipToTimeline(_533.clipNum,_533.startPos));
this._setCustomStats(this._customStats);
};
_pwp._setCustomStats=function(_535){
for(var key in _535){
if(_535.hasOwnProperty(key)){
var _537=_535[key];
if(_537===undefined||_537===null){
_537="";
}
this.player.Set("CustomStats."+key,String(_537));
}
}
};
_pwp._clearCustomStats=function(){
this._setCustomStats(MN.QVT.StatsGenerator.getClearingStats());
this._customStats={};
};
_pwp._Play=function(_538,_539){
var _53a;
if(_539!==true){
_539=false;
}
pausedString=_539?"0":"1";
this.playOnInitialLoad=false;
if(this.gapIntervalID!=-1){
clearInterval(this.gapIntervalID);
this.gapIntervalID=-1;
}
if(this.IsScrubbing()){
this.StopScrubbing();
}
var _53b=this.currentURL;
var _53c=this.currentStopPos;
this.currentClipNum=_538.clipNum;
if(_538.url!==""){
this.currentURL=_538.url;
}
var _53d=_538.stopPos;
this.currentStopPos=_53d;
this.inGap=(!this.currentURL);
var clip=this.qvt.GetClip(_538.clipNum);
var _53f=this.currentClipStart;
this.currentClipStart=clip.rangeStart;
if(this.checkShowIntervalID==-1){
this.checkShowIntervalID=setInterval(this._CheckCurrentShow,100);
}
this._nextClipSafe=true;
if(!this.inGap){
if(this.requestedStopSec!=-1&&this.requestedStopSec>=clip.tlStartTime&&this.requestedStopSec<clip.tlStopTime){
_53d=this.currentClipStart+(this.requestedStopSec-clip.tlStartTime);
if(_538.stopPos){
_53d=Math.min(_53d,_538.stopPos);
}
}
this._setStandardCustomStats(_538);
if(this._firstPlay){
log("First time we're playing something in this QVT, telling the player");
this.player.Set("PROSPER","true");
this._firstPlay=false;
this._doQuantcastPost();
}
var that=this;
if(this.Version()>="000007090000"){
var _541=_538.url;
var _542=this.currentClipStart;
if(_541==_53b&&_53d==_53c&&_542==_53f){
_541="";
_53d=-1;
_542=-1;
}
var _543="%s, %s, %s, %s, %s".format(_541,_542,_53d,_538.startPos,pausedString);
this._PlayerLog("Now calling PlayEx("+_543+")");
_53a=this.Paused();
this.player.Set("PlayEx",_543);
if((_53a&&!_539)||(!_53a&&_539)){
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_539,null);
}
}else{
this._PlayerLog("Now calling Play(%s,%s,%s)".format(_538.url,clip.rangeStart,_53d));
this.player.Play(_538.url,clip.rangeStart,_53d);
log("_Play: declaring afterPlaying with posObj.qvtURL = "+_538.qvtURL);
var _544=function(oldS,newS){
if(newS==MN.QMP.PS.PLAYING){
that._PlayerLog("Now setting CurrentPosition =",_538.startPos);
that.player.CurrentPosition=_538.startPos;
if(_538.qvtURL==that.qvt.PrimaryURL()){
log("afterPlaying: URLs matched, unobserving");
MN.Event.StopObserving(that.player,MN.QMP.EventTypes.PLAY_STATE_CHANGED,_544);
}else{
log("afterPlaying: URLs didn't match, not unobserving");
}
}
};
MN.Event.Observe(this.player,MN.QMP.EventTypes.PLAY_STATE_CHANGED,_544);
}
}else{
log("Playing gap");
this.player.Stop();
this.gapLastUpdate=(new Date()).getTime();
this.gapCurrentPos=_538.startPos;
if(clip){
this.gapCurrentPos+=(clip.tlStartTime-clip.rangeStart);
}
this.gapEndPos=clip.tlStopTime;
if(this.requestedStopSec!=-1&&this.requestedStopSec<this.gapEndPos){
this.gapEndPos=this.requestedStopSec;
}
this._SetPlayState(MN.QMP.PS.PLAYING);
this.gapIntervalID=setInterval(this._GapUpdateCB,100);
_53a=this.Paused();
this.gapPaused=_539;
if((_53a&&!_539)||(!_53a&&_539)){
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_539,null);
}
}
var _547=this.qvt.GetClip(_538.clipNum);
var _548,nextClipNum,nextClipURL;
if(_547&&_547.url){
nextClipNum=_538.clipNum+1;
while(nextClipNum<this.qvt.meta.clips.length){
_548=this.qvt.GetClip(nextClipNum);
nextClipURL=_548.url;
if(nextClipURL){
break;
}
nextClipNum+=1;
}
}
if(nextClipURL){
var _549=_548.rangeStart||0;
var _54a=_548.rangeEnd||0;
var _54b=_549+this.preloadDuration;
if(_54b>_54a){
_54b=_54a;
}
this._PlayerLog("Preloading",nextClipURL,_549,_54b);
this.player.PreLoad(nextClipURL,_549,_54b);
}
};
_pwp._registerView=function(_54c){
var _54d="";
var _54e="";
if(_54c>-1&&"shows" in this.qvt.meta&&"asset_id" in this.qvt.meta.shows[_54c]){
_54d=this.qvt.meta.shows[_54c].asset_id;
}
if(_54c>-1&&"shows" in this.qvt.meta&&"publisher_id" in this.qvt.meta.shows[_54c]){
_54e=this.qvt.meta.shows[_54c].publisher_id;
}
if(_54d&&_54e){
var url=MN.Config.viewTrackURLTemplate.replace("%pub_id%",_54e).replace("%asset_id%",_54d);
log("View track URL: "+url);
MN.URL.track(url);
}
};
_pwp.setStatsProp=function(_550,_551){
_550=parseInt(_550,10);
if(_550<1||_550>99){
throw new RangeError("Prop index out of range");
}
_550=MN.PadDigits(_550,2,"0");
_551=_551.replace(/\|/g,"");
_551=_551.replace(/;/g,"");
_551=_551.replace(/,/g,"");
this.player.Set("CustomStats.prop_"+_550,_551);
};
_pwp.clearStatsProp=function(_552){
_552=MN.PadDigits(_552,2,"0");
this.player.Set("CustomStats.prop_"+_552,"");
};
_pwp._doQuantcastPost=function(){
if(typeof (this.CurrentQVT().Metadata("QCAST_PUB_ID"))=="undefined"){
return;
}
var img=new Image();
var url=this._makeQuantCastPost();
img.src=url;
log("Quantcast post: "+url);
};
_pwp._makeQuantCastPost=function(){
if(typeof (this.CurrentQVT().Metadata("QCAST_PUB_ID"))=="undefined"){
return "";
}
var _555=this.CurrentQVT().Metadata("QCAST_PUB_ID");
var _556=this.CurrentQVT().Metadata("clipID",0);
var _557=this.CurrentQVT().Metadata("title",0);
var _558="";
if(typeof (this.CurrentQVT().Metadata("QCAST_LABELS"))!="undefined"){
_558=this._parseQuantcastHeirarchyString(this.CurrentQVT().Metadata("QCAST_LABELS"));
}else{
if(typeof (this.CurrentQVT().Metadata("QCAST_LABEL"))!="undefined"){
_558=this._parseQuantcastHeirarchyString(this.CurrentQVT().Metadata("QCAST_LABEL"));
}
}
var _559={r:Math.floor(Math.random()*1531868462),publisherId:_555,event:"play",quantv:"qmv1.0",pageURL:location.href,duration:this.Duration(),videoId:_556,title:_557,media:"video",url:this.qvt.PrimaryURL()};
if(_558.length>1){
_559.labels=_558;
}
var url=MN.URL.SetParams(this._quantCastURL,_559);
return url;
};
_pwp._parseQuantcastHeirarchyString=function(_55b){
var key;
var val;
var _55e=/\[([a-zA-Z0-9_]+)\]/;
var _55f=/\{([a-zA-Z0-9_]+)\}/;
var _560=_55e.exec(_55b);
while(_560!==null){
key=_560[0];
val="";
if(typeof (this.CurrentQVT().Metadata(_560[1]))=="undefined"){
val="Unknown";
}else{
val=this.CurrentQVT().Metadata(_560[1]);
}
_55b=_55b.replace(key,val);
_560=_55e.exec(_55b);
}
var _561=_55f.exec(_55b);
while(_561!==null){
key=_561[0];
val="";
if(typeof (this.CurrentQVT().Metadata(_561[1],0))=="undefined"){
val="Unknown";
}else{
val=this.CurrentQVT().Metadata(_561[1],0);
}
_55b=_55b.replace(key,val);
_561=_55f.exec(_55b);
}
return _55b;
};
_pwp._GapUpdateCB=function(){
var now=(new Date()).getTime();
if(!this.gapPaused){
this.gapCurrentPos+=(now-this.gapLastUpdate)/1000;
if(this.gapCurrentPos>=this.gapEndPos){
this.gapCurrentPos=this.gapEndPos;
clearInterval(this.gapIntervalID);
this.gapIntervalID=-1;
this._PlayerPlayStateChanged(MN.QMP.PS.PLAYING,MN.QMP.PS.MEDIAENDED);
}
}
this.gapLastUpdate=now;
};
_pwp._MoveToNextClip=function(){
if(this.currentClipNum<this.qvt.ClipCount()-1&&this._nextClipSafe){
this.currentClipNum++;
this._PlayerLog("Moving to next clip %s in qvt %s".format(this.currentClipNum,this.qvt.initRaw));
if(this.requestedStopSec==-1||this.requestedStopSec>this.qvt.GetClip(this.currentClipNum).tlStartTime){
log("_MoveToNextClip: We're safe to play the next clip");
this.PostEvent(MN.QMP.EventTypes.NEXT_CLIP,this.currentClipNum);
this._Play(this.qvt.GetClipAsPosObj(this.currentClipNum));
return true;
}
}
if((this.requestedStopSec==-1||(this.requestedStopSec>0&&this.CurrentPosition()>=this.requestedStopSec))&&this.qvt.IsOpenEnded()){
this._PlayerLog("Playback reached end of open-ended QVT. Will wait for more");
log("qmp.qvt.IsOpenEnded() =",this.qvt.IsOpenEnded());
log("qmp.qvt.qvtURL =",this.qvt.qvtURL);
log("qmp.requestedStopSec =",this.requestedStopSec);
this.waitingForMoreTimeline=true;
this._SetPlayState(MN.QMP.PS.WAITING);
return true;
}
var next=this.qvt.NextURL();
if(next&&this.autoPlayNext&&this.requestedStopSec==-1){
this.PostEvent(MN.QMP.EventTypes.NEXT_TIMELINE,next);
this.Play(next,0);
return true;
}
return false;
};
_pwp._PlayerPlayStateChanged=function(oldS,newS){
var PS=MN.QMP.PS;
if(newS==PS.PLAYING){
this.playbackStarted=true;
}
if(newS==PS.MEDIAENDED){
if(this._MoveToNextClip()){
return;
}
}else{
if(newS==PS.OPENING||newS==PS.STOPPED){
return;
}
}
this._SetPlayState(newS);
};
_pwp._SetPlayState=function(_567){
if(_567==this.playState){
return;
}
var _568=this.playState;
this.playState=_567;
this.PostEvent(MN.QMP.EventTypes.PLAY_STATE_CHANGED,_568,_567);
};
_pwp._PlayerBitRateChanged=function(_569,_56a){
this.PostEvent(MN.QMP.EventTypes.BIT_RATE_CHANGED,_569,_56a);
};
_pwp._PlayerOverlayMouseMove=function(j,k,x,y,_56f,_570){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_MOVE,j,k,x,y,_56f,_570);
};
_pwp._PlayerOverlayMouseOver=function(j,k,x,y,_575,_576){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_OVER,j,k,x,y,_575,_576);
};
_pwp._PlayerOverlayRollOver=function(j,k,x,y,_57b){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_ROLL_OVER,j,k,x,y,_57b);
};
_pwp._PlayerOverlayMouseUp=function(j,k,x,y,_580,_581){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_UP,j,k,x,y,_580,_581);
};
_pwp._PlayerOverlayMouseDown=function(j,k,x,y,_586,_587){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_DOWN,j,k,x,y,_586,_587);
};
_pwp._PlayerOverlayMouseOut=function(_588,_589){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_OUT,_588,_589);
};
_pwp._PlayerOverlayRollOut=function(_58a){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_ROLL_OUT,_58a);
};
_pwp._PlayerOverlayUpdate=function(left,top,_58d,_58e,_58f,_590,_591){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_UPDATE,left,top,_58d,_58e,_58f,_590,_591);
};
_pwp._PlayerOverlayImageLoaded=function(_592,_593,_594,_595){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_IMAGE_LOADED,_592,_593,_594,_595);
};
_pwp._PlayerUIStateChanged=function(_596){
this.PostEvent(MN.QMP.EventTypes.UI_STATE_CHANGED,_596);
};
_pwp._PlayerLog=function(){
var _597=[];
for(var i=0,al=arguments.length;i<al;i++){
var arg=arguments[i].toString();
_597.push(arg);
}
var msg=_597.join(" ");
if(this!=MN.QVT._helperPlayer){
this.player.Set("Log",msg);
}
log("_PlayerLog:"+msg);
};
_pwp._PlayerError=function(msg){
var o=MN.ParsePlayerError(msg);
if(o.msg.toLowerCase().indexOf("sustainable")!=-1){
var _59d=o.msg.split(",");
var _59e=parseInt(_59d[1],10);
this.PostEvent(MN.QMP.EventTypes.NOT_SUSTAINABLE,_59e);
}else{
this.PostEvent(MN.QMP.EventTypes.ERROR,o);
}
};
_pwp._PlayerScript=function(key,_5a0){
this.PostEvent(MN.QMP.EventTypes.SCRIPT,key,_5a0);
};
_pwp._PlayerAudioControl=function(_5a1,_5a2){
this.PostEvent(MN.QMP.EventTypes.AUDIO_CONTROL,_5a1,_5a2);
};
_pwp._PlayerScrubBumper=function(_5a3){
this._PlayerLog("bump!",_5a3);
this.PostEvent(MN.QMP.EventTypes.SCRUB_BUMPER,_5a3);
};
_pwp._PlayerLiveBumper=function(){
this._PlayerLog("LiveBumper hit");
this.CurrentPosition(-1);
this.PostEvent(MN.QMP.EventTypes.LIVE_BUMPER);
};
_pwp.Load=function(qvt){
if(this.checkShowIntervalID!=-1){
clearInterval(this.checkShowIntervalID);
this.checkShowIntervalID=-1;
}
this._firstPlay=true;
this.playbackStarted=false;
this.player.Stop();
this._SetPlayState(MN.QMP.PS.OPENING);
this.requestedStopSec=-1;
this.currentClipNum=0;
this.reportedSeekPos=0;
this.waitingForMoreTimeline=false;
if(qvt){
this.FireEvent("TimelineChanging",qvt);
if(this.qvt){
this.qvt.StopReloadTimer();
MN.Event.StopObserving(this.qvt,MN.QMP.EventTypes.TIMELINE_LOADED,this._OnTimelineLoaded);
this.qvt.DecRef();
}
if(qvt instanceof MN.QVT.QVT){
this.qvt=qvt;
}else{
if(typeof (qvt)=="object"){
this.qvt=new MN.QVT.QVT(qvt);
}else{
this.qvt=MN.QVT.AcquireQVT(qvt);
}
}
MN.Event.Observe(this.qvt,MN.QMP.EventTypes.TIMELINE_LOADED,this._OnTimelineLoaded);
if(!this.qvt.IsLoading()){
var func=this._OnTimelineLoaded;
var q=this.qvt;
setTimeout(function(){
func(q);
},10);
}
}
if(this.waitForInitialLoadID!=-1){
clearInterval(this.waitForInitialLoadID);
}
this.lastCurrentShow=-1;
};
_pwp.PreLoad=function(_5a7,_5a8,_5a9){
if(typeof (_5a8)=="undefined"){
_5a8=-1;
}else{
_5a8=MN.ConvertFromTimestamp(_5a8);
}
if(typeof (_5a9)=="undefined"){
_5a9=0;
}else{
_5a9=MN.ConvertFromTimestamp(_5a9);
}
this.player.PreLoad(_5a7,_5a8,_5a9);
};
_pwp.Play=function(qvt,_5ab,_5ac,_5ad,_5ae){
if(!(_5ae instanceof Object)){
_5ae={};
}
if(this.checkShowIntervalID!=-1){
clearInterval(this.checkShowIntervalID);
this.checkShowIntervalID=-1;
}
this._nextClipSafe=false;
this.currentURL="";
this.Load(qvt);
if(_5ab===undefined||_5ab===null){
_5ab=-1;
}else{
_5ab=MN.ConvertFromTimestamp(_5ab);
}
if(_5ac===undefined||_5ac===null){
_5ac=-1;
}else{
_5ac=MN.ConvertFromTimestamp(_5ac);
}
if(_5ad===undefined||_5ad===null){
_5ad=false;
}
this.requestedStartPaused=_5ad;
this._PlayerLog("play",_5ab,_5ac);
this.requestedStartSec=_5ab;
this.requestedStopSec=_5ac;
this.playOnInitialLoad=true;
this.waitForInitialLoadID=setInterval(this.WaitForInitialLoad,100);
};
_pwp.PlayClip=function(_5af,_5b0,_5b1,_5b2,_5b3){
var clip={};
clip.url=_5af;
clip.title=_5b0||"";
if(typeof (_5b1)=="undefined"){
_5b1=-1;
}else{
_5b1=MN.ConvertFromTimestamp(_5b1);
}
if(typeof (_5b2)=="undefined"){
_5b2="";
}else{
_5b2=MN.ConvertFromTimestamp(_5b2);
}
clip.range=_5b1+","+_5b2;
var qvt={"clips":[clip]};
this.Play(qvt,_5b3);
};
_pwp._OnTimelineLoaded=function(qvt){
if(qvt==this.qvt){
this._UpdateCurrentClipNum();
if(this.oldqvt){
this._CheckCurrentClip();
}
this.oldqvt=MN.cloneObj(qvt);
if(this.qvt.IsValid()){
this.PostEvent(MN.QMP.EventTypes.TIMELINE_LOADED,qvt);
}else{
this._PlayerPlayStateChanged(this.playState,MN.QMP.PS.ERROR);
this.PostEvent(MN.QMP.EventTypes.ERROR,"Failed to load requested QVT");
return;
}
var clip=this.qvt.GetClip(this.currentClipNum);
if(this.inGap){
this.gapEndPos=clip.tlStopTime;
if(this.requestedStopSec!=-1&&this.requestedStopSec<this.gapEndPos){
this.gapEndPos=this.requestedStopSec;
}
}else{
var _5b8=this.currentStopPos;
if(this.requestedStopSec!=-1&&this.requestedStopSec>=clip.tlStartTime&&this.requestedStopSec<clip.tlStopTime){
_5b8=clip.rangeStart+(this.requestedStopSec-clip.tlStartTime);
}
this._SetStopPosition(_5b8);
}
if(this.waitingForMoreTimeline){
this._PlayerLog("Timeline has been updated, will try to resume playback");
this.waitingForMoreTimeline=false;
this._MoveToNextClip();
}
}
};
_pwp.WaitForInitialLoad=function(){
if(this.qvt.InitialLoadDone()){
clearInterval(this.waitForInitialLoadID);
this.waitForInitialLoadID=-1;
if(this.playOnInitialLoad&&this.qvt.IsValid()){
this._PlayerLog("WaitForInitialLoad - done, starting playback");
this.reportedSeekPos=this.requestedStartSec;
var that=this;
var _5ba=function(){
that._Play(that.qvt.TimelineToClip(that.requestedStartSec),that.requestedStartPaused);
};
_5ba();
}
}
};
_pwp.Stop=function(){
this.player.Stop();
this._SetPlayState(MN.QMP.PS.STOPPED);
};
_pwp._TimeToClipNum=function(_5bb,_5bc){
for(var i=0,cl=_5bc.length;i<cl;i++){
clip=_5bc[i];
if(clip.tlStartTime<=_5bb&&_5bb<clip.tlStopTime){
return i;
}
}
return _5bc.length-1;
};
_pwp._UpdateCurrentClipNum=function(){
if(!this.oldqvt||!this.qvt.metadataLoaded){
return;
}
var _5be=this.oldqvt.meta.clips;
var _5bf=this.qvt.meta.clips;
if(_5be&&(_5bf.length!=_5be.length)){
this.currentClipNum=this._TimeToClipNum(this.reportedSeekPos,_5bf);
log("Edited timeline: Updated currentClipNum to",this.currentClipNum);
}
};
_pwp.CurrentPosition=function(pos,_5c1){
if(_5c1!==true){
_5c1=false;
}
if(pos===undefined||pos===null){
var now=new Date().getTime();
if(!this._bypassCurrentPosCache&&now-this.lastCurrentPosCall<250){
return this.reportedSeekPos;
}
this._UpdateCurrentClipNum();
if(this.InGap()){
this.reportedSeekPos=this.gapCurrentPos;
}else{
if(this.player.CurrentPlayState==MN.QMP.PS.PLAYING||this.player.CurrentPlayState==MN.QMP.PS.MEDIAENDED){
this.reportedSeekPos=this.qvt.ClipToTimeline(this.currentClipNum,this.player.CurrentPosition);
}
}
this.lastCurrentPosCall=now;
return this.reportedSeekPos;
}else{
var that=this;
var _5c4=function(pos){
that.reportedSeekPos=MN.ConvertFromTimestamp(pos);
var _5c6;
if(_5c1!==true){
that.gapPaused=false;
_5c6=false;
}else{
that.gapPaused=true;
_5c6=true;
}
that.oldCurrentPosition=that.reportedSeekPos;
if(that.requestedStopSec!=-1&&that.reportedSeekPos>=that.requestedStopSec){
that.requestedStopSec=-1;
}
log("Setting currentposition to",pos);
that._Play(that.qvt.TimelineToClip(that.reportedSeekPos),_5c6);
};
_5c4(pos);
}
return null;
};
_pwp.CurrentVideoStage=function(){
var _5c7=this.OverlayManager.substage;
var _5c8=this.OverlayManager.videostage;
var _5c9={"width":0,"height":0,"left":0,"top":0};
_5c9.width=_5c8.width;
_5c9.height=_5c8.height;
_5c9.top=_5c7.top+_5c8.top;
_5c9.left=_5c7.left+_5c8.left;
return _5c9;
};
_pwp.CurrentClip=function(_5ca){
return this.currentClipNum;
};
_pwp.CurrentShow=function(_5cb,_5cc){
if(!this.qvt){
return -1;
}
if(_5cb===undefined||_5cb===null){
return this.qvt.TimelineToShow(this.CurrentPosition());
}
_5cb=parseInt(_5cb,10);
if(_5cb>=0&&_5cb<this.qvt.ShowCount()){
var pos=this.qvt.StartTime(parseInt(_5cb,10));
if(pos!==null){
this.CurrentPosition(pos,this.Paused());
}
}
return null;
};
_pwp.InGap=function(){
return this.inGap;
};
_pwp.Muted=function(){
if(arguments.length===0){
return this.player.Muted;
}else{
var _5ce;
_5ce=!!arguments[0];
this.player.Muted=_5ce;
this.PostEvent(MN.QMP.EventTypes.MUTED_CHANGED,_5ce);
}
return this.player.Muted;
};
_pwp.Paused=function(){
if(arguments.length===0){
if(this.InGap()){
return this.gapPaused;
}
return this.player.Paused;
}else{
var _5cf=!!(arguments[0]||0);
if(this.InGap()){
this.gapPaused=_5cf;
}else{
this.player.Paused=_5cf;
}
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_5cf,arguments[1]);
}
return this.player.Paused;
};
_pwp.Volume=function(v){
if(arguments.length===0||typeof (v)=="undefined"){
return this.player.Volume;
}else{
this.player.Volume=v||0;
this.FireEvent("VolumeChanged",this.player.Volume);
}
return this.player.Volume;
};
_pwp.CurrentQVT=function(){
return this.qvt;
};
_pwp.CurrentPlayState=function(){
var now=new Date().getTime();
if(now-this.lastPlayStateCall<250){
return this.reportedSeekPos;
}
return this.playState;
};
_pwp.CurrentBitRate=function(){
return this.player.CurrentBitRate;
};
_pwp.CurrentStreamID=function(){
return this.player.CurrentStreamID;
};
_pwp.Live=function(){
return this.qvt.HaveAnyLive();
};
_pwp.SingleStep=function(_5d2){
_5d2=Number(_5d2);
this.player.Set("Step",_5d2);
};
_pwp.Duration=function(){
var q=this.qvt;
if(!q||!q.IsValid()){
return 0;
}
var clip=q.GetClip(this.currentClipNum);
if(q.HaveAnyLive()&&clip&&clip.durationGrowing&&this.playbackStarted){
q.UpdateDuration(this.currentClipNum,this.player.Duration);
}
return q.Duration();
};
_pwp.Width=function(w){
var QI=MN.QMPInstall;
if(arguments.length===0){
return parseInt(this.player.style.width,10);
}else{
if(w==parseInt(w,10)){
w=w+"px";
}
try{
this.player.style.width=w;
}
catch(e){
MN.Log.error("Invalid width: "+w);
}
}
return parseInt(this.player.style.width,10);
};
_pwp.Height=function(h){
var QI=MN.QMPInstall;
if(arguments.length===0){
return parseInt(this.player.style.height,10);
}else{
if(h==parseInt(h,10)){
h=h+"px";
}
this.player.style.height=h;
}
return parseInt(this.player.style.height,10);
};
_pwp.Get=function(name){
return this.player.Get(name);
};
_pwp.Set=function(name,_5db){
this.player.Set(name,_5db);
};
_pwp.GetSetting=function(name){
return this.player.GetSetting(name);
};
_pwp.PutSetting=function(name,_5de){
this.player.PutSetting(name,_5de);
};
_pwp.MetadataByName=function(name){
return this.player.MetadataByName(name);
};
_pwp.MetadataName=function(_5e0){
return this.player.MetadataName(_5e0);
};
_pwp.MetadataByIndex=function(_5e1){
return this.player.MetadataByIndex(_5e1);
};
_pwp.RegistryVersion=function(){
return this.player.RegistryVersion;
};
_pwp.Version=function(){
return MN.QMPInstall._padVersionString(this.player.Version,MN.QMPInstall.QMP_VERSION_LENGTH);
};
_pwp.FillColor=function(_5e2){
this.player.FillColor=_5e2;
};
_pwp.VideoWidth=function(){
return this.player.VideoWidth;
};
_pwp.VideoHeight=function(){
return this.player.VideoHeight;
};
_pwp.HasAudio=function(){
return this.player.HasAudio;
};
_pwp.HasVideo=function(){
return this.player.HasVideo;
};
_pwp.MetadataCount=function(){
return this.player.MetadataCount;
};
_pwp.StartTimestamp=function(){
return this.qvt.StartTimestamp();
};
_pwp.Encrypted=function(){
return this.player.Encrypted;
};
_pwp.RealAspectRatio=function(){
return this.player.RealAspectRatio;
};
_pwp.UserAspectRatio=function(ar){
if(arguments.length===0){
return this.player.UserAspectRatio;
}else{
this.player.UserAspectRatio=ar||0;
this.OverlayManager._UpdateVideoStage();
}
return this.player.UserAspectRatio;
};
_pwp.GetSysInfo=function(){
var si=this.player.Get("SysInfo");
if(si===""){
return "SysInfo API not supported by this client.";
}
return si;
};
_pwp.BypassCurrentPosCache=function(_5e5){
this.player._bypassCurrentPosCache=_5e5;
};
_pwp.SendBitmapAsync=function(url,_5e7,w,h){
this.player.SendBitmapAsync(url,_5e7,w,h);
};
_pwp._BitmapReady=function(_5ea,url){
this.PostEvent(MN.QMP.EventTypes.BITMAP_READY,_5ea,url);
};
_pwp.OverlayURL=function(x,y,url){
if(MN.QMPInstall.OS()=="mac"){
this.player.OverlayURL(x,y,url);
}else{
throw new Error("Not Implemented on your OS");
}
};
_pwp.OverlayHTML=function(x,y,w,h,_5f3){
if(MN.QMPInstall.OS()=="mac"){
this.player.OverlayHTML(x,y,w,h,_5f3);
}else{
throw new Error("NotImplemented on your OS");
}
};
_pwp.OverlayText=function(x,y,text){
this.player.Set("ClosedCaption","%s,%s,%s".format(x,y,text));
};
_pwp.UploadFile=function(_5f7,_5f8,_5f9,_5fa,_5fb){
if(_5f7.charAt(_5f7.length-1)!="/"){
_5f7+="/";
}
_5f7=MN.URL.Join(_5f7,"QIS/uploadservices/RequestUploadInfo");
var cmd=["Upload.add",_5f7,_5f8,_5f9,_5fa,MN.JSON.stringify(_5fb)].join(",");
return this.player.Get(cmd);
};
_pwp.CancelUpload=function(_5fd){
var cmd="Upload.cancel,"+_5fd;
return this.player.Get(cmd);
};
_pwp.ListUploads=function(){
var cmd="Upload.list";
return MN.JSON.parse(this.player.Get(cmd));
};
_pwp.fullScreenSupported=function(){
return (this.player.Get("FullScreenSupport")=="1")?1:0;
};
_pwp.isFullScreen=function(){
return (this.player.Get("IsFullScreen")=="1")?1:0;
};
_pwp.autoSelectByStageSize=function(_600){
if(_600){
this.player.Set("AutoSelectByStageSize","1");
this.player.Set("Commit","");
}else{
if(_600===false){
this.player.Set("AutoSelectByStageSize","0");
this.player.Set("Commit","");
}
}
};
_pwp.fullScreen=function(set,_602,_603){
if(!this.fullScreenSupported()){
return false;
}
var _604="";
if(set){
_604+="1,";
}else{
_604+="0,";
}
if(_602){
_604+=_602;
}
if(_603){
_604+=","+_603.speed;
}
this.player.Set("FullScreen",_604);
return true;
};
_pwp.setSubStagePosition=function(spec,_606){
spec.replace(";",",");
var _607="";
if(_606&&parseInt(_606,10)){
_606=parseInt(_606,10);
_607=";Zoom,"+_606.toString();
}
this.player.Set("SubStagePosition",spec+_607);
};
_pwp.getVideoStageRect=function(){
var vsr=this.player.Get("VideoScreenRect").split(",");
return {left:vsr[0],top:vsr[1],right:vsr[2],bottom:vsr[3]};
};
_pwp.openDefaultControls=function(){
var _609=MN._libBase+"/controls/";
this.setControlFrame(_609+"Frame.png",-20);
var _60a=30;
var _60b=19;
this.setControls({Previous:{imageURL:_609+"Previous.png",x:_60a,y:_60b+4},Rewind:{imageURL:_609+"Rewind.png",x:_60a+30,y:_60b+4},Play:{imageURL:_609+"Play.png",x:_60a+70,y:_60b},Pause:{imageURL:_609+"Pause.png",x:_60a+70,y:_60b},FastForward:{imageURL:_609+"FastForward.png",x:_60a+110,y:_60b+4},Next:{imageURL:_609+"Next.png",x:_60a+145,y:_60b+4},FullScreen:{imageURL:_609+"Fullscreen.png",x:-9,y:_60b,effect:"zoom",effectSpeed:"500"},ExitFullScreen:{imageURL:_609+"ExitFullscreen.png",x:-9,y:_60b}});
this.activateControls();
};
_pwp.setControlFrame=function(_60c,y){
var _60e="Control.Frame";
var _60f=_60c+", "+y;
log("setControlFrame: player.Set('%s, %s')".format(_60e,_60f));
this.player.Set(_60e,_60f);
};
_pwp.setControls=function(_610){
var _611,attrs,setVal,controlName;
for(controlName in _610){
if(_610.hasOwnProperty(controlName)){
_611="Control."+controlName;
attrs=_610[controlName];
setVal=attrs.imageURL+", "+attrs.x+", "+attrs.y;
if(controlName=="FullScreen"){
if(attrs.effect){
setVal+=", "+attrs.effect;
}
if(attrs.effectSpeed){
setVal+=", "+attrs.effectSpeed;
}
}
log("setControls: player.Set('%s, %s')".format(_611,setVal));
this.player.Set(_611,setVal);
}
}
};
_pwp.activateControls=function(){
return this.player.Set("Control.Open","");
};
_pwp.deactivateControls=function(){
return this.player.Set("Control.Close","");
};
_pwp.setUIInactivityDelay=function(_612){
this.player.Set("UIInactivityDelay",_612);
};
_pwp.registerSyndicate=function(_613){
var _614="";
if(_613){
_614="http://ds.movenetworks.com/"+_613+"/qcd/";
}
this.player.Set("Config_String","DS_BaseUrl, \""+_614+"\"");
};
_pwp=undefined;
if(!MN){
MN={};
}
if(!MN.QVT){
MN.QVT={};
}
MN.QVT.StatsGenerator={getCustomStats:function(qvt,pos){
var _617=MN.QVT.StatsGenerator;
if(pos<0||pos>qvt.Duration()){
throw new RangeError("Position out of range");
}
return _617._getQvtStatsFunc(qvt)(qvt,pos);
},getClearingStats:function(){
var _618=MN.QVT.CustomStatsTypes;
var _619={};
var _61a;
for(_61a in _618){
if(_618.hasOwnProperty(_61a)){
_619[_618[_61a]]="";
}
}
return _619;
},_getQvtStatsFunc:function(qvt){
var _61c=MN.QVT.StatsGenerator;
if("publish_version" in qvt.meta){
return _61c._getPub3CustomStats;
}else{
return _61c._getBasicCustomStats;
}
},_getPub3CustomStats:function(qvt,pos){
var _61f=MN.QVT.CustomStatsTypes;
var _620={};
var _621=qvt.TimelineToClip(pos).clipNum;
var clip=qvt.GetClip(_621);
var show=qvt.meta.shows[qvt.TimelineToShow(pos)];
_620[_61f.SDK_VERSION]=MN.RELEASE_VERSION;
if("container_id" in qvt.meta){
_620[_61f.CONTAINER_ID]=qvt.meta.container_id;
}
if("publisher_id" in qvt.meta){
_620[_61f.CONTAINER_PUB_ID]=qvt.meta.publisher_id;
}
if("segment_id" in clip){
_620[_61f.SEGMENT_ID]=clip.segment_id;
}
if("sequence" in clip){
_620[_61f.SEGMENT_SEQ]=clip.sequence;
}
if("publisher_id" in clip){
_620[_61f.SEGMENT_PUB_ID]=clip.publisher_id;
}
if("asset_id" in show){
_620[_61f.ASSET_ID]=show.asset_id;
}
if("publisher_id" in show){
_620[_61f.ASSET_PUB_ID]=show.publisher_id;
}
return _620;
},_getBasicCustomStats:function(qvt,pos){
var _626=MN.QVT.CustomStatsTypes;
var _627=MN.QVT.SegmentTypes;
var _628={};
var _629=qvt.TimelineToClip(pos).clipNum;
var clip=qvt.GetClip(_629);
var _62b=qvt.PrimaryURL();
if(qvt.timelineType()==MN.QVT.TimelineTypes.DIRECT_QMX){
_62b=qvt.initRaw;
}
if(!_62b){
_62b="";
}
if(clip&&"rangeStart" in clip&&clip.rangeStart!==null){
_628[_626.CLIP_RANGE_START]=clip.rangeStart+"";
}
if(clip&&"rangeEnd" in clip&&clip.rangeEnd!==null){
_628[_626.CLIP_RANGE_END]=clip.rangeEnd+"";
}
_628[_626.TIMELINE_URL]=_62b;
_628[_626.TIMELINE_SEEK_POS]=qvt.ClipToTimeline(_629,pos)+"";
_628[_626.TIMELINE_TYPE]=qvt.timelineType();
_628[_626.TIMELINE_ID]=qvt.timelineID()+"";
_628[_626.MEDIA_DATE]=qvt.timelineDate();
_628[_626.SDK_VERSION]=MN.RELEASE_VERSION;
_628[_626.SEGMENT_TYPE]=_627.CONTENT;
return _628;
}};
_pwp=undefined;
if(!window.Silverlight){
window.Silverlight={};
}
Silverlight._silverlightCount=0;
Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";
Silverlight.onGetSilverlight=null;
Silverlight.onSilverlightInstalled=function(){
window.location.reload(false);
};
Silverlight.isInstalled=function(_62c){
var _62d=false;
var _62e=null;
try{
var _62f=null;
if(typeof (ActiveXObject)!="undefined"){
_62f=new ActiveXObject("AgControl.AgControl");
if(_62c==null){
_62d=true;
}else{
if(_62f.IsVersionSupported(_62c)){
_62d=true;
}
}
_62f=null;
}else{
var _630=navigator.plugins["Silverlight Plug-In"];
if(_630){
if(_62c===null){
_62d=true;
}else{
var _631=_630.description;
if(_631==="1.0.30226.2"){
_631="2.0.30226.2";
}
var _632=_631.split(".");
while(_632.length>3){
_632.pop();
}
while(_632.length<4){
_632.push(0);
}
var _633=_62c.split(".");
while(_633.length>4){
_633.pop();
}
var _634;
var _635;
var _636=0;
do{
_634=parseInt(_633[_636]);
_635=parseInt(_632[_636]);
_636++;
}while(_636<_633.length&&_634===_635);
if(_634<=_635&&!isNaN(_634)){
_62d=true;
}
}
}
}
}
catch(e){
_62d=false;
}
if(_62e){
document.body.removeChild(_62e);
}
return _62d;
};
Silverlight.WaitForInstallCompletion=function(){
if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){
try{
navigator.plugins.refresh();
}
catch(e){
}
if(Silverlight.isInstalled(null)){
Silverlight.onSilverlightInstalled();
}else{
setTimeout(Silverlight.WaitForInstallCompletion,3000);
}
}
};
Silverlight.__startup=function(){
Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);
if(!Silverlight.isBrowserRestartRequired){
Silverlight.WaitForInstallCompletion();
}
if(window.removeEventListener){
window.removeEventListener("load",Silverlight.__startup,false);
}else{
window.detachEvent("onload",Silverlight.__startup);
}
};
if(window.addEventListener){
window.addEventListener("load",Silverlight.__startup,false);
}else{
window.attachEvent("onload",Silverlight.__startup);
}
Silverlight.createObject=function(_637,_638,id,_63a,_63b,_63c,_63d){
var _63e=new Object();
var _63f=_63a;
var _640=_63b;
_63e.version=_63f.version;
_63f.source=_637;
_63e.alt=_63f.alt;
if(_63c){
_63f.initParams=_63c;
}
if(_63f.isWindowless&&!_63f.windowless){
_63f.windowless=_63f.isWindowless;
}
if(_63f.framerate&&!_63f.maxFramerate){
_63f.maxFramerate=_63f.framerate;
}
if(id&&!_63f.id){
_63f.id=id;
}
delete _63f.ignoreBrowserVer;
delete _63f.inplaceInstallPrompt;
delete _63f.version;
delete _63f.isWindowless;
delete _63f.framerate;
delete _63f.data;
delete _63f.src;
delete _63f.alt;
if(Silverlight.isInstalled(_63e.version)){
for(var name in _640){
if(_640[name]){
if(name=="onLoad"&&typeof _640[name]=="function"&&_640[name].length!=1){
var _642=_640[name];
_640[name]=function(_643){
return _642(document.getElementById(id),_63d,_643);
};
}
var _644=Silverlight.__getHandlerName(_640[name]);
if(_644!=null){
_63f[name]=_644;
_640[name]=null;
}else{
throw "typeof events."+name+" must be 'function' or 'string'";
}
}
}
slPluginHTML=Silverlight.buildHTML(_63f);
}else{
slPluginHTML=Silverlight.buildPromptHTML(_63e);
}
if(_638){
_638.innerHTML=slPluginHTML;
}else{
return slPluginHTML;
}
};
Silverlight.buildHTML=function(_645){
var _646=[];
_646.push("<object type=\"application/x-silverlight\" data=\"data:application/x-silverlight,\"");
if(_645.id!=null){
_646.push(" id=\""+_645.id+"\"");
}
if(_645.width!=null){
_646.push(" width=\""+_645.width+"\"");
}
if(_645.height!=null){
_646.push(" height=\""+_645.height+"\"");
}
_646.push(" >");
delete _645.id;
delete _645.width;
delete _645.height;
for(var name in _645){
if(_645[name]){
_646.push("<param name=\""+Silverlight.HtmlAttributeEncode(name)+"\" value=\""+Silverlight.HtmlAttributeEncode(_645[name])+"\" />");
}
}
_646.push("</object>");
return _646.join("");
};
Silverlight.createObjectEx=function(_648){
var _649=_648;
var html=Silverlight.createObject(_649.source,_649.parentElement,_649.id,_649.properties,_649.events,_649.initParams,_649.context);
if(_649.parentElement==null){
return html;
}
};
Silverlight.buildPromptHTML=function(_64b){
var _64c="";
var _64d=Silverlight.fwlinkRoot;
var _64e=_64b.version;
if(_64b.alt){
_64c=_64b.alt;
}else{
if(!_64e){
_64e="";
}
_64c="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";
_64c=_64c.replace("{1}",_64e);
_64c=_64c.replace("{2}",_64d+"108181");
}
return _64c;
};
Silverlight.getSilverlight=function(_64f){
if(Silverlight.onGetSilverlight){
Silverlight.onGetSilverlight();
}
var _650="";
var _651=String(_64f).split(".");
if(_651.length>1){
var _652=parseInt(_651[0]);
if(isNaN(_652)||_652<2){
_650="1.0";
}else{
_650=_651[0]+"."+_651[1];
}
}
var _653="";
if(_650.match(/^\d+\056\d+$/)){
_653="&v="+_650;
}
Silverlight.followFWLink("114576"+_653);
};
Silverlight.followFWLink=function(_654){
top.location=Silverlight.fwlinkRoot+String(_654);
};
Silverlight.HtmlAttributeEncode=function(_655){
var c;
var _657="";
if(_655==null){
return null;
}
for(var cnt=0;cnt<_655.length;cnt++){
c=_655.charCodeAt(cnt);
if(((c>96)&&(c<123))||((c>64)&&(c<91))||((c>43)&&(c<58)&&(c!=47))||(c==95)){
_657=_657+String.fromCharCode(c);
}else{
_657=_657+"&#"+c+";";
}
}
return _657;
};
Silverlight.default_error_handler=function(_659,args){
var _65b;
var _65c=args.ErrorType;
_65b=args.ErrorCode;
var _65d="\nSilverlight error message     \n";
_65d+="ErrorCode: "+_65b+"\n";
_65d+="ErrorType: "+_65c+"       \n";
_65d+="Message: "+args.ErrorMessage+"     \n";
if(_65c=="ParserError"){
_65d+="XamlFile: "+args.xamlFile+"     \n";
_65d+="Line: "+args.lineNumber+"     \n";
_65d+="Position: "+args.charPosition+"     \n";
}else{
if(_65c=="RuntimeError"){
if(args.lineNumber!=0){
_65d+="Line: "+args.lineNumber+"     \n";
_65d+="Position: "+args.charPosition+"     \n";
}
_65d+="MethodName: "+args.methodName+"     \n";
}
}
MN.Log.error(_65d);
};
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(_65f){
var _660="";
if(typeof _65f=="string"){
_660=_65f;
}else{
if(typeof _65f=="function"){
if(Silverlight._silverlightCount==0){
if(window.addEventListener){
window.addEventListener("onunload",Silverlight.__cleanup,false);
}else{
window.attachEvent("onunload",Silverlight.__cleanup);
}
}
var _661=Silverlight._silverlightCount++;
_660="__slEvent"+_661;
window[_660]=_65f;
}else{
_660=null;
}
}
return _660;
};
if(!MN){
MN={};
}
function _MN_Silverlight_SLLoadCallback(_662,_663,_664){
MN.Silverlight.SilverlightCreatedCB(_662,_663,_664);
}
MN.Silverlight={plugin:null,configs:{},_meetsRecs:null,_meetsReqs:null,CreateSilverlightOverlay:function(_665){
log("Creating Silverlight overlay...");
MN.Silverlight.configs[_665.silverlightID]=_665;
if(typeof (_665.parentElement)=="string"){
_665.parentElement=$(_665.parentElement);
}
if(!_665.onError){
_665.onError=null;
}
if(!_665.onLoad){
_665.onLoad=null;
}
if(!_665.inPlaceInstallPrompt){
_665.inPlaceInstallPrompt=true;
}
if(!_665.fullScreenPosition){
_665.fullScreenPosition="top:0px,left:0px,height:100%,width:100%";
}
Silverlight.createObject(_665.source,_665.parentElement,_665.silverlightID,{width:_665.width,height:_665.height,inplaceInstallPrompt:_665.inPlaceInstallPrompt,background:"transparent",isWindowless:"true",version:"2.0",framerate:"24"},{onError:_665.onError,onLoad:_MN_Silverlight_SLLoadCallback},null);
log("Object emitted to DOM... waiting for Silverlight to load.");
},SilverlightCreatedCB:function(_666,_667,_668){
log("Silverlight plugin loaded.");
var _669=MN.Silverlight.configs[_666.id];
var _66a=null;
var qmp=_669.playerWrapper;
if(_669.playerWrapper&&_669.silverlightElement){
_66a=MN.Silverlight.MakeOverlay(qmp,qmp.player.id+"_"+_666.id.toString()+"_"+_669.silverlightElement,_666.id,_669.silverlightElement,_669.fullScreenPosition,_669.overrideRecommendations);
}else{
log("Silverlight overlay disabled");
}
if(_669.onLoad){
_669.onLoad(_66a,_666,_667,_668);
}
},MakeOverlay:function(_66c,_66d,_66e,_66f,_670,_671){
log("Connecting Silverlight overlay");
var _672=null;
var qmp=_66c;
if(!MN.Silverlight.meetsRequirements(qmp)){
return {disabled:MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED,show:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
},hide:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
},updateLayout:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
}};
}
if(!Boolean(_671)&&!MN.Silverlight.meetsRecommendations(qmp)){
return {disabled:MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED,show:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
},hide:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
},updateLayout:function(){
throw new Error(MN.Silverlight.ErrorTypes.SYS_NOT_SUPPORTED);
}};
}
if(typeof (MN.Silverlight.ZIndex)=="undefined"||MN.Silverlight.ZIndex===null){
MN.Silverlight.ZIndex=1;
}
if(MN.QMPInstall.OS()=="win"){
_672=qmp.player.AddSilverlightElement(_66e,_66f);
if(arguments.length>4){
_672.FullscreenSpec=_670;
}
log("Windows detected; overlays enabled");
}else{
var _674={"silverlightPlugin":_66e,"silverlightElement":_66f,"zIndex":MN.Silverlight.ZIndex++};
if(_670){
_674.fullScreenSpec=_670;
}
_672=qmp.player.MakeSilverlightOverlay(_66d,_674);
log("Mac detected; overlays enabled");
}
return _672;
},meetsRequirements:function(pwp){
if(MN.Silverlight._meetsReqs!==null){
return MN.Silverlight._meetsReqs;
}
var caps=new MN.Capabilities.HWInfo(pwp);
if(MN.QMPInstall.OS()=="win"){
if(!pwp.overlaysSupported()){
log("MN.Silverlight.meetsRequirements: Video renderer '"+videoRenderer+"'");
MN.Silverlight._meetsReqs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
var _677=caps.getCPUType();
if(_677.indexOf("PowerPC")>-1){
log("MN.Silverlight.meetsRequirements: CPU type '"+_677+"' contains 'PowerPC'");
MN.Silverlight._meetsReqs=false;
return false;
}
}
}
MN.Silverlight._meetsReqs=true;
return true;
},meetsRecommendations:function(pwp){
if(MN.Silverlight._meetsRecs!==null){
return MN.Silverlight._meetsRecs;
}
if(!MN.Silverlight.meetsRequirements(pwp)){
MN.Silverlight._meetsRecs=false;
return false;
}
var caps=new MN.Capabilities.HWInfo(pwp);
var _67a=caps.getRAMSize();
if(_67a<502){
log("MN.Silverlight.meetsRecommendations: RAM size "+_67a+" < 502");
MN.Silverlight._meetsRecs=false;
return false;
}
var _67b=caps.getCPUCount();
var _67c=caps.getCPUSpeed();
var _67d=parseInt(caps.getVideoRAMSize(),10);
if(MN.QMPInstall.OS()=="win"){
if(_67d<118&&_67d!==0){
log("MN.Silverlight.meetsRecommendations: Video RAM size "+_67d+" < 118");
MN.Silverlight._meetsRecs=false;
return false;
}
if(_67b<2&&_67c<2990){
log("MN.Silverlight.meetsRecommendations: CPU count "+_67b+" < 2 AND CPU speed "+_67c+" < 2990");
MN.Silverlight._meetsRecs=false;
return false;
}
}
if(MN.QMPInstall.OS()=="mac"){
if(_67b<2||_67c<1990){
log("MN.Silverlight.meetsRecommendations: CPU count "+_67b+" < 2 OR CPU speed "+_67c+" < 1990");
MN.Silverlight._meetsRecs=false;
return false;
}
if(_67d<118){
log("MN.Silverlight.meetsRecommendations: Video RAM size "+_67d+" < 118");
MN.Silverlight._meetsRecs=false;
return false;
}
}
MN.Silverlight._meetsRecs=true;
return true;
},ErrorTypes:{MISSING_PARAMS:"Silverlight overlay parameter missing",SYS_NOT_SUPPORTED:"Silverlight overlays not supported on this system"}};
function defaultSilverlightErrorHandler(_67e,args){
var _680="";
if(_67e!==null&&_67e!==0){
_680=_67e.getHost().Source;
}
var _681=args.ErrorType;
var _682=args.ErrorCode;
var _683="Unhandled Error in Silverlight 2 Application "+_680+"\n";
_683+="Code: "+_682+"    \n";
_683+="Category: "+_681+"       \n";
_683+="Message: "+args.ErrorMessage+"     \n";
if(_681=="ParserError"){
_683+="File: "+args.xamlFile+"     \n";
_683+="Line: "+args.lineNumber+"     \n";
_683+="Position: "+args.charPosition+"     \n";
}else{
if(_681=="RuntimeError"){
if(args.lineNumber!==0){
_683+="Line: "+args.lineNumber+"     \n";
_683+="Position: "+args.charPosition+"     \n";
}
_683+="MethodName: "+args.methodName+"     \n";
}
}
throw new Error(_683);
}

