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:"071701000007",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};
},_supportsOverlays:null};
if(!MN.Config){
MN.Config={reqPlayerVersions:{"win":"071101000055","mac":"071101000051"},availPlayerVersions:{"win":"071505000011","mac":"071505000006"},omnitureReportSuite:"mvnet00001111",omnitureDefaultPubID:"A0000099",enableOmnitureAnalytics:false,enableGoogleAnalytics:false,fallbackPubID:"",viewTrackURLTemplate:"http://moveservices.appspot.com/viewstats/viewed.gif?pubID=%pub_id%&assetID=%asset_id%"};
}
MN.Cookie={Set:function(key,_57,_58,_59,_5a){
if(!_59){
_59="/";
}
var _5b="";
if(_58){
var d=new Date();
d.setTime(d.getTime()+(_58*86400000));
_5b="; expires="+d.toGMTString();
}
if(_5a){
document.cookie="%s=%s%s; path=%s; domain=%s".format(key,_57,_5b,_59,_5a);
}else{
document.cookie="%s=%s%s; path=%s".format(key,_57,_5b,_59);
}
},Get:function(key){
key=key+"=";
var _5e=document.cookie.split(";");
for(var i=0,pl=_5e.length;i<pl;i++){
var c=_5e[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 _66=url.lastIndexOf("/");
if(i==_66){
return url+"/";
}
return url.substr(0,_66+1);
},Join:function(_67,rel){
if(!_67){
_67=window.location.href;
_67=_67.substring(0,_67.lastIndexOf("/")+1);
}
if(!rel){
return _67;
}
if(rel.indexOf("://")!=-1){
return rel;
}
if(rel.charAt(0)=="/"){
return MN.URL.Root(_67)+rel.substr(1);
}
return MN.URL.Base(_67)+rel;
},GetParams:function(url){
var ret={};
var q=url.indexOf("?");
if(q==-1){
return ret;
}
var _6c=url.substr(q+1).split("&");
for(var i=0,pl=_6c.length;i<pl;i++){
var _6e=_6c[i].split("=",2);
if(_6e.length==1){
ret[_6e[0]]=true;
}else{
if(_6e.length==2){
ret[_6e[0]]=decodeURIComponent(_6e[1]);
}
}
}
return ret;
},SetParams:function(url,_70){
var q=url.indexOf("?");
if(q!=-1){
url=url.substr(0,q);
}
var _72=[];
for(var i in (_70||{})){
_72.push(encodeURIComponent(i)+"="+encodeURIComponent(_70[i]));
}
if(_72.length===0){
return url;
}
return url+"?"+_72.join("&");
},AddParams:function(url,_75){
var _76=[];
for(var i in (_75||{})){
_76.push(encodeURIComponent(i)+"="+encodeURIComponent(_75[i]));
}
if(_76.length===0){
return url;
}
if(url.indexOf("?")==-1){
url+="?";
}else{
url+="&";
}
return url+_76.join("&");
},track:function(url){
var img=new Image();
img.src=url;
return url;
}};
MN.Event={windowLoaded:false,pointerX:function(_7a){
return _7a.pageX||(_7a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
},pointerY:function(_7b){
return _7b.pageY||(_7b.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
},_listenerFuncs:[],Observe:function(obj,_7d,cb){
obj=MN.$(obj);
if(_7d=="EvalScript"){
logError("Invalid registration for OnEvalScript");
return;
}
if(_7d=="EvalScript_fromflashobject"){
_7d="EvalScript";
}
var _7f="_"+_7d.toLowerCase()+"Listeners";
if(_7d=="EvalScript"){
if(obj[_7f]){
logError("Multiple registration attempts for OnEvalScript not allowed");
return;
}
}
if(!obj[_7f]){
obj[_7f]=[];
var _80=obj[_7f];
var _81=function(){
var _82;
for(var i=0,ll=_80.length;i<ll;i++){
try{
_82=_80[i].apply(this,arguments);
}
catch(e){
}
}
return _82;
};
if(obj.addEventListener){
obj.addEventListener(_7d,_81,false);
}else{
if(obj.attachEvent){
obj.attachEvent("on"+_7d,_81);
}
}
MN.Event._listenerFuncs.push([obj,_7d,_81]);
}
var _84=obj[_7f];
for(var i=0,hl=_84.length;i<hl;i++){
if(_84[i]==cb){
return;
}
}
_84.push(cb);
},StopObserving:function(obj,_87,cb){
obj=MN.$(obj);
var _89="_%sListeners".format(_87.toLowerCase());
var _8a=obj[_89];
if(!_8a){
return;
}
for(var i=0;i<_8a.length;i++){
if(_8a[i]==cb){
_8a.splice(i,1);
if(_8a.length===0){
var _8c=null;
var _8d=MN.Event._listenerFuncs;
for(var j=0;j<_8d.length;j++){
var _8f=_8d[j];
if(_8f[0]==obj&&_8f[1]==_87){
_8c=_8f[2];
_8d.splice(j,1);
break;
}
}
if(!_8c){
logError("Could not find all_listener to remove");
}else{
if(obj.removeEventListener){
obj.removeEventListener(_87,_8c,false);
}else{
obj.detachEvent("on"+_87,_8c);
}
}
obj[_89]=null;
}
break;
}
}
},RemoveAllObservers:function(){
for(var i=0;i<MN.Event._listenerFuncs.length;i++){
var _91=MN.Event._listenerFuncs[i];
var obj=_91[0];
var _93=_91[1];
obj["_%sListeners".format(_93.toLowerCase())]=null;
var _94=_91[2];
_91[0]=null;
if(obj.removeEventListener){
obj.removeEventListener(_93,_94,false);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_93,_94);
}
}
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(_96){
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(_96);
};
MN.Event.Observe(window,"unload",MN.Event.RemoveAllObservers);
MN.EventSource=MN.Class();
MN.EventSource.prototype.initialize=function(){
this.events={};
};
MN.EventSource.prototype.addEventListener=function(_97,_98){
_97=_97.toLowerCase();
if(!this.events[_97]){
this.events[_97]=[];
}
var _99=this.events[_97];
for(var i=0,ll=_99.length;i<ll;i++){
var _9b=_99[i];
if(_98==_9b){
return;
}
}
_99.push(_98);
};
MN.EventSource.prototype.attachEvent=function(_9c,_9d){
if(!_9c.toLowerCase().startswith("on")){
logError("attachEvent expects \"on<eventname>\" events not",_9c);
}else{
this.addEventListener(_9c.substr(2),_9d);
}
};
MN.EventSource.prototype.removeEventListener=function(_9e,_9f){
_9e=_9e.toLowerCase();
var _a0=this.events[_9e];
if(!_a0){
return;
}
var _a1=[];
for(var i=0,ll=_a0.length;i<ll;i++){
var _a3=_a0[i];
if(_a3!=_9f){
_a1.push(_a3);
}
}
this.events[_9e]=_a1;
};
MN.EventSource.prototype.FireEvent=function(_a4){
_a4=_a4.toLowerCase();
var _a5=this.events[_a4];
if(!_a5){
return;
}
var _a6=MN.ToArray(arguments).slice(1);
for(var i=0,ll=_a5.length;i<ll;i++){
var _a8=_a5[i];
try{
_a8.apply(this,_a6);
}
catch(e){
logError("Listener",_a8,"for event",_a4,"had uncaught exception:",e.message||e);
}
}
};
MN.EventSource.prototype.PostEvent=function(_a9){
_a9=_a9.toLowerCase();
var _aa=this.events[_a9];
if(!_aa){
return;
}
var _ab=MN.ToArray(arguments).slice(1);
var _ac=this;
for(var i=0,ll=_aa.length;i<ll;i++){
var _ae=_aa[i];
if(_ae){
setTimeout(function(){
try{
_ae.apply(_ac,_ab);
}
catch(e){
logError("Listener",_ae,"for event",_a9,"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 _b1=MN.ToArray(arguments).slice(2);
var _b2={};
for(var i=0,al=_b1.length/2;i<al;i++){
_b2[_b1[i*2]]=_b1[i*2+1];
}
return MN.AJAX.Call({method:"GET",url:url,callback:cb,params:_b2});
},Post:function(url,cb){
var _b6=MN.ToArray(arguments).slice(2);
var _b7={};
for(var i=0,al=_b6.length/2;i<al;i++){
_b7[_b6[i*2]]=_b6[i*2+1];
}
return MN.AJAX.Call({method:"POST",url:url,callback:cb,params:_b7});
},Submit:function(_b9,cb){
_b9=MN.$(_b9);
var opt={method:"POST",url:_b9.action,cache:false,callback:cb};
var _bc=[];
var _bd=function(_be,_bf){
_bc.push(encodeURIComponent(_be)+"="+encodeURIComponent(_bf));
};
for(var i=0,fl=_b9.length;i<fl;i++){
var el=_b9.elements[i];
if(!el.name){
continue;
}
switch(el.type.toLowerCase()){
case "hidden":
case "textarea":
case "text":
case "password":
_bd(el.name,el.value);
break;
case "radio":
case "checkbox":
if(el.checked){
_bd(el.name,el.value);
}
break;
case "button":
case "submit":
break;
case "select-one":
var _c2=el.selectedIndex;
if(_c2>=0){
var _c3=el.options[_c2];
var _c4=_c3.value;
if(!_c4){
_c4=_c3.text;
}
_bd(el.name,_c4);
}
break;
case "select-multiple":
for(var j=0,elen=el.length;j<elen;j++){
var _c6=el.options[j];
if(_c6.selected){
var _c7=_c6.value;
if(!_c7){
_c7=_c6.text;
}
_bd(el.name,_c7);
}
}
break;
default:
logError("MN.AJAX.Submit not handling",el.name,el.type,el.value);
break;
}
}
var _c8=MN.ToArray(arguments).slice(2);
for(var k=0,al=_c8.length/2;k<al;k++){
_bd(_c8[k*2],_c8[k*2+1]);
}
opt.body=_bc.join("&");
return MN.AJAX.Call(opt);
},Call:function(_ca){
var _cb=null;
var _cc=_ca.method||"GET";
var url=_ca.url;
if(!url){
_cb="Missing AJAX URL";
}
if(!_ca.callback){
_cb="Missing AJAX callback";
}
var req=MN.AJAX.Create();
if(!req){
_cb="AJAX not supported";
}
if(_cb){
if(_ca.callback){
return _ca.callback({status:400,statusText:_cb,responseText:""});
}else{
return logError("No AJAX callback given");
}
}
var _cf=_ca.params||{};
MN.Update(_cf,MN.URL.GetParams(url));
url=MN.URL.SetParams(url,{});
var _d0=_ca.headers||{};
if(MN.AJAX.forceNoCache||!_ca.cache){
_d0["Cache-control"]="no-cache";
if(_cc=="GET"){
_cf.__bah=(new Date()).getTime();
}
}
if(_cc=="POST"){
_d0["Content-type"]="application/x-www-form-urlencoded";
}
var _d1=_ca.body||"";
if(_cc=="POST"){
var _d2=MN.URL.SetParams("",_cf).substr(1);
if(_d2){
if(_d1){
_d1=_d1+"&"+_d2;
}else{
_d1=_d2;
}
}
_d0["Content-length"]=_d1.length;
}else{
_d1=null;
url=MN.URL.SetParams(url,_cf);
}
var tag=_ca.tag;
var cb=_ca.callback;
req.open(_cc,url);
for(var h in _d0){
if(_d0.hasOwnProperty(h)){
req.setRequestHeader(h,_d0[h]);
}
}
req.onreadystatechange=function(){
if(req.readyState==4&&cb){
var _d6={status:req.status,statusText:req.statusText,responseText:req.responseText,tag:tag};
cb(_d6);
}
};
if(_d1){
req.send(_d1);
}else{
req.send(null);
}
},forceNoCache:false};
MN.CSS={AddClass:function(_d7,_d8){
if(!_d8){
return;
}
var el=MN.$(_d7);
if(!el){
return;
}
var _da=MN.CSS.GetClasses(el);
for(var i=0,cl=_da.length;i<cl;i++){
if(_da[i]==_d8){
return;
}
}
el.className=el.className+" "+_d8;
},RemoveClass:function(_dc,_dd){
if(!_dd){
return;
}
var el=MN.$(_dc);
if(!el){
return;
}
var _df=MN.CSS.GetClasses(el);
var _e0=[];
for(var i=0,cl=_df.length;i<cl;i++){
var _e2=_df[i];
if(_e2!=_dd){
_e0.push(_e2);
}
}
el.className=_e0.join(" ");
},GetClasses:function(_e3){
var el=MN.$(_e3);
if(!el||!el.className){
return [];
}
return el.className.split(" ");
},GetElementsByClassName:function(_e5,_e6,_e7){
var _e8=[];
if(_e5.hasChildNodes()){
var _e9;
var _ea=_e5.childNodes;
for(var i=0,cl=_ea.length;i<cl;i++){
_e9=_ea[i];
if(_e9.nodeType==1){
if(_e9.className==_e6){
_e8.push(_e9);
}
if(_e7){
_e8=_e8.concat(this.GetElementsByClassName(_e9,_e6,_e7));
}
}
}
}
return _e8;
}};
MN.DOM={SetAttribute:function(el,_ed,_ee){
if(_ed=="klass"||_ed.toLowerCase()=="class"){
el.className=_ee;
}else{
if(_ed=="body"){
el.innerHTML=_ee;
}else{
if(_ed.toLowerCase().startswith("on")&&el.attachEvent){
eval("var f = function() { %s }".format(_ee));
el.attachEvent(_ed,f);
}else{
el.setAttribute(_ed,_ee);
}
}
}
},CreateElement:function(_ef){
var _f0=document.createElement(_ef.tag);
delete _ef.tag;
var _f1=null;
if(_ef.parent){
_f1=MN.$(_ef.parent);
delete _ef.parent;
}
var _f2=null;
if(_ef.pos){
_f2=_ef.pos;
delete _ef.pos;
}
var _f3=MN.DOM.SetAttribute;
for(var _f4 in _ef){
if(_ef.hasOwnProperty(_f4)){
_f3(_f0,_f4,_ef[_f4]);
}
}
if(_f1){
if(_f2===null){
_f1.appendChild(_f0);
}else{
_f1.insertBefore(_f0,_f1.childNodes[_f2]);
}
}
return _f0;
}};
MN.Position={cumulativeOffset:function(_f5){
var _f6=0,valueL=0;
do{
_f6+=_f5.offsetTop||0;
valueL+=_f5.offsetLeft||0;
_f5=_f5.offsetParent;
}while(_f5);
return [valueL,_f6];
},GetRelative:function(_f7,x,y){
var _fa=MN.Position.cumulativeOffset(MN.$(_f7));
return [x-_fa[0],y-_fa[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 _fd=document.getElementsByTagName("script");
for(var i=0,tl=_fd.length;i<tl;i++){
var tag=_fd[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(_104){
MN.UpdateAllLibs();
for(var i in MN._allLibs){
if(MN._allLibs.hasOwnProperty(i)){
if(i.indexOf(_104)!=-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(_10b){
log("PAGE: Initializing popups from anchor tags");
_10b=_10b||document.body;
var _10c=_10b.getElementsByTagName("a");
for(var i=0,al=_10c.length;i<al;i++){
var _10e=_10c[i];
if(_10e.className.indexOf("mn_popup")!=-1){
var func=MN.MakeBound(_10e,MN.PopupWin);
MN.Event.Observe(_10e,"click",func);
_10e.onclick=function(){
return false;
};
}
}
log("PAGE: Done with popups");
};
MN.PopupWin=function(){
var _110=this.getAttribute("popup_width")||650;
var _111=this.getAttribute("popup_height")||664;
window.open(this.getAttribute("href"),"popup","width="+_110+",height="+_111+",status=yes,scrollbars=yes,resizable=yes,location=no,toolbar=no");
};
MN._getImports=function(){
var tag=MN._getMNScriptTag();
var _113=tag.getAttribute("import");
if(!_113){
return;
}
return _113.split(" ");
};
MN.LoadAllLibraries=function(){
var _114=MN._getImports();
var _115=[];
if(_114){
for(var j=0,il=_114.length;j<il;j++){
var name=_114[j].strip();
if(name&&name!="logging"){
_115.push(name);
}
}
for(var k=0,ll=_115.length;k<ll;k++){
MN.LoadLibrary(_115[k]);
}
}
};
MN.LoadSkinLibraries=function(_119){
var tag=MN._getMNScriptTag();
var _11b=tag.getAttribute("skins");
_11b=_11b.split(" ");
var _11c=[];
for(var j=0,il=_11b.length;j<il;j++){
var name=_11b[j].strip();
if(name){
_11c.push(name);
}
}
for(var k=0,ll=_11c.length;k<ll;k++){
MN.LoadSkinLibrary(_11c[k]);
}
};
MN.LoadSkinLibrary=function(_120){
MN.LoadLibrary(MN.URL.Join(MN._skinPath,_120));
};
MN.loadLogging=function(){
MN.Log={};
MN.Log.LogLevels={};
var _121=["init","IsVisible","ShowPane","log","debug","info","warn","error"];
var _122=0;
for(_122=0;_122<_121.length;_122++){
MN.Log[_121[_122]]=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 _123=MN._getImports();
var i=0;
if(_123){
for(i=0;i<_123.length;i++){
if(_123[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(_127,_128){
var a,i,k,l,v;
switch(typeof _127){
case "string":
return (/["\\\x00-\x1f]/).test(_127)?"\""+_127.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);
})+"\"":"\""+_127+"\"";
case "number":
return isFinite(_127)?String(_127):"null";
case "boolean":
return String(_127);
case "null":
return "null";
case "object":
if(!_127){
return "null";
}
if(typeof _127.toJSON==="function"){
return stringify(_127.toJSON());
}
a=[];
if(_127.constructor===Array){
l=_127.length;
for(i=0;i<l;i+=1){
a.push(stringify(_127[i],_128)||"null");
}
return "["+a.join(",")+"]";
}
if(_128){
l=_128.length;
for(i=0;i<l;i+=1){
k=_128[i];
if(typeof k==="string"){
v=stringify(_127[k],_128);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}else{
for(k in _127){
if(typeof k==="string"){
v=stringify(_127[k],_128);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}
return "{"+a.join(",")+"}";
}
}
return {stringify:stringify,parse:function(text,_12d){
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 _12d(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 _12d==="function"?walk("",j):j;
}
throw new SyntaxError("parseJSON");
}};
}();
if(!this.JSON){
this.JSON=MN.JSON;
}
MN.safeToEval=function(js){
var _133=js.indexOf("(");
var func=js.substring(0,_133);
var _135=js.substring(_133+1,js.length-1);
if(_135===undefined){
return false;
}
_135=MN.JSON.parse("{\"params\":["+_135+"]}").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(_136,_137){
var QI=MN.QMPInstall;
var MTO=MN.TrackInstall.Omniture;
if(!_137){
_137={};
}
_137.prop5="event"+_136;
if(MN.Config.enableOmnitureAnalytics){
log("omniturea:OT: %s".format(_136));
MTO.loadImg(MTO.getImgURL(MTO.eventMap[_136],_137));
}
},paramsToStr:function(_13a){
var MTO=MN.TrackInstall.Omniture;
var _13c="";
var _13d=true;
var _13e,eVar;
for(var _13f in _13a){
if(_13a.hasOwnProperty(_13f)){
if(!_13d){
_13c+="&";
}
_13d=false;
eVar=MTO.propMap[_13f];
if(eVar){
_13c+=escape(eVar)+"="+escape(_13a[_13f])+"&";
}
if(_13f.startswith("prop")){
_13e="c"+_13f.substr(4);
}
_13c+=escape(_13e)+"="+escape(_13a[_13f]);
}
}
return _13c;
},getReportSuite:function(){
return MN.TrackInstall.Omniture.reportSuite;
},_getPubID:function(){
var _140="";
var _141=MN._libBase.split("/");
if(_141[3]=="pub"){
_140=_141[4];
}
if(_140===""){
_140=MN.Config.fallbackPubID;
}
return _140;
},getPubID:function(){
var MTO=MN.TrackInstall.Omniture;
var _143=MTO.defaultPubID;
var _144=MTO._getPubID();
if(_144!=""){
_143=_144;
}
return _143;
},getServerParams:function(){
var MTO=MN.TrackInstall.Omniture;
var _146=encodeURIComponent(MN.URL.Join(MN._libBase,"movenetworks.js"));
var s="server=%s&v6=%s".format(_146,_146);
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(_14b){
var s="events=";
var e;
var _14e=true;
for(var i=0;i<_14b.length;i++){
if(!_14e){
s+=",";
}
s+="event"+_14b[i];
_14e=false;
}
return s;
},getImgURL:function(_150,_151){
var _152=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+"/"+_152;
is+="?[AQB]";
is+="&"+MTO.getPageNameParams();
is+="&"+MTO.getServerParams();
is+="&"+MTO.getPubIDParams();
is+="&"+MTO.getEventParams([_150]);
if(_151){
is+="&"+MTO.paramsToStr(_151);
}
is+="&[AQE]";
log("MTO.getImgURL.is: '%s'".format(is));
return is;
},loadImg:function(_155){
var img=new Image();
img.src=_155;
}};
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:false,allowVisMozilla:true,allowVisIE:true,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,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(_157,_158,_159){
var _15a="";
if(_158){
for(var _15b in _158){
if(_158.hasOwnProperty(_15b)){
_15a+="param"+_158[_15b];
}
}
}
var _15c="MNAnalytic"+_157+_15a+"Fired";
log("cookieName =",_15c);
if(!MN.Cookie.Get(_15c)||_159){
MN.QMPInstall.events.FireEvent("track",_157,_158);
MN.Cookie.Set(_15c,"1");
}
},DispatchInstallEvent:function(_15d,_15e,_15f){
var _160="";
if(_15e){
for(var _161 in _15e){
if(_15e.hasOwnProperty(_161)&&_161!="msg"){
_160+="param"+_15e[_161];
}
}
}
var _162="MN.QMPInstall."+_15d+_160+"Fired";
log("cookieName =",_162);
if(!MN.Cookie.Get(_162)||_15f){
MN.QMPInstall.events.FireEvent("install",_15d,_15e);
MN.Cookie.Set(_162,"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(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 _166=["webtv","hotjava","spoofer","flock"];
var _167=false;
for(var i=0,sorryLen=_166.length;i<sorryLen;i++){
if(ua.indexOf(_166[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;
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 _16a=parseInt(ua.substring(ua.indexOf("safari/")+7),10);
var _16b=parseInt(ua.substring(ua.indexOf("applewebkit/")+12),10);
if(_16a<312){
return;
}else{
if(_16a==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 _16e=QI.controllers[name];
if(_16e){
QI.controller=new _16e();
}
},alreadyProbed:false,installedVersion:null,unpaddedVersion:null,GetInstalledVersion:function(){
var QI=MN.QMPInstall;
var _170=null;
if(QI.alreadyProbed){
return QI.installedVersion;
}
if(!QI.OSIsGood()){
return null;
}
if(!QI.BrowserIsGood()){
return null;
}
QI.controller.RefreshPlugins();
_170=QI.controller.GetInstalledVersion();
QI.unpaddedVersion=_170;
if(_170){
_170=QI._padVersionString(_170,QI.QMP_VERSION_LENGTH);
}
QI.installedVersion=_170;
QI.alreadyProbed=true;
return QI.installedVersion;
},_padVersionString:function(_171,_172){
while(_171.length<_172){
_171="0"+_171;
}
return _171;
},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(_177,_178){
var QI=MN.QMPInstall;
var mod=new QI.Module(_177,_178);
QI.modules[_177]=mod;
},MakePlayerID:function(_17b){
return _17b+"_QMP";
},GetSilverlightVersion:function(){
var QI=MN.QMPInstall;
return QI.controller.GetSilverlightVersion();
},EmitObj:function(_17d,w,h,_180,_181,_182,_183,_184){
var QI=MN.QMPInstall;
var name=null;
var _187="";
QI.forcedUpgrade=_181;
if(QI.osIsPanther){
if(MN.Cookie.Get("needrestart")){
log("Panther upgraded. Need browser restart.");
QI._requestRestart(_17d);
}
}
if(!_180){
_180=QI.MakePlayerID(_17d);
}
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=_17d;
QI.playerID=_180;
for(name in _184){
if(_184.hasOwnProperty(name)){
_187+="<PARAM NAME=\"%s\" VALUE=\"%s\">".format(name,_184[name]);
}
}
if(_182){
_187+="<PARAM NAME=\"VersionTest\" VALUE=\"1\">";
}
if(_183){
_187+="<PARAM NAME=\"FlashObject\" VALUE=\"1\">";
}
_187+="<PARAM NAME=\"movePlayerId\" VALUE=\""+_180+"\">";
log("Created param for movePlayerId to "+_180);
var html=QI.controller.GetObjectStr(_182).format(_180,w,h,"",_187);
MN.$(_17d).innerHTML=html;
var _189=this._postEmitObj;
setTimeout(function(){
_189(_17d,w,h,_180,_181,_182,_183,_184);
},1);
if(!QI.osIsWin2k){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_180,0,_181);
},100);
}
return _180;
},_postEmitObj:function(_18a,w,h,_18d,_18e,_18f,_190,_191){
var _192=MN.$(_18d);
MN.Event.Observe(_192,"Error",QI._PlayerError);
_192.Set("SDKVersion",String(MN.RELEASE_VERSION));
_192.Set("SilverlightVersion",QI.GetSilverlightVersion());
if(!_18f&&!_190){
QI._unloadModules(_192);
if(QI._ModulesLeft()>0){
QI._SetModulesURL(_192);
QI.modulesPlayer=_192;
QI._RequestModules();
}
}
if(QI.OS()=="win"){
var _193=_192.GetSetting("RendererUseOverlays");
log("Overlays set to : %s".format(_193));
if(_193!="no"){
log("Turning off overlays");
_192.PutSetting("RendererUseOverlays","no");
MN.$(_18a).innerHTML="";
QI.EmitObj(_18a,w,h,_18d,_18e,_18f,_190,_191);
}
}
if(_192&&(_192.PlayerId!==null)){
QI.playerIDToPlayer[_192.PlayerId]=_192;
}else{
if(QI.Browser()!="ie"){
QI.nullPlayers.push(_192);
setTimeout(function(){
QI.ScanPlayerIDs(false);
},100);
}
}
},_SetModulesURL:function(_194){
log("Setting modules URL to "+QI.clientModulesBase);
_194.Set("ModulesURL",QI.clientModulesBase);
},_ModulesLeft:function(){
var _195=0;
for(var i in MN.QMPInstall.modules){
if(MN.QMPInstall.modules.hasOwnProperty(i)){
_195++;
}
}
return _195;
},_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 _198=QI._createParams;
var msg;
msg=QI.MSG_DOWNLOADMODULES_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_198.parentID,msg:msg});
if(!_198.hideHTML){
var _19a=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(!mm){
var e=document.createElement("div");
e.id="modulemessage";
e.innerHTML=QI.MSG_DOWNLOADMODULES;
_19a.appendChild(e);
}else{
var mms=MN.$("modulemessagespan");
mms.innerHTML+=".";
}
}
},_RemoveModulesMessage:function(){
var QI=MN.QMPInstall;
var _19f=QI._createParams;
if(!_19f.hideHTML){
var _1a0=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(mm){
_1a0.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 _1a2 in QI.modules){
if(QI.modules.hasOwnProperty(_1a2)){
var _1a3=QI.modules[_1a2];
log("Loading requested module '%s'".format(_1a3.name));
if(typeof QI.modulesPlayer.LoadModule=="undefined"){
log("This player has no LoadModule method, skipping module load");
return;
}
_1a3.dltries++;
log("Try #%s for module '%s'".format(_1a3.dltries,_1a3.name));
if(_1a3.dltries>3){
log("Download attempts for module '%s' = %s, giving up".format(_1a3.name,_1a3.dltries));
delete (QI.modules[_1a3.name]);
}else{
try{
QI.FireEvent(MN.TrackInstall.Events.ModuleRequest,{prop4:_1a3.name});
QI.modulesPlayer.LoadModule(_1a3.name);
}
catch(e){
log("LoadModule failed: ",e);
delete (QI.modules[_1a3.name]);
}
}
}
}
}
},_ModuleLoaded:function(_1a4){
log("Module '%s' loaded".format(_1a4));
QI.FireEvent(MN.TrackInstall.Events.ModuleSuccess,{prop4:_1a4});
if(typeof QI.modules[_1a4]!="undefined"){
delete (QI.modules[_1a4]);
}
},_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(_1a7){
var QI=MN.QMPInstall;
log("Client says module '%s' failed to load, trying again.".format(_1a7));
QI.failedModuleCount++;
},_forceReinstall:function(){
var QI=MN.QMPInstall;
QI.InstallUpgradeCheckRetries=40;
QI.PrepCanInstall(true);
},NeedBGUpgrade:function(_1aa){
return have<avail;
},_AsyncStartUpgrade:function(_1ab,_1ac,_1ad){
var QI=MN.QMPInstall;
var _1af=QI._createParams;
if(!_1ac){
_1ac=0;
}
var _1b0=MN.$(_1ab);
if(!_1b0||!_1b0.Version){
if(_1ad||_1ac<20){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_1ab,_1ac+1,_1ad);
},250);
}else{
logError("QI.SBI:Failed to grab player instance for bgup :: playerID = %s".format(_1ab));
}
return;
}
var _1b1=0;
try{
_1b1=parseInt(_1b0.Get("Download.APIVersion")||0,10);
}
catch(e){
}
var _1b2=_1b0.Version;
var _1b3=QI.osIsVista&&(_1b2<="000007033101");
if(_1b3){
log("old vista, need to force");
_1ad=true;
}
if(_1b1<1||_1b3){
log("QI.SBI:Current client does not support background upgrades : may be vista forced upgrade");
if(_1ad){
QI._forceReinstall();
}
return;
}
if(_1ad){
QI.ShowUpgradeStart(_1af.parentID);
}
var _1b4=QI.GetAvailableVer();
QI._beforeUpgradeVersion=_1b0.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,_1b4));
if(QI._beforeUpgradeVersion>=_1b4){
log("QI.SBI:Skipping background update: already up to date");
return;
}
var url=QI.controller.MakeUpgradeURL(false,_1ad);
var _1b6=url.split("/");
var _1b7=_1b6[_1b6.length-1];
var _1b8=_1b7.split(".")[1];
var key="Download.%s.%s.%s".format(_1ad?"Force":"NoForce",_1b4,_1b7);
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 "+_1b4,prop3:_1b8});
_1b0.Set(key,url);
var _1ba="Download.Status.%s.%s".format(_1b4,_1b7);
QI._MonitorUpgrade(_1b0,_1ba,_1ad);
},_MonitorUpgrade:function(_1bb,_1bc,_1bd){
var QI=MN.QMPInstall;
var _1bf=QI._createParams;
var _1c0=true;
if(QI.bgUpgradeFailed===true){
_1c0=false;
return;
}
var _1c1=_1bb.Get(_1bc)||"";
var _1c2=_1c1.split(",");
if(_1c2.length==4){
var _1c3=_1c2[0];
var _1c4=_1c2[1];
var _1c5=_1c2[3];
if(!isNaN(_1c4)){
_1c4=Math.floor(_1c4);
}
log("QI.MBU:",_1c3,_1c4,_1c5);
if(_1c3=="downloading"||_1c3=="downloadSucceeded"||_1c3=="installing"){
if(_1bd&&_1c3=="downloading"){
if(!isNaN(_1c4)&&_1c4>0){
QI.ShowUpgradeProgress(_1bf.parentID,"Loading (%s% complete)".format(_1c4));
}else{
QI.ShowUpgradeProgress(_1bf.parentID,"Connecting to update server...");
}
}
}else{
_1c0=false;
log("QI.MBU: stopping tracking");
var ok=(_1c3.toLowerCase().indexOf("failed")==-1&&_1c3.toLowerCase().indexOf("error")==-1);
if(ok){
QI.ShowUpgradeProgress(_1bf.parentID,"Loading (100% complete)".format(_1c4));
}
setTimeout(function(){
QI.OnUpgradeDone(ok,_1bd,_1c3,_1c4,_1bb.Get("Download.LatestVersion"));
},1);
}
}
if(_1c0){
setTimeout(function(){
QI._MonitorUpgrade(_1bb,_1bc,_1bd);
},_1bd?250:5000);
}
},_requestRestart:function(_1c7){
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:_1c7,msg:msg});
if(!QI._createParams.hideHTML){
MN.$(_1c7).innerHTML=QI.MSG_NEEDRESTART;
}
},_unloadModules:function(_1c9){
var QI=MN.QMPInstall;
var os=QI.OS();
var _1cc=QI._createParams;
log("_unloadModules: checking QI.originalVersion, which is",QI.originalVersion);
if(os=="win"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084059"){
QI._requestRestart(_1cc.parentID);
}
if(os=="mac"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084039"){
QI._requestRestart(_1cc.parentID);
}
},_displayBadOS:function(_1cd){
var QI=MN.QMPInstall;
msg=QI.MSG_BADOS_TXT.format(QI.oses.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_1cd,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_BADOS.format(QI.oses.join("<br>"));
MN.$(_1cd).innerHTML=msg;
}
},_displayBadBrowser:function(_1cf){
var QI=MN.QMPInstall;
msg=QI.MSG_BADBROWSER_TXT.format(QI.browsers.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_1cf,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_BADBROWSER.format(QI.browsers.join("<br>"));
MN.$(_1cf).innerHTML=msg;
}
},_displayInviteInstall:function(_1d1){
var msg;
var QI=MN.QMPInstall;
var _1d4=QI._createParams;
_1d1=Boolean(_1d1);
if(_1d1){
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:_1d4.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:_1d4.parentID,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_CANINSTALL;
MN.$(QI._createParams.parentID).innerHTML=msg;
QI.DispatchInstallEvent(QI.Events.InstallInvite,{pid:_1d4.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(_1d6,_1d7,w,h,_1da,_1db){
var QI=MN.QMPInstall;
if(QI.installInProgress){
return;
}
if(_1db===null||_1db===undefined){
QI.hideHTML=false;
log("hideHTML = false");
}else{
QI.hideHTML=_1db;
log("hideHTML = %s".format(QI.hideHTML));
}
if(!_1da){
_1da=QI.MakePlayerID(_1d6);
}
if(MN.Cookie.Get("needrestart")){
QI._requestRestart(_1d6);
return;
}
var _1dd=_1d7;
QI.RegisterCustomInstaller(function(_1de){
QI.setFirstTime(false);
_1de();
});
_1d7=function(){
var _1df=Array.prototype.slice.call(arguments);
QI._callCustomInstallers(_1d6,function(){
_1dd.apply(null,_1df);
},w,h,_1da,_1db);
};
QI._createParams={"parentID":_1d6,"playerID":_1da,"DoneCB":_1d7,"w":w,"h":h,"hideHTML":QI.hideHTML};
if(QI.InstallRequired()){
var msg="";
if(!QI.OSIsGood()||QI.osIsWin2k){
QI._displayBadOS(_1d6);
return;
}
if(!QI.BrowserIsGood()){
QI._displayBadBrowser(_1d6);
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(_1d6);
}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(_1d6,w,h,_1da,false,false);
QI._CallAfterModules(_1d7);
}
}
},RegisterCustomInstaller:function(_1e1){
var QI=MN.QMPInstall;
QI._installers.push(_1e1);
},_callCustomInstallers:function(_1e3,_1e4,w,h,_1e7,_1e8){
var QI=MN.QMPInstall;
QI._installLists[_1e3]=QI._installers.slice();
QI._installLists[_1e3].push(_1e4);
QI._customInstallerCallback(_1e3,arguments);
},_customInstallerCallback:function(_1ea,args){
var QI=MN.QMPInstall;
var _1ed=Array.prototype.slice.call(args);
var _1ee=function(){
QI._customInstallerCallback(_1ea,args);
};
_1ed.unshift(_1ee);
var _1ef;
_1ef=QI._installLists[_1ea].shift();
_1ef.apply(QI,_1ed);
},_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(_1f2){
var QI=MN.QMPInstall;
var _1f4=QI._createParams;
var _1f5=QI.controller.HaveReliableJava();
log("PCI:have reliable java",_1f5);
if(_1f5===null){
if(QI.Browser()=="safari"||QI.Browser()=="firefox"&&QI.OS()=="mac"){
log("creating applet via innerHTML");
_1f4.appletDiv=document.createElement("div");
_1f4.appletDiv.id="_qmpInstallerAppletDiv";
_1f4.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(_1f4.appletDiv);
}else{
log("creating applet via createElement");
var _1f6=document.createElement("applet");
_1f6.setAttribute("id","_qmpCheckJavaApplet");
_1f6.setAttribute("code","CheckJava.class");
_1f6.setAttribute("codebase",QI.libBase);
_1f6.style.display="block";
_1f6.style.width="1px";
_1f6.style.height="1px";
_1f6.setAttribute("MAYSCRIPT","true");
document.body.appendChild(_1f6);
}
setTimeout(function(){
QI.CheckAppletLoad(0,_1f2);
},250);
}else{
QI._usingJavaInstaller=_1f5;
QI._displayInviteInstall(_1f2);
return;
}
},CheckAppletLoad:function(_1f7,_1f8){
var _1f9=_1f7||0;
var QI=MN.QMPInstall;
var _1fb=MN.$("_qmpCheckJavaApplet");
var _1fc="";
if(_1fb){
var _1fd=false;
try{
_1fc=_1fb.GetJavaVersion();
log("applet says javaVer",_1fc);
QI._usingJavaInstaller=true;
_1fd=true;
}
catch(e){
logError("Error getting applet java version: ",e.message,_1f9);
_1f9++;
if((QI.Browser()=="ie"&&_1fb.readyState==4)||_1f9>30){
QI._usingJavaInstaller=false;
_1fd=true;
}
}
if(_1fd){
QI._displayInviteInstall(_1f8);
return;
}
}
setTimeout(function(){
MN.QMPInstall.CheckAppletLoad(_1f9);
},333);
},StartInstall:function(_1fe){
var QI=MN.QMPInstall;
var _200=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:_200.parentID,msg:msg});
if(!_200.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&&!_1fe){
setTimeout(function(){
QI.appletProgressCount=0;
QI.fakeProgress=0;
log("StartInstall:using Java installer");
var _202=QI.controller.MakeSetupURL();
var _203=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(_202));
_200.appletDiv=document.createElement("div");
_200.appletDiv.id="_qmpInstallerAppletDiv";
_200.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(_203,_202);
document.body.appendChild(_200.appletDiv);
}else{
log("creating applet via createElement");
log("pkgurl : %s".format(_202));
var _204=document.createElement("applet");
_204.setAttribute("id","_qmpInstallerApplet");
_204.setAttribute("code","InstallApplet.class");
_204.setAttribute("archive",_203);
_204.style.display="block";
_204.style.width="1px";
_204.style.height="1px";
_204.setAttribute("MAYSCRIPT","true");
var _205=document.createElement("param");
_205.setAttribute("name","pkgurl");
_205.setAttribute("value",_202);
_204.appendChild(_205);
document.body.appendChild(_204);
}
setTimeout(QI.CheckInstallProgress,500);
log("applet created");
},100);
}else{
if(QI.controller.RequiresJavaInstaller()){
msg=QI.MSG_NOINSTALLMETHOD_TXT;
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_200.parentID,msg:msg});
if(!_200.hideHTML){
msg=QI.MSG_NOINSTALLMETHOD;
MN.$(_200.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:_200.parentID,msg:msg});
if(!_200.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(_207){
var QI=MN.QMPInstall;
var _209=_207||0;
var _20a=MN.$("_qmpInstallerApplet");
var _20b=0;
if(_20a){
try{
_20b=_20a.GetProgressPercent();
}
catch(e){
_209++;
if(_209>3&&!QI.controller.RequiresJavaInstaller()){
log("Java installer failed to start, switching to .exe mode");
QI.allowWinJavaInstaller=false;
QI._usingJavaInstaller=false;
QI.StartInstall();
return;
}
}
}
if(_20b<100){
setTimeout(function(){
MN.QMPInstall.CheckAppletProgress(_209);
},500);
}
},OnAppletProgress:function(msg,_20d){
var QI=MN.QMPInstall;
var _20f=QI._createParams;
if(!isNaN(_20d)){
_20d=Math.floor(_20d);
}
log("OnAppletProgress",msg,_20d);
MN.QMPInstall.appletProgressCount++;
var _210=msg+" : "+_20d;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_20f.parentID,msg:_210});
if(!_20f.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*_20d/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 _21a=QI.installCheckCount;
var _21b=null;
if(!_21a){
_21a=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(_21a>0){
QI.FireEvent(MN.TrackInstall.Events.InstallSuccess,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
_21b=QI._createParams;
QI.ScanPlayerIDs(true);
setTimeout(function(){
log("Attempting to create player again.");
QI.installInProgress=false;
log("QI:CIP: params.parentID :: %s".format(_21b.parentID));
log("QI:CIP: params.playerID :: %s".format(_21b.playerID));
MN.QMPInstall.CreatePlayer(_21b.parentID,_21b.DoneCB,_21b.w,_21b.h,_21b.playerID,_21b.hideHTML);
QI.DispatchInstallEvent(QI.Events.InstallSuccess,{pid:_21b.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(_21d){
var QI=MN.QMPInstall;
msg=QI.MSG_NEEDUPGRADE_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_21d,msg:msg});
if(!QI._createParams.hideHTML){
msg=QI.MSG_NEEDUPGRADE;
MN.$(_21d).innerHTML=msg;
}
},ShowUpgradeProgress:function(_21f,msg){
var QI=MN.QMPInstall;
msg=QI.MSG_UPGRADING.format(msg);
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_21f,msg:msg});
if(!QI._createParams.hideHTML){
msg=MN.QMPInstall.MSG_UPGRADING.format(msg);
var sp=MN.$("_qmpUpgradeProgress");
if(sp){
sp.innerHTML=msg;
}
}
},ShowUpgradeDone:function(_223){
var QI=MN.QMPInstall;
var _225=QI._createParams;
if(QI.osIsPanther){
QI.ShowUpgradeProgress(_225.parentID,"Upgrade done, Please restart your browser.");
}else{
QI.ShowUpgradeProgress(_225.parentID,"Upgrade done, playback will start soon...");
}
},ShowUpgradeError:function(_226,_227){
var QI=MN.QMPInstall;
var _229=QI._createParams;
if(!_229.hideHTML){
msg=MN.QMPInstall.MSG_UPGRADEFAILED.format(_227||"");
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:_226,msg:_227});
},StartUpgrade:function(_22b){
var _22c=_22b||0;
var QI=MN.QMPInstall;
var _22e=QI._createParams;
_22e.upAttempts=_22c+1;
QI.originalVersion=QI.GetInstalledVersion();
log("Set QI.originalVersion to",QI.originalVersion);
if(_22c<=3&&QI.allowOldUpgradeAPI&&QI.controller.UseOldUpgradeAPI()){
QI._forceReinstall();
return;
}
if(QI.osIsPanther){
MN.Cookie.Set("needrestart","1");
}
_22e.upPlayerDiv=document.createElement("div");
_22e.upPlayerDiv.id="_qmpUpgradePlayer";
_22e.upPlayerDiv.style.display="block";
_22e.upPlayerDiv.style.width="1px";
_22e.upPlayerDiv.style.height="0px";
document.body.appendChild(_22e.upPlayerDiv);
setTimeout(function(){
QI.EmitObj("_qmpUpgradePlayer",1,1,null,true,true);
},10);
},OnUpgradeDone:function(_22f,_230,_231,_232,_233){
var QI=MN.QMPInstall;
var _235=QI._createParams;
if(_22f){
QI.ShowUpgradeDone(_235.parentID);
QI.FireEvent(MN.TrackInstall.Events.UpgradeSuccess,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI._beforeUpgradeVersion+" to "+_233,prop3:QI.controller.packageExt});
}
if(_235.upPlayerDiv){
_235.upPlayerDiv.innerHTML="";
document.body.removeChild(_235.upPlayerDiv);
_235.upPlayerDiv=null;
}
QI.ResetProbe();
if(!_230){
return;
}
if(QI.osIsPanther){
return;
}
if(_22f){
log("QI.OUD: Retrying CreatePlayer");
QI._completedUpgrade=true;
QI.ScanPlayerIDs(true);
setTimeout(function(){
MN.QMPInstall.CreatePlayer(_235.parentID,_235.DoneCB,_235.w,_235.h,_235.playerID,_235.hideHTML);
},2000);
}else{
if(_235.upAttempts<=QI.upgradeAutoRetries){
log("Upgrade failed; trying again ("+_235.upAttempts+" out of "+QI.upgradeAutoRetries+" attempts made)");
QI.ShowUpgradeProgress(_235.parentID,"Download failed; retrying...");
setTimeout(function(){
MN.QMPInstall.StartUpgrade(_235.upAttempts);
},750);
}else{
if(_232=="0"){
_232="Could not download file";
}
if(_232=="1"){
_232="invalid package URL";
}else{
if(_232=="2"){
_232="failed to build patch to downloaded file";
}else{
if(_232=="3"){
_232="failed to unpack upgrade package";
}else{
if(_232=="4"){
_232="failed to run upgrade installer";
}
}
}
}
QI.ShowUpgradeError(_235.parentID,_232);
}
}
},_completedUpgrade:false,_createParams:{},playerIDToPlayer:{},nullPlayers:[],GetMinRequiredVer:function(_236){
var QI=MN.QMPInstall;
if(!_236){
_236=QI.OS();
}
var ver=QI.reqVersions[_236];
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(_239){
var QI=MN.QMPInstall;
return QI._padVersionString(QI.GetAvailableVerUnpadded(_239),QI.QMP_VERSION_LENGTH);
},GetAvailableVerUnpadded:function(_23b){
var QI=MN.QMPInstall;
if(!_23b){
_23b=QI.OS();
}
if(!QI.availVersions[_23b]){
QI.availVersions[_23b]="";
}
return QI.availVersions[_23b];
},IsBGMacVersion:function(){
var QI=MN.QMPInstall;
var _23e=QI.controller.GetInstalledVersion();
var _23f=false;
var _240=["000007030901","000007032909","000007032907","000007032905","000007032903","000007032901","000007022601","000007022601","000007021503","000007010901"];
for(i=0;i<_240.length;i++){
if(_23e==_240[i]){
_23f=true;
break;
}
}
return _23f;
},ScanPlayerIDs:function(_241){
var QI=MN.QMPInstall;
if(_241){
QI.playerIDToPlayer={};
QI.nullPlayers=[];
return;
}
var pID=null;
var p=null;
var _245=[];
for(var i=0,pl=QI.nullPlayers.length;i<pl;i++){
p=QI.nullPlayers[i];
pID=p.PlayerId;
if(!pID){
_245.push(p);
log("FOUND still null");
}else{
QI.playerIDToPlayer[pID]=p;
}
}
QI.nullPlayers=_245;
var _247={};
for(pID in QI.playerIDToPlayer){
if(QI.playerIDToPlayer.hasOwnProperty(pID)){
p=QI.playerIDToPlayer[pID];
var _248=p.PlayerId;
_247[_248]=p;
}
}
QI.playerIDToPlayer=_247;
}};
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 _24f=navigator.plugins[i];
if(!_24f||_24f.name.toLowerCase().indexOf("java")==-1){
continue;
}
for(var j=0,pl=_24f.length;j<pl;j++){
var _251=_24f[j];
if(!_251){
continue;
}
if(_251.type&&_251.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(_252){
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(_253){
logError("MakeUpgradeURL must be overriden");
return false;
};
_p.MakeSetupURL=function(){
logError("MakeSetupURL must be overriden");
return false;
};
_p.WaitForInstall=function(_254){
this.RefreshPlugins();
var _255=navigator.plugins[this.pluginName];
if(_255!==undefined&&_255!==null){
var _256=_255.description.split(" ")[1];
MN.QMPInstall.alreadyProbed=false;
_254(_256);
return;
}
var _257=this.WaitForInstall;
setTimeout(function(){
_257(_254);
},300);
};
_p.GetInstalledVersion=function(){
if(!navigator.plugins){
return null;
}
this.RefreshPlugins();
var _258=null;
var _259=null;
var _25a=null;
var _25b=null;
var _25c=null;
for(var i=0,npl=navigator.plugins.length;i<npl;i++){
var _25e=navigator.plugins[i];
if(typeof (_25e)=="undefined"){
logWarn("Undefined plug-in found; firefox workaround enabled");
this.mimeStr="application/x-vnd.movenetworks.qm";
return MN.QMPInstall.GetAvailableVer();
}
if(_25e.description.slice(0,7)!="npmnqmp"){
continue;
}
for(var j=0,pl=_25e.length;j<pl;j++){
var t=_25e[j].type;
if(t=="application/x-vnd.movenetworks.qm"){
_258=_25e.description;
}else{
if(t=="application/x-vnd.moveplay.qm"){
_259=_25e.description;
}else{
if(t=="application/x-vnd.moveplay1.qm"){
_25a=_25e.description;
}else{
if(t=="application/x-vnd.moveplay2.qm"){
_25b=_25e.description;
}else{
if(t=="application/x-vnd.moveplayer.qm"){
_25c=_25e.description;
}
}
}
}
}
}
}
var desc=_25c;
var mime="application/x-vnd.moveplayer.qm";
if(!_25c&&_25a&&_25b){
desc=_25a;
mime="application/x-vnd.moveplay1.qm";
if(_25b>desc){
desc=_25b;
mime="application/x-vnd.moveplay2.qm";
}
}
if(!desc){
desc=_259;
mime="application/x-vnd.moveplay.qm";
}
if(!desc){
desc=_25b;
mime="application/x-vnd.moveplay2.qm";
}
if(!desc){
desc=_258;
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 _263=navigator.plugins["Silverlight Plug-In"];
if(_263!==undefined&&_263!==null){
var _264=_263.description;
if(_264==="1.0.30226.2"){
_264="2.0.30226.2";
}
var _265=_264.split(".");
while(_265.length>3){
_265.pop();
}
return _265.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(_266,_267){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVerUnpadded();
if(arguments.length<2||_267){
if(QI.GetSilverlightVersion()===""&&(this.slOpt=="fg"||this.slOpt=="force")){
upgradeURL=MN.URL.Join(QI.libBase,"MoveMediaPlayerWinSilverlight_%s.%s".format(ver,this.packageExt));
}else{
upgradeURL=MN.URL.Join(QI.libBase,"MoveMediaPlayerWin_%s.%s".format(ver,this.packageExt));
}
}else{
upgradeURL=MN.URL.Join(QI.libBase,"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(_26a){
var _26b=this.ocxCLSIDs[0];
if(this.notRunningAvailable){
_26b=this.ocxCLSIDs[1];
}
return "<OBJECT ID=\"%s\" style=\"width:%s; height:%s\" CLASSID=\"CLSID:"+_26b+"\"%s>%s</OBJECT>";
};
_p.RefreshPlugins=function(){
this._FindClassIDs();
};
_p.WaitForInstall=function(_26c){
var ver=this.GetActiveXObjectVersion();
if(ver!==null){
MN.QMPInstall.alreadyProbed=false;
_26c(ver);
return;
}
var _26e=this.WaitForInstall;
setTimeout(function(){
_26e(_26c);
},300);
};
_p.GetActiveXObjectVersion=function(type){
var _270;
try{
_270=new ActiveXObject("QSP2IE.QSP2IE");
if(_270){
return this._probeControlVersion(_270,type);
}
}
catch(e){
if(e.message=="Object doesn't support this property or method"){
return this._probeControlVersion(_270,type);
}
}
return null;
};
_p._probeControlVersion=function(_271,type){
if(!type){
return _271.Version;
}else{
if(type=="latest"){
return _271.RegistryVersion;
}else{
if(type=="api"){
return _271.Get("Download.APIVersion");
}
}
}
};
_p.GetInstalledVersion=function(){
var _273=this.GetActiveXObjectVersion("latest");
var _274=this.GetActiveXObjectVersion();
var _275=this.GetActiveXObjectVersion("api");
this.notRunningAvailable=(_273&&_274&&_273>_274);
this.supportsForcedUpgrades=(_275>0);
return _273;
};
_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(_277){
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,_277||"","<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 _279=QI.GetInstalledVersion();
return !(_279>"000007010301");
};
_p.GetSilverlightVersion=function(){
try{
var _27a=new ActiveXObject("AgControl.AgControl");
if(!_27a){
return "";
}else{
if(_27a.IsVersionSupported("2.0.31000")){
return "2.0.31000";
}else{
if(_27a.IsVersionSupported("2.0")){
return "2.0.0";
}else{
if(_27a.IsVersionSupported("1.0")){
return "1.0.0";
}else{
if(_27a.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 _27b=navigator.plugins[this.pluginName].filename;
var _27c=/npqmp([0-9]+)\.dll/;
var _27d=_27c.exec(_27b);
if(_27d===null){
return "999999999999";
}else{
return _27d[1];
}
}
return MN.QMPInstall.controllers.Base.prototype.GetInstalledVersion.apply(this);
};
_p.ShowUpgradeMsg=function(_27e){
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:_27e,msg:msg});
}else{
if(QI.MSG_UPGRADE_WIN_MOZILLA!==""){
MN.$(_27e).innerHTML=QI.MSG_UPGRADE_WIN_MOZILLA;
}
MN.$(_27e).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(_281,_282){
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||_282)){
url="sl_"+url;
}
}
log("MakeSetupURL : %s".format(url));
return MN.URL.Join(QI.libBase,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(_287,_288){
var QI=MN.QMPInstall;
var _28a=QI.playerIDToPlayer[_287];
if(!_28a){
QI.ScanPlayerIDs(false);
_28a=QI.playerIDToPlayer[_287];
}
var args=MN.ToArray(arguments).slice(2);
if(!_28a){
log("Could not find player",_287," - ignoring",_288,"event, args =",args);
return;
}
var _28c=_28a["_"+_288+"Listeners"];
if(!_28c){
return;
}
setTimeout(function(){
for(var i=0,ll=_28c.length;i<ll;i++){
var _28e=_28c[i];
if(_28e){
try{
_28e.apply(this,args);
}
catch(e){
logError("Listener",_28e,"for event",_288,"had uncaught exception:",e.message||e);
}
}
}
},1);
};
_QMPEventOnError=function(_28f,msg){
_QMPFireNonIEEvent(_28f,"error",msg);
};
_QMPEventOnBitRateChanged=function(_291,_292,_293){
_QMPFireNonIEEvent(_291,"bitratechanged",_292,_293);
};
_QMPEventOnPlayStateChanged=function(_294,_295,_296){
_QMPFireNonIEEvent(_294,"playstatechanged",_295,_296);
};
_QMPEventOnUpgradeProgress=function(_297,_298,_299){
_QMPFireNonIEEvent(_297,"upgradeprogress",_298,_299);
};
_QMPEventOnScript=function(_29a,key,_29c){
_QMPFireNonIEEvent(_29a,"script",key,_29c);
};
_QMPEventOnAudioControl=function(_29d,_29e,_29f){
_QMPFireNonIEEvent(_29d,"audiocontrol",_29e,_29f);
};
_QMPEventOnAsyncTaskDone=function(_2a0,_2a1,_2a2,_2a3){
_QMPFireNonIEEvent(_2a0,"asynctaskdone",_2a1,_2a2,_2a3);
};
_QMPEventOnScrubBumper=function(_2a4,_2a5){
_QMPFireNonIEEvent(_2a4,"scrubbumper",_2a5);
};
_QMPEventOnLiveBumper=function(_2a6){
_QMPFireNonIEEvent(_2a6,"livebumper");
};
_QMPEventOnBitmapReady=function(_2a7,_2a8,url){
_QMPFireNonIEEvent(_2a7,"bitmapready",_2a8,url);
};
_QMPEventOnModuleLoaded=function(_2aa,_2ab){
_QMPFireNonIEEvent(_2aa,"moduleloaded",_2ab);
};
_QMPEventOnUIStateChanged=function(_2ac,_2ad){
_QMPFireNonIEEvent(_2ac,"uistatechanged",_2ad);
};
_QMPEventOnSLIDownloadProgress=function(_2ae,_2af){
_QMPFireNonIEEvent(_2ae,"slidownloadprogress",_2af);
};
_QMPEventOnSilverlightInstall=function(_2b0,_2b1){
_QMPFireNonIEEvent(_2b0,"silverlightinstall",_2b1);
};
}
MN.QMPInstall.Module=MN.Class(MN.EventSource);
var _qp=MN.QMPInstall.Module.prototype;
_qp.initialize=function Module(name,_2b3,_2b4){
MN.EventSource.prototype.initialize.apply(this);
this.name=name;
this.initParams=_2b3;
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(_2b7,_2b8,w,h){
var QI=MN.QMPInstall;
var QIS=QI.Silverlight;
var _2bd="__slInstallHelper__";
if(QIS.silverlightInstalled()){
return false;
}
QI.EmitObj(_2b8,"1px","1px",_2bd,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.$(_2bd);
newCB=function(){
MN.$(_2b8).removeChild(QIS._helperPlayer);
QIS._helperPlayer=null;
_2b7(MN.QMPInstall.Silverlight.slSuccess);
};
MN.QMPInstall.Silverlight.doInstall(newCB,_2b8,null,w,h,_2bd,true);
return true;
},doInstall:function(_2be,_2bf,_2c0,w,h,_2c3,_2c4){
var QIS=MN.QMPInstall.Silverlight;
if(!QIS.needsInstall()){
_2be();
return;
}
QIS.installRun=true;
QIS.SLInstallAttempted(true);
if(!(arguments.length>6&&_2c4)&&!QIS.UserAcceptsInstall()){
_2be();
return;
}
QIS.finishedCbFunc=_2be;
QIS._helperPlayer=MN.$(_2c3);
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.$(_2bf);
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 _2c8=document.createElement("div");
_2c8.style.width=QIS.width;
_2c8.style.height=QIS.height;
QI._HideClient();
QIS.targetDiv.appendChild(_2c8);
QIS.PromptDiv=_2c8;
QIS.GenerateFgInstallStatus(_2c8);
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(_2c9){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2cc=document.createElement("table");
_2cc.style.width="100%";
_2cc.style.height="100%";
_2cc.style.border="1px solid black";
_2cc.style.color="#333333";
_2cc.style.backgroundColor="#FFFFFF";
var _2cd=document.createElement("tbody");
_2cc.appendChild(_2cd);
var _2ce=document.createElement("tr");
_2cd.appendChild(_2ce);
borderCont=document.createElement("td");
borderCont.align="center";
borderCont.vAlign="middle";
_2ce.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);
_2c9.appendChild(_2cc);
},progressUpdatedFgInstall:function(_2d0){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
QIS.progressBar.setProgress(_2d0);
},ForegroundInstallComplete:function(_2d3){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
MN.QMPInstall.Silverlight.slSuccess=(_2d3==1);
if(_2d3==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(_2d6,_2d7,_2d8,w,h,_2db){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2de=document.createElement("div");
_2de.style.width=w;
_2de.style.height=h;
QI._HideClient();
MN.$(_2d7).appendChild(_2de);
QIS.PromptDiv=_2de;
QIS.GenerateEULAPrompt(_2de);
},doForegoundInstall:function(_2df,_2e0,_2e1,w,h,_2e4){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _2e7=document.createElement("div");
_2e7.style.width=w;
_2e7.style.height=h;
QI._HideClient();
MN.$(_2e0).appendChild(_2e7);
QIS.PromptDiv=_2e7;
QIS.GenerateEULAPrompt(_2e7);
},GenerateEULAPrompt:function(_2e8){
var QIS=MN.QMPInstall.Silverlight;
var _2ea=document.createElement("div");
_2ea.style.border="1px solid black";
_2ea.style.height="100%";
_2ea.style.color="#333333";
_2ea.style.backgroundColor="#FFFFFF";
var _2eb=document.createElement("div");
_2eb.style.marginTop="7px";
_2eb.style.marginBottom="7px";
_2eb.innerHTML="<span style='font-weight: bolder; font-size: 13px; text-decoration: underline'>"+QIS.strings.downloadingMessage+"</strong><br><br>";
var _2ec=document.createElement("span");
_2ec.style.border="2px solid black";
_2ec.style.padding="5px";
_2ec.style.marginRight="5px";
_2ec.style.cursor="pointer";
_2ec.style.paddingTop="5px";
_2ec.onclick=QIS.AcceptClicked;
_2ec.onmouseover=QIS.btnMouseOver;
_2ec.onmouseout=QIS.btnMouseOut;
var _2ed=_2ec.cloneNode(true);
_2ed.onclick=QIS.RejectClicked;
_2ed.onmouseover=QIS.btnMouseOver;
_2ed.onmouseout=QIS.btnMouseOut;
_2ec.innerHTML=QIS.strings.acceptBtn.toUpperCase();
_2ed.innerHTML=QIS.strings.rejectBtn.toUpperCase();
_2eb.appendChild(_2ec);
_2eb.appendChild(_2ed);
_2ea.appendChild(_2eb);
_2ea.style.paddingRight="2px";
_2e8.appendChild(_2ea);
var _2ee=60;
var _2ef=480;
if(QI.Browser()=="ie"){
if(_2eb.offsetHeight>0){
_2ee=_2eb.offsetHeight;
}
_2ef=_2e8.offsetHeight;
}else{
if(_2eb.clientHeight>0){
_2ee=_2eb.clientHeight;
}
_2ef=_2e8.clientHeight;
}
var _2f0=_2e8.clientHeight-_2ee-16;
var _2f1=document.createElement("iframe");
_2f1.style.border="1px dotted black";
_2f1.style.width="100%";
_2f1.style.height=_2f0+"px";
_2f1.src=QIS.getSlEulaURL();
_2ea.insertBefore(_2f1,_2eb);
},DownloadStatusUpdate:function(_2f2){
var QIS=MN.QMPInstall.Silverlight;
if(QIS.progressBar!==null){
QIS.progressBar.setProgress(_2f2);
if(_2f2==100){
MN.$("MN_INSTALL_SL_DL_PROMPT").innerHTML=QIS.strings.nowInstalling;
QIS.progressBar.parentNode.removeChild(QIS.progressBar);
QIS.progressBar=null;
}
}else{
log("download status: "+_2f2.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(_301){
if(typeof _301=="string"){
this._player=MN.$(_301);
}else{
this._player=_301.player;
}
};
MN.Capabilities.HWInfo.prototype.meetsMinReqs=function(){
var _302=this.getVideoRenderer().toUpperCase()!="NO RENDERER";
var _303=this.getCPUSpeed()>1000||this.getCPUSpeed()===0;
return _302&&_303;
};
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,_30a,_30b,_30c,_30d){
if(!document.getElementById){
return;
}
this.DETECT_KEY=_30d?_30d:"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=_30a?_30a:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",false);
this.setAttribute("doExpressInstall",false);
var xir=(_30b)?_30b:window.location;
this.setAttribute("xiRedirectUrl",xir);
this.setAttribute("redirectUrl","");
if(_30c){
this.setAttribute("redirectUrl",_30c);
}
};
MN.deconcept.SWFObject.prototype={useExpressInstall:function(path){
this.xiSWFPath=!path?"expressinstall.swf":path;
this.setAttribute("useExpressInstall",true);
},setAttribute:function(name,_312){
this.attributes[name]=_312;
},getAttribute:function(name){
return this.attributes[name];
},addParam:function(name,_315){
this.params[name]=_315;
},getParams:function(){
return this.params;
},addVariable:function(name,_317){
this.variables[name]=_317;
},getVariable:function(name){
return this.variables[name];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _319=new Array();
var key;
var _31b=this.getVariables();
for(key in _31b){
_319[_319.length]=key+"="+_31b[key];
}
return _319;
},getSWFHTML:function(){
var _31c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
this.setAttribute("swf",this.xiSWFPath);
}
_31c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";
_31c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _31d=this.getParams();
for(var key in _31d){
_31c+=[key]+"=\""+_31d[key]+"\" ";
}
var _31f=this.getVariablePairs().join("&");
if(_31f.length>0){
_31c+="flashvars=\""+_31f+"\"";
}
_31c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
this.setAttribute("swf",this.xiSWFPath);
}
_31c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";
_31c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _31d=this.getParams();
for(var key in _31d){
_31c+="<param name=\""+key+"\" value=\""+_31d[key]+"\" />";
}
var _31f=this.getVariablePairs().join("&");
if(_31f.length>0){
_31c+="<param name=\"flashvars\" value=\""+_31f+"\" />";
}
_31c+="</object>";
}
return _31c;
},write:function(_320){
if(this.getAttribute("useExpressInstall")){
var _321=new MN.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_321)&&!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 _320=="string")?document.getElementById(_320):_320;
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 _323=new MN.deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_323=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 _326=3;
while(axo){
try{
_326++;
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_326);
_323=new MN.deconcept.PlayerVersion([_326,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");
_323=new MN.deconcept.PlayerVersion([6,0,21]);
axo.AllowScriptAccess="always";
}
catch(e){
if(_323.major==6){
return _323;
}
}
try{
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(e){
}
}
if(axo!=null){
_323=new MN.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
}
}
return _323;
};
MN.deconcept.PlayerVersion=function(_327){
this.major=_327[0]!=null?parseInt(_327[0]):0;
this.minor=_327[1]!=null?parseInt(_327[1]):0;
this.rev=_327[2]!=null?parseInt(_327[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(_329){
var q=document.location.search||document.location.hash;
if(_329==null){
return q;
}
if(q){
var _32b=q.substring(1).split("&");
for(var i=0;i<_32b.length;i++){
if(_32b[i].substring(0,_32b[i].indexOf("="))==_329){
return _32b[i].substring((_32b[i].indexOf("=")+1));
}
}
}
return "";
}};
MN.deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _32d=document.getElementsByTagName("OBJECT");
for(var i=_32d.length-1;i>=0;i--){
_32d[i].style.display="none";
for(var x in _32d[i]){
if(typeof _32d[i][x]=="function"){
_32d[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(_331){
var _332=function(_333,ind){
var _335=null;
var i=null;
var n=null;
var xml="";
if(_333===null){
return "<null/>";
}else{
if(_333===true){
return "<true/>";
}else{
if(_333===false){
return "<false/>";
}else{
if(_333 instanceof Array){
xml+=ind+"<array>";
for(i=0,n=_333.length;i<n;i++){
xml+=ind+"<property id=\""+i+"\">";
xml+=ind+_332(_333[i],ind+"\t")+"\n";
xml+=ind+"</property>";
}
xml+=ind+"</array>";
}else{
if(typeof (_333)=="object"){
xml+=ind+"<object>";
for(_335 in _333){
if(_333.hasOwnProperty(_335)){
xml+=ind+"<property id=\""+_335+"\">";
xml+=ind+_332(_333[_335],ind+"\t")+"\n";
xml+=ind+"</property>";
}
}
xml+=ind+"</object>";
}else{
var _339=typeof (_333);
xml+=ind+"<"+_339+">"+_333.toString()+"</"+_339+">";
}
}
}
}
}
return xml;
};
xml="";
var i=null;
var n=null;
for(i=0,n=_331.length;i<n;i++){
xml+=_332(_331[i],"");
}
return xml.replace(/\t|\n/g,"");
}};
}
var OnEvalScript=function(js){
js=js.replace(/&apos;/g,"'");
js=js.replace(/&quot;/g,"\"");
var _33d=eval(js);
return _33d;
};
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 _340=caps.getCPUType();
if(_340.indexOf("PowerPC")>-1){
log("MN.Flash.meetsRequirements: CPU type '"+_340+"' 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 _343=caps.getRAMSize();
if(_343<502){
log("MN.Flash.meetsRecommendations: RAM size "+_343+" < 502");
MN.Flash._meetsRecs=false;
return false;
}
var _344=caps.getCPUCount();
var _345=caps.getCPUSpeed();
var _346=parseInt(caps.getVideoRAMSize(),10);
if(MN.QMPInstall.OS()=="win"){
if(_344<2&&_345<2390){
log("MN.Flash.meetsRecommendations: CPU count "+_344+" < 2 AND CPU speed "+_345+" < 2390");
MN.Flash._meetsRecs=false;
return false;
}
if(_346<118&&_346!==0){
log("MN.Flash.meetsRecommendations: Video RAM size "+_346+" < 118");
MN.Flash._meetsRecs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
if(_344<2&&_345<1190){
log("MN.Flash.meetsRecommendations: CPU count "+_344+" < 2 AND CPU speed "+_345+" < 1190");
MN.Flash._meetsRecs=false;
return false;
}
if(_346<118){
log("MN.Flash.meetsRecommendations: Video RAM size "+_346+" < 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,_348){
var id=null;
if(hint){
var e=document.getElementById(hint);
if(MN.Flash.FSDK.elementIsInstance(e,_348)){
return e.id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByName(hint),_348);
if(id){
return id;
}
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("object"),_348);
if(id){
return id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("embed"),_348);
if(id){
return id;
}
return "";
},findIdInCollection:function(_34b,_34c){
for(var i in _34b){
if(_34b.hasOwnProperty(i)){
var e=_34b[i];
if(MN.Flash.FSDK.elementIsInstance(e,_34c)){
if(!e.id){
e.id=MN.Flash.FSDK._autoIdPrefix+_34c;
}
return e.id;
}
}
}
return "";
},elementIsInstance:function(_34f,_350){
if(_34f&&_34f._mn_getFlashInstanceNum&&(_34f._mn_getFlashInstanceNum()==_350)){
return true;
}
return false;
},call:function(_351,_352,_353){
var fn=eval(_351);
var args=[];
var i=null;
for(i=3;i<arguments.length;i++){
args.push(arguments[i]);
}
if(_353){
for(i in _353){
if(_353.hasOwnProperty(i)){
var _357=_353[i];
args[_357]=eval(args[_357]);
}
}
}
var r=fn.apply(null,args);
if(!_352){
return r;
}else{
return "MN.Flash.FSDK._jsVars["+(MN.Flash.FSDK._jsVars.push(r)-1)+"]";
}
},evalJS:function(_359){
return eval(_359);
},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,_35c,_35d){
var r=(obj[_35c]=_35d);
return r;
},getObjectProperty:function(obj,_360){
return obj[_360];
},invokeObjectMethod:function(obj,_362){
switch(arguments.length-2){
case (0):
return obj[_362]();
case (1):
return obj[_362](arguments[2]);
case (2):
return obj[_362](arguments[2],arguments[3]);
case (3):
return obj[_362](arguments[2],arguments[3],arguments[4]);
case (4):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5]);
case (5):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);
case (6):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);
case (7):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);
case (8):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);
case (9):
return obj[_362](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);
case (10):
return obj[_362](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(_363){
MN.EventSource.prototype.initialize.apply(this);
var QI=MN.QMPInstall;
var ua=navigator.userAgent;
this.disabled="";
if(QI.osIsVista&&QI.browser=="mozilla"&&MN.$(_363.playerID).Version<"071302000000"&&_363.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(_363);
if(this._flashObject.disabled){
this.disabled=this._flashObject.disabled;
}
MN.Flash._flashObjects.push(this);
};
_FlashObject_proto.write=function(_367){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
this._flashObject.write(_367);
}
};
_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,_36a){
this._flashObject.addParam(name,_36a);
};
_FlashObject_proto.addVariable=function(name,_36c){
this._flashObject.addVariable(name,_36c);
};
_FlashObject_proto.changeMovie=function(_36d){
this._flashObject.changeMovie(_36d);
};
_FlashObject_proto.close=function(){
this._flashObject.close();
};
_FlashObject_proto.setFullScreenPosition=function(_36e){
this._flashObject.setFullScreenPosition(_36e);
};
_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(_36f){
this._flashObject.useAlpha(_36f);
};
_FlashObject_proto=undefined;
MN.Flash._FlashObjectCommon=MN.Class();
MN.Flash._FlashObjectCommon._zOrder=0;
MN.Flash._FlashObjectCommon.prototype.initialize=function(_370){
this._params={};
this._vars={};
this._playerID=_370.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(_370.overrideRecommendations)&&!MN.Flash.meetsRecommendations(this._playerID)){
this.disabled=MN.Flash.ErrorTypes.SYS_NOT_SUPPORTED;
return;
}
this._id=_370.id;
this._bgColor=null;
this._wmode="transparent";
this.loadConfig(_370);
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 _371=MN.$(this._playerID);
var _372=_371;
var i=0;
do{
if(_372.style&&(_372.style.zIndex|_372.style.zIndex===0)){
var zIdx=parseInt(_372.style.zIndex,10);
return (zIdx);
}else{
_372=_372.parentNode;
}
}while(_372&&(i++<20));
return 0;
};
MN.Flash._FlashObjectCommon.prototype.loadConfig=function(_375){
if(_375.url&&!_375.url.startswith("http:")&&!_375.url.startswith("https:")){
_375.url=MN.URL.Join(null,_375.url);
}
if(_375.url){
this._url=_375.url;
}
if(_375.width){
this._width=_375.width;
}
if(_375.height){
this._height=_375.height;
}
if(_375.flashVersion){
this._flashVersion=_375.flashVersion;
}
if(_375.bgColor){
this._bgColor=_375.bgColor;
}
if(_375.wmode){
this._wmode=_375.wmode;
}
if(_375.fullscreenPosition){
this._fullScreenPosition=_375.fullscreenPosition||null;
}else{
if(_375.fullScreenPosition){
this._fullScreenPosition=_375.fullScreenPosition||null;
}
}
};
MN.Flash._FlashObjectCommon.prototype.write=function(_376){
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,_37a){
this._params[name]=_37a;
};
MN.Flash._FlashObjectCommon.prototype.addVariable=function(name,_37c){
this._vars[name]=_37c;
};
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(_37d){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_37d);
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(_382){
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(_382);
this._findMovieObj();
this.parentID=_382;
this.closed=false;
};
MN.Flash._MacFlashObject.prototype.close=function(){
MN.$(this.parentID).innerHTML="";
this.closed=true;
};
MN.Flash._MacFlashObject.prototype.changeMovie=function(_384){
if(!this.parentID){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_384);
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 _38b=eval(js);
return _38b;
};
MN.Flash._MacFlashObject.prototype.setFullScreenPosition=function(_38c){
var _38d=MN.$(this._playerID);
this._fullScreenPosition=_38c;
_38d.Set("FlashFullscreenPosition",this._id+","+this._fullScreenPosition);
};
MN.Flash._MacFlashObject.prototype.show=function(){
var _38e=MN.$(this._playerID);
var _38f=_38e.GetOverlay(this._id);
_38f.show();
};
MN.Flash._MacFlashObject.prototype.hide=function(){
var _390=MN.$(this._playerID);
var _391=_390.GetOverlay(this._id);
_391.hide();
};
MN.Flash._MacFlashObject.prototype.useAlpha=function(_392){
var _393=MN.$(this._playerID);
var _394=_393.GetOverlay(this._id);
var val=true;
if(!_392){
val=false;
}
_394.transparency=val;
};
MN.Flash._WinFlashObject=MN.Class(MN.Flash._FlashObjectCommon);
MN.Flash._WinFlashObject.prototype.initialize=function(_396){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_396);
this.closed=true;
};
MN.Flash._WinFlashObject.prototype._setupEvalHandler=function(){
MN.Event.Observe(this._movieObj,"EvalScript_fromflashobject",OnEvalScript);
};
MN.Flash._WinFlashObject.prototype._setWMode=function(_397){
log("Set WMode to",this._wmode);
this._movieObj.Set("Flash","WMode,"+_397);
};
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 _399=this._getVarString();
this._movieObj.Set("Flash","Variables,"+_399);
this._movieObj.Set("Flash","Open,"+this._url);
this._setupEvalHandler();
this.closed=false;
};
MN.Flash._WinFlashObject.prototype.write=function(_39a){
var _39b=MN.$(this._playerID).Get("PlayerID");
var _39c={};
if(_39b||_39b===0){
_39c.PlayerID=_39b;
}
MN.QMPInstall.EmitObj(_39a,this._width,this._height,this._id,false,false,true,_39c);
this._findMovieObj();
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.close=function(){
this._movieObj.Set("Flash","Close");
this.closed=true;
};
MN.Flash._WinFlashObject.prototype.changeMovie=function(_39d){
if(!this._movieObj){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_39d);
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.callExt=function(func){
var _39f=MN.ASUtils.paramsToASXML(MN.ToArray(arguments).slice(1,arguments.length));
var cmd="Flash.ExtInt."+func+"."+_39f;
return (this._movieObj.Get(cmd));
};
MN.Flash._WinFlashObject.prototype._getVarString=function(){
var _3a1="";
var _3a2=true;
for(var v in this._vars){
if(this._vars.hasOwnProperty(v)){
if(_3a2){
_3a1+=v+"="+this._vars[v];
_3a2=false;
}else{
_3a1+="&"+v+"="+this._vars[v];
}
}
}
return _3a1;
};
MN.Flash._WinFlashObject.prototype.setFullScreenPosition=function(_3a4){
this._fullScreenPosition=_3a4;
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(_3a5){
var val="transparent";
if(!_3a5){
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(_3a8){
var _3a9=MN.$(_3a8);
MN.QVT._helperPlayer=_3a9;
MN.Event.Observe(_3a9,"AsyncTaskDone",MN.QVT._OnAsyncTaskDone);
},CreatePlayer:function(_3aa,_3ab,w,h,_3ae){
if(!_3ae){
_3ae=MN.QMPInstall.MakePlayerID(_3aa);
}
var _3af=function(_3b0){
if(_3b0){
MN.QVT._DeputizePlayer(_3ae);
return _3ab(new MN.QVT.PlayerWrapper(MN.$(_3ae),MN.$(_3aa)));
}else{
return _3ab(null);
}
};
MN.QMPInstall.CreatePlayer(_3aa,_3af,w,h,_3ae);
},EmitObj:function(_3b1,w,h,_3b4){
_3b4=MN.QMPInstall.EmitObj(_3b1,w,h,_3b4);
MN.QVT._DeputizePlayer(_3b4);
return new MN.QVT.PlayerWrapper(MN.$(_3b4));
},_taskID:0,_tasks:{},_StartTask:function(_3b5,url,_3b7){
var _3b8=MN.QVT._taskID+1;
MN.QVT._taskID=_3b8;
MN.QVT._tasks["w"+_3b8]={"cb":_3b7,"url":url};
var _3b9=MN.QVT._helperPlayer;
if(!_3b9){
logError("No helper player exists!");
MN.QVT._OnAsyncTaskDone(_3b8,"","");
}else{
_3b9[_3b5](_3b8,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,_3bf){
log("STARTING LOAD OF",url);
MN.QVT._StartTask("AsyncLoadJSON",url,_3bf);
},LoadQMX:function(url,_3c1){
MN.QVT._StartTask("AsyncLoadQMX",url,_3c1);
},_OnAsyncTaskDone:function(_3c2,_3c3,_3c4){
_3c2="w"+_3c2;
var task=MN.QVT._tasks[_3c2];
if(task){
delete MN.QVT._tasks[_3c2];
setTimeout(function(){
task.cb(task.url,_3c3,_3c4);
},10);
}
},ParseTimestamp:function(s){
var d={};
if(!s){
return d;
}
var _3c8=s.split(",");
for(var i=0,pl=_3c8.length;i<pl;i++){
var part=_3c8[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 _3cb=parseFloat(part);
if(!isNaN(_3cb)){
d.offset=_3cb;
}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 _3ce=-1;
if(time>=0){
_3ce=Math.floor((time/2)+1);
}
return _3ce;
},streamletNumToAtmHex:function(_3cf){
return MN.PadDigits(_3cf.toString(16),8,0).toUpperCase();
}};
MN.QVT.QVT=MN.Class(MN.EventSource);
var _qp=MN.QVT.QVT.prototype;
_qp.initialize=function(raw,_3d1){
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=_3d1;
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(_3d2){
log("ForceReload started");
if(this.loading){
return;
}
this.loading=true;
if(typeof _3d2!="boolean"){
_3d2=true;
}
this.shouldCheckClip=_3d2;
var _3d3=this.PrimaryURL();
if(!_3d3){
_3d3=this.initRaw;
}
this.pinCache=false;
if(_3d3 instanceof Object){
_3d3.reload=0;
this._ReadQVT(_3d3);
}else{
_3d3=_3d3.strip();
var _3d4=_3d3.toLowerCase();
if(_3d4.startswith("http://")||_3d4.startswith("qsp://")){
var _3d5=_3d4;
var _3d6=_3d5.indexOf("?");
if(_3d6!=-1){
_3d5=_3d5.substr(0,_3d6);
}
this.baseURL=MN.URL.Base(_3d4);
if(_3d5.endswith(".qmx")){
this._timelineType=MN.QVT.TimelineTypes.DIRECT_QMX;
_3d3="{'clips':[{'url':'"+_3d3+"'}]}";
this._ReadQVT(_3d3);
}else{
this.pinCache=true;
this.qvtURL=_3d4;
var _3d7=this._ReadQVT;
MN.QVT.LoadQVT(_3d3,function(url,_3d9,_3da){
_3d7(_3d9,_3da);
});
}
}else{
if(!_3d4.startswith("{")||!_3d4.endswith("}")){
throw new MN.QVT.Error("Unrecognized QVT format");
}else{
this._ReadQVT(_3d3);
}
}
}
};
_qp._ReadQVT=function(raw,_3dc){
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 _3df=[];
var i=null;
var mcl=null;
this._calcClockAdjust(_3dc);
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 _3e3=clip.range.split(",");
if(_3e3.length==2){
clip.rangeStart=parseFloat(_3e3[0])||0;
if(parseFloat(_3e3[1])==-1){
clip.rangeEnd=null;
}else{
clip.rangeEnd=parseFloat(_3e3[1])||null;
}
}
}
if(!clip.url&&clip.rangeEnd===null){
continue;
}
_3df.push(clip);
}
}
meta.clips=_3df;
this.meta=meta;
this.metadataLoaded=false;
var _3e4=meta.metadata;
if(_3e4){
_3e4=this._ExpandURL(_3e4);
var _3e5=this._ApplyExternalMetadata;
log("starting external metadata load of",_3e4);
MN.QVT.LoadQVT(_3e4,function(url,_3e7,_3e8){
var obj=MN.EvalJSON(_3e7);
_3e5(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 _3ea=(typeof (MN.QVT._QMXCache[clip.url])!="undefined");
if(!clip.timesReady&&!_3ea){
this.willLoadQMX=true;
var _3eb=this._RecalcClipTimes;
log("starting check for",clip.url);
MN.QVT.LoadQMX(clip.url,function(url,_3ed,_3ee){
var obj=MN.EvalJSON(_3ed);
MN.QVT._QMXCache[url]=obj;
_3eb();
});
}
}
};
_qp.timelineType=function(){
var _3f0=MN.QVT.TimelineTypes;
if(!this._timelineType){
var _3f1=this.meta.title;
if(_3f1&&_3f1.startswith("WFCh")){
this._timelineType=_3f0.WEB_FEED;
}else{
if(_3f1&&_3f1.startswith("Source")){
this._timelineType=_3f0.BROADCAST_FEED;
}else{
if("external_id" in this.meta){
this._timelineType=_3f0.VOD_CLIP;
}else{
this._timelineType=_3f0.VOD_CATEGORY;
}
}
}
}
if(!this._timelineType){
this._timelineType="";
}
return this._timelineType;
};
_qp.timelineID=function(){
var _3f2=MN.QVT.TimelineTypes;
if(!this._timelineID){
switch(this.timelineType()){
case _3f2.BROADCAST_FEED:
this._timelineID=this.meta.title.replace(/Source (\d+) timeline.*/,"$1");
break;
case _3f2.WEB_FEED:
this._timelineID=this.meta.title.replace(/WFCh (\d+)_.*/,"$1");
break;
case _3f2.VOD_CLIP:
this._timelineID=this.meta.id;
break;
case _3f2.VOD_CATEGORY:
this._timelineID=this.meta.id;
break;
default:
break;
}
if(!this._timelineID){
this._timelineID="";
}
}
return this._timelineID;
};
_qp.timelineDate=function(){
var _3f3=this.timelineType();
var _3f4=MN.QVT.TimelineTypes;
if(_3f3==_3f4.BROADCAST_FEED&&!this._timelineDate){
var _3f5=this.meta.title;
var year=_3f5.replace(/Source \w+ timeline (\w+),.*/,"$1");
var _3f7=MN.PadDigits(_3f5.replace(/Source \w+ timeline \w+,(\w+),.*/,"$1"),2);
var day=MN.PadDigits(_3f5.replace(/Source \w+ timeline \w+,\w+,(\w+).*/,"$1"),2);
this._timelineDate="%s%s%s".format(year,_3f7,day);
}else{
if(_3f3==_3f4.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(_3f9){
if(typeof (_3f9)!=typeof ("")){
return null;
}
if(_3f9==""){
return null;
}
var _3fa=_3f9.split("/");
var _3fb=_3fa[0];
var _3fc=parseInt(_3fa[1],10);
var _3fd=new Date();
var _3fe=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/;
if(_3fb.toString().match(new RegExp(_3fe))){
var d=_3fb.match(new RegExp(_3fe));
var _400=0;
_3fd.setUTCDate(1);
_3fd.setUTCFullYear(parseInt(d[1],10));
_3fd.setUTCMonth(parseInt(d[3],10)-1);
_3fd.setUTCDate(parseInt(d[5],10));
_3fd.setUTCHours(parseInt(d[7],10));
_3fd.setUTCMinutes(parseInt(d[9],10));
_3fd.setUTCSeconds(parseInt(d[11],10));
var ms=_3fc;
if(d[12]){
ms+=parseFloat(d[12])*1000;
}
_3fd.setUTCMilliseconds(ms);
if(d[13]!="Z"){
_400=(d[15]*60)+parseInt(d[17],10);
_400*=((d[14]=="-")?-1:1);
_3fd.setTime(_3fd.getTime()-_400*60*1000);
}
}else{
_3fd.setTime(Date.parse(_3fb));
}
return _3fd;
};
_qp._parseRespHeaders=function(_402){
var _403={};
for(var i=0,rl=_402.length;i<rl;i++){
var h=_402[i];
var x=h.indexOf(":");
if(x!=-1){
_403[h.substr(0,x).toLowerCase()]=h.substr(x+1).strip();
}
}
return _403;
},_qp._calcClockAdjust=function(_407){
var _408=MN.QVT.getDSXDateTime();
var _409=null;
if(_408!==""){
_409=this._parseDsxDateTime(_408);
}
if((_407||_409)&&this.useServerClock){
var _40a=(new Date()).getTime();
_407=_407.split("\n");
this.httpRespHeaders=this._parseRespHeaders(_407);
if(_409){
MN.QVT.clockAdjustSec=(_409.getTime()-_40a)/1000;
log("clock adjust from dsx server",MN.QVT.clockAdjustSec);
}else{
if(this.httpRespHeaders.date){
var _40b=(new Date(this.httpRespHeaders.date)).getTime();
if(isFinite(_40b)){
MN.QVT.clockAdjustSec=(_40b-_40a)/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 _40f=meta.clips[i];
var _410=this.meta.clips[i];
for(var _411 in _40f){
if(_40f.hasOwnProperty(_411)){
if(_411!="url"&&_411!="range"){
_410[_411]=_40f[_411];
}
}
}
}
}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 _413=this.meta.clips;
var _414=[];
var _415=true;
var _416=0;
var i=null;
var clip=null;
var show=null;
var _41a;
var cl=null;
for(i=0,cl=_413.length;i<cl;i++){
_41a=[];
clip=_413[i];
if(clip.timestamp){
this.haveTimestamp=true;
}
var _41c=MN.QVT._QMXCache[clip.url];
if(_41c){
clip._qmxTimestamp=(_41c.startTimestamp||0)+clip.rangeStart;
this.haveTimestamp=true;
}
if(clip.rangeEnd===null){
if(_41c){
if(_41c.duration){
clip.rangeEnd=_41c.duration;
}else{
_414.push(i);
continue;
}
if(_41c.live){
clip.duration=clip.rangeEnd-clip.rangeStart;
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=clip.rangeEnd-clip.rangeStart;
}
clip.timesReady=true;
if(_415&&this.metadataLoaded){
clip.tlStartTime=_416;
clip.tlStopTime=_416+clip.duration;
_416=clip.tlStopTime;
if(!clip.shows){
clip.shows=[MN.Update({},clip)];
}else{
var _41d=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=clip.tlStartTime+(show.start||0);
}
if(show.tlStartTime>=clip.tlStopTime){
show.tlStartTime=clip.tlStopTime-1;
}
show.tlStopTime=clip.tlStopTime;
show.duration=show.tlStopTime-show.tlStartTime;
if(j>0){
var _41f=_41a[j-1];
_41f.tlStopTime=show.tlStartTime;
_41f.duration=_41f.tlStopTime-_41f.tlStartTime;
}
_41a.push(show);
}
clip.shows=_41a;
}
}
}else{
_415=false;
}
}
if(_414.length>0){
_414.reverse();
var bcl=_414.length;
for(i=0;i<bcl;i++){
_413.splice(_414[i],1);
}
}
if(_415&&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 _422=(typeof (MN.QVT._QMXCache[clip.url])!="undefined");
if(!_422){
this.willLoadQMX=true;
var _423=this._RecalcClipTimes;
log("starting timestamp check for",clip.url);
MN.QVT.LoadQMX(clip.url,function(url,_425,_426){
var obj=MN.EvalJSON(_425);
MN.QVT._QMXCache[url]=obj;
_423();
});
break;
}
}
if(!this.willLoadQMX){
this.haveTimestamp=true;
}
}
this.duration=_416;
if(_415&&this.metadataLoaded&&this.haveTimestamp){
var _428=-1;
var _429=-1;
for(i=0;i<this.meta.clips.length;i++){
clip=this.meta.clips[i];
if(clip.timestamp){
_428=i;
}
if(clip._qmxTimestamp){
_429=i;
}
}
var _42a=false;
if(_428==-1){
_428=_429;
_42a=true;
}
this.startTimestamp=0;
if(_428!=-1){
clip=this.meta.clips[_428];
this.startTimestamp=_42a?clip._qmxTimestamp:clip.timestamp;
for(i=0;i<_428;i++){
clip=this.meta.clips[i];
this.startTimestamp-=clip.duration;
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 _42b=new Date();
_42b.setHours(0,0,0,0);
this.startTimestamp=_42b.getTime()/1000;
if(ts.offset){
this.startTimestamp+=ts.offset;
}
}
this.anchored=ts.anchor;
if(this.anchored&&ts.wrap){
var _42c=this.GetTimelineNow();
this.startTimestamp+=(this.duration*Math.floor(_42c/this.duration));
}
}
log("TL TIMESTAMP",this.startTimestamp);
_41a=[];
for(i=0;i<this.meta.clips.length;i++){
_41a=_41a.concat(this.meta.clips[i].shows);
}
if(this.meta.shows){
_41a=[];
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){
_41a[i-1].tlStopTime=show.tlStartTime;
}
_41a.push(show);
}
for(i=0;i<_41a.length;i++){
show=_41a[i];
show.duration=show.tlStopTime-show.tlStartTime;
}
}
if(_41a.length>0&&this.meta.showsTimestamp){
var _42d=MN.QVT.ParseTimestamp(this.meta.showsTimestamp);
if(_42d.type!="utc"){
log("showsTimestamp has an invalid type, ignoring",_42d.type);
_42d.offset=0;
}
var _42e=_42d.offset-this.startTimestamp;
log("Will adjust timeline by",_42e);
_41a[0].start=_41a[0].start||0;
for(i=0;i<_41a.length;i++){
show=_41a[i];
show.start+=_42e;
show.tlStartTime+=_42e;
show.tlStopTime+=_42e;
}
while(_41a.length>0&&_41a[0].tlStopTime<=0){
_41a.shift();
}
if(_41a.length>0){
show=_41a[0];
if(show.start<=0){
show.start=0;
show.tlStartTime=0;
show.duration=show.tlStopTime;
}else{
var _42f={};
_42f.start=0;
_42f.tlStartTime=0;
_42f.title="";
_42f.duration=show.tlStartTime;
_42f.tlStopTime=show.tlStartTime;
_42f._filler=true;
_41a.unshift(_42f);
}
}
}
for(i=0;i<_41a.length;i++){
var s=_41a[i];
if(s.tlStartTime<=this.duration&&s.tlStopTime>this.duration){
s.tlStopTime=this.duration;
s.duration=s.tlStopTime-s.tlStartTime;
_41a=_41a.slice(0,i+1);
break;
}
}
this.shows=_41a;
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 _431=this.ForceReload;
this._reloadId=setTimeout(function(){
_431();
},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 _432=Math.round((MN.QVT.clockAdjustSec+(new Date()).getTime()/1000-this.startTimestamp)*10000);
_432=_432/10000;
return _432;
};
_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 _437=MN.ToArray(arguments);
_437.unshift("title");
return this.Metadata.apply(this,_437);
};
_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 _43a=(this.Timezone()||0)*3600;
var d=new Date(1000*(pos+this.StartTimestamp()+_43a));
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(_43c,_43d){
var _43e=this.meta.clips[_43c].duration;
_43d=_43d-this.meta.clips[_43c].rangeStart;
this.meta.clips[_43c].duration=_43d;
this.duration=this.duration-_43e+_43d;
};
_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 _441=this.GetTimelineNow();
return Math.min(_441,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(_448,_449){
if(!this.IsValid()){
return 0;
}
if(_448>=this.meta.clips.length){
return this.duration;
}
if(_448<0){
return 0;
}
var clip=this.meta.clips[_448];
var _44b=_449-clip.rangeStart;
if(_44b<0){
_44b=0;
}
return clip.tlStartTime+_44b;
};
_qp._MakePosObj=function(url,_44d,_44e,_44f,_450){
if(_44f===undefined){
_44f=0;
}
if(_450===undefined){
_450=this.PrimaryURL();
}
return {"url":url,"clipNum":_44d,"startPos":_44e,"stopPos":_44f,"qvtURL":_450};
};
_qp.GetClipAsPosObj=function(_451){
var c=this.meta.clips[_451];
return this._MakePosObj(c.url,_451,c.rangeStart,c.rangeEnd);
};
_qp.GetClip=function(_453){
if(_453<0||!this.meta.clips||_453>=this.meta.clips.length){
return null;
}
return this.meta.clips[_453];
};
_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 _458=-1;
var _459=0;
var _45a=0;
var _45b=this.GetTimelineNow();
var i=null;
var clip=null;
if(pos==-1&&this.anchored){
pos=_45b;
}
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,_45b);
}
pos=Math.round(pos*10000)/10000;
if(pos>=this.duration){
_45a=this.meta.clips.length-1;
_458=this.meta.clips[_45a].rangeEnd;
if(typeof (_458)!="number"){
_459=-1;
_458=0;
}else{
log("Requested pos %s beyond timeline (%s), seeking to end".format(pos,this.duration));
_459=_458-0.5;
}
}else{
for(i=0;i<this.meta.clips.length;i++){
clip=this.meta.clips[i];
if(clip.tlStartTime<=pos&&pos<clip.tlStartTime+clip.duration){
_45a=i;
_459=pos-clip.tlStartTime+clip.rangeStart;
_458=clip.rangeEnd;
break;
}
}
}
var url=this.meta.clips[_45a].url;
var ret=this._MakePosObj(url,_45a,_459,_458);
return ret;
};
_qp._checkShowRating=function(_460){
if(_460<MN.QVT.MIN_SHOW_RATING){
throw new RangeError("Provided rating "+_460+" below MIN_SHOW_RATING");
}
if(_460>MN.QVT.MAX_SHOW_RATING){
throw new RangeError("Provided rating "+_460+" beyond MAX_SHOW_RATING");
}
};
_qp._checkShowIndex=function(_461){
if(!(this.meta.shows)){
throw new RangeError("Required show data not found for show rating");
}
if(_461<0||_461>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(_462,_463,_464){
this._checkShowIndex(_463);
this._checkShowRating(_462);
var _465=this.meta.shows[_463].asset_id;
if(!_465){
throw new MN.Exceptions.ReportingError("Could not determine asset ID for rating report");
}
var _466=this.meta.shows[_463].publisher_id;
log("pubID = "+_466);
if(!_466){
throw new MN.Exceptions.ReportingError("Could not determine publisher ID for rating report");
}
MN.QVT.QVT.registerAssetRating(_462,_465,_466,_464);
};
MN.QVT.QVT.registerAssetRating=function(_467,_468,_469,_46a){
var _46b=MN.QVT.QVT.getAssetRatingURLTemplate().replace("%rating%",_467).replace("%asset_id%",_468).replace("%pub_id%",_469);
_46b=MN.URL.AddParams(_46b,_46a);
log("Asset rating URL: "+_46b);
MN.URL.track(_46b);
};
MN.QVT.QVT.getAssetRatingURLTemplate=function(){
return MN.QVT.QVT._assetRatingURLTemplate;
};
MN.QVT.QVT.setAssetRatingURLTemplate=function(_46c){
MN.QVT.QVT._assetRatingURLTemplate=_46c;
};
_qp.getThumbURL=function(time,size,step,_470){
var _471=_470?_470:"thumbs/";
var step=step?step:2;
if(_471.charAt(_471.length-1)!="/"){
_471+="/";
}
var _472=this.TimelineToClip(time);
if(this.IsGap(_472.clipNum)){
return "";
}
var base=MN.URL.Join(MN.URL.Base(_472.url),_471);
var _474=MN.QVT.Streamlet.timeToStreamletNum(_472.startPos);
var _475=step/2;
var _474=Math.floor((_474-1)/_475)*_475+1;
var _476=MN.QVT.Streamlet.streamletNumToAtmHex(_474)+".jpg";
return MN.URL.Join(base,_476);
};
_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 _478=MN.QMP.EventTypes;
MN.Event.Observe(this._pwp,_478.OVERLAY_MOUSE_MOVE,this._OverlayMouseMove);
MN.Event.Observe(this._pwp,_478.OVERLAY_MOUSE_OVER,this._OverlayMouseOver);
MN.Event.Observe(this._pwp,_478.OVERLAY_MOUSE_OUT,this._OverlayMouseOut);
MN.Event.Observe(this._pwp,_478.OVERLAY_ROLL_OVER,this._OverlayRollOver);
MN.Event.Observe(this._pwp,_478.OVERLAY_ROLL_OUT,this._OverlayRollOut);
MN.Event.Observe(this._pwp,_478.OVERLAY_MOUSE_UP,this._OverlayMouseUp);
MN.Event.Observe(this._pwp,_478.OVERLAY_MOUSE_DOWN,this._OverlayMouseDown);
MN.Event.Observe(this._pwp,_478.OVERLAY_UPDATE,this._OverlayUpdate);
MN.Event.Observe(this._pwp,_478.OVERLAY_IMAGE_LOADED,this._OverlayImageLoaded);
var _479="";
};
_om.createOverlay=function(type,_47b){
if(typeof (MN.QMP.Overlays[type+"MoveOverlay"])!=="undefined"){
return new MN.QMP.Overlays[type+"MoveOverlay"](this._pwp,this,_47b);
}else{
return null;
}
};
_om.addOverlay=function(name,_47d){
if(this._overlays[name]||name.length===0||typeof (_47d)!="object"||typeof (_47d._name)!="string"||_47d._name.length!==0){
return null;
}
if(name=="substage"||name=="stage"){
this._overlays[name]=_47d;
_47d._name=name;
return _47d;
}
return _47d._createClientOverlay(name);
};
_om.getOverlay=function(name){
return this._overlays[name];
};
_om._OverlayMouseMove=function(j,k,x,y,_483,_484){
if(this._overlays[_483]){
this._overlays[_483]._mouseMove(j,k,x,y,_484);
}
};
_om._OverlayMouseOver=function(j,k,x,y,_489,_48a){
if(this._overlays[_489]){
this._overlays[_489]._mouseOver(j,k,x,y,_48a);
}
};
_om._OverlayRollOver=function(j,k,x,y,_48f){
if(this._overlays[_48f]){
this._overlays[_48f]._rollOver(j,k,x,y);
}
};
_om._OverlayMouseUp=function(j,k,x,y,_494,_495){
if(_495==_494){
if(this._mouseDownTarget==_494){
this._FireBubbleClick(j,k,x,y,_494);
}else{
this._mouseDownTarget="";
}
}
if(this._overlays[_494]){
this._overlays[_494]._mouseUp(j,k,x,y,_495);
}
};
_om._FireBubbleClick=function(j,k,x,y,_49a){
var _49b=_49a;
do{
if(this._overlays[_49b]){
var _49c=this._overlays[_49b].getRelativeCoords(x,y);
this._OverlayClick(_49c[0],_49c[1],x,y,_49b,_49a);
}
if(_49b.lastIndexOf(".")>-1){
_49b=_49b.substr(0,_49b.lastIndexOf("."));
}else{
_49b="";
}
}while(_49b!=="");
};
_om._OverlayMouseDown=function(j,k,x,y,_4a1,_4a2){
if(_4a2==_4a1){
this._mouseDownTarget=_4a2;
}
if(this._overlays[_4a1]){
this._overlays[_4a1]._mouseDown(j,k,x,y,_4a2);
}
};
_om._OverlayClick=function(j,k,x,y,_4a7,_4a8){
if(this._overlays[_4a7]){
this._overlays[_4a7]._click(j,k,x,y,_4a8);
}
};
_om._OverlayMouseOut=function(_4a9,_4aa){
if(this._overlays[_4a9]){
this._overlays[_4a9]._mouseOut(_4aa);
}
};
_om._OverlayRollOut=function(_4ab){
if(this._overlays[_4ab]){
this._overlays[_4ab]._rollOut();
}
};
_om._OverlayUpdate=function(left,top,_4ae,_4af,_4b0,_4b1,_4b2){
if(this._overlays[_4b2]){
this._overlays[_4b2]._updatePosition(left,top,_4ae,_4af,_4b0,_4b1);
}
};
_om._OverlayImageLoaded=function(_4b3,_4b4,_4b5,_4b6){
if(this._overlays[_4b5]){
this._overlays[_4b5]._imageLoaded(_4b3,_4b4,_4b6);
}
};
_om._UpdateVideoStage=function(){
var pwp=this._pwp;
var _4b8=this.substage;
var _4b9=pwp.UserAspectRatio()?pwp.UserAspectRatio():pwp.RealAspectRatio();
var _4ba=_4b8.width;
var _4bb=_4b8.height;
var _4bc=_4ba/_4bb;
var _4bd={"width":"0px","height":"0px","left":"0px","top":"0px"};
if(_4b9>_4bc){
_4bd.width=_4ba;
_4bd.height=Math.ceil(_4ba/_4b9);
_4bd.left=0;
_4bd.top=Math.ceil((_4bb-_4bd.height)/2);
}else{
if(_4bc>_4b9){
_4bd.width=Math.ceil(_4bb*_4b9);
_4bd.height=_4bb;
_4bd.left=Math.ceil((_4ba-_4bd.width)/2);
_4bd.top=0;
}else{
_4bd.width=_4ba;
_4bd.height=_4bb;
_4bd.left=0;
_4bd.top=0;
}
}
_4bd.width+="px";
_4bd.height+="px";
_4bd.left+="px";
_4bd.top+="px";
this.videostage.update(_4bd);
};
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,_4bf,_4c0){
MN.EventSource.prototype.initialize.apply(this);
this._manager=_4bf;
this._pwp=pwp;
this._name="";
var _4c1=this._buildOptionsFromArray(_4c0);
this.startOptions=_4c1;
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 (_4c1.caption)=="undefined"){
_4c1.caption="";
}
if(typeof (_4c1.font)!="undefined"){
_4c1.font="'%s'".format(_4c1.font);
}
this._curText=_4c1.caption;
_4c1.caption="'%s'".format(_4c1.caption);
_4c1.type="text";
}else{
if(this._type=="image"){
this._curImage=_4c1.url;
_4c1.url="'%s'".format(_4c1.url);
_4c1.type="image";
}
}
}
this.curOptions=_4c1;
};
_mo.addOverlay=function(name,_4c3){
var _4c4=this._name+"."+name;
if(this._manager._overlays[_4c4]||this._name.length===0||name.length===0||typeof (_4c3)!="object"||typeof (_4c3._name)!="string"||_4c3._name.length!==0){
return null;
}
return _4c3._createClientOverlay(_4c4);
};
_mo._createClientOverlay=function(name){
var _4c6=this._buildOptionString(this.curOptions);
var _4c7="%s;%s".format(name,_4c6);
this._name=name;
this._pwp.Set("overlay.create",_4c7);
this._manager._overlays[name]=this;
return this._manager._overlays[name];
};
_mo.name=function(){
return this._name;
};
_mo.update=function(_4c8){
var _4c9=this._buildOptionsFromArray(_4c8);
var _4ca=this.curOptions;
for(var key in _4c9){
_4ca[key]=_4c9[key];
}
this.set(_4ca);
};
_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(_4cd){
var _4ce=this._buildOptionsFromArray(_4cd);
if(typeof (_4ce.caption)!="undefined"){
this._curText=_4ce.caption;
_4ce.caption=this.escape(_4ce.caption);
if(typeof (_4ce.font)!="undefined"){
_4ce.font=this.escape(_4ce.font);
}
_4ce.type="text";
}
if(typeof (_4ce.url)!="undefined"){
this._curImage=_4ce.url;
_4ce.url=this.escape(_4ce.url);
_4ce.type="image";
}
this.curOptions=_4ce;
var _4cf=this._buildOptionString(_4ce);
var _4d0="%s;%s".format(this._name,_4cf);
if(this.logging){
log("Making SET call: %s".format(_4d0));
}
this._pwp.Set("overlay.update",_4d0);
};
_mo._buildOptionString=function(_4d1){
var str="";
for(var key in _4d1){
if(typeof (_4d1[key])=="string"&&_4d1[key].indexOf(" ")!==-1){
_4d1[key]=this.escape(_4d1[key]);
}
if(str.length>0){
str+=" ";
}
str+="%s:%s".format(key,_4d1[key]);
}
return str;
};
_mo._buildOptionsFromArray=function(_4d4){
var _4d5={};
if(!(_4d4 instanceof Array)){
_4d4=[_4d4];
}
for(var i=0;i<_4d4.length;i++){
var _4d7=_4d4[i];
if(_4d7 instanceof Array){
_4d7=this._buildOptionsFromArray(_4d7);
}
for(var key in _4d7){
_4d5[key]=_4d7[key];
}
}
return _4d5;
};
_mo.getOverlay=function(name){
var _4da=this._name+"."+name;
return this._manager._overlays[_4da];
};
_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,_4e3){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_MOVE,this,j,k,x,y,_4e3);
};
_mo._mouseOver=function(j,k,x,y,_4e8){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_OVER,this,j,k,x,y,_4e8);
};
_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,_4f1){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_UP,this,j,k,x,y,_4f1);
};
_mo._mouseDown=function(j,k,x,y,_4f6){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_DOWN,this,j,k,x,y,_4f6);
};
_mo._click=function(j,k,x,y,_4fb){
this.FireEvent(MN.QMP.Overlays.EventTypes.CLICK,this,j,k,x,y,_4fb);
};
_mo._mouseOut=function(_4fc){
this.FireEvent(MN.QMP.Overlays.EventTypes.MOUSE_OUT,this,_4fc);
};
_mo._rollOut=function(){
this.FireEvent(MN.QMP.Overlays.EventTypes.ROLL_OUT,this);
};
_mo._updatePosition=function(left,top,_4ff,_500,_501,_502){
this.alpha=_501;
this.width=_4ff;
this.height=_500;
var _503=null;
_503=this._manager.getOverlay(this._name.substring(0,this._name.lastIndexOf(".")));
if(_503===null||typeof (_503)=="undefined"){
_503=this._manager.getOverlay("stage");
}
var _504=this._manager.getOverlay("stage");
this.absoluteLeft=left;
this.absoluteTop=top;
this.left=left-_503.absoluteLeft;
this.top=top-_503.absoluteTop;
if(this._name=="stage"){
this.absoluteRight=0;
this.absoluteBottom=0;
this.right=0;
this.bottom=0;
}else{
this.absoluteRight=_504.width-left-_4ff;
this.absoluteBottom=_504.height-top-_500;
this.right=this.absoluteRight-_503.absoluteRight;
this.bottom=this.absoluteBottom-_503.absoluteBottom;
}
this.FireEvent(MN.QMP.Overlays.EventTypes.UPDATE,this,left,top,_4ff,_500,_501,_502);
};
_mo._imageLoaded=function(_505,_506,_507){
this.FireEvent(MN.QMP.Overlays.EventTypes.IMAGE_LOADED,this,_505,_506,_507);
};
MN.QMP.Overlays.TextMoveOverlay=MN.Class(MN.QMP.Overlays.MoveOverlay);
var _tmo=MN.QMP.Overlays.TextMoveOverlay.prototype;
_tmo.initialize=function(pwp,_509,_50a){
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,_50d,_50e){
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(_510){
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=_510;
this.playerVersion=_510.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 _511=MN.QMP.EventTypes;
MN.Event.Observe(this.player,_511.PLAY_STATE_CHANGED,this._PlayerPlayStateChanged);
MN.Event.Observe(this.player,_511.BIT_RATE_CHANGED,this._PlayerBitRateChanged);
MN.Event.Observe(this.player,_511.ERROR,this._PlayerError);
MN.Event.Observe(this.player,_511.SCRIPT,this._PlayerScript);
MN.Event.Observe(this.player,_511.AUDIO_CONTROL,this._PlayerAudioControl);
MN.Event.Observe(this.player,_511.SCRUB_BUMPER,this._PlayerScrubBumper);
MN.Event.Observe(this.player,_511.LIVE_BUMPER,this._PlayerLiveBumper);
MN.Event.Observe(this.player,_511.BITMAP_READY,this._BitmapReady);
MN.Event.Observe(this.player,_511.UI_STATE_CHANGED,this._PlayerUIStateChanged);
MN.Event.Observe(this.player,_511.OVERLAY_MOUSE_MOVE,this._PlayerOverlayMouseMove);
MN.Event.Observe(this.player,_511.OVERLAY_MOUSE_OVER,this._PlayerOverlayMouseOver);
MN.Event.Observe(this.player,_511.OVERLAY_ROLL_OVER,this._PlayerOverlayRollOver);
MN.Event.Observe(this.player,_511.OVERLAY_MOUSE_UP,this._PlayerOverlayMouseUp);
MN.Event.Observe(this.player,_511.OVERLAY_MOUSE_DOWN,this._PlayerOverlayMouseDown);
MN.Event.Observe(this.player,_511.OVERLAY_MOUSE_OUT,this._PlayerOverlayMouseOut);
MN.Event.Observe(this.player,_511.OVERLAY_ROLL_OUT,this._PlayerOverlayRollOut);
MN.Event.Observe(this.player,_511.OVERLAY_UPDATE,this._PlayerOverlayUpdate);
MN.Event.Observe(this.player,_511.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(_517){
if(arguments.length===0){
return MN.$(this.player.id).style.visibility!="hidden";
}
if(_517){
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(_517);
},10);
};
_pwp._hideFlashOverlays=function(_519){
if(MN.Flash&&MN.Flash._flashObjects){
for(var idx in MN.Flash._flashObjects){
var _51b=MN.Flash._flashObjects[idx];
if(_51b.getPlayerID()!=this.player.id){
continue;
}else{
if(_519){
_51b.show();
}else{
_51b.hide();
}
}
}
}
};
_pwp.overlaysSupported=function(){
if(MN._supportsOverlays!==null){
return MN._supportsOverlays;
}
var caps=new MN.Capabilities.HWInfo(this);
var _51d=caps.getVideoRenderer().toUpperCase();
if(_51d=="NO RENDERER"||_51d=="DX7"||_51d=="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 _51e=this.CurrentShow(null,true);
if(_51e>=0&&_51e!=this.lastCurrentShow){
this.lastCurrentShow=_51e;
this._registerView(_51e);
this.PostEvent(MN.QMP.EventTypes.SHOW_CHANGED,_51e,this.qvt.Title(_51e)||"");
}
};
_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 _522=this._TimeToOldClip();
if(!_522){
logError("Couldn't figure out which old clip we were playing.  Trouble ahead.");
return;
}
var _523=_522.url;
var _524=_522.tlStartTime;
var _525=_522.tlStopTime;
var _526=null;
var _527=null;
var _528=null;
var _529=null;
var now=this.CurrentPosition();
var _52b=this.qvt.TimelineToClip(now);
var _52c=_52b.clipNum;
if(_52c>=0){
_526=this.qvt.meta.clips[_52c];
if(_526){
_527=_526.url;
_528=_526.tlStartTime;
_529=_526.tlStopTime;
}
}
if(_527==_523&&_528==_524&&_529!=_525){
this._SetStopPosition(_526.rangeEnd);
log("Edited timeline: Adjusting clip stop position to ",_526.rangeEnd);
}else{
if(this.CurrentPlayState()==MN.QMP.PS.PLAYING&&(_527!=_523||_528!=_524||_529!=_525)){
log("Edited timeline: Restarting playback for new clip");
this._Play(_52b);
}
}
};
_pwp._SetStopPosition=function(pos){
this.currentStopPos=pos;
this.player.SetStopPosition(pos);
};
_pwp._setStandardCustomStats=function(_52e){
this._clearCustomStats();
var _52f=this.qvt.PrimaryURL();
if(_52e.qvtURL!=_52f){
log("_setStandardCustomStats: Primary QVT URL has changed; cancelling standard custom stats");
log("_setStandardCustomStats: "+_52e.qvtURL+" != "+_52f);
return;
}
log("_setStandardCustomStats: Sending stats for qvt URL "+_52e.qvtURL+" clip "+_52e.clipNum);
this._customStats=MN.QVT.StatsGenerator.getCustomStats(this.qvt,this.qvt.ClipToTimeline(_52e.clipNum,_52e.startPos));
this._setCustomStats(this._customStats);
};
_pwp._setCustomStats=function(_530){
for(var key in _530){
if(_530.hasOwnProperty(key)){
var _532=_530[key];
if(_532===undefined||_532===null){
_532="";
}
this.player.Set("CustomStats."+key,String(_532));
}
}
};
_pwp._clearCustomStats=function(){
this._setCustomStats(MN.QVT.StatsGenerator.getClearingStats());
this._customStats={};
};
_pwp._Play=function(_533,_534){
var _535;
if(_534!==true){
_534=false;
}
pausedString=_534?"0":"1";
this.playOnInitialLoad=false;
if(this.gapIntervalID!=-1){
clearInterval(this.gapIntervalID);
this.gapIntervalID=-1;
}
if(this.IsScrubbing()){
this.StopScrubbing();
}
var _536=this.currentURL;
var _537=this.currentStopPos;
this.currentClipNum=_533.clipNum;
if(_533.url!==""){
this.currentURL=_533.url;
}
var _538=_533.stopPos;
this.currentStopPos=_538;
this.inGap=(!this.currentURL);
var clip=this.qvt.GetClip(_533.clipNum);
var _53a=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){
_538=this.currentClipStart+(this.requestedStopSec-clip.tlStartTime);
if(_533.stopPos){
_538=Math.min(_538,_533.stopPos);
}
}
this._setStandardCustomStats(_533);
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 _53c=_533.url;
var _53d=this.currentClipStart;
if(_53c==_536&&_538==_537&&_53d==_53a){
_53c="";
_538=-1;
_53d=-1;
}
var _53e="%s, %s, %s, %s, %s".format(_53c,_53d,_538,_533.startPos,pausedString);
this._PlayerLog("Now calling PlayEx("+_53e+")");
_535=this.Paused();
this.player.Set("PlayEx",_53e);
if((_535&&!_534)||(!_535&&_534)){
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_534,null);
}
}else{
this._PlayerLog("Now calling Play(%s,%s,%s)".format(_533.url,clip.rangeStart,_538));
this.player.Play(_533.url,clip.rangeStart,_538);
log("_Play: declaring afterPlaying with posObj.qvtURL = "+_533.qvtURL);
var _53f=function(oldS,newS){
if(newS==MN.QMP.PS.PLAYING){
that._PlayerLog("Now setting CurrentPosition =",_533.startPos);
that.player.CurrentPosition=_533.startPos;
if(_533.qvtURL==that.qvt.PrimaryURL()){
log("afterPlaying: URLs matched, unobserving");
MN.Event.StopObserving(that.player,MN.QMP.EventTypes.PLAY_STATE_CHANGED,_53f);
}else{
log("afterPlaying: URLs didn't match, not unobserving");
}
}
};
MN.Event.Observe(this.player,MN.QMP.EventTypes.PLAY_STATE_CHANGED,_53f);
}
}else{
this.player.Stop();
this.gapLastUpdate=(new Date()).getTime();
this.gapCurrentPos=_533.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);
_535=this.Paused();
this.gapPaused=_534;
if((_535&&!_534)||(!_535&&_534)){
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_534,null);
}
}
var _542=this.qvt.GetClip(_533.clipNum);
var _543,nextClipNum,nextClipURL;
if(_542&&_542.url){
nextClipNum=_533.clipNum+1;
while(nextClipNum<this.qvt.meta.clips.length){
_543=this.qvt.GetClip(nextClipNum);
nextClipURL=_543.url;
if(nextClipURL){
break;
}
nextClipNum+=1;
}
}
if(nextClipURL){
var _544=_543.rangeStart||0;
var _545=_543.rangeEnd||0;
var _546=_544+this.preloadDuration;
if(_546>_545){
_546=_545;
}
this._PlayerLog("Preloading",nextClipURL,_544,_546);
this.player.PreLoad(nextClipURL,_544,_546);
}
};
_pwp._registerView=function(_547){
var _548="";
var _549="";
if(_547>-1&&"shows" in this.qvt.meta&&"asset_id" in this.qvt.meta.shows[_547]){
_548=this.qvt.meta.shows[_547].asset_id;
}
if(_547>-1&&"shows" in this.qvt.meta&&"publisher_id" in this.qvt.meta.shows[_547]){
_549=this.qvt.meta.shows[_547].publisher_id;
}
if(_548&&_549){
var url=MN.Config.viewTrackURLTemplate.replace("%pub_id%",_549).replace("%asset_id%",_548);
log("View track URL: "+url);
MN.URL.track(url);
}
};
_pwp.setStatsProp=function(_54b,_54c){
_54b=parseInt(_54b,10);
if(_54b<1||_54b>99){
throw new RangeError("Prop index out of range");
}
_54b=MN.PadDigits(_54b,2,"0");
_54c=_54c.replace(/\|/g,"");
_54c=_54c.replace(/;/g,"");
_54c=_54c.replace(/,/g,"");
this.player.Set("CustomStats.prop_"+_54b,_54c);
};
_pwp.clearStatsProp=function(_54d){
_54d=MN.PadDigits(_54d,2,"0");
this.player.Set("CustomStats.prop_"+_54d,"");
};
_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 _550=this.CurrentQVT().Metadata("QCAST_PUB_ID");
var _551=this.CurrentQVT().Metadata("clipID",0);
var _552=this.CurrentQVT().Metadata("title",0);
var _553="";
if(typeof (this.CurrentQVT().Metadata("QCAST_LABELS"))!="undefined"){
_553=this._parseQuantcastHeirarchyString(this.CurrentQVT().Metadata("QCAST_LABELS"));
}else{
if(typeof (this.CurrentQVT().Metadata("QCAST_LABEL"))!="undefined"){
_553=this._parseQuantcastHeirarchyString(this.CurrentQVT().Metadata("QCAST_LABEL"));
}
}
var _554={r:Math.floor(Math.random()*1531868462),publisherId:_550,event:"play",quantv:"qmv1.0",pageURL:location.href,duration:this.Duration(),videoId:_551,title:_552,media:"video",url:this.qvt.PrimaryURL()};
if(_553.length>1){
_554.labels=_553;
}
var url=MN.URL.SetParams(this._quantCastURL,_554);
return url;
};
_pwp._parseQuantcastHeirarchyString=function(_556){
var key;
var val;
var _559=/\[([a-zA-Z0-9_]+)\]/;
var _55a=/\{([a-zA-Z0-9_]+)\}/;
var _55b=_559.exec(_556);
while(_55b!==null){
key=_55b[0];
val="";
if(typeof (this.CurrentQVT().Metadata(_55b[1]))=="undefined"){
val="Unknown";
}else{
val=this.CurrentQVT().Metadata(_55b[1]);
}
_556=_556.replace(key,val);
_55b=_559.exec(_556);
}
var _55c=_55a.exec(_556);
while(_55c!==null){
key=_55c[0];
val="";
if(typeof (this.CurrentQVT().Metadata(_55c[1],0))=="undefined"){
val="Unknown";
}else{
val=this.CurrentQVT().Metadata(_55c[1],0);
}
_556=_556.replace(key,val);
_55c=_55a.exec(_556);
}
return _556;
};
_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(_562){
if(_562==this.playState){
return;
}
var _563=this.playState;
this.playState=_562;
this.PostEvent(MN.QMP.EventTypes.PLAY_STATE_CHANGED,_563,_562);
};
_pwp._PlayerBitRateChanged=function(_564,_565){
this.PostEvent(MN.QMP.EventTypes.BIT_RATE_CHANGED,_564,_565);
};
_pwp._PlayerOverlayMouseMove=function(j,k,x,y,_56a,_56b){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_MOVE,j,k,x,y,_56a,_56b);
};
_pwp._PlayerOverlayMouseOver=function(j,k,x,y,_570,_571){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_OVER,j,k,x,y,_570,_571);
};
_pwp._PlayerOverlayRollOver=function(j,k,x,y,_576){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_ROLL_OVER,j,k,x,y,_576);
};
_pwp._PlayerOverlayMouseUp=function(j,k,x,y,_57b,_57c){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_UP,j,k,x,y,_57b,_57c);
};
_pwp._PlayerOverlayMouseDown=function(j,k,x,y,_581,_582){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_DOWN,j,k,x,y,_581,_582);
};
_pwp._PlayerOverlayMouseOut=function(_583,_584){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_MOUSE_OUT,_583,_584);
};
_pwp._PlayerOverlayRollOut=function(_585){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_ROLL_OUT,_585);
};
_pwp._PlayerOverlayUpdate=function(left,top,_588,_589,_58a,_58b,_58c){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_UPDATE,left,top,_588,_589,_58a,_58b,_58c);
};
_pwp._PlayerOverlayImageLoaded=function(_58d,_58e,_58f,_590){
this.PostEvent(MN.QMP.EventTypes.OVERLAY_IMAGE_LOADED,_58d,_58e,_58f,_590);
};
_pwp._PlayerUIStateChanged=function(_591){
this.PostEvent(MN.QMP.EventTypes.UI_STATE_CHANGED,_591);
};
_pwp._PlayerLog=function(){
var _592=[];
for(var i=0,al=arguments.length;i<al;i++){
var arg=arguments[i].toString();
_592.push(arg);
}
var msg=_592.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 _598=o.msg.split(",");
var _599=parseInt(_598[1],10);
this.PostEvent(MN.QMP.EventTypes.NOT_SUSTAINABLE,_599);
}else{
this.PostEvent(MN.QMP.EventTypes.ERROR,o);
}
};
_pwp._PlayerScript=function(key,_59b){
this.PostEvent(MN.QMP.EventTypes.SCRIPT,key,_59b);
};
_pwp._PlayerAudioControl=function(_59c,_59d){
this.PostEvent(MN.QMP.EventTypes.AUDIO_CONTROL,_59c,_59d);
};
_pwp._PlayerScrubBumper=function(_59e){
this._PlayerLog("bump!",_59e);
this.PostEvent(MN.QMP.EventTypes.SCRUB_BUMPER,_59e);
};
_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(_5a2,_5a3,_5a4){
if(typeof (_5a3)=="undefined"){
_5a3=-1;
}else{
_5a3=MN.ConvertFromTimestamp(_5a3);
}
if(typeof (_5a4)=="undefined"){
_5a4=0;
}else{
_5a4=MN.ConvertFromTimestamp(_5a4);
}
this.player.PreLoad(_5a2,_5a3,_5a4);
};
_pwp.Play=function(qvt,_5a6,_5a7,_5a8,_5a9){
if(!(_5a9 instanceof Object)){
_5a9={};
}
if(this.checkShowIntervalID!=-1){
clearInterval(this.checkShowIntervalID);
this.checkShowIntervalID=-1;
}
this._nextClipSafe=false;
this.currentURL="";
this.Load(qvt);
if(_5a6===undefined||_5a6===null){
_5a6=-1;
}else{
_5a6=MN.ConvertFromTimestamp(_5a6);
}
if(_5a7===undefined||_5a7===null){
_5a7=-1;
}else{
_5a7=MN.ConvertFromTimestamp(_5a7);
}
if(_5a8===undefined||_5a8===null){
_5a8=false;
}
this.requestedStartPaused=_5a8;
this._PlayerLog("play",_5a6,_5a7);
this.requestedStartSec=_5a6;
this.requestedStopSec=_5a7;
this.playOnInitialLoad=true;
this.waitForInitialLoadID=setInterval(this.WaitForInitialLoad,100);
};
_pwp.PlayClip=function(_5aa,_5ab,_5ac,_5ad,_5ae){
var clip={};
clip.url=_5aa;
clip.title=_5ab||"";
if(typeof (_5ac)=="undefined"){
_5ac=-1;
}else{
_5ac=MN.ConvertFromTimestamp(_5ac);
}
if(typeof (_5ad)=="undefined"){
_5ad="";
}else{
_5ad=MN.ConvertFromTimestamp(_5ad);
}
clip.range=_5ac+","+_5ad;
var qvt={"clips":[clip]};
this.Play(qvt,_5ae);
};
_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 _5b3=this.currentStopPos;
if(this.requestedStopSec!=-1&&this.requestedStopSec>=clip.tlStartTime&&this.requestedStopSec<clip.tlStopTime){
_5b3=clip.rangeStart+(this.requestedStopSec-clip.tlStartTime);
}
this._SetStopPosition(_5b3);
}
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 _5b5=function(){
that._Play(that.qvt.TimelineToClip(that.requestedStartSec),that.requestedStartPaused);
};
_5b5();
}
}
};
_pwp.Stop=function(){
this.player.Stop();
this._SetPlayState(MN.QMP.PS.STOPPED);
};
_pwp._TimeToClipNum=function(_5b6,_5b7){
for(var i=0,cl=_5b7.length;i<cl;i++){
clip=_5b7[i];
if(clip.tlStartTime<=_5b6&&_5b6<clip.tlStopTime){
return i;
}
}
return _5b7.length-1;
};
_pwp._UpdateCurrentClipNum=function(){
if(!this.oldqvt||!this.qvt.metadataLoaded){
return;
}
var _5b9=this.oldqvt.meta.clips;
var _5ba=this.qvt.meta.clips;
if(_5b9&&(_5ba.length!=_5b9.length)){
this.currentClipNum=this._TimeToClipNum(this.reportedSeekPos,_5ba);
log("Edited timeline: Updated currentClipNum to",this.currentClipNum);
}
};
_pwp.CurrentPosition=function(pos,_5bc){
if(_5bc!==true){
_5bc=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 _5bf=function(pos){
that.reportedSeekPos=MN.ConvertFromTimestamp(pos);
var _5c1;
if(_5bc!==true){
that.gapPaused=false;
_5c1=false;
}else{
that.gapPaused=true;
_5c1=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),_5c1);
};
_5bf(pos);
}
return null;
};
_pwp.CurrentVideoStage=function(){
var _5c2=this.OverlayManager.substage;
var _5c3=this.OverlayManager.videostage;
var _5c4={"width":0,"height":0,"left":0,"top":0};
_5c4.width=_5c3.width;
_5c4.height=_5c3.height;
_5c4.top=_5c2.top+_5c3.top;
_5c4.left=_5c2.left+_5c3.left;
return _5c4;
};
_pwp.CurrentClip=function(_5c5){
return this.currentClipNum;
};
_pwp.CurrentShow=function(_5c6,_5c7){
if(!this.qvt){
return -1;
}
if(_5c6===undefined||_5c6===null){
return this.qvt.TimelineToShow(this.CurrentPosition());
}
_5c6=parseInt(_5c6,10);
if(_5c6>=0&&_5c6<this.qvt.ShowCount()){
var pos=this.qvt.StartTime(parseInt(_5c6,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 _5c9;
_5c9=!!arguments[0];
this.player.Muted=_5c9;
this.PostEvent(MN.QMP.EventTypes.MUTED_CHANGED,_5c9);
}
return this.player.Muted;
};
_pwp.Paused=function(){
if(arguments.length===0){
if(this.InGap()){
return this.gapPaused;
}
return this.player.Paused;
}else{
var _5ca=!!(arguments[0]||0);
if(this.InGap()){
this.gapPaused=_5ca;
}else{
this.player.Paused=_5ca;
}
this.PostEvent(MN.QMP.EventTypes.PAUSED_CHANGED,_5ca,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(_5cd){
_5cd=Number(_5cd);
this.player.Set("Step",_5cd);
};
_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,_5d6){
this.player.Set(name,_5d6);
};
_pwp.GetSetting=function(name){
return this.player.GetSetting(name);
};
_pwp.PutSetting=function(name,_5d9){
this.player.PutSetting(name,_5d9);
};
_pwp.MetadataByName=function(name){
return this.player.MetadataByName(name);
};
_pwp.MetadataName=function(_5db){
return this.player.MetadataName(_5db);
};
_pwp.MetadataByIndex=function(_5dc){
return this.player.MetadataByIndex(_5dc);
};
_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(_5dd){
this.player.FillColor=_5dd;
};
_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(_5e0){
this.player._bypassCurrentPosCache=_5e0;
};
_pwp.SendBitmapAsync=function(url,_5e2,w,h){
this.player.SendBitmapAsync(url,_5e2,w,h);
};
_pwp._BitmapReady=function(_5e5,url){
this.PostEvent(MN.QMP.EventTypes.BITMAP_READY,_5e5,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,_5ee){
if(MN.QMPInstall.OS()=="mac"){
this.player.OverlayHTML(x,y,w,h,_5ee);
}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(_5f2,_5f3,_5f4,_5f5,_5f6){
if(_5f2.charAt(_5f2.length-1)!="/"){
_5f2+="/";
}
_5f2=MN.URL.Join(_5f2,"QIS/uploadservices/RequestUploadInfo");
var cmd=["Upload.add",_5f2,_5f3,_5f4,_5f5,MN.JSON.stringify(_5f6)].join(",");
return this.player.Get(cmd);
};
_pwp.CancelUpload=function(_5f8){
var cmd="Upload.cancel,"+_5f8;
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(_5fb){
if(_5fb){
this.player.Set("AutoSelectByStageSize","1");
this.player.Set("Commit","");
}else{
if(_5fb===false){
this.player.Set("AutoSelectByStageSize","0");
this.player.Set("Commit","");
}
}
};
_pwp.fullScreen=function(set,_5fd,_5fe){
if(!this.fullScreenSupported()){
return false;
}
var _5ff="";
if(set){
_5ff+="1,";
}else{
_5ff+="0,";
}
if(_5fd){
_5ff+=_5fd;
}
if(_5fe){
_5ff+=","+_5fe.speed;
}
this.player.Set("FullScreen",_5ff);
return true;
};
_pwp.setSubStagePosition=function(spec,_601){
spec.replace(";",",");
var _602="";
if(_601&&parseInt(_601,10)){
_601=parseInt(_601,10);
_602=";Zoom,"+_601.toString();
}
this.player.Set("SubStagePosition",spec+_602);
};
_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 _604=MN._libBase+"/controls/";
this.setControlFrame(_604+"Frame.png",-20);
var _605=30;
var _606=19;
this.setControls({Previous:{imageURL:_604+"Previous.png",x:_605,y:_606+4},Rewind:{imageURL:_604+"Rewind.png",x:_605+30,y:_606+4},Play:{imageURL:_604+"Play.png",x:_605+70,y:_606},Pause:{imageURL:_604+"Pause.png",x:_605+70,y:_606},FastForward:{imageURL:_604+"FastForward.png",x:_605+110,y:_606+4},Next:{imageURL:_604+"Next.png",x:_605+145,y:_606+4},FullScreen:{imageURL:_604+"Fullscreen.png",x:-9,y:_606,effect:"zoom",effectSpeed:"500"},ExitFullScreen:{imageURL:_604+"ExitFullscreen.png",x:-9,y:_606}});
this.activateControls();
};
_pwp.setControlFrame=function(_607,y){
var _609="Control.Frame";
var _60a=_607+", "+y;
log("setControlFrame: player.Set('%s, %s')".format(_609,_60a));
this.player.Set(_609,_60a);
};
_pwp.setControls=function(_60b){
var _60c,attrs,setVal,controlName;
for(controlName in _60b){
if(_60b.hasOwnProperty(controlName)){
_60c="Control."+controlName;
attrs=_60b[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(_60c,setVal));
this.player.Set(_60c,setVal);
}
}
};
_pwp.activateControls=function(){
return this.player.Set("Control.Open","");
};
_pwp.deactivateControls=function(){
return this.player.Set("Control.Close","");
};
_pwp.setUIInactivityDelay=function(_60d){
this.player.Set("UIInactivityDelay",_60d);
};
_pwp=undefined;
if(!MN){
MN={};
}
if(!MN.QVT){
MN.QVT={};
}
MN.QVT.StatsGenerator={getCustomStats:function(qvt,pos){
var _610=MN.QVT.StatsGenerator;
if(pos<0||pos>qvt.Duration()){
throw new RangeError("Position out of range");
}
return _610._getQvtStatsFunc(qvt)(qvt,pos);
},getClearingStats:function(){
var _611=MN.QVT.CustomStatsTypes;
var _612={};
var _613;
for(_613 in _611){
if(_611.hasOwnProperty(_613)){
_612[_611[_613]]="";
}
}
return _612;
},_getQvtStatsFunc:function(qvt){
var _615=MN.QVT.StatsGenerator;
if("publish_version" in qvt.meta){
return _615._getPub3CustomStats;
}else{
return _615._getBasicCustomStats;
}
},_getPub3CustomStats:function(qvt,pos){
var _618=MN.QVT.CustomStatsTypes;
var _619={};
var _61a=qvt.TimelineToClip(pos).clipNum;
var clip=qvt.GetClip(_61a);
var show=qvt.meta.shows[qvt.TimelineToShow(pos)];
_619[_618.SDK_VERSION]=MN.RELEASE_VERSION;
if("container_id" in qvt.meta){
_619[_618.CONTAINER_ID]=qvt.meta.container_id;
}
if("publisher_id" in qvt.meta){
_619[_618.CONTAINER_PUB_ID]=qvt.meta.publisher_id;
}
if("segment_id" in clip){
_619[_618.SEGMENT_ID]=clip.segment_id;
}
if("sequence" in clip){
_619[_618.SEGMENT_SEQ]=clip.sequence;
}
if("publisher_id" in clip){
_619[_618.SEGMENT_PUB_ID]=clip.publisher_id;
}
if("asset_id" in show){
_619[_618.ASSET_ID]=show.asset_id;
}
if("publisher_id" in show){
_619[_618.ASSET_PUB_ID]=show.publisher_id;
}
return _619;
},_getBasicCustomStats:function(qvt,pos){
var _61f=MN.QVT.CustomStatsTypes;
var _620=MN.QVT.SegmentTypes;
var _621={};
var _622=qvt.TimelineToClip(pos).clipNum;
var clip=qvt.GetClip(_622);
var _624=qvt.PrimaryURL();
if(qvt.timelineType()==MN.QVT.TimelineTypes.DIRECT_QMX){
_624=qvt.initRaw;
}
if(!_624){
_624="";
}
if(clip&&"rangeStart" in clip){
_621[_61f.CLIP_RANGE_START]=clip.rangeStart+"";
}
if(clip&&"rangeEnd" in clip){
_621[_61f.CLIP_RANGE_END]=clip.rangeEnd+"";
}
_621[_61f.TIMELINE_URL]=_624;
_621[_61f.TIMELINE_SEEK_POS]=qvt.ClipToTimeline(_622,pos)+"";
_621[_61f.TIMELINE_TYPE]=qvt.timelineType();
_621[_61f.TIMELINE_ID]=qvt.timelineID()+"";
_621[_61f.MEDIA_DATE]=qvt.timelineDate();
_621[_61f.SDK_VERSION]=MN.RELEASE_VERSION;
_621[_61f.SEGMENT_TYPE]=_620.CONTENT;
return _621;
}};
_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(_625){
var _626=false;
var _627=null;
try{
var _628=null;
if(typeof (ActiveXObject)!="undefined"){
_628=new ActiveXObject("AgControl.AgControl");
if(_625==null){
_626=true;
}else{
if(_628.IsVersionSupported(_625)){
_626=true;
}
}
_628=null;
}else{
var _629=navigator.plugins["Silverlight Plug-In"];
if(_629){
if(_625===null){
_626=true;
}else{
var _62a=_629.description;
if(_62a==="1.0.30226.2"){
_62a="2.0.30226.2";
}
var _62b=_62a.split(".");
while(_62b.length>3){
_62b.pop();
}
while(_62b.length<4){
_62b.push(0);
}
var _62c=_625.split(".");
while(_62c.length>4){
_62c.pop();
}
var _62d;
var _62e;
var _62f=0;
do{
_62d=parseInt(_62c[_62f]);
_62e=parseInt(_62b[_62f]);
_62f++;
}while(_62f<_62c.length&&_62d===_62e);
if(_62d<=_62e&&!isNaN(_62d)){
_626=true;
}
}
}
}
}
catch(e){
_626=false;
}
if(_627){
document.body.removeChild(_627);
}
return _626;
};
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(_630,_631,id,_633,_634,_635,_636){
var _637=new Object();
var _638=_633;
var _639=_634;
_637.version=_638.version;
_638.source=_630;
_637.alt=_638.alt;
if(_635){
_638.initParams=_635;
}
if(_638.isWindowless&&!_638.windowless){
_638.windowless=_638.isWindowless;
}
if(_638.framerate&&!_638.maxFramerate){
_638.maxFramerate=_638.framerate;
}
if(id&&!_638.id){
_638.id=id;
}
delete _638.ignoreBrowserVer;
delete _638.inplaceInstallPrompt;
delete _638.version;
delete _638.isWindowless;
delete _638.framerate;
delete _638.data;
delete _638.src;
delete _638.alt;
if(Silverlight.isInstalled(_637.version)){
for(var name in _639){
if(_639[name]){
if(name=="onLoad"&&typeof _639[name]=="function"&&_639[name].length!=1){
var _63b=_639[name];
_639[name]=function(_63c){
return _63b(document.getElementById(id),_636,_63c);
};
}
var _63d=Silverlight.__getHandlerName(_639[name]);
if(_63d!=null){
_638[name]=_63d;
_639[name]=null;
}else{
throw "typeof events."+name+" must be 'function' or 'string'";
}
}
}
slPluginHTML=Silverlight.buildHTML(_638);
}else{
slPluginHTML=Silverlight.buildPromptHTML(_637);
}
if(_631){
_631.innerHTML=slPluginHTML;
}else{
return slPluginHTML;
}
};
Silverlight.buildHTML=function(_63e){
var _63f=[];
_63f.push("<object type=\"application/x-silverlight\" data=\"data:application/x-silverlight,\"");
if(_63e.id!=null){
_63f.push(" id=\""+_63e.id+"\"");
}
if(_63e.width!=null){
_63f.push(" width=\""+_63e.width+"\"");
}
if(_63e.height!=null){
_63f.push(" height=\""+_63e.height+"\"");
}
_63f.push(" >");
delete _63e.id;
delete _63e.width;
delete _63e.height;
for(var name in _63e){
if(_63e[name]){
_63f.push("<param name=\""+Silverlight.HtmlAttributeEncode(name)+"\" value=\""+Silverlight.HtmlAttributeEncode(_63e[name])+"\" />");
}
}
_63f.push("</object>");
return _63f.join("");
};
Silverlight.createObjectEx=function(_641){
var _642=_641;
var html=Silverlight.createObject(_642.source,_642.parentElement,_642.id,_642.properties,_642.events,_642.initParams,_642.context);
if(_642.parentElement==null){
return html;
}
};
Silverlight.buildPromptHTML=function(_644){
var _645="";
var _646=Silverlight.fwlinkRoot;
var _647=_644.version;
if(_644.alt){
_645=_644.alt;
}else{
if(!_647){
_647="";
}
_645="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";
_645=_645.replace("{1}",_647);
_645=_645.replace("{2}",_646+"108181");
}
return _645;
};
Silverlight.getSilverlight=function(_648){
if(Silverlight.onGetSilverlight){
Silverlight.onGetSilverlight();
}
var _649="";
var _64a=String(_648).split(".");
if(_64a.length>1){
var _64b=parseInt(_64a[0]);
if(isNaN(_64b)||_64b<2){
_649="1.0";
}else{
_649=_64a[0]+"."+_64a[1];
}
}
var _64c="";
if(_649.match(/^\d+\056\d+$/)){
_64c="&v="+_649;
}
Silverlight.followFWLink("114576"+_64c);
};
Silverlight.followFWLink=function(_64d){
top.location=Silverlight.fwlinkRoot+String(_64d);
};
Silverlight.HtmlAttributeEncode=function(_64e){
var c;
var _650="";
if(_64e==null){
return null;
}
for(var cnt=0;cnt<_64e.length;cnt++){
c=_64e.charCodeAt(cnt);
if(((c>96)&&(c<123))||((c>64)&&(c<91))||((c>43)&&(c<58)&&(c!=47))||(c==95)){
_650=_650+String.fromCharCode(c);
}else{
_650=_650+"&#"+c+";";
}
}
return _650;
};
Silverlight.default_error_handler=function(_652,args){
var _654;
var _655=args.ErrorType;
_654=args.ErrorCode;
var _656="\nSilverlight error message     \n";
_656+="ErrorCode: "+_654+"\n";
_656+="ErrorType: "+_655+"       \n";
_656+="Message: "+args.ErrorMessage+"     \n";
if(_655=="ParserError"){
_656+="XamlFile: "+args.xamlFile+"     \n";
_656+="Line: "+args.lineNumber+"     \n";
_656+="Position: "+args.charPosition+"     \n";
}else{
if(_655=="RuntimeError"){
if(args.lineNumber!=0){
_656+="Line: "+args.lineNumber+"     \n";
_656+="Position: "+args.charPosition+"     \n";
}
_656+="MethodName: "+args.methodName+"     \n";
}
}
MN.Log.error(_656);
};
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(_658){
var _659="";
if(typeof _658=="string"){
_659=_658;
}else{
if(typeof _658=="function"){
if(Silverlight._silverlightCount==0){
if(window.addEventListener){
window.addEventListener("onunload",Silverlight.__cleanup,false);
}else{
window.attachEvent("onunload",Silverlight.__cleanup);
}
}
var _65a=Silverlight._silverlightCount++;
_659="__slEvent"+_65a;
window[_659]=_658;
}else{
_659=null;
}
}
return _659;
};
if(!MN){
MN={};
}
function _MN_Silverlight_SLLoadCallback(_65b,_65c,_65d){
MN.Silverlight.SilverlightCreatedCB(_65b,_65c,_65d);
}
MN.Silverlight={plugin:null,configs:{},_meetsRecs:null,_meetsReqs:null,CreateSilverlightOverlay:function(_65e){
log("Creating Silverlight overlay...");
MN.Silverlight.configs[_65e.silverlightID]=_65e;
if(typeof (_65e.parentElement)=="string"){
_65e.parentElement=$(_65e.parentElement);
}
if(!_65e.onError){
_65e.onError=null;
}
if(!_65e.onLoad){
_65e.onLoad=null;
}
if(!_65e.inPlaceInstallPrompt){
_65e.inPlaceInstallPrompt=true;
}
if(!_65e.fullScreenPosition){
_65e.fullScreenPosition="top:0px,left:0px,height:100%,width:100%";
}
Silverlight.createObject(_65e.source,_65e.parentElement,_65e.silverlightID,{width:_65e.width,height:_65e.height,inplaceInstallPrompt:_65e.inPlaceInstallPrompt,background:"transparent",isWindowless:"true",version:"2.0",framerate:"24"},{onError:_65e.onError,onLoad:_MN_Silverlight_SLLoadCallback},null);
log("Object emitted to DOM... waiting for Silverlight to load.");
},SilverlightCreatedCB:function(_65f,_660,_661){
log("Silverlight plugin loaded.");
var _662=MN.Silverlight.configs[_65f.id];
var _663=null;
var qmp=_662.playerWrapper;
if(_662.playerWrapper&&_662.silverlightElement){
_663=MN.Silverlight.MakeOverlay(qmp,qmp.player.id+"_"+_65f.id.toString()+"_"+_662.silverlightElement,_65f.id,_662.silverlightElement,_662.fullScreenPosition,_662.overrideRecommendations);
}else{
log("Silverlight overlay disabled");
}
if(_662.onLoad){
_662.onLoad(_663,_65f,_660,_661);
}
},MakeOverlay:function(_665,_666,_667,_668,_669,_66a){
log("Connecting Silverlight overlay");
var _66b=null;
var qmp=_665;
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(_66a)&&!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"){
_66b=qmp.player.AddSilverlightElement(_667,_668);
if(arguments.length>4){
_66b.FullscreenSpec=_669;
}
log("Windows detected; overlays enabled");
}else{
var _66d={"silverlightPlugin":_667,"silverlightElement":_668,"zIndex":MN.Silverlight.ZIndex++};
if(_669){
_66d.fullScreenSpec=_669;
}
_66b=qmp.player.MakeSilverlightOverlay(_666,_66d);
log("Mac detected; overlays enabled");
}
return _66b;
},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 _670=caps.getCPUType();
if(_670.indexOf("PowerPC")>-1){
log("MN.Silverlight.meetsRequirements: CPU type '"+_670+"' 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 _673=caps.getRAMSize();
if(_673<502){
log("MN.Silverlight.meetsRecommendations: RAM size "+_673+" < 502");
MN.Silverlight._meetsRecs=false;
return false;
}
var _674=caps.getCPUCount();
var _675=caps.getCPUSpeed();
var _676=parseInt(caps.getVideoRAMSize(),10);
if(MN.QMPInstall.OS()=="win"){
if(_676<118&&_676!==0){
log("MN.Silverlight.meetsRecommendations: Video RAM size "+_676+" < 118");
MN.Silverlight._meetsRecs=false;
return false;
}
if(_674<2&&_675<2990){
log("MN.Silverlight.meetsRecommendations: CPU count "+_674+" < 2 AND CPU speed "+_675+" < 2990");
MN.Silverlight._meetsRecs=false;
return false;
}
}
if(MN.QMPInstall.OS()=="mac"){
if(_674<2||_675<1990){
log("MN.Silverlight.meetsRecommendations: CPU count "+_674+" < 2 OR CPU speed "+_675+" < 1990");
MN.Silverlight._meetsRecs=false;
return false;
}
if(_676<118){
log("MN.Silverlight.meetsRecommendations: Video RAM size "+_676+" < 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(_677,args){
var _679="";
if(_677!==null&&_677!==0){
_679=_677.getHost().Source;
}
var _67a=args.ErrorType;
var _67b=args.ErrorCode;
var _67c="Unhandled Error in Silverlight 2 Application "+_679+"\n";
_67c+="Code: "+_67b+"    \n";
_67c+="Category: "+_67a+"       \n";
_67c+="Message: "+args.ErrorMessage+"     \n";
if(_67a=="ParserError"){
_67c+="File: "+args.xamlFile+"     \n";
_67c+="Line: "+args.lineNumber+"     \n";
_67c+="Position: "+args.charPosition+"     \n";
}else{
if(_67a=="RuntimeError"){
if(args.lineNumber!==0){
_67c+="Line: "+args.lineNumber+"     \n";
_67c+="Position: "+args.charPosition+"     \n";
}
_67c+="MethodName: "+args.methodName+"     \n";
}
}
throw new Error(_67c);
}

