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:
alert("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;
};
}
function cloneObj(_18){
if(typeof (_18)!="object"||_18===null){
return _18;
}
var _19=null;
if(_18 instanceof Array){
_19=[];
}else{
_19={};
}
for(var _1a in _18){
_19[_1a]=cloneObj(_18[_1a]);
}
return _19;
}
MN={RELEASE_VERSION:"071302000006",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;
},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(),2);
}
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};
}};
if(!MN.Config){
MN.Config={reqPlayerVersions : {'win_mozilla':'071101000055', 'win_ie':'071101000050', 'mac_mozilla':'07103007'},availPlayerVersions : {'win_mozilla':'071303000004', 'win_ie':'071303000004', 'mac_mozilla':'071303000004'},omnitureReportSuite:"mvnet00001111",omnitureDefaultPubID:"A0000099",enableOmnitureAnalytics:false,enableGoogleAnalytics:false};
}
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("&");
}};
MN.Event={windowLoaded:false,pointerX:function(_74){
return _74.pageX||(_74.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
},pointerY:function(_75){
return _75.pageY||(_75.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
},_listenerFuncs:[],Observe:function(obj,_77,cb){
obj=MN.$(obj);
if(_77=="EvalScript"){
logError("Invalid registration for OnEvalScript");
return;
}
if(_77=="EvalScript_fromflashobject"){
_77="EvalScript";
}
var _79="_"+_77.toLowerCase()+"Listeners";
if(_77=="EvalScript"){
if(obj[_79]){
logError("Multiple registration attempts for OnEvalScript not allowed");
return;
}
}
if(!obj[_79]){
obj[_79]=[];
var _7a=obj[_79];
var _7b=function(){
var _7c;
for(var i=0,ll=_7a.length;i<ll;i++){
try{
_7c=_7a[i].apply(this,arguments);
}
catch(e){
}
}
return _7c;
};
if(obj.addEventListener){
obj.addEventListener(_77,_7b,false);
}else{
if(obj.attachEvent){
obj.attachEvent("on"+_77,_7b);
}
}
MN.Event._listenerFuncs.push([obj,_77,_7b]);
}
var _7e=obj[_79];
for(var i=0,hl=_7e.length;i<hl;i++){
if(_7e[i]==cb){
return;
}
}
_7e.push(cb);
},StopObserving:function(obj,_81,cb){
obj=MN.$(obj);
var _83="_%sListeners".format(_81.toLowerCase());
var _84=obj[_83];
if(!_84){
return;
}
for(var i=0;i<_84.length;i++){
if(_84[i]==cb){
_84.splice(i,1);
if(_84.length===0){
var _86=null;
var _87=MN.Event._listenerFuncs;
for(var j=0;j<_87.length;j++){
var _89=_87[j];
if(_89[0]==obj&&_89[1]==_81){
_86=_89[2];
_87.splice(j,1);
break;
}
}
if(!_86){
logError("Could not find all_listener to remove");
}else{
if(obj.removeEventListener){
obj.removeEventListener(_81,_86,false);
}else{
obj.detachEvent("on"+_81,_86);
}
}
obj[_83]=null;
}
break;
}
}
},RemoveAllObservers:function(){
for(var i=0;i<MN.Event._listenerFuncs.length;i++){
var _8b=MN.Event._listenerFuncs[i];
var obj=_8b[0];
var _8d=_8b[1];
obj["_%sListeners".format(_8d.toLowerCase())]=null;
var _8e=_8b[2];
_8b[0]=null;
if(obj.removeEventListener){
obj.removeEventListener(_8d,_8e,false);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_8d,_8e);
}
}
MN.Event._listenerFuncs[i]=null;
}
}};
MN.Event.Observe(window,"load",function(){
MN.Event.windowLoaded=true;
});
MN.Event.Observe(window,"unload",MN.Event.RemoveAllObservers);
MN.EventSource=MN.Class();
MN.EventSource.prototype.initialize=function(){
this.events={};
};
MN.EventSource.prototype.addEventListener=function(_8f,_90){
_8f=_8f.toLowerCase();
if(!this.events[_8f]){
this.events[_8f]=[];
}
var _91=this.events[_8f];
for(var i=0,ll=_91.length;i<ll;i++){
var _93=_91[i];
if(_90==_93){
return;
}
}
_91.push(_90);
};
MN.EventSource.prototype.attachEvent=function(_94,_95){
if(!_94.toLowerCase().startswith("on")){
logError("attachEvent expects \"on<eventname>\" events not",_94);
}else{
this.addEventListener(_94.substr(2),_95);
}
};
MN.EventSource.prototype.removeEventListener=function(_96,_97){
_96=_96.toLowerCase();
var _98=this.events[_96];
if(!_98){
return;
}
var _99=[];
for(var i=0,ll=_98.length;i<ll;i++){
var _9b=_98[i];
if(_9b!=_97){
_99.push(_9b);
}
}
this.events[_96]=_99;
};
MN.EventSource.prototype.FireEvent=function(_9c){
_9c=_9c.toLowerCase();
var _9d=this.events[_9c];
if(!_9d){
return;
}
var _9e=MN.ToArray(arguments).slice(1);
for(var i=0,ll=_9d.length;i<ll;i++){
var _a0=_9d[i];
try{
_a0.apply(this,_9e);
}
catch(e){
logError("Listener",_a0,"for event",_9c,"had uncaught exception:",e.message||e);
}
}
};
MN.EventSource.prototype.PostEvent=function(_a1){
_a1=_a1.toLowerCase();
var _a2=this.events[_a1];
if(!_a2){
return;
}
var _a3=MN.ToArray(arguments).slice(1);
var _a4=this;
for(var i=0,ll=_a2.length;i<ll;i++){
var _a6=_a2[i];
setTimeout(function(){
try{
_a6.apply(_a4,_a3);
}
catch(e){
logError("Listener",_a6,"for event",_a1,"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 _a9=MN.ToArray(arguments).slice(2);
var _aa={};
for(var i=0,al=_a9.length/2;i<al;i++){
_aa[_a9[i*2]]=_a9[i*2+1];
}
return MN.AJAX.Call({method:"GET",url:url,callback:cb,params:_aa});
},Post:function(url,cb){
var _ae=MN.ToArray(arguments).slice(2);
var _af={};
for(var i=0,al=_ae.length/2;i<al;i++){
_af[_ae[i*2]]=_ae[i*2+1];
}
return MN.AJAX.Call({method:"POST",url:url,callback:cb,params:_af});
},Submit:function(_b1,cb){
_b1=MN.$(_b1);
var opt={method:"POST",url:_b1.action,cache:false,callback:cb};
var _b4=[];
var _b5=function(_b6,_b7){
_b4.push(encodeURIComponent(_b6)+"="+encodeURIComponent(_b7));
};
for(var i=0,fl=_b1.length;i<fl;i++){
var el=_b1.elements[i];
if(!el.name){
continue;
}
switch(el.type.toLowerCase()){
case "hidden":
case "textarea":
case "text":
case "password":
_b5(el.name,el.value);
break;
case "radio":
case "checkbox":
if(el.checked){
_b5(el.name,el.value);
}
break;
case "button":
case "submit":
break;
case "select-one":
var _ba=el.selectedIndex;
if(_ba>=0){
var _bb=el.options[_ba];
var _bc=_bb.value;
if(!_bc){
_bc=_bb.text;
}
_b5(el.name,_bc);
}
break;
case "select-multiple":
for(var j=0,elen=el.length;j<elen;j++){
var _be=el.options[j];
if(_be.selected){
var _bf=_be.value;
if(!_bf){
_bf=_be.text;
}
_b5(el.name,_bf);
}
}
break;
default:
logError("MN.AJAX.Submit not handling",el.name,el.type,el.value);
break;
}
}
var _c0=MN.ToArray(arguments).slice(2);
for(var k=0,al=_c0.length/2;k<al;k++){
_b5(_c0[k*2],_c0[k*2+1]);
}
opt.body=_b4.join("&");
return MN.AJAX.Call(opt);
},Call:function(_c2){
var _c3=null;
var _c4=_c2.method||"GET";
var url=_c2.url;
if(!url){
_c3="Missing AJAX URL";
}
if(!_c2.callback){
_c3="Missing AJAX callback";
}
var req=MN.AJAX.Create();
if(!req){
_c3="AJAX not supported";
}
if(_c3){
if(_c2.callback){
return _c2.callback({status:400,statusText:_c3,responseText:""});
}else{
return logError("No AJAX callback given");
}
}
var _c7=_c2.params||{};
MN.Update(_c7,MN.URL.GetParams(url));
url=MN.URL.SetParams(url,{});
var _c8=_c2.headers||{};
if(MN.AJAX.forceNoCache||!_c2.cache){
_c8["Cache-control"]="no-cache";
if(_c4=="GET"){
_c7.__bah=(new Date()).getTime();
}
}
if(_c4=="POST"){
_c8["Content-type"]="application/x-www-form-urlencoded";
}
var _c9=_c2.body||"";
if(_c4=="POST"){
var _ca=MN.URL.SetParams("",_c7).substr(1);
if(_ca){
if(_c9){
_c9=_c9+"&"+_ca;
}else{
_c9=_ca;
}
}
_c8["Content-length"]=_c9.length;
}else{
_c9=null;
url=MN.URL.SetParams(url,_c7);
}
var tag=_c2.tag;
var cb=_c2.callback;
req.open(_c4,url);
for(var h in _c8){
if(_c8.hasOwnProperty(h)){
req.setRequestHeader(h,_c8[h]);
}
}
req.onreadystatechange=function(){
if(req.readyState==4&&cb){
var _ce={status:req.status,statusText:req.statusText,responseText:req.responseText,tag:tag};
cb(_ce);
}
};
if(_c9){
req.send(_c9);
}else{
req.send(null);
}
},forceNoCache:false};
MN.CSS={AddClass:function(_cf,_d0){
if(!_d0){
return;
}
var el=MN.$(_cf);
if(!el){
return;
}
var _d2=MN.CSS.GetClasses(el);
for(var i=0,cl=_d2.length;i<cl;i++){
if(_d2[i]==_d0){
return;
}
}
el.className=el.className+" "+_d0;
},RemoveClass:function(_d4,_d5){
if(!_d5){
return;
}
var el=MN.$(_d4);
if(!el){
return;
}
var _d7=MN.CSS.GetClasses(el);
var _d8=[];
for(var i=0,cl=_d7.length;i<cl;i++){
var _da=_d7[i];
if(_da!=_d5){
_d8.push(_da);
}
}
el.className=_d8.join(" ");
},GetClasses:function(_db){
var el=MN.$(_db);
if(!el||!el.className){
return [];
}
return el.className.split(" ");
},GetElementsByClassName:function(_dd,_de,_df){
var _e0=[];
if(_dd.hasChildNodes()){
var _e1;
var _e2=_dd.childNodes;
for(var i=0,cl=_e2.length;i<cl;i++){
_e1=_e2[i];
if(_e1.nodeType==1){
if(_e1.className==_de){
_e0.push(_e1);
}
if(_df){
_e0=_e0.concat(this.GetElementsByClassName(_e1,_de,_df));
}
}
}
}
return _e0;
}};
MN.DOM={SetAttribute:function(el,_e5,_e6){
if(_e5=="klass"||_e5.toLowerCase()=="class"){
el.className=_e6;
}else{
if(_e5=="body"){
el.innerHTML=_e6;
}else{
if(_e5.toLowerCase().startswith("on")&&el.attachEvent){
eval("var f = function() { %s }".format(_e6));
el.attachEvent(_e5,f);
}else{
el.setAttribute(_e5,_e6);
}
}
}
},CreateElement:function(_e7){
var _e8=document.createElement(_e7.tag);
delete _e7.tag;
var _e9=null;
if(_e7.parent){
_e9=MN.$(_e7.parent);
delete _e7.parent;
}
var _ea=null;
if(_e7.pos){
_ea=_e7.pos;
delete _e7.pos;
}
var _eb=MN.DOM.SetAttribute;
for(var _ec in _e7){
if(_e7.hasOwnProperty(_ec)){
_eb(_e8,_ec,_e7[_ec]);
}
}
if(_e9){
if(_ea===null){
_e9.appendChild(_e8);
}else{
_e9.insertBefore(_e8,_e9.childNodes[_ea]);
}
}
return _e8;
}};
MN.Position={cumulativeOffset:function(_ed){
var _ee=0,valueL=0;
do{
_ee+=_ed.offsetTop||0;
valueL+=_ed.offsetLeft||0;
_ed=_ed.offsetParent;
}while(_ed);
return [valueL,_ee];
},GetRelative:function(_ef,x,y){
var _f2=MN.Position.cumulativeOffset(MN.$(_ef));
return [x-_f2[0],y-_f2[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 _f5=document.getElementsByTagName("script");
for(var i=0,tl=_f5.length;i<tl;i++){
var tag=_f5[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 _f9=document.getElementsByTagName("script");
for(var i=0,tl=_f9.length;i<tl;i++){
var src=_f9[i].getAttribute("src");
if(src){
MN._allLibs[src]=true;
}
}
};
MN.FindLibraryURL=function(_fc){
MN.UpdateAllLibs();
for(var i in MN._allLibs){
if(MN._allLibs.hasOwnProperty(i)){
if(i.indexOf(_fc)!=-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(_103){
log("PAGE: Initializing popups from anchor tags");
_103=_103||document.body;
var _104=_103.getElementsByTagName("a");
for(var i=0,al=_104.length;i<al;i++){
var _106=_104[i];
if(_106.className.indexOf("mn_popup")!=-1){
var func=MN.MakeBound(_106,MN.PopupWin);
MN.Event.Observe(_106,"click",func);
_106.onclick=function(){
return false;
};
}
}
log("PAGE: Done with popups");
};
MN.PopupWin=function(){
var _108=this.getAttribute("popup_width")||650;
var _109=this.getAttribute("popup_height")||664;
window.open(this.getAttribute("href"),"popup","width="+_108+",height="+_109+",status=yes,scrollbars=yes,resizable=yes,location=no,toolbar=no");
};
MN.LoadAllLibraries=function(){
var tag=MN._getMNScriptTag();
var _10b=tag.getAttribute("import");
if(!_10b){
return;
}
var _10c=[];
_10b=_10b.split(" ");
for(var j=0,il=_10b.length;j<il;j++){
var name=_10b[j].strip();
if(name){
_10c.push(name);
}
}
for(var k=0,ll=_10c.length;k<ll;k++){
MN.LoadLibrary(_10c[k]);
}
};
MN.LoadSkinLibraries=function(_110){
var tag=MN._getMNScriptTag();
var _112=tag.getAttribute("skins");
_112=_112.split(" ");
var _113=[];
for(var j=0,il=_112.length;j<il;j++){
var name=_112[j].strip();
if(name){
_113.push(name);
}
}
for(var k=0,ll=_113.length;k<ll;k++){
MN.LoadSkinLibrary(_113[k]);
}
};
MN.LoadSkinLibrary=function(_117){
MN.LoadLibrary(MN.URL.Join(MN._skinPath,_117));
};
DEFAULT_MAXROWS=500;
if(!("console" in window)||!("firebug" in console)){
(function(){
window.console={log:function(){
logFormatted(arguments,"");
},debug:function(){
logFormatted(arguments,"debug");
},info:function(){
logFormatted(arguments,"info");
},warn:function(){
logFormatted(arguments,"warning");
},error:function(){
logFormatted(arguments,"error");
},assert:function(_118,_119){
if(!_118){
var args=[];
for(var i=1;i<arguments.length;++i){
args.push(arguments[i]);
}
logFormatted(args.length?args:["Assertion Failure"],"error");
throw _119?_119:"Assertion Failure";
}
},dir:function(_11c){
var html=[];
var _11e=[];
for(var name in _11c){
try{
_11e.push([name,_11c[name]]);
}
catch(exc){
}
}
_11e.sort(function(a,b){
return a[0]<b[0]?-1:1;
});
html.push("<table>");
for(var i=0;i<_11e.length;++i){
var name=_11e[i][0],value=_11e[i][1];
html.push("<tr>","<td class=\"propertyNameCell\"><span class=\"propertyName\">",escapeHTML(name),"</span></td>","<td><span class=\"propertyValue\">");
appendObject(value,html);
html.push("</span></td></tr>");
}
html.push("</table>");
logRow(html,"dir");
},dirxml:function(node){
var html=[];
appendNode(node,html);
logRow(html,"dirxml");
},group:function(){
logRow(arguments,"group",pushGroup);
},groupEnd:function(){
logRow(arguments,"",popGroup);
},time:function(name){
timeMap[name]=(new Date()).getTime();
},timeEnd:function(name){
if(name in timeMap){
var _127=(new Date()).getTime()-timeMap[name];
logFormatted([name+":",_127+"ms"]);
delete timeMap[name];
}
},count:function(){
this.warn(["count() not supported."]);
},trace:function(){
this.warn(["trace() not supported."]);
},profile:function(){
this.warn(["profile() not supported."]);
},profileEnd:function(){
},clear:function(){
consoleBody.innerHTML="";
},open:function(_128){
toggleConsole(true);
setMaxRows(_128);
},close:function(){
if(frameVisible){
toggleConsole();
}
},visible:function(){
return frameVisible;
},evaled_lines:[],evaled_lines_pointer:0};
var _129=null;
var _12a=null;
var _12b=null;
var _12c=false;
var _12d=[];
var _12e=[];
var _12f={};
var _130=0;
var _131=DEFAULT_MAXROWS;
var _132=">>> ";
var _133=navigator.userAgent.indexOf("Firefox")!=-1;
var isIE=navigator.userAgent.indexOf("MSIE")!=-1;
var _135=navigator.userAgent.indexOf("Opera")!=-1;
var _136=navigator.userAgent.indexOf("AppleWebKit")!=-1;
function toggleConsole(_137){
_12c=_137||!_12c;
if(_129){
_129.style.visibility=_12c?"visible":"hidden";
layout();
window.focus();
}else{
waitForBody();
}
}
function closeConsole(){
_129.style.visibility="hidden";
}
function setMaxRows(rows){
if(typeof (rows)!="number"){
rows=DEFAULT_MAXROWS;
}
_131=rows;
}
function focusCommandLine(){
toggleConsole(true);
if(_12b){
_12b.focus();
}
}
function waitForBody(){
if(document.body){
createFrame();
}else{
setTimeout(waitForBody,200);
}
}
function createFrame(){
if(_129){
return;
}
window.onFirebugReady=function(doc){
window.onFirebugReady=null;
var _13a=doc.getElementById("toolbar");
_13a.onmousedown=onSplitterMouseDown;
_12b=doc.getElementById("commandLine");
addEvent(_12b,"keydown",onCommandLineKeyDown);
addEvent(doc,isIE||_136?"keydown":"keypress",onKeyDown);
_12a=doc.getElementById("log");
layout();
flush();
};
var _13b=getFirebugURL();
_129=document.createElement("iframe");
_129.setAttribute("frameBorder","0");
_129.id="firebugconsole";
_129.style.visibility=(_12c?"visible":"hidden");
_129.style.zIndex="999999";
_129.style.position="fixed";
_129.style.width="100%";
_129.style.left="0";
_129.style.bottom="0";
_129.style.height="200px";
var _13c=function(){
document.body.appendChild(_129);
_129.contentWindow.document.write(getFirebugConsoleiFrame());
_129.contentWindow.document.close();
};
if(MN.Event.windowLoaded){
_13c();
}else{
addEvent(window,"load",_13c);
}
}
function getFirebugConsoleiFrame(){
var html="&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;head&gt;&lt;title&gt;Firebug&lt;/title&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;"+getFirebugURL()+"/firebug.css&quot;&gt;&lt;/head&gt;&lt;body&gt;&lt;div id=&quot;toolbar&quot; class=&quot;toolbar&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;parent.console.clear()&quot;&gt;Clear&lt;/a&gt;&lt;span class=&quot;toolbarRight&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;parent.console.close()&quot;&gt;Close&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;&lt;input type=&quot;text&quot; id=&quot;commandLine&quot;&gt;&lt;script&gt;parent.onFirebugReady(document);&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;";
return html.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,"\"");
}
function getFirebugURL(){
var _13e=document.getElementsByTagName("script");
for(var i=0;i<_13e.length;++i){
if(_13e[i].src.indexOf("firebug.js")!=-1){
var _140=_13e[i].src.lastIndexOf("/");
return _13e[i].src.substr(0,_140);
}
}
}
function evalCommandLine(){
var text=_12b.value;
_12b.value="";
console.evaled_lines[console.evaled_lines.length]=text;
console.evaled_lines_pointer=console.evaled_lines.length;
logRow([_132,text],"command");
var _142;
try{
_142=eval(text);
}
catch(exc){
}
console.log(_142);
}
function layout(){
if(_12a){
if(_129.style.visibility=="visible"){
_129.style.height="200px";
}else{
_129.style.height="0px";
}
var _143=_12a.ownerDocument.getElementById("toolbar");
var _144=_129.offsetHeight-(_143.offsetHeight+_12b.offsetHeight);
if(_144<0){
_144=0;
}
_12a.style.top=_143.offsetHeight+"px";
_12a.style.height=_144+"px";
_12b.style.top=(_129.offsetHeight-_12b.offsetHeight)+"px";
}
}
function logRow(_145,_146,_147){
if(_12a){
writeMessage(_145,_146,_147);
}else{
_12d.push([_145,_146,_147]);
if(_12d.length>_131){
_12d.shift();
}
waitForBody();
}
}
function flush(){
var _148=_12d;
_12d=[];
for(var i=0;i<_148.length;++i){
writeMessage(_148[i][0],_148[i][1],_148[i][2]);
}
}
function writeMessage(_14a,_14b,_14c){
var _14d=_12a.scrollTop+_12a.offsetHeight>=_12a.scrollHeight;
if(!_14c){
_14c=writeRow;
}
_14c(_14a,_14b);
if(_14d){
_12a.scrollTop=_12a.scrollHeight-_12a.offsetHeight;
}
}
function appendRow(row){
var _14f=_12e.length?_12e[_12e.length-1]:_12a;
_14f.appendChild(row);
if(_14f==_12a){
_130+=1;
}
checkMaxRows(_14f);
}
function checkMaxRows(_150){
var i=null;
var _152=_130-_131;
for(i=0;i<_152;i++){
_12a.removeChild(_12a.childNodes[0]);
_130-=1;
}
}
function writeRow(_153,_154){
var row=_12a.ownerDocument.createElement("div");
row.className="logRow"+(_154?" logRow-"+_154:"");
row.innerHTML=_153.join("");
appendRow(row);
}
function pushGroup(_156,_157){
logFormatted(_156,_157);
var _158=_12a.ownerDocument.createElement("div");
_158.className="logGroup";
var _159=_12a.ownerDocument.createElement("div");
_159.className="logGroupBox";
_158.appendChild(_159);
appendRow(_159);
_12e.push(_159);
}
function popGroup(){
_12e.pop();
}
function logFormatted(_15a,_15b){
var html=[];
var _15d=_15a[0];
var _15e=0;
if(typeof (_15d)!="string"){
_15d="";
_15e=-1;
}
var _15f=parseFormat(_15d);
for(var i=0;i<_15f.length;++i){
var part=_15f[i];
if(part&&typeof (part)=="object"){
var _162=_15a[++_15e];
part.appender(_162,html);
}else{
appendText(part,html);
}
}
for(var i=_15e+1;i<_15a.length;++i){
appendText(" ",html);
var _162=_15a[i];
if(typeof (_162)=="string"){
appendText(_162,html);
}else{
appendObject(_162,html);
}
}
logRow(html,_15b);
}
function parseFormat(_163){
var _164=[];
var reg=/((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;
var _166={s:appendText,d:appendInteger,i:appendInteger,f:appendFloat};
for(var m=reg.exec(_163);m;m=reg.exec(_163)){
var type=m[8]?m[8]:m[5];
var _169=type in _166?_166[type]:appendObject;
var _16a=m[3]?parseInt(m[3]):(m[4]=="."?-1:0);
_164.push(_163.substr(0,m[0][0]=="%"?m.index:m.index+1));
_164.push({appender:_169,precision:_16a});
_163=_163.substr(m.index+m[0].length);
}
_164.push(_163);
return _164;
}
function escapeHTML(_16b){
function replaceChars(ch){
switch(ch){
case "<":
return "&lt;";
case ">":
return "&gt;";
case "&":
return "&amp;";
case "'":
return "&#39;";
case "\"":
return "&quot;";
}
return "?";
}
return String(_16b).replace(/[<>&"']/g,replaceChars);
}
function objectToString(_16d){
try{
return _16d+"";
}
catch(exc){
return null;
}
}
function appendText(_16e,html){
html.push(escapeHTML(objectToString(_16e)));
}
function appendNull(_170,html){
html.push("<span class=\"objectBox-null\">",escapeHTML(objectToString(_170)),"</span>");
}
function appendString(_172,html){
html.push("<span class=\"objectBox-string\">&quot;",escapeHTML(objectToString(_172)),"&quot;</span>");
}
function appendInteger(_174,html){
html.push("<span class=\"objectBox-number\">",escapeHTML(objectToString(_174)),"</span>");
}
function appendFloat(_176,html){
html.push("<span class=\"objectBox-number\">",escapeHTML(objectToString(_176)),"</span>");
}
function appendFunction(_178,html){
var _17a=/function ?(.*?)\(/;
var m=_17a.exec(objectToString(_178));
var name=m?m[1]:"function";
html.push("<span class=\"objectBox-function\">",escapeHTML(name),"()</span>");
}
function appendObject(_17d,html){
try{
if(_17d==undefined){
appendNull("undefined",html);
}else{
if(_17d==null){
appendNull("null",html);
}else{
if(typeof _17d=="string"){
appendString(_17d,html);
}else{
if(typeof _17d=="number"){
appendInteger(_17d,html);
}else{
if(typeof _17d=="function"){
appendFunction(_17d,html);
}else{
if(_17d.nodeType==1){
appendSelector(_17d,html);
}else{
if(typeof _17d=="object"){
appendObjectFormatted(_17d,html);
}else{
appendText(_17d,html);
}
}
}
}
}
}
}
}
catch(exc){
}
}
function appendObjectFormatted(_17f,html){
var text=objectToString(_17f);
var _182=/\[object (.*?)\]/;
var m=_182.exec(text);
html.push("<span class=\"objectBox-object\">",m?m[1]:text,"</span>");
}
function appendSelector(_184,html){
html.push("<span class=\"objectBox-selector\">");
html.push("<span class=\"selectorTag\">",escapeHTML(_184.nodeName.toLowerCase()),"</span>");
if(_184.id){
html.push("<span class=\"selectorId\">#",escapeHTML(_184.id),"</span>");
}
if(_184.className){
html.push("<span class=\"selectorClass\">.",escapeHTML(_184.className),"</span>");
}
html.push("</span>");
}
function appendNode(node,html){
if(node.nodeType==1){
html.push("<div class=\"objectBox-element\">","&lt;<span class=\"nodeTag\">",node.nodeName.toLowerCase(),"</span>");
for(var i=0;i<node.attributes.length;++i){
var attr=node.attributes[i];
if(!attr.specified){
continue;
}
html.push("&nbsp;<span class=\"nodeName\">",attr.nodeName.toLowerCase(),"</span>=&quot;<span class=\"nodeValue\">",escapeHTML(attr.nodeValue),"</span>&quot;");
}
if(node.firstChild){
html.push("&gt;</div><div class=\"nodeChildren\">");
for(var _18a=node.firstChild;_18a;_18a=_18a.nextSibling){
appendNode(_18a,html);
}
html.push("</div><div class=\"objectBox-element\">&lt;/<span class=\"nodeTag\">",node.nodeName.toLowerCase(),"&gt;</span></div>");
}else{
html.push("/&gt;</div>");
}
}else{
if(node.nodeType==3){
html.push("<div class=\"nodeText\">",escapeHTML(node.nodeValue),"</div>");
}
}
}
function addEvent(_18b,name,_18d){
if(document.all){
_18b.attachEvent("on"+name,_18d);
}else{
_18b.addEventListener(name,_18d,false);
}
}
function removeEvent(_18e,name,_190){
if(document.all){
_18e.detachEvent("on"+name,_190);
}else{
_18e.removeEventListener(name,_190,false);
}
}
function cancelEvent(_191){
if(document.all){
_191.cancelBubble=true;
}else{
_191.stopPropagation();
}
}
function onError(msg,href,_194){
var html=[];
var _196=href.lastIndexOf("/");
var _197=_196==-1?href:href.substr(_196+1);
html.push("<span class=\"errorMessage\">",msg,"</span>","<div class=\"objectBox-sourceLink\">",_197," (line ",_194,")</div>");
logRow(html,"error");
}
function onKeyDown(_198){
if(_198.keyCode==123){
toggleConsole();
}else{
if((_198.keyCode==108||_198.keyCode==76)&&_198.shiftKey&&(_198.metaKey||_198.ctrlKey)){
focusCommandLine();
}else{
if(_198.keyCode==38){
if(console.evaled_lines_pointer>0){
console.evaled_lines_pointer--;
_12b.value=console.evaled_lines[console.evaled_lines_pointer];
}
}else{
if(_198.keyCode==40){
if(console.evaled_lines_pointer<console.evaled_lines.length-1){
console.evaled_lines_pointer++;
_12b.value=console.evaled_lines[console.evaled_lines_pointer];
}
}else{
return;
}
}
}
}
cancelEvent(_198);
}
function onSplitterMouseDown(_199){
if(_136||_135){
return;
}
addEvent(document,"mousemove",onSplitterMouseMove);
addEvent(document,"mouseup",onSplitterMouseUp);
for(var i=0;i<frames.length;++i){
addEvent(frames[i].document,"mousemove",onSplitterMouseMove);
addEvent(frames[i].document,"mouseup",onSplitterMouseUp);
}
}
function onSplitterMouseMove(_19b){
var win=document.all?_19b.srcElement.ownerDocument.parentWindow:_19b.target.ownerDocument.defaultView;
var _19d=_19b.clientY;
if(win!=win.parent){
_19d+=win.frameElement?win.frameElement.offsetTop:0;
}
var _19e=_129.offsetTop+_129.clientHeight;
var y=_19e-_19d;
_129.style.height=y+"px";
layout();
}
function onSplitterMouseUp(_1a0){
removeEvent(document,"mousemove",onSplitterMouseMove);
removeEvent(document,"mouseup",onSplitterMouseUp);
for(var i=0;i<frames.length;++i){
removeEvent(frames[i].document,"mousemove",onSplitterMouseMove);
removeEvent(frames[i].document,"mouseup",onSplitterMouseUp);
}
}
function onCommandLineKeyDown(_1a2){
if(_1a2.keyCode==13){
evalCommandLine();
}else{
if(_1a2.keyCode==27){
_12b.value="";
}
}
}
window.onerror=onError;
addEvent(document,isIE||_136?"keydown":"keypress",onKeyDown);
if(document.documentElement.getAttribute("debug")=="true"){
toggleConsole(true);
}
})();
}
MN.Event.Observe(window,"load",function(){
log("::: JSDK Release "+MN.RELEASE_VERSION+" :::");
});
MN.Log={IsVisible:function(){
return console.visible();
},ShowPane:function(_1a3){
if(_1a3===0){
if("console" in window&&"close" in console){
console.close();
}
}else{
if("console" in window&&"open" in console){
console.open(_1a3);
}
}
},log:function(){
var args=MN.ToArray(arguments);
args.unshift(MN.GetTimestamp(true));
console.log(args.join(" "));
},debug:function(){
var args=MN.ToArray(arguments);
args.unshift(MN.GetTimestamp(true));
console.debug(args.join(" "));
},info:function(){
var args=MN.ToArray(arguments);
args.unshift(MN.GetTimestamp(true));
console.info(args.join(" "));
},warn:function(){
var args=MN.ToArray(arguments);
args.unshift(MN.GetTimestamp(true));
console.warn(args.join(" "));
},error:function(){
var args=MN.ToArray(arguments);
args.unshift(MN.GetTimestamp(true));
console.error(args.join(" "));
}};
MN.Log.logError=MN.Log.error;
logError=MN.Log.error;
log=MN.Log.log;
logDebug=MN.Log.debug;
logInfo=MN.Log.info;
logWarn=MN.Log.warn;
logError=MN.Log.error;
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(_1ab,_1ac){
var a,i,k,l,v;
switch(typeof _1ab){
case "string":
return (/["\\\x00-\x1f]/).test(_1ab)?"\""+_1ab.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);
})+"\"":"\""+_1ab+"\"";
case "number":
return isFinite(_1ab)?String(_1ab):"null";
case "boolean":
return String(_1ab);
case "null":
return "null";
case "object":
if(!_1ab){
return "null";
}
if(typeof _1ab.toJSON==="function"){
return stringify(_1ab.toJSON());
}
a=[];
if(_1ab.constructor===Array){
l=_1ab.length;
for(i=0;i<l;i+=1){
a.push(stringify(_1ab[i],_1ac)||"null");
}
return "["+a.join(",")+"]";
}
if(_1ac){
l=_1ac.length;
for(i=0;i<l;i+=1){
k=_1ac[i];
if(typeof k==="string"){
v=stringify(_1ab[k],_1ac);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}else{
for(k in _1ab){
if(typeof k==="string"){
v=stringify(_1ab[k],_1ac);
if(v){
a.push(stringify(k)+":"+v);
}
}
}
}
return "{"+a.join(",")+"}";
}
}
return {stringify:stringify,parse:function(text,_1b1){
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 _1b1(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 _1b1==="function"?walk("",j):j;
}
throw new SyntaxError("parseJSON");
}};
}();
if(!this.JSON){
this.JSON=MN.JSON;
}
MN.safeToEval=function(js){
var _1b7=js.indexOf("(");
var func=js.substring(0,_1b7);
var _1b9=js.substring(_1b7+1,js.length-1);
if(_1b9===undefined){
return false;
}
_1b9=MN.JSON.parse("{\"params\":["+_1b9+"]}").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(_1ba,_1bb){
var QI=MN.QMPInstall;
var MTO=MN.TrackInstall.Omniture;
if(!_1bb){
_1bb={};
}
_1bb.prop5="event"+_1ba;
if(MN.Config.enableOmnitureAnalytics){
log("omniturea:OT: %s".format(_1ba));
MTO.loadImg(MTO.getImgURL(MTO.eventMap[_1ba],_1bb));
}
},paramsToStr:function(_1be){
var MTO=MN.TrackInstall.Omniture;
var _1c0="";
var _1c1=true;
var _1c2,eVar;
for(var _1c3 in _1be){
if(_1be.hasOwnProperty(_1c3)){
if(!_1c1){
_1c0+="&";
}
_1c1=false;
eVar=MTO.propMap[_1c3];
if(eVar){
_1c0+=escape(eVar)+"="+escape(_1be[_1c3])+"&";
}
if(_1c3.startswith("prop")){
_1c2="c"+_1c3.substr(4);
}
_1c0+=escape(_1c2)+"="+escape(_1be[_1c3]);
}
}
return _1c0;
},getReportSuite:function(){
return MN.TrackInstall.Omniture.reportSuite;
},getPubID:function(){
var MTO=MN.TrackInstall.Omniture;
var _1c5=MTO.defaultPubID;
var _1c6=MN._libBase.split("/");
if(_1c6[3]=="pub"){
_1c5=_1c6[4];
}
return _1c5;
},getServerParams:function(){
var MTO=MN.TrackInstall.Omniture;
var _1c8=encodeURIComponent(MN.URL.Join(MN._libBase,"movenetworks.js"));
var s="server=%s&v6=%s".format(_1c8,_1c8);
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(_1cd){
var s="events=";
var e;
var _1d0=true;
for(var i=0;i<_1cd.length;i++){
if(!_1d0){
s+=",";
}
s+="event"+_1cd[i];
_1d0=false;
}
return s;
},getImgURL:function(_1d2,_1d3){
var _1d4=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+"/"+_1d4;
is+="?[AQB]";
is+="&"+MTO.getPageNameParams();
is+="&"+MTO.getServerParams();
is+="&"+MTO.getPubIDParams();
is+="&"+MTO.getEventParams([_1d2]);
if(_1d3){
is+="&"+MTO.paramsToStr(_1d3);
}
is+="&[AQE]";
log("MTO.getImgURL.is: '%s'".format(is));
return is;
},loadImg:function(_1d7){
var img=new Image();
img.src=_1d7;
}};
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,allowMacPPC:true,allowMaci386:true,allowMacUniversal:false,allowMacMozilla:true,allowMacSafari:true,allowWinVista:true,allowVisMozilla:true,allowVisIE:true,allowOldUpgradeAPI:true,allowWinJavaInstaller:false,os:"other",osIsGood:false,browser:"other",browserIsGood:false,macProc:"other",osIsPanther:false,osIsVista:false,osIsWin2k:false,WillNotInstall:false,installInProgress:false,packagePrefix:"",upgradeAutoRetries:3,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(_1d9,_1da,_1db){
var _1dc="";
if(_1da){
for(var _1dd in _1da){
if(_1da.hasOwnProperty(_1dd)){
_1dc+="param"+_1da[_1dd];
}
}
}
var _1de="MNAnalytic"+_1d9+_1dc+"Fired";
log("cookieName =",_1de);
if(!MN.Cookie.Get(_1de)||_1db){
MN.QMPInstall.events.FireEvent("track",_1d9,_1da);
MN.Cookie.Set(_1de,"1");
}
},DispatchInstallEvent:function(_1df,_1e0,_1e1){
var _1e2="";
if(_1e0){
for(var _1e3 in _1e0){
if(_1e0.hasOwnProperty(_1e3)){
_1e2+="param"+_1e0[_1e3];
}
}
}
var _1e4="MN.QMPInstall."+_1df+_1e2+"Fired";
log("cookieName =",_1e4);
if(!MN.Cookie.Get(_1e4)||_1e1){
MN.QMPInstall.events.FireEvent("install",_1df,_1e0);
MN.Cookie.Set(_1e4,"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.allowWinVista){
QI.oses.push("Microsoft Windows XP/Vista");
}else{
QI.oses.push("Microsoft Windows 2000/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(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(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 _1e8=["opera","webtv","hotjava","spoofer","flock"];
var _1e9=false;
for(var i=0,sorryLen=_1e8.length;i<sorryLen;i++){
if(ua.indexOf(_1e8[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.os=="mac"){
if(QI.allowMacSafari&&ua.indexOf("safari")!=-1){
QI.browser="safari";
var _1ec=parseInt(ua.substring(ua.indexOf("safari/")+7),10);
var _1ed=parseInt(ua.substring(ua.indexOf("applewebkit/")+12),10);
if(_1ec<312){
return;
}else{
if(_1ec==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;
}
}
}
}
if(!QI.browserIsGood){
return;
}
var name=QI.os+"_"+QI.browser;
var _1f0=QI.controllers[name];
if(_1f0){
QI.controller=new _1f0();
}
},alreadyProbed:false,installedVersion:null,unpaddedVersion:null,GetInstalledVersion:function(){
var QI=MN.QMPInstall;
var _1f2=null;
if(QI.alreadyProbed){
return QI.installedVersion;
}
if(!QI.OSIsGood()){
return null;
}
if(!QI.BrowserIsGood()){
return null;
}
QI.controller.RefreshPlugins();
_1f2=QI.controller.GetInstalledVersion();
QI.unpaddedVersion=_1f2;
if(_1f2){
_1f2=QI._padVersionString(_1f2,QI.QMP_VERSION_LENGTH);
}
QI.installedVersion=_1f2;
QI.alreadyProbed=true;
return QI.installedVersion;
},_padVersionString:function(_1f3,_1f4){
while(_1f3.length<_1f4){
_1f3="0"+_1f3;
}
return _1f3;
},ResetProbe:function(){
MN.QMPInstall.alreadyProbed=false;
},InstallRequired:function(){
var QI=MN.QMPInstall;
return QI.GetInstalledVersion()===null;
},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(_1f9,_1fa){
var QI=MN.QMPInstall;
var mod=new QI.Module(_1f9,_1fa);
QI.modules[_1f9]=mod;
},MakePlayerID:function(_1fd){
return _1fd+"_QMP";
},GetSilverlightVersion:function(){
var QI=MN.QMPInstall;
return QI.controller.GetSilverlightVersion();
},EmitObj:function(_1ff,w,h,_202,_203,_204,_205,_206){
var QI=MN.QMPInstall;
var name=null;
var _209="";
QI.forcedUpgrade=_203;
if(QI.osIsPanther){
if(MN.Cookie.Get("needrestart")){
log("Panther upgraded. Need browser restart.");
QI._requestRestart(_1ff);
}
}
if(!_202){
_202=QI.MakePlayerID(_1ff);
}
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=_1ff;
QI.playerID=_202;
for(name in _206){
if(_206.hasOwnProperty(name)){
_209+="<PARAM NAME=\"%s\" VALUE=\"%s\">".format(name,_206[name]);
}
}
if(_204){
_209+="<PARAM NAME=\"VersionTest\" VALUE=\"1\">";
}
if(_205){
_209+="<PARAM NAME=\"FlashObject\" VALUE=\"1\">";
}
_209+="<PARAM NAME=\"movePlayerId\" VALUE=\""+_202+"\">";
log("Created param for movePlayerId to "+_202);
var html=QI.controller.GetObjectStr(_204).format(_202,w,h,"",_209);
MN.$(_1ff).innerHTML=html;
setTimeout(function(){
var _20b=MN.$(_202);
MN.Event.Observe(_20b,"Error",QI._PlayerError);
_20b.Set("SDKVersion",String(MN.RELEASE_VERSION));
_20b.Set("SilverlightVersion",QI.GetSilverlightVersion());
if(!_204&&!_205){
QI._unloadModules(_20b);
if(QI._ModulesLeft()>0){
QI._SetModulesURL(_20b);
QI.modulesPlayer=_20b;
QI._RequestModules();
}
}
if(QI.OS()=="win"){
var _20c=_20b.GetSetting("RendererUseOverlays");
log("Overlays set to : %s".format(_20c));
if(_20c!="no"){
log("Turning off overlays");
_20b.PutSetting("RendererUseOverlays","no");
MN.$(_1ff).innerHTML="";
QI.EmitObj(_1ff,w,h,_202,_203,_204,_205,_206);
}
}
if(_20b&&(_20b.PlayerId!==null)){
QI.playerIDToPlayer[_20b.PlayerId]=_20b;
}else{
if(QI.Browser()!="ie"){
QI.nullPlayers.push(_20b);
setTimeout(function(){
QI.ScanPlayerIDs(false);
},100);
}
}
},1);
if(!QI.osIsWin2k){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_202,0,_203);
},100);
}
return _202;
},_SetModulesURL:function(_20d){
log("Setting modules URL to "+QI.clientModulesBase);
_20d.Set("ModulesURL",QI.clientModulesBase);
},_ModulesLeft:function(){
var _20e=0;
for(var i in MN.QMPInstall.modules){
if(MN.QMPInstall.modules.hasOwnProperty(i)){
_20e++;
}
}
return _20e;
},_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 _211=QI._createParams;
var msg;
if(_211.hideHTML){
msg=QI.MSG_DOWNLOADMODULES_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_211.parentID,msg:msg});
}else{
var _213=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(!mm){
var e=document.createElement("div");
e.id="modulemessage";
e.innerHTML=QI.MSG_DOWNLOADMODULES;
_213.appendChild(e);
}else{
var mms=MN.$("modulemessagespan");
mms.innerHTML+=".";
}
}
},_RemoveModulesMessage:function(){
var QI=MN.QMPInstall;
var _218=QI._createParams;
if(!_218.hideHTML){
var _219=MN.$(QI.playerParentID);
var mm=MN.$("modulemessage");
if(mm){
_219.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 _21b in QI.modules){
if(QI.modules.hasOwnProperty(_21b)){
var _21c=QI.modules[_21b];
log("Loading requested module '%s'".format(_21c.name));
if(typeof QI.modulesPlayer.LoadModule=="undefined"){
log("This player has no LoadModule method, skipping module load");
return;
}
_21c.dltries++;
log("Try #%s for module '%s'".format(_21c.dltries,_21c.name));
if(_21c.dltries>3){
log("Download attempts for module '%s' = %s, giving up".format(_21c.name,_21c.dltries));
delete (QI.modules[_21c.name]);
}else{
try{
QI.FireEvent(MN.TrackInstall.Events.ModuleRequest,{prop4:_21c.name});
QI.modulesPlayer.LoadModule(_21c.name);
}
catch(e){
log("LoadModule failed: ",e);
delete (QI.modules[_21c.name]);
}
}
}
}
}
},_ModuleLoaded:function(_21d){
log("Module '%s' loaded".format(_21d));
QI.FireEvent(MN.TrackInstall.Events.ModuleSuccess,{prop4:_21d});
if(typeof QI.modules[_21d]!="undefined"){
delete (QI.modules[_21d]);
}
},_PlayerError:function(msg){
var o=MN.ParsePlayerError(msg);
if(o.domain=="LoadModule"){
if(o.err=="2"){
MN.QMPInstall._ModuleLoadError(o.msg);
}
}else{
if(o.domain=="BackgroundUpgrade"){
if(o.err=="1"||o.err=="2"){
log("Client says background upgrade failed, trying forced");
QI.bgUpgradeFailed=true;
QI._forceReinstall();
}
}else{
logError("Client Error: %s (%s): %s".format(o.domain,o.err,o.msg));
}
}
},_ModuleLoadError:function(_220){
var QI=MN.QMPInstall;
log("Client says module '%s' failed to load, trying again.".format(_220));
QI.failedModuleCount++;
},_forceReinstall:function(){
var QI=MN.QMPInstall;
QI.InstallUpgradeCheckRetries=40;
QI.PrepCanInstall(true);
},NeedBGUpgrade:function(_223){
return have<avail;
},_AsyncStartUpgrade:function(_224,_225,_226){
var QI=MN.QMPInstall;
var _228=QI._createParams;
if(!_225){
_225=0;
}
var _229=MN.$(_224);
if(!_229||!_229.Version){
if(_226||_225<20){
setTimeout(function(){
MN.QMPInstall._AsyncStartUpgrade(_224,_225+1,_226);
},250);
}else{
logError("QI.SBI:Failed to grab player instance for bgup :: playerID = %s".format(_224));
}
return;
}
var _22a=0;
try{
_22a=parseInt(_229.Get("Download.APIVersion")||0,10);
}
catch(e){
}
var _22b=_229.Version;
var _22c=QI.osIsVista&&(_22b<="000007033101");
if(_22c){
log("old vista, need to force");
_226=true;
}
if(_22a<1||_22c){
log("QI.SBI:Current client does not support background upgrades : may be vista forced upgrade");
if(_226){
QI._forceReinstall();
}
return;
}
if(_226){
QI.ShowUpgradeStart(_228.parentID);
}
var _22d=QI.GetAvailableVer();
QI._beforeUpgradeVersion=_229.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,_22d));
if(QI._beforeUpgradeVersion>=_22d){
log("QI.SBI:Skipping background update: already up to date");
return;
}
var url=QI.controller.MakeUpgradeURL(QI.IsBGMacVersion(),_226);
var _22f=url.split("/");
var _230=_22f[_22f.length-1];
var _231=_230.split(".")[1];
var key="Download.%s.%s.%s".format(_226?"Force":"NoForce",_22d,_230);
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 "+_22d,prop3:_231});
_229.Set(key,url);
var _233="Download.Status.%s.%s".format(_22d,_230);
QI._MonitorUpgrade(_229,_233,_226);
},_MonitorUpgrade:function(_234,_235,_236){
var QI=MN.QMPInstall;
var _238=QI._createParams;
var _239=true;
if(QI.bgUpgradeFailed===true){
_239=false;
return;
}
var _23a=_234.Get(_235)||"";
var _23b=_23a.split(",");
if(_23b.length==4){
var _23c=_23b[0];
var _23d=_23b[1];
var _23e=_23b[3];
log("QI.MBU:",_23c,_23d,_23e);
if(_23c=="downloading"||_23c=="downloadSucceeded"||_23c=="installing"){
if(_236&&_23c=="downloading"){
QI.ShowUpgradeProgress(_238.parentID,"Loading (%s% complete)".format(_23d));
}
}else{
_239=false;
log("QI.MBU: stopping tracking");
var ok=(_23c.toLowerCase().indexOf("failed")==-1&&_23c.toLowerCase().indexOf("error")==-1);
if(ok){
QI.ShowUpgradeProgress(_238.parentID,"Loading (100% complete)".format(_23d));
}
setTimeout(function(){
QI.OnUpgradeDone(ok,_236,_23c,_23d,_234.Get("Download.LatestVersion"));
},1);
}
}
if(_239){
setTimeout(function(){
QI._MonitorUpgrade(_234,_235,_236);
},_236?250:5000);
}
},_requestRestart:function(_240){
var QI=MN.QMPInstall;
log("_requestRestart");
MN.Cookie.Set("needrestart","1");
QI.FireEvent(MN.TrackInstall.Events.RestartRequired);
if(QI._createParams.hideHTML){
msg=QI.MSG_NEEDRESTART_TXT;
QI.DispatchInstallEvent(QI.Events.RestartRequired,{pid:_240,msg:msg});
}else{
MN.$(_240).innerHTML=QI.MSG_NEEDRESTART;
}
},_unloadModules:function(_242){
var QI=MN.QMPInstall;
var os=QI.OS();
var _245=QI._createParams;
log("_unloadModules: checking QI.originalVersion, which is",QI.originalVersion);
if(os=="win"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084059"){
QI._requestRestart(_245.parentID);
}
if(os=="mac"&&QI.originalVersion>="000007080000"&&QI.originalVersion<="000007084039"){
QI._requestRestart(_245.parentID);
}
},_displayBadOS:function(_246){
var QI=MN.QMPInstall;
if(QI._createParams.hideHTML){
msg=QI.MSG_BADOS_TXT.format(QI.oses.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_246,msg:msg});
}else{
msg=QI.MSG_BADOS.format(QI.oses.join("<br>"));
MN.$(_246).innerHTML=msg;
}
},_displayBadBrowser:function(_248){
var QI=MN.QMPInstall;
if(QI._createParams.hideHTML){
msg=QI.MSG_BADBROWSER_TXT.format(QI.browsers.join("<br>"));
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_248,msg:msg});
}else{
msg=QI.MSG_BADBROWSER.format(QI.browsers.join("<br>"));
MN.$(_248).innerHTML=msg;
}
},_displayInviteInstall:function(_24a){
var msg;
var QI=MN.QMPInstall;
var _24d=QI._createParams;
_24a=Boolean(_24a);
if(_24a){
QI.FireEvent(MN.TrackInstall.Events.UpgradeReinstall,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
if(_24d.hideHTML){
msg=QI.MSG_NEEDREINSTALL_TXT;
QI.DispatchInstallEvent(QI.Events.UpgradeReInstall,{pid:_24d.parentID,msg:msg});
}else{
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});
if(_24d.hideHTML){
msg=QI.MSG_CANINSTALL_TXT;
QI.DispatchInstallEvent(QI.Events.InstallInvite,{pid:_24d.parentID,msg:msg});
}else{
msg=QI.MSG_CANINSTALL;
MN.$(QI._createParams.parentID).innerHTML=msg;
QI.DispatchInstallEvent(QI.Events.InstallInvite,{pid:_24d.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(_24f,_250,w,h,_253,_254){
var QI=MN.QMPInstall;
if(QI.installInProgress){
return;
}
if(_254===null||_254===undefined){
QI.hideHTML=false;
log("hideHTML = false");
}else{
QI.hideHTML=_254;
log("hideHTML = %s".format(QI.hideHTML));
}
if(!_253){
_253=QI.MakePlayerID(_24f);
}
if(MN.Cookie.Get("needrestart")){
QI._requestRestart(_24f);
return;
}
var _256=_250;
QI.RegisterCustomInstaller(function(_257){
QI.setFirstTime(false);
_257();
});
_250=function(){
var _258=Array.prototype.slice.call(arguments);
QI._callCustomInstallers(_24f,function(){
_256.apply(null,_258);
},w,h,_253,_254);
};
QI._createParams={"parentID":_24f,"playerID":_253,"DoneCB":_250,"w":w,"h":h,"hideHTML":QI.hideHTML};
if(QI.InstallRequired()){
var msg="";
if(!QI.OSIsGood()||QI.osIsWin2k){
QI._displayBadOS(_24f);
return;
}
if(!QI.BrowserIsGood()){
QI._displayBadBrowser(_24f);
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(_24f);
}else{
QI.FireEvent(MN.TrackInstall.Events.ValidateLibrary,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer()});
setTimeout(QI.StartUpgrade,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(_24f,w,h,_253,false,false);
QI._CallAfterModules(_250);
}
}
},RegisterCustomInstaller:function(_25a){
var QI=MN.QMPInstall;
QI._installers.push(_25a);
},_callCustomInstallers:function(_25c,_25d,w,h,_260,_261){
var QI=MN.QMPInstall;
QI._installLists[_25c]=QI._installers.slice();
QI._installLists[_25c].push(_25d);
QI._customInstallerCallback(_25c,arguments);
},_customInstallerCallback:function(_263,args){
var QI=MN.QMPInstall;
var _266=Array.prototype.slice.call(args);
var _267=function(){
QI._customInstallerCallback(_263,args);
};
_266.unshift(_267);
var _268;
_268=QI._installLists[_263].shift();
_268.apply(QI,_266);
},_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(_26b){
var QI=MN.QMPInstall;
var _26d=QI._createParams;
var _26e=QI.controller.HaveReliableJava();
log("PCI:have reliable java",_26e);
if(_26e===null){
if(QI.Browser()=="safari"||QI.Browser()=="firefox"&&QI.OS()=="mac"){
log("creating applet via innerHTML");
_26d.appletDiv=document.createElement("div");
_26d.appletDiv.id="_qmpInstallerAppletDiv";
_26d.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(_26d.appletDiv);
}else{
log("creating applet via createElement");
var _26f=document.createElement("applet");
_26f.setAttribute("id","_qmpCheckJavaApplet");
_26f.setAttribute("code","CheckJava.class");
_26f.setAttribute("codebase",QI.libBase);
_26f.style.display="block";
_26f.style.width="1px";
_26f.style.height="1px";
_26f.setAttribute("MAYSCRIPT","true");
document.body.appendChild(_26f);
}
setTimeout(function(){
QI.CheckAppletLoad(0,_26b);
},250);
}else{
QI._usingJavaInstaller=_26e;
QI._displayInviteInstall(_26b);
return;
}
},CheckAppletLoad:function(_270,_271){
var _272=_270||0;
var QI=MN.QMPInstall;
var _274=MN.$("_qmpCheckJavaApplet");
var _275="";
if(_274){
var _276=false;
try{
_275=_274.GetJavaVersion();
log("applet says javaVer",_275);
QI._usingJavaInstaller=true;
_276=true;
}
catch(e){
logError("Error getting applet java version: ",e.message,_272);
_272++;
if((QI.Browser()=="ie"&&_274.readyState==4)||_272>30){
QI._usingJavaInstaller=false;
_276=true;
}
}
if(_276){
QI._displayInviteInstall(_271);
return;
}
}
setTimeout(function(){
MN.QMPInstall.CheckAppletLoad(_272);
},333);
},StartInstall:function(){
var QI=MN.QMPInstall;
var _278=QI._createParams;
var msg;
QI.FireEvent(MN.TrackInstall.Events.InstallBegin,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
if(_278.hideHTML){
if(QI.MSG_INSTALLING!==""){
msg=QI.MSG_INSTALLING;
}else{
msg=QI.controller.GetInstallMessageTxt();
}
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_278.parentID,msg:msg});
}else{
if(QI.MSG_INSTALLING!==""){
MN.$(QI._createParams.parentID).innerHTML=QI.MSG_INSTALLING;
}else{
MN.$(QI._createParams.parentID).innerHTML=QI.controller.GetInstallMessage();
}
}
if(QI._usingJavaInstaller){
setTimeout(function(){
QI.appletProgressCount=0;
QI.fakeProgress=0;
log("StartInstall:using Java installer");
var _27a=QI.controller.MakeSetupURL();
var _27b=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(_27a));
_278.appletDiv=document.createElement("div");
_278.appletDiv.id="_qmpInstallerAppletDiv";
_278.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(_27b,_27a);
document.body.appendChild(_278.appletDiv);
}else{
log("creating applet via createElement");
log("pkgurl : %s".format(_27a));
var _27c=document.createElement("applet");
_27c.setAttribute("id","_qmpInstallerApplet");
_27c.setAttribute("code","InstallApplet.class");
_27c.setAttribute("archive",_27b);
_27c.style.display="block";
_27c.style.width="1px";
_27c.style.height="1px";
_27c.setAttribute("MAYSCRIPT","true");
var _27d=document.createElement("param");
_27d.setAttribute("name","pkgurl");
_27d.setAttribute("value",_27a);
_27c.appendChild(_27d);
document.body.appendChild(_27c);
}
setTimeout(QI.CheckInstallProgress,500);
log("applet created");
},100);
}else{
if(QI.controller.RequiresJavaInstaller()){
if(_278.hideHTML){
msg=QI.MSG_NOINSTALLMETHOD_TXT;
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_278.parentID,msg:msg});
}else{
msg=QI.MSG_NOINSTALLMETHOD;
MN.$(_278.parentID).innerHTML=msg;
}
}else{
if(QI.os=="mac"){
if(_278.hideHTML){
msg=QI.MSG_DMGINSTALLMETHOD_TXT.format(MN.QMPInstall.controller.MakeDMGURL());
QI.DispatchInstallEvent(QI.Events.InstallMessage,{pid:_278.parentID,msg:msg});
}else{
msg=QI.MSG_DMGINSTALLMETHOD.format(MN.QMPInstall.controller.MakeDMGURL());
MN.$(QI._createParams.parentID).innerHTML=msg;
}
MN.QMPInstall.FireEvent(MN.TrackInstall.Events.INSTALLDMG);
}else{
if(QI.os=="win"&&QI.browser=="mozilla"){
QI.controller.StartXPIInstall();
}else{
var url=QI.controller.MakeSetupURL();
log("StartInstall",url);
QI.installCheckCount=0;
setTimeout(QI.CheckInstallProgress,250);
window.location.href=url;
}
}
}
}
},CheckAppletProgress:function(_27f){
var QI=MN.QMPInstall;
var _281=_27f||0;
var _282=MN.$("_qmpInstallerApplet");
var _283=0;
if(_282){
try{
_283=_282.GetProgressPercent();
}
catch(e){
_281++;
if(_281>3&&!QI.controller.RequiresJavaInstaller()){
log("Java installer failed to start, switching to .exe mode");
QI.allowWinJavaInstaller=false;
QI._usingJavaInstaller=false;
QI.StartInstall();
return;
}
}
}
if(_283<100){
setTimeout(function(){
MN.QMPInstall.CheckAppletProgress(_281);
},500);
}
},OnAppletProgress:function(msg,_285){
var QI=MN.QMPInstall;
var _287=QI._createParams;
log("OnAppletProgress",msg,_285);
MN.QMPInstall.appletProgressCount++;
if(_287.hideHTML){
var _288=msg+" : "+_285;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_287.parentID,msg:_288});
}else{
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*_285/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;
if(QI._createParams.hideHTML){
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);
if(QI._createParams.hideHTML){
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:QI._createParams.parentID,msg:msg});
}
}
}
},installCheckCount:0,oCheckCount:0,CheckInstallProgress:function(){
var QI=MN.QMPInstall;
var _292=QI.installCheckCount;
var _293=null;
if(!_292){
_292=0;
}
if(QI.WillNotInstall){
msg="Install will not happen.  Could be applet not trusted, or cannot find client package to download";
logError(msg);
if(QI._createParams.hideHTML){
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(_292>0){
QI.FireEvent(MN.TrackInstall.Events.InstallSuccess,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
_293=QI._createParams;
QI.ScanPlayerIDs(true);
setTimeout(function(){
log("Attempting to create player again.");
QI.installInProgress=false;
log("QI:CIP: params.parentID :: %s".format(_293.parentID));
log("QI:CIP: params.playerID :: %s".format(_293.playerID));
MN.QMPInstall.CreatePlayer(_293.parentID,_293.DoneCB,_293.w,_293.h,_293.playerID,_293.hideHTML);
QI.DispatchInstallEvent(QI.Events.InstallSuccess,{pid:_293.parentID});
},100);
return;
}
QI.installCheckCount++;
}
QI.oCheckCount++;
if(QI.osIsVista&&QI.oCheckCount>QI.InstallUpgradeCheckRetries){
QI._requestRestart(QI._createParams.parentID);
return;
}
setTimeout(QI.CheckInstallProgress,125);
return;
},ShowUpgradeStart:function(_295){
var QI=MN.QMPInstall;
if(QI._createParams.hideHTML){
msg=QI.MSG_NEEDUPGRADE_TXT;
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_295,msg:msg});
}else{
msg=QI.MSG_NEEDUPGRADE;
MN.$(_295).innerHTML=msg;
}
},ShowUpgradeProgress:function(_297,msg){
var QI=MN.QMPInstall;
if(QI._createParams.hideHTML){
msg=QI.MSG_UPGRADING.format(msg);
QI.DispatchInstallEvent(QI.Events.InstallStatus,{pid:_297,msg:msg});
}else{
msg=MN.QMPInstall.MSG_UPGRADING.format(msg);
var sp=MN.$("_qmpUpgradeProgress");
if(sp){
sp.innerHTML=msg;
}
}
},ShowUpgradeDone:function(_29b){
var QI=MN.QMPInstall;
var _29d=QI._createParams;
if(QI.osIsPanther){
QI.ShowUpgradeProgress(_29d.parentID,"Upgrade done, Please restart your browser.");
}else{
QI.ShowUpgradeProgress(_29d.parentID,"Upgrade done, playback will start soon...");
}
},ShowUpgradeError:function(_29e,_29f){
var QI=MN.QMPInstall;
var _2a1=QI._createParams;
if(_2a1.hideHTML){
QI.DispatchInstallEvent(QI.Events.InstallError,{pid:_29e,msg:_29f});
}else{
msg=MN.QMPInstall.MSG_UPGRADEFAILED.format(_29f||"");
var sp=MN.$("_qmpUpgradeProgress");
if(sp){
sp.innerHTML=msg;
}
}
},StartUpgrade:function(_2a3){
var _2a4=_2a3||0;
var QI=MN.QMPInstall;
var _2a6=QI._createParams;
_2a6.upAttempts=_2a4+1;
QI.originalVersion=QI.GetInstalledVersion();
log("Set QI.originalVersion to",QI.originalVersion);
if(QI.os=="win"&&QI.browser=="mozilla"){
QI.controller.ShowUpgradeMsg(_2a6.parentID);
QI.controller.StartXPIUpgrade(QI.IsBGMacVersion(),true);
return;
}
if(_2a4<=3&&QI.allowOldUpgradeAPI&&QI.controller.UseOldUpgradeAPI()){
QI._forceReinstall();
return;
}
if(QI.osIsPanther){
MN.Cookie.Set("needrestart","1");
}
_2a6.upPlayerDiv=document.createElement("div");
_2a6.upPlayerDiv.id="_qmpUpgradePlayer";
_2a6.upPlayerDiv.style.display="block";
_2a6.upPlayerDiv.style.width="1px";
_2a6.upPlayerDiv.style.height="0px";
document.body.appendChild(_2a6.upPlayerDiv);
setTimeout(function(){
QI.EmitObj("_qmpUpgradePlayer",1,1,null,true,true);
},10);
},OnUpgradeDone:function(_2a7,_2a8,_2a9,_2aa,_2ab){
var QI=MN.QMPInstall;
var _2ad=QI._createParams;
QI.ShowUpgradeDone(_2ad.parentID);
if(_2a7){
QI.FireEvent(MN.TrackInstall.Events.UpgradeSuccess,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI._beforeUpgradeVersion+" to "+_2ab,prop3:QI.controller.packageExt});
}
if(_2ad.upPlayerDiv){
_2ad.upPlayerDiv.innerHTML="";
document.body.removeChild(_2ad.upPlayerDiv);
_2ad.upPlayerDiv=null;
}
QI.ResetProbe();
if(!_2a8){
return;
}
if(QI.osIsPanther){
return;
}
if(_2a7){
log("QI.OUD: Retrying CreatePlayer");
QI._completedUpgrade=true;
QI.ScanPlayerIDs(true);
setTimeout(function(){
MN.QMPInstall.CreatePlayer(_2ad.parentID,_2ad.DoneCB,_2ad.w,_2ad.h,_2ad.playerID,_2ad.hideHTML);
},2000);
}else{
if(_2ad.upAttempts<=QI.upgradeAutoRetries){
setTimeout(function(){
MN.QMPInstall.StartUpgrade(_2ad.upAttempts);
},100);
}else{
if(_2aa=="1"){
_2aa="invalid package URL";
}else{
if(_2aa=="2"){
_2aa="failed to build patch to downloaded file";
}else{
if(_2aa=="3"){
_2aa="failed to unpack upgrade package";
}else{
if(_2aa=="4"){
_2aa="failed to run upgrade installer";
}
}
}
}
QI.ShowUpgradeError(_2ad.parentID,_2aa);
}
}
},_completedUpgrade:false,_createParams:{},playerIDToPlayer:{},nullPlayers:[],GetMinRequiredVer:function(name){
var QI=MN.QMPInstall;
if(!name){
name=QI.controller.GetName();
}
var ver=QI.reqVersions[name];
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(name){
var QI=MN.QMPInstall;
return QI._padVersionString(QI.GetAvailableVerUnpadded(),QI.QMP_VERSION_LENGTH);
},GetAvailableVerUnpadded:function(name){
var QI=MN.QMPInstall;
if(!name){
name=QI.controller.GetName();
}
if(!QI.availVersions[name]){
QI.availVersions[name]="";
}
return QI.availVersions[name];
},IsBGMacVersion:function(){
var QI=MN.QMPInstall;
var _2b6=QI.controller.GetInstalledVersion();
var _2b7=false;
var _2b8=["000007030901","000007032909","000007032907","000007032905","000007032903","000007032901","000007022601","000007022601","000007021503","000007010901"];
for(i=0;i<_2b8.length;i++){
if(_2b6==_2b8[i]){
_2b7=true;
break;
}
}
return _2b7;
},ScanPlayerIDs:function(_2b9){
var QI=MN.QMPInstall;
if(_2b9){
QI.playerIDToPlayer={};
QI.nullPlayers=[];
return;
}
var pID=null;
var p=null;
var _2bd=[];
for(var i=0,pl=QI.nullPlayers.length;i<pl;i++){
p=QI.nullPlayers[i];
pID=p.PlayerId;
if(!pID){
_2bd.push(p);
log("FOUND still null");
}else{
QI.playerIDToPlayer[pID]=p;
}
}
QI.nullPlayers=_2bd;
var _2bf={};
for(pID in QI.playerIDToPlayer){
if(QI.playerIDToPlayer.hasOwnProperty(pID)){
p=QI.playerIDToPlayer[pID];
var _2c0=p.PlayerId;
_2bf[_2c0]=p;
}
}
QI.playerIDToPlayer=_2bf;
}};
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="";
};
_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 _2c7=navigator.plugins[i];
if(!_2c7||_2c7.name.toLowerCase().indexOf("java")==-1){
continue;
}
for(var j=0,pl=_2c7.length;j<pl;j++){
var _2c9=_2c7[j];
if(!_2c9){
continue;
}
if(_2c9.type&&_2c9.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(_2ca){
return "<object id=\"%s\" style=\"width:%s; height:%s\" type=\""+this.mimeStr+"\"%s>%s</object>";
};
_p.RefreshPlugins=function(){
try{
navigator.plugins.refresh(0);
}
catch(e){
logError("RefreshPlugins failed",e,e.message);
}
};
_p.MakeUpgradeURL=function(_2cb){
logError("MakeUpgradeURL must be overriden");
return false;
};
_p.MakeSetupURL=function(){
logError("MakeSetupURL must be overriden");
return false;
};
_p.GetInstalledVersion=function(){
if(!navigator.plugins){
return null;
}
var _2cc=null;
var _2cd=null;
var _2ce=null;
var _2cf=null;
var _2d0=null;
for(var i=0,npl=navigator.plugins.length;i<npl;i++){
var _2d2=navigator.plugins[i];
if(_2d2.description.slice(0,7)!="npmnqmp"){
continue;
}
for(var j=0,pl=_2d2.length;j<pl;j++){
var t=_2d2[j].type;
if(t=="application/x-vnd.movenetworks.qm"){
_2cc=_2d2.description;
}else{
if(t=="application/x-vnd.moveplay.qm"){
_2cd=_2d2.description;
}else{
if(t=="application/x-vnd.moveplay1.qm"){
_2ce=_2d2.description;
}else{
if(t=="application/x-vnd.moveplay2.qm"){
_2cf=_2d2.description;
}else{
if(t=="application/x-vnd.moveplayer.qm"){
_2d0=_2d2.description;
}
}
}
}
}
}
}
var desc=_2d0;
var mime="application/x-vnd.moveplayer.qm";
if(!_2d0&&_2ce&&_2cf){
desc=_2ce;
mime="application/x-vnd.moveplay1.qm";
if(_2cf>desc){
desc=_2cf;
mime="application/x-vnd.moveplay2.qm";
}
}
if(!desc){
desc=_2cd;
mime="application/x-vnd.moveplay.qm";
}
if(!desc){
desc=_2cf;
mime="application/x-vnd.moveplay2.qm";
}
if(!desc){
desc=_2cc;
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 _2d7=navigator.plugins["Silverlight Plug-In"];
if(_2d7!==undefined&&_2d7!==null){
var _2d8=_2d7.description;
if(_2d8==="1.0.30226.2"){
_2d8="2.0.30226.2";
}
var _2d9=_2d8.split(".");
while(_2d9.length>3){
_2d9.pop();
}
return _2d9.join(".");
}else{
return "";
}
};
MN.QMPInstall.controllers.win_ie=MN.Class(MN.QMPInstall.controllers.Base);
_p=MN.QMPInstall.controllers.win_ie.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.Base.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(_2da){
var _2db=this.ocxCLSIDs[0];
if(this.notRunningAvailable){
_2db=this.ocxCLSIDs[1];
}
return "<OBJECT ID=\"%s\" style=\"width:%s; height:%s\" CLASSID=\"CLSID:"+_2db+"\"%s>%s</OBJECT>";
};
_p.RefreshPlugins=function(){
};
_p.GetInstalledVersion=function(){
this._FindClassIDs();
this._CreateTempOCX();
var vt=MN.$(this.vtID);
var _2dd=null;
var _2de=null;
var _2df=0;
if(vt){
try{
_2dd=vt.Get("Download.LatestVersion");
}
catch(e1){
log("QI.GIV: Get for Download.LatestVersion returned null.  Registry permission problem, or no player installed.");
}
try{
_2de=vt.Get("Download.ClientVersion");
}
catch(e2){
log("QI.GIV: Get for Download.ClientVersion returned null.  Registry permission problem, or no player installed.");
}
try{
_2df=parseInt(vt.Get("Download.APIVersion")||0,10);
}
catch(e3){
}
if(vt.Version&&!_2dd){
_2dd=vt.RegistryVersion;
log("available: ".format(_2dd));
_2de=vt.Version;
log("running: ".format(_2de));
}
}
this.notRunningAvailable=(_2dd&&_2de&&_2dd>_2de);
this.supportsForcedUpgrades=(_2df>0);
this._DestroyTempOCX();
return _2dd;
};
_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(_2e1){
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,_2e1||"","<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 _2e3=QI.GetInstalledVersion();
return !(_2e3>"000007010301");
};
_p.MakeSetupURL=function(){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVerUnpadded();
return MN.URL.Join(QI.libBase,"MoveMediaPlayer%s_%s.%s".format(QI.packagePrefix,ver,this.standaloneExt));
};
_p.MakeUpgradeURL=function(_2e6,_2e7){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVer();
if(_2e6){
log("BGMAC upgrade");
this.packageExt="cab";
return MN.URL.Join(QI.libBase,"qmp%s%s.%s".format(QI.packagePrefix,ver,this.packageExt));
}else{
return MN.URL.Join(QI.libBase,"MoveMediaPlayer%s_%s.%s".format(QI.packagePrefix,ver,this.packageExt));
}
};
_p.GetSilverlightVersion=function(){
try{
var _2ea=new ActiveXObject("AgControl.AgControl");
if(!_2ea){
return "";
}else{
if(_2ea.IsVersionSupported("2.0.31000")){
return "2.0.31000";
}else{
if(_2ea.IsVersionSupported("2.0")){
return "2.0.0";
}else{
if(_2ea.IsVersionSupported("1.0")){
return "1.0.0";
}else{
if(_2ea.IsVersionSupported(null)){
return "0.0.0";
}else{
return "";
}
}
}
}
}
}
catch(e){
return "";
}
};
MN.QMPInstall.controllers.win_mozilla=MN.Class(MN.QMPInstall.controllers.Base);
_p=MN.QMPInstall.controllers.win_mozilla.prototype;
_p.initialize=function(){
MN.QMPInstall.controllers.Base.prototype.initialize.apply(this);
this._name="win_mozilla";
this.standaloneExt="xpi";
this.packageExt="xpi";
};
_p.StartXPIInstall=function(){
log("StartXPIInstall");
xpiurl=this.MakeSetupURL();
log("xpi name: %s".format(xpiurl));
xpi={"Move Media Player":xpiurl};
InstallTrigger.install(xpi,this.XPIInstallCB);
};
_p.ShowUpgradeMsg=function(_2eb){
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:_2eb,msg:msg});
}else{
if(QI.MSG_UPGRADE_WIN_MOZILLA!==""){
MN.$(_2eb).innerHTML=QI.MSG_UPGRADE_WIN_MOZILLA;
}
MN.$(_2eb).innerHTML=QI.MSG_UPGRADE_BASE_WIN_MOZILLA;
}
};
_p.StartXPIUpgrade=function(_2ee,_2ef){
QI.FireEvent(MN.TrackInstall.Events.UpgradeBegin,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
muu=this.MakeUpgradeURL(_2ee,_2ef);
log("MakeUpgradeURL : %s".format(muu));
xpi={"Move Media Player":muu};
InstallTrigger.install(xpi,this.XPIUpgradeCB);
};
_p.XPIInstallCB=function(url,code){
if(code===0){
var QI=MN.QMPInstall;
var _2f3=QI._createParams;
QI.FireEvent(MN.TrackInstall.Events.InstallSuccess,{prop1:MN.RELEASE_VERSION,prop2:"install "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
QI.DispatchInstallEvent(MN.QMPInstall.Events.InstallSuccess,{pid:_2f3.parentID});
}
};
_p.XPIUpgradeCB=function(url,code){
var QI=MN.QMPInstall;
var _2f7=QI._createParams;
if(code===0){
QI.FireEvent(MN.TrackInstall.Events.UpgradeSuccess,{prop1:MN.RELEASE_VERSION,prop2:"upgrade "+QI.GetInstalledVersion()+" to "+QI.GetAvailableVer(),prop3:QI.controller.packageExt});
}else{
var msg;
if(code=="1"){
msg="invalid package URL";
}else{
if(code=="2"){
msg="failed to build patch to downloaded file";
}else{
if(code=="3"){
msg="failed to unpack upgrade package";
}else{
if(code=="4"){
msg="failed to run upgrade installer";
}
}
}
}
if(QI._createParams.hideHTML){
QI.DispatchInstallEvent(MN.QMPInstall.Events.InstallError,{pid:_2f7.parentID,msg:msg});
}else{
logError(msg);
}
}
};
_p.MakeSetupURL=function(){
var QI=MN.QMPInstall;
var _2fa="";
var ver=QI.GetAvailableVerUnpadded();
url="qmp%s%s.%s".format(QI.packagePrefix,ver,this.packageExt);
log("MakeSetupURL : %s".format(url));
return MN.URL.Join(MN._libBase,url);
};
_p.MakeUpgradeURL=function(_2fc,_2fd){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVer();
var _300=QI.controller.GetInstalledVersion();
var _301="";
var _302="";
if(_2fc&&!_2fd){
log("BGMAC Upgrade");
this.packageExt="cab";
_302=MN.URL.Join(QI.libBase,"qmp%s_%s_%s.%s".format(QI.packagePrefix,this.GetName(),ver,this.packageExt));
log("Upgrade URL : ",_302);
return _302;
}else{
if(!_2fc&&!_2fd){
log("Trunk Upgrade");
this.packageExt="exe";
_302=MN.URL.Join(QI.libBase,"MoveMediaPlayer%s_%s_%s.%s".format(QI.packagePrefix,this.GetName(),ver,this.packageExt));
log("Upgrade URL : "+_302);
return _302;
}
}
url="qmp%s%s.%s".format(QI.packagePrefix,ver,this.packageExt);
_302=MN.URL.Join(MN._libBase,url);
log("Upgrade URL: "+_302);
return _302;
};
_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";
};
_p.RequiresJavaInstaller=function(){
return false;
};
_p.MakeUpgradeURL=function(_303){
return this.MakeSetupURL();
};
_p.MakeDMGURL=function(){
var QI=MN.QMPInstall;
var ver=QI.GetAvailableVer();
url="qmpsetup%s_mac_mozilla_%s.%s".format(QI.packagePrefix,ver,this.dmgExt);
log("MakeDMGURL : %s".format(url));
return MN.URL.Join(MN._libBase,url);
};
_p.MakeSetupURL=function(){
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);
}
log("MakeSetupURL : %s".format(url));
return MN.URL.Join(QI.libBase,url);
};
_p=undefined;
MN.QMPInstall.controllers.mac_safari=MN.QMPInstall.controllers.mac_mozilla;
MN.QMPInstall.ProgressBar={create:function(w,h){
var QIP=MN.QMPInstall.ProgressBar;
var _30b=document.createElement("div");
_30b.style.width=w;
_30b.style.height=h;
_30b.style.border="1px solid black";
_30b.align="left";
var _30c=document.createElement("div");
_30b.innerDiv=_30c;
_30c.style.width="0%";
_30c.style.height="100%";
_30c.style.backgroundColor="#000066";
_30b.appendChild(_30c);
_30b.progress=0;
_30b.setProgress=function(){
return QIP.setProgress.apply(_30b,arguments);
};
_30b.getProgress=function(){
return QIP.getProgress.apply(_30b,arguments);
};
_30b.hide=function(){
return QIP.hide.apply(_30b,arguments);
};
_30b.show=function(){
return QIP.show.apply(_30b,arguments);
};
return _30b;
},setProgress:function(_30d){
if(_30d>100){
_30d=100;
}
this.progress=_30d;
this.innerDiv.style.width=_30d.toString()+"%";
},getProgress:function(){
return this.progress;
},hide:function(){
this.style.display="none";
},show:function(){
this.style.display="";
}};
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;
}
}
},doInstall:function(_310,_311,_312,w,h,_315){
var QIS=MN.QMPInstall.Silverlight;
if(!QIS.needsInstall()){
_310();
return;
}
QIS.installRun=true;
QIS.SLInstallAttempted(true);
if(!QIS.UserAcceptsInstall()){
_310();
return;
}
QIS.finishedCbFunc=_310;
QIS._helperPlayer=MN.$(_315);
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.$(_311);
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 _319=document.createElement("div");
_319.style.width=QIS.width;
_319.style.height=QIS.height;
QI._HideClient();
QIS.targetDiv.appendChild(_319);
QIS.PromptDiv=_319;
QIS.GenerateFgInstallStatus(_319);
QIS._helperPlayer.Set("SilverlightInstall","Background");
MN.Event.Observe(QIS._helperPlayer,"slidownloadprogress",QIS.DownloadStatusUpdate);
MN.Event.Observe(QIS._helperPlayer,"silverlightinstall",QIS.ForegroundInstallComplete);
},GenerateFgInstallStatus:function(_31a){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _31d=document.createElement("table");
_31d.style.width="100%";
_31d.style.height="100%";
_31d.style.border="1px solid black";
_31d.style.color="#333333";
_31d.style.backgroundColor="#FFFFFF";
var _31e=document.createElement("tbody");
_31d.appendChild(_31e);
var _31f=document.createElement("tr");
_31e.appendChild(_31f);
borderCont=document.createElement("td");
borderCont.align="center";
borderCont.vAlign="middle";
_31f.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);
_31a.appendChild(_31d);
},progressUpdatedFgInstall:function(_321){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
QIS.progressBar.setProgress(_321);
},ForegroundInstallComplete:function(_324){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
if(_324==1){
log("Silverlight foreground install succeeded!");
}else{
log("Silverlight foreground install failed!");
}
if(QIS.getInstallOpts()=="force"&&!QIS.silverlightInstalled()){
return QI._requestRestart(QIS.PromptDiv);
}
QIS.PromptDiv.parentNode.removeChild(QIS.PromptDiv);
QI._UnhideClient();
QIS.finishedCbFunc();
QIS.finishedCbFunc=null;
},doBackgroundInstall:function(_327,_328,_329,w,h,_32c){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _32f=document.createElement("div");
_32f.style.width=w;
_32f.style.height=h;
QI._HideClient();
MN.$(_328).appendChild(_32f);
QIS.PromptDiv=_32f;
QIS.GenerateEULAPrompt(_32f);
},doForegoundInstall:function(_330,_331,_332,w,h,_335){
var QIS=MN.QMPInstall.Silverlight;
var QI=MN.QMPInstall;
var _338=document.createElement("div");
_338.style.width=w;
_338.style.height=h;
QI._HideClient();
MN.$(_331).appendChild(_338);
QIS.PromptDiv=_338;
QIS.GenerateEULAPrompt(_338);
},GenerateEULAPrompt:function(_339){
var QIS=MN.QMPInstall.Silverlight;
var _33b=document.createElement("div");
_33b.style.border="1px solid black";
_33b.style.height="100%";
_33b.style.color="#333333";
_33b.style.backgroundColor="#FFFFFF";
var _33c=document.createElement("div");
_33c.style.marginTop="7px";
_33c.style.marginBottom="7px";
_33c.innerHTML="<span style='font-weight: bolder; font-size: 13px; text-decoration: underline'>"+QIS.strings.downloadingMessage+"</strong><br><br>";
var _33d=document.createElement("span");
_33d.style.border="2px solid black";
_33d.style.padding="5px";
_33d.style.marginRight="5px";
_33d.style.cursor="pointer";
_33d.style.paddingTop="5px";
_33d.onclick=QIS.AcceptClicked;
_33d.onmouseover=QIS.btnMouseOver;
_33d.onmouseout=QIS.btnMouseOut;
var _33e=_33d.cloneNode(true);
_33e.onclick=QIS.RejectClicked;
_33e.onmouseover=QIS.btnMouseOver;
_33e.onmouseout=QIS.btnMouseOut;
_33d.innerHTML=QIS.strings.acceptBtn.toUpperCase();
_33e.innerHTML=QIS.strings.rejectBtn.toUpperCase();
_33c.appendChild(_33d);
_33c.appendChild(_33e);
_33b.appendChild(_33c);
_33b.style.paddingRight="2px";
_339.appendChild(_33b);
var _33f=60;
var _340=480;
if(QI.Browser()=="ie"){
if(_33c.offsetHeight>0){
_33f=_33c.offsetHeight;
}
_340=_339.offsetHeight;
}else{
if(_33c.clientHeight>0){
_33f=_33c.clientHeight;
}
_340=_339.clientHeight;
}
var _341=_339.clientHeight-_33f-16;
var _342=document.createElement("iframe");
_342.style.border="1px dotted black";
_342.style.width="100%";
_342.style.height=_341+"px";
_342.src=QIS.getSlEulaURL();
_33b.insertBefore(_342,_33c);
},DownloadStatusUpdate:function(_343){
var QIS=MN.QMPInstall.Silverlight;
if(QIS.progressBar!==null){
QIS.progressBar.setProgress(_343);
if(_343==100){
MN.$("MN_INSTALL_SL_DL_PROMPT").innerHTML=QIS.strings.nowInstalling;
QIS.progressBar.parentNode.removeChild(QIS.progressBar);
QIS.progressBar=null;
}
}else{
log("download status: "+_343.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(){
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 "bg";
}
},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);
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="If this is your first time installing, 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 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 />";
MN.QMPInstall.MSG_INSTALL_win_mozilla_TXT="If this is your first time installing, please follow steps 1-4.  If you are a returning customer, please see step 5.<br><br>1) When the bar appears at the top of your browser, click the \"Edit Options\" button.<br>2) In the \"Allowed Sites\" dialog click the \"Allow\" button.<br>3) Click the \"Close\" button.<br>4)Click yes to start install.<br>5) On the \"Software Installation\" dialog window click Install Now";
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(_351,_352){
var QI=MN.QMPInstall;
var _354=QI.playerIDToPlayer[_351];
if(!_354){
QI.ScanPlayerIDs(false);
_354=QI.playerIDToPlayer[_351];
}
var args=MN.ToArray(arguments).slice(2);
if(!_354){
log("Could not find player",_351," - ignoring",_352,"event, args =",args);
return;
}
var _356=_354["_"+_352+"Listeners"];
if(!_356){
return;
}
setTimeout(function(){
for(var i=0,ll=_356.length;i<ll;i++){
var _358=_356[i];
try{
_358.apply(this,args);
}
catch(e){
logError("Listener",_358,"for event",_352,"had uncaught exception:",e.message||e);
}
}
},1);
};
_QMPEventOnError=function(_359,msg){
_QMPFireNonIEEvent(_359,"error",msg);
};
_QMPEventOnBitRateChanged=function(_35b,_35c,_35d){
_QMPFireNonIEEvent(_35b,"bitratechanged",_35c,_35d);
};
_QMPEventOnPlayStateChanged=function(_35e,_35f,_360){
_QMPFireNonIEEvent(_35e,"playstatechanged",_35f,_360);
};
_QMPEventOnUpgradeProgress=function(_361,_362,_363){
_QMPFireNonIEEvent(_361,"upgradeprogress",_362,_363);
};
_QMPEventOnScript=function(_364,key,_366){
_QMPFireNonIEEvent(_364,"script",key,_366);
};
_QMPEventOnAudioControl=function(_367,_368,_369){
_QMPFireNonIEEvent(_367,"audiocontrol",_368,_369);
};
_QMPEventOnAsyncTaskDone=function(_36a,_36b,_36c,_36d){
_QMPFireNonIEEvent(_36a,"asynctaskdone",_36b,_36c,_36d);
};
_QMPEventOnScrubBumper=function(_36e,_36f){
_QMPFireNonIEEvent(_36e,"scrubbumper",_36f);
};
_QMPEventOnLiveBumper=function(_370){
_QMPFireNonIEEvent(_370,"livebumper");
};
_QMPEventOnBitmapReady=function(_371,_372,url){
_QMPFireNonIEEvent(_371,"bitmapready",_372,url);
};
_QMPEventOnModuleLoaded=function(_374,_375){
_QMPFireNonIEEvent(_374,"moduleloaded",_375);
};
_QMPEventOnUIStateChanged=function(_376,_377){
_QMPFireNonIEEvent(_376,"uistatechanged",_377);
};
_QMPEventOnSLIDownloadProgress=function(_378,_379){
_QMPFireNonIEEvent(_378,"slidownloadprogress",_379);
};
_QMPEventOnSilverlightInstall=function(_37a,_37b){
_QMPFireNonIEEvent(_37a,"silverlightinstall",_37b);
};
}
MN.QMPInstall.Module=MN.Class(MN.EventSource);
var _qp=MN.QMPInstall.Module.prototype;
_qp.initialize=function Module(name,_37d,_37e){
MN.EventSource.prototype.initialize.apply(this);
this.name=name;
this.initParams=_37d;
this.loaded=false;
this.dltries=0;
};
_qp=undefined;
MN.QMPInstall.reqVersions=MN.Config.reqPlayerVersions;
MN.QMPInstall.availVersions=MN.Config.availPlayerVersions;
if(!MN){
MN={};
}
if(!MN.Capabilities){
MN.Capabilities={};
}
MN.Capabilities.HWInfo=function(_37f){
if(typeof _37f=="string"){
this._player=MN.$(_37f);
}else{
this._player=_37f.player;
}
};
MN.Capabilities.HWInfo.prototype.meetsMinReqs=function(){
var _380=(this.getVideoRAMSize()>=32)||this.getVideoRAMSize()===0;
var _381=this.getCPUSpeed()>1000||this.getCPUSpeed()===0;
return _380&&_381;
};
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 deconcept=="undefined"){
var deconcept=new Object();
}
if(typeof deconcept.util=="undefined"){
deconcept.util=new Object();
}
if(typeof deconcept.SWFObjectUtil=="undefined"){
deconcept.SWFObjectUtil=new Object();
}
deconcept.SWFObject=function(swf,id,w,h,ver,c,_388,_389,_38a,_38b){
if(!document.getElementById){
return;
}
this.DETECT_KEY=_38b?_38b:"detectflash";
this.skipDetect=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 deconcept.PlayerVersion(ver.toString().split(".")));
}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(!window.opera&&document.all&&this.installedVer.major>7){
deconcept.SWFObject.doPrepUnload=true;
}
if(c){
this.addParam("bgcolor",c);
}
var q=_388?_388:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",false);
this.setAttribute("doExpressInstall",false);
var xir=(_389)?_389:window.location;
this.setAttribute("xiRedirectUrl",xir);
this.setAttribute("redirectUrl","");
if(_38a){
this.setAttribute("redirectUrl",_38a);
}
};
deconcept.SWFObject.prototype={useExpressInstall:function(path){
this.xiSWFPath=!path?"expressinstall.swf":path;
this.setAttribute("useExpressInstall",true);
},setAttribute:function(name,_390){
this.attributes[name]=_390;
},getAttribute:function(name){
return this.attributes[name];
},addParam:function(name,_393){
this.params[name]=_393;
},getParams:function(){
return this.params;
},addVariable:function(name,_395){
this.variables[name]=_395;
},getVariable:function(name){
return this.variables[name];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _397=new Array();
var key;
var _399=this.getVariables();
for(key in _399){
_397[_397.length]=key+"="+_399[key];
}
return _397;
},getSWFHTML:function(){
var _39a="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
this.setAttribute("swf",this.xiSWFPath);
}
_39a="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";
_39a+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _39b=this.getParams();
for(var key in _39b){
_39a+=[key]+"=\""+_39b[key]+"\" ";
}
var _39d=this.getVariablePairs().join("&");
if(_39d.length>0){
_39a+="flashvars=\""+_39d+"\"";
}
_39a+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
this.setAttribute("swf",this.xiSWFPath);
}
_39a="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";
_39a+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _39b=this.getParams();
for(var key in _39b){
_39a+="<param name=\""+key+"\" value=\""+_39b[key]+"\" />";
}
var _39d=this.getVariablePairs().join("&");
if(_39d.length>0){
_39a+="<param name=\"flashvars\" value=\""+_39d+"\" />";
}
_39a+="</object>";
}
return _39a;
},write:function(_39e){
if(this.getAttribute("useExpressInstall")){
var _39f=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_39f)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);
}
}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _39e=="string")?document.getElementById(_39e):_39e;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _3a1=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_3a1=new 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 _3a4=3;
while(axo){
try{
_3a4++;
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_3a4);
_3a1=new deconcept.PlayerVersion([_3a4,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");
_3a1=new deconcept.PlayerVersion([6,0,21]);
axo.AllowScriptAccess="always";
}
catch(e){
if(_3a1.major==6){
return _3a1;
}
}
try{
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(e){
}
}
if(axo!=null){
_3a1=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
}
}
return _3a1;
};
deconcept.PlayerVersion=function(_3a5){
this.major=_3a5[0]!=null?parseInt(_3a5[0]):0;
this.minor=_3a5[1]!=null?parseInt(_3a5[1]):0;
this.rev=_3a5[2]!=null?parseInt(_3a5[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){
return false;
}
if(this.major>fv.major){
return true;
}
if(this.minor<fv.minor){
return false;
}
if(this.minor>fv.minor){
return true;
}
if(this.rev<fv.rev){
return false;
}
return true;
};
deconcept.util={getRequestParameter:function(_3a7){
var q=document.location.search||document.location.hash;
if(_3a7==null){
return q;
}
if(q){
var _3a9=q.substring(1).split("&");
for(var i=0;i<_3a9.length;i++){
if(_3a9[i].substring(0,_3a9[i].indexOf("="))==_3a7){
return _3a9[i].substring((_3a9[i].indexOf("=")+1));
}
}
}
return "";
}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _3ab=document.getElementsByTagName("OBJECT");
for(var i=_3ab.length-1;i>=0;i--){
_3ab[i].style.display="none";
for(var x in _3ab[i]){
if(typeof _3ab[i][x]=="function"){
_3ab[i][x]=function(){
};
}
}
}
};
if(deconcept.SWFObject.doPrepUnload){
if(!deconcept.unloadSet){
deconcept.SWFObjectUtil.prepUnload=function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);
};
window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);
deconcept.unloadSet=true;
}
}
if(!document.getElementById&&document.all){
document.getElementById=function(id){
return document.all[id];
};
}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;
if(!this.MN){
MN={};
}
if(!MN.ASUtils){
MN.ASUtils={paramsToASXML:function(_3af){
var _3b0=function(_3b1,ind){
var _3b3=null;
var i=null;
var n=null;
var xml="";
if(_3b1===null){
return "<null/>";
}else{
if(_3b1===true){
return "<true/>";
}else{
if(_3b1===false){
return "<false/>";
}else{
if(_3b1 instanceof Array){
xml+=ind+"<array>";
for(i=0,n=_3b1.length;i<n;i++){
xml+=ind+"<property id=\""+i+"\">";
xml+=ind+_3b0(_3b1[i],ind+"\t")+"\n";
xml+=ind+"</property>";
}
xml+=ind+"</array>";
}else{
if(typeof (_3b1)=="object"){
xml+=ind+"<object>";
for(_3b3 in _3b1){
if(_3b1.hasOwnProperty(_3b3)){
xml+=ind+"<property id=\""+_3b3+"\">";
xml+=ind+_3b0(_3b1[_3b3],ind+"\t")+"\n";
xml+=ind+"</property>";
}
}
xml+=ind+"</object>";
}else{
var _3b7=typeof (_3b1);
xml+=ind+"<"+_3b7+">"+_3b1.toString()+"</"+_3b7+">";
}
}
}
}
}
return xml;
};
xml="";
var i=null;
var n=null;
for(i=0,n=_3af.length;i<n;i++){
xml+=_3b0(_3af[i],"");
}
return xml.replace(/\t|\n/g,"");
}};
}
var OnEvalScript=function(js){
js=js.replace(/&apos;/g,"'");
js=js.replace(/&quot;/g,"\"");
var _3bb=eval(js);
return _3bb;
};
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(caps.getVideoRAMSize()<118&&caps.getVideoRAMSize()!=0){
MN.Flash._meetsReqs=false;
return false;
}
if(caps.getVideoRenderer()!="DX9"){
MN.Flash._meetsReqs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
if(caps.getCPUType().indexOf("PowerPC")>-1){
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()){
MN.Flash._meetsRecs=false;
return false;
}
var caps=new MN.Capabilities.HWInfo(pwp);
if(caps.getRAMSize()<502){
MN.Flash._meetsRecs=false;
return false;
}
if(MN.QMPInstall.OS()=="win"){
if(caps.getCPUCount()<2&&caps.getCPUSpeed()<2390){
MN.Flash._meetsRecs=false;
return false;
}
}else{
if(MN.QMPInstall.OS()=="mac"){
if(caps.getCPUCount()<2&&caps.getCPUSpeed()<1190){
MN.Flash._meetsRecs=false;
return false;
}
if(caps.getVideoRAMSize()<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,_3c1){
var id=null;
if(hint){
var e=document.getElementById(hint);
if(MN.Flash.FSDK.elementIsInstance(e,_3c1)){
return e.id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByName(hint),_3c1);
if(id){
return id;
}
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("object"),_3c1);
if(id){
return id;
}
id=MN.Flash.FSDK.findIdInCollection(document.getElementsByTagName("embed"),_3c1);
if(id){
return id;
}
return "";
},findIdInCollection:function(_3c4,_3c5){
for(var i in _3c4){
if(_3c4.hasOwnProperty(i)){
var e=_3c4[i];
if(MN.Flash.FSDK.elementIsInstance(e,_3c5)){
if(!e.id){
e.id=MN.Flash.FSDK._autoIdPrefix+_3c5;
}
return e.id;
}
}
}
return "";
},elementIsInstance:function(_3c8,_3c9){
if(_3c8&&_3c8._mn_getFlashInstanceNum&&(_3c8._mn_getFlashInstanceNum()==_3c9)){
return true;
}
return false;
},call:function(_3ca,_3cb,_3cc){
var fn=eval(_3ca);
var args=[];
var i=null;
for(i=3;i<arguments.length;i++){
args.push(arguments[i]);
}
if(_3cc){
for(i in _3cc){
if(_3cc.hasOwnProperty(i)){
var _3d0=_3cc[i];
args[_3d0]=eval(args[_3d0]);
}
}
}
var r=fn.apply(null,args);
if(!_3cb){
return r;
}else{
return "MN.Flash.FSDK._jsVars["+(MN.Flash.FSDK._jsVars.push(r)-1)+"]";
}
},evalJS:function(_3d2){
return eval(_3d2);
},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,_3d5,_3d6){
var r=(obj[_3d5]=_3d6);
return r;
},getObjectProperty:function(obj,_3d9){
return obj[_3d9];
},invokeObjectMethod:function(obj,_3db){
switch(arguments.length-2){
case (0):
return obj[_3db]();
case (1):
return obj[_3db](arguments[2]);
case (2):
return obj[_3db](arguments[2],arguments[3]);
case (3):
return obj[_3db](arguments[2],arguments[3],arguments[4]);
case (4):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5]);
case (5):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);
case (6):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);
case (7):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);
case (8):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);
case (9):
return obj[_3db](arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);
case (10):
return obj[_3db](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(_3dc){
MN.EventSource.prototype.initialize.apply(this);
var QI=MN.QMPInstall;
var ua=navigator.userAgent;
this.disabled="";
if(QI.osIsVista&&QI.browser=="mozilla"&&MN.$(_3dc.playerID).Version<"071302000000"&&_3dc.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(_3dc);
if(this._flashObject.disabled){
this.disabled=this._flashObject.disabled;
}
MN.Flash._flashObjects.push(this);
};
_FlashObject_proto.write=function(_3e0){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
this._flashObject.write(_3e0);
}
};
_FlashObject_proto.callExt=function(){
if(this.disabled){
this.FireEvent("OverlayError",this._flashObject.disabled);
}else{
var args=MN.ToArray(arguments);
this._flashObject.callExt.apply(this._flashObject,args);
}
};
_FlashObject_proto.addParam=function(name,_3e3){
this._flashObject.addParam(name,_3e3);
};
_FlashObject_proto.addVariable=function(name,_3e5){
this._flashObject.addVariable(name,_3e5);
};
_FlashObject_proto.changeMovie=function(_3e6){
this._flashObject.changeMovie(_3e6);
};
_FlashObject_proto.close=function(){
this._flashObject.close();
};
_FlashObject_proto.setFullScreenPosition=function(_3e7){
this._flashObject.setFullScreenPosition(_3e7);
};
_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=undefined;
MN.Flash._FlashObjectCommon=MN.Class();
MN.Flash._FlashObjectCommon._zOrder=0;
MN.Flash._FlashObjectCommon.prototype.initialize=function(_3e8){
this._params={};
this._vars={};
this._playerID=_3e8.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(_3e8.overrideRecommendations)&&!MN.Flash.meetsRecommendations(this._playerID)){
this.disabled=MN.Flash.ErrorTypes.SYS_NOT_SUPPORTED;
return;
}
this._id=_3e8.id;
this._bgColor=null;
this._wmode="transparent";
this.loadConfig(_3e8);
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 _3e9=MN.$(this._playerID);
var _3ea=_3e9;
var i=0;
do{
if(_3ea.style&&(_3ea.style.zIndex|_3ea.style.zIndex===0)){
var zIdx=parseInt(_3ea.style.zIndex,10);
return (zIdx);
}else{
_3ea=_3ea.parentNode;
}
}while(_3ea&&(i++<20));
return 0;
};
MN.Flash._FlashObjectCommon.prototype.loadConfig=function(_3ed){
if(_3ed.url&&!_3ed.url.startswith("http:")&&!_3ed.url.startswith("https:")){
_3ed.url=MN.URL.Join(null,_3ed.url);
}
if(_3ed.url){
this._url=_3ed.url;
}
if(_3ed.width){
this._width=_3ed.width;
}
if(_3ed.height){
this._height=_3ed.height;
}
if(_3ed.flashVersion){
this._flashVersion=_3ed.flashVersion;
}
if(_3ed.bgColor){
this._bgColor=_3ed.bgColor;
}
if(_3ed.wmode){
this._wmode=_3ed.wmode;
}
if(_3ed.fullscreenPosition){
this._fullScreenPosition=_3ed.fullscreenPosition||null;
}else{
if(_3ed.fullScreenPosition){
this._fullScreenPosition=_3ed.fullScreenPosition||null;
}
}
};
MN.Flash._FlashObjectCommon.prototype.write=function(_3ee){
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,_3f2){
this._params[name]=_3f2;
};
MN.Flash._FlashObjectCommon.prototype.addVariable=function(name,_3f4){
this._vars[name]=_3f4;
};
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(_3f5){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_3f5);
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(_3fa){
var swf=new 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(_3fa);
this._findMovieObj();
this.parentID=_3fa;
this.closed=false;
};
MN.Flash._MacFlashObject.prototype.close=function(){
MN.$(this.parentID).innerHTML="";
this.closed=true;
};
MN.Flash._MacFlashObject.prototype.changeMovie=function(_3fc){
if(!this.parentID){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_3fc);
this.write(this.parentID);
};
MN.Flash._MacFlashObject.prototype.callExt=function(){
var a=arguments;
var m=arguments[0];
var o=this._movieObj;
switch(arguments.length-1){
case (0):
return o[m]();
case (1):
return o[m](a[1]);
case (2):
return o[m](a[1],a[2]);
case (3):
return o[m](a[1],a[2],a[3]);
case (4):
return o[m](a[1],a[2],a[3],a[4]);
case (5):
return o[m](a[1],a[2],a[3],a[4],a[5]);
case (6):
return o[m](a[1],a[2],a[3],a[4],a[5],a[6]);
case (7):
return o[m](a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
case (8):
return o[m](a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);
case (9):
return o[m](a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]);
case (10):
return o[m](a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10]);
default:
alert("callExt: Too many arguments (max 10).");
}
};
MN.Flash._MacFlashObject.prototype.setFullScreenPosition=function(_400){
var _401=MN.$(this._playerID);
this._fullScreenPosition=_400;
_401.Set("FlashFullscreenPosition",this._id+","+this._fullScreenPosition);
};
MN.Flash._MacFlashObject.prototype.show=function(){
var _402=MN.$(this._playerID);
var _403=_402.GetOverlay(this._id);
_403.show();
};
MN.Flash._MacFlashObject.prototype.hide=function(){
var _404=MN.$(this._playerID);
var _405=_404.GetOverlay(this._id);
_405.hide();
};
MN.Flash._WinFlashObject=MN.Class(MN.Flash._FlashObjectCommon);
MN.Flash._WinFlashObject.prototype.initialize=function(_406){
MN.Flash._FlashObjectCommon.prototype.initialize.call(this,_406);
this.closed=true;
};
MN.Flash._WinFlashObject.prototype._setupEvalHandler=function(){
MN.Event.Observe(this._movieObj,"EvalScript_fromflashobject",OnEvalScript);
};
MN.Flash._WinFlashObject.prototype._startSWF=function(){
if(!this._movieObj){
var that=this;
setTimeout(function(){
that._startSWF();
},100);
return;
}
if(this._wmode){
log("Set WMode to",this._wmode);
this._movieObj.Set("Flash","WMode,"+this._wmode);
}
if(this._fullScreenPosition){
this._movieObj.Set("Flash","FullScreenPosition,"+this._fullScreenPosition);
}
this.addVariable("overlayNum",this._zOrder);
this.addVariable("movieID",this._id);
var _408=this._getVarString();
this._movieObj.Set("Flash","Variables,"+_408);
this._movieObj.Set("Flash","Open,"+this._url);
this._setupEvalHandler();
this.closed=false;
};
MN.Flash._WinFlashObject.prototype.write=function(_409){
var _40a=MN.$(this._playerID).Get("PlayerID");
var _40b={};
if(_40a||_40a===0){
_40b.PlayerID=_40a;
}
MN.QMPInstall.EmitObj(_409,this._width,this._height,this._id,false,false,true,_40b);
this._findMovieObj();
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.close=function(){
this._movieObj.Set("Flash","Close");
this.closed=true;
};
MN.Flash._WinFlashObject.prototype.changeMovie=function(_40c){
if(!this._movieObj){
throw new Error("Cannot change movie on a FlashObject that hasn't been written");
}
if(!this.closed){
this.close();
}
this.loadConfig(_40c);
this._startSWF();
};
MN.Flash._WinFlashObject.prototype.callExt=function(func){
var _40e=MN.ASUtils.paramsToASXML(MN.ToArray(arguments).slice(1,arguments.length));
var cmd="Flash.ExtInt."+func+"."+_40e;
return (this._movieObj.Get(cmd));
};
MN.Flash._WinFlashObject.prototype._getVarString=function(){
var _410="";
var _411=true;
for(var v in this._vars){
if(this._vars.hasOwnProperty(v)){
if(_411){
_410+=v+"="+this._vars[v];
_411=false;
}else{
_410+="&"+v+"="+this._vars[v];
}
}
}
return _410;
};
MN.Flash._WinFlashObject.prototype.setFullScreenPosition=function(_413){
this._fullScreenPosition=_413;
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._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=[];

