/*
 * Copyright(c) 2007-2010 Vusion Inc. All rights reserved,
 * http://www.vusion.com
 */


if(typeof Vusion==="undefined"){var Vusion={}}if(typeof Vusion.InstallConfig==="undefined"){Vusion.InstallConfig={minVersion:"1.6.3",releaseVersion:"r09",installServer:"http://deploy.vusion.com"}}Vusion.resourcePath=Vusion.InstallConfig.installServer+"/"+Vusion.InstallConfig.releaseVersion;Vusion=(typeof Vusion=="undefined")?{}:Vusion;if(typeof Vusion.Widget=="undefined"){Vusion.Widget={}}if(typeof Vusion.Widget.util=="undefined"){Vusion.Widget.util={}}Ext=(typeof Ext=="undefined")?{}:Ext;if(typeof Ext.util=="undefined"){Ext.util={}}Vusion.apply=function(C,D,B){if(B){Vusion.apply(C,B)}if(C&&D&&typeof D=="object"){for(var A in D){C[A]=D[A]}}return C};Vusion.extend=function(A,C,D){var E=function(G){for(var F in G){this[F]=G[F]}};var B=Object.prototype.constructor;return function(L,I,K){if(typeof I=="object"){K=I;I=L;L=K.constructor!=B?K.constructor:function(){I.apply(this,arguments)}}var H=function(){},J,G=I.prototype;H.prototype=G;J=L.prototype=new H();J.constructor=L;L.superclass=G;if(G.constructor==B){G.constructor=I}L.override=function(F){Vusion.override(L,F)};J.override=E;Vusion.override(L,K);L.extend=function(F){Vusion.extend(L,F)};return L}}();Vusion.apply=function(C,D,B){if(B){Vusion.apply(C,B)}if(C&&D&&typeof D=="object"){for(var A in D){C[A]=D[A]}}return C};Vusion.apply(Vusion,{override:function(A,D){if(D){var C=A.prototype;for(var B in D){C[B]=D[B]}}},clone:function(B){if(B===null||typeof B=="undefined"){return B}var C=new B.constructor();for(var A in B){C[A]=(typeof B[A]=="object")?Vusion.clone(B[A]):B[A]}return C},isArray:function(A){return A&&typeof A.length=="number"&&typeof A.splice=="function"},applyIf:function(B,C){if(B&&C){for(var A in C){if(typeof B[A]=="undefined"){B[A]=C[A]}}}return B},applyProperties:function(F,G,E,C,B){if(E){Vusion.applyIf(F,E)}if(F&&G&&typeof G=="object"&&C&&typeof C=="object"&&B&&typeof B=="object"){for(var D in G){if(typeof G[D]!="undefined"){var A=C[D.toLowerCase()]||D;F[A]=Vusion.convert(A,G[D],B)}}}return F},convert:function(property,value,propTypes){if(typeof value=="string"){var type=propTypes[property]||propTypes[property.toLowerCase()];switch(type){case"bool":value=(value=="true"||value=="1");break;case"int":value=parseInt(value,10);break;case"float":value=parseFloat(value);break;case"obj":try{value=eval("("+value+")")}catch(e){Vusion.log("Could not convert "+name+" value as an object: "+value);value=null}break;case"elt":value=document.getElementById(value);break;case"time":var t=value.split(":");value=t[0]*1;if(t[1]){value+=t[1]*60}if(t[2]){value+=t[2]*3600}break;default:break}}return value},addEventHandler:function(C,A,B){Vusion.log("addEventHandler: "+A);if(C.addEventListener){C.addEventListener(A,B,false)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}else{C["on"+A]=B}}},removeEventHandler:function(C,A,B){Vusion.log("removeEventListener: "+A);if(C.removeEventListener){C.removeEventListener(A,B,false)}else{if(C.detachEvent){C.detachEvent("on"+A,B)}else{C["on"+A]=null}}},getEventTarget:function(B){var A;if(!B){B=window.event}if(B.target){A=B.target}else{if(B.srcElement){A=B.srcElement}}if(A.nodeType==3){A=A.parentNode}return A},addClass:function(B,A){B.className+=" "+A},removeClass:function(B,A){B.className=B.className.replace(new RegExp(A,"g"),"")},versionToBCD:function(B){var C=""+B;C=C.split(".");var A=(C[0])?C[0]*10000:0;A+=(C[1])?C[1]*100:0;return A+(C[2]*1)},loadScript:function(C){var D=document.createElement("script");D.type="text/javascript";var B=C.url;if(C.params){for(var E in C.params){B+=(B.indexOf("?")>=0)?"&":"?";B+=E+"="+escape(C.params[E])}}D.src=B;if(C.id){D.id=C.id}if(C.handler){var A={};Vusion.apply(A,C,{scope:this});D.onload=function(){C.handler.call(A.scope,A.url,A.params,A.userData)};D.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){C.handler.call(A.scope,A.url,A.params,A.userData)}}}document.getElementsByTagName("head").item(0).appendChild(D)},loadScripts:function(B,C){var D;var A;var E=0;if(typeof (B)=="string"){B=[B]}if(!C){C=function(){}}for(var F=0;F<B.length;F++){A=false;for(m=0;m<document.getElementsByTagName("script").length;m++){if(document.getElementsByTagName("script")[m].src.indexOf(B[F].replace(/\.\.\//g,""))!=-1){A=true;break}}if(!A){D=document.createElement("script");D.type="text/javascript";D.src=B[F];document.getElementsByTagName("head").item(0).appendChild(D);if(typeof (C)=="string"){C=window[C]}D.onload=function(){E++;if(E==B.length){C();return }};D.onreadystatechange=function(){if(this.readyState=="loaded"){E++;if(E==B.length){C();return }}}}}C()},loadCSS:function(A){objectExists=false;for(m=0;m<document.getElementsByTagName("link").length;m++){if(document.getElementsByTagName("link")[m].href.indexOf(A.replace(/\.\.\//g,""))!=-1){objectExists=true;break}}if(!objectExists){var B=document.createElement("link");B.type="text/css";B.rel="stylesheet";B.href=A;document.getElementsByTagName("head").item(0).appendChild(B)}},buildPlayersFromMarkup:function(){var F=function(K){var N={applyTo:K};var J=K.attributes;var I=J.length;for(var M=0;M<I;M++){var L=J[M].nodeName;if(J[M].specified){if(L!="id"){if(L.toLowerCase()=="componentid"){L="id"}N[L]=J[M].nodeValue}}}return N};var D=document.getElementsByTagName("div");var E=D.length;var C=[];for(var B=0;B<E;B++){C[B]=D[B]}for(B=0;B<E;B++){var H=C[B];if(H.getAttribute("vusion")){var G=H.getAttribute("vusion");G=G.toLowerCase();if(G){if(!Vusion.componentCtrs[G]){Vusion.log('The Vusion script does not contain the object ("'+G+'") you are trying to create. Please refer to the documentation.')}else{var A=new Vusion.componentCtrs[G](F(H))}}}}},log:function(A){},__log:function(I,B){if(!Vusion.logWindow||!Vusion.logWindow.document){var D='<div><button onclick=\'document.getElementById("output").innerHTML = "";Vusion.logWindow.baseDate = (new Date()).getTime();\'>Clear</button><input id="ignoreAll" type="checkbox">Ignore All</input><input id="ignorePosition" type="checkbox">Ignore Positions</input>Filter: <input id="filter" size="15"></input></div><div style="height:90%;padding-top:10px;"><div id="output" style="overflow:auto;width:100%;height:100%;border: 2px solid black;"></textArea><div>';Vusion.logWindow=window.open("","logWindow","height=400,width=600,resizable=1");Vusion.logWindow.document.body.innerHTML=D;Vusion.logWindow.baseDate=(new Date()).getTime()}var H=Vusion.logWindow.document;var C=H.getElementById("filter").value;if(!H.getElementById("ignoreAll").checked&&!(H.getElementById("ignorePosition").checked&&I.indexOf('Fire "position"')>=0)&&(!C||(C&&I.indexOf(C)>=0))){var A=(new Date()).getTime()-Vusion.logWindow.baseDate;var F=H.getElementById("output");var J=(F.scrollTop==F.scrollHeight-F.clientHeight);var E=F.scrollTop;var G=document.createElement("span");G.style.color=(B=="error")?"red":((B=="event")?"black":((B=="install")?"green":"blue"));G.innerHTML=A+": "+I;F.appendChild(G);F.appendChild(document.createElement("br"));F.scrollTop=J?F.scrollHeight-F.clientHeight:E}}});(function(){var C=navigator.userAgent.toLowerCase();var D=C.indexOf("opera")>-1,F=(C.indexOf("windows")!=-1||C.indexOf("win32")!=-1),H=(C.indexOf("windows nt 5.0")!=-1||C.indexOf("windows 2000")!=-1),G=(C.indexOf("macintosh")!=-1||C.indexOf("mac os x")!=-1),I=(C.indexOf("chrome")!=-1),J=(C.indexOf("camino")!=-1),A=!I&&(/webkit|khtml/).test(C),B=!I&&!A&&C.indexOf("gecko")>-1,E=!D&&C.indexOf("msie")>-1;Vusion.applyIf(Vusion,{isIE:E,isMac:G,isWindows:F,isWindows2000:H,isChrome:I,isGecko:B,isCamino:J,uniqueId:0,jsonPlaylists:{},jsonMarkers:{},jsonPolicies:{},urls:{DYNAMIC_MARKER:Vusion.InstallConfig.installServer+"/ads/getAds.php"},componentCtrs:{}})})();String.formatTemplate=function(C,B,A){A=A||{};return C.replace(/\{([_\-\w]+)\}/g,function(D,E){return B[E]||A[E]})};String.format=function(B){var A=Array.prototype.slice.call(arguments,1);return B.replace(/\{(\d+)\}/g,function(C,D){return A[D]})};String.trimSpaces=function(A){return A.replace(/^\s+|\s+$/g,"")};Vusion.Observable=function(){};Vusion.Observable.prototype={AH2:null,AK2:null,dispatchEvent:function(D,C){if(C!==false){C=true
}if(D.name&&this.AH2){var B=this;var A=function(){D.name=D.name.toLowerCase();var E=[];for(prop in D){E[E.length]=prop+": "+D[prop]}Vusion.log('Fire "'+D.name+'" event. Arguments: '+E.join(", "),"event");return(B.AG2("__relayevents",D)&&B.AG2(D.name,D))};if(C){setTimeout(A,0)}else{A()}}return true},on:function(A,C,B){if(typeof A=="object"){var E=A;for(var D in E){if(D=="scope"){continue}this.on(D,E[D],E.scope)}return }this.L2(A.toLowerCase(),C,B)},un:function(A,C,B){if(typeof A=="object"){var E=A;for(var D in E){if(D=="scope"){continue}this.un(D,E[D],E.scope)}return }this.X2(A.toLowerCase(),C,B)},purgeListeners:function(){this.AH2={}},relayEvents:function(A){A.on("__relayEvents",function(B){return this.dispatchEvent(B)},this)},addEvents:function(A){},L2:function(B,E,D){D=D||this;var F={fn:E,scope:D};if(!this.AH2){this.AH2={}}if(!this.AH2[B]){this.AH2[B]=[F]}else{if(this.AK2==B){this.AK2=null;this.AH2[B]=this.AH2[B].slice(0)}var A=this.AH2[B];var C=this.AL2(A,E,D);if(C>=0){this.AM2(A,C)}A.push(F)}},X2:function(B,E,D){if(!this.AH2){return }var A=this.AH2[B];if(A){var C=this.AL2(A,E,D);if(C>=0){if(this.AK2==B){this.AK2=null;this.AH2[B]=A.slice(0)}this.AM2(this.AH2[B],C)}}},AG2:function(C,E){var B=this.AH2[C];var A=(B&&B.length)?B.length:0;if(A>0){this.AK2=E.name;for(var D=0;D<A;D++){var F=B[D];if(F.fn.apply(F.scope,[E])===false){this.AK2=null;return false}}this.AK2=null}return true},AL2:function(A,D,C){for(var B=0;B<A.length;B++){if(A.fn==D&&A.scope==C){return B}}return -1},AM2:function(A,D,C){var B=A.slice((C||D)+1||A.length);return A.push.apply(this,B)}};Vusion.Observable.capture=function(C,B,A){C.dispatchEvent=C.dispatchEvent.createInterceptor(B,A)};Vusion.Observable.releaseCapture=function(A){o.dispatchEvent=Vusion.Observable.prototype.dispatchEvent};Function.prototype.createInterceptor=function(B,A){if(typeof B!="function"){return this}var C=this;return function(){B.target=this;B.method=C;if(B.apply(A||this||window,arguments)===false){return }return C.apply(this||window,arguments)}};if(typeof Vusion=="undefined"){var Vusion={}}Vusion.Install=function(A){Vusion.apply(this,A);if(Vusion.InstallConfig!==undefined){Vusion.apply(this,Vusion.InstallConfig)}this.AT3+=Vusion.uniqueId;Vusion.uniqueId++;if(typeof this.minVersion=="string"){this.minVersion=Vusion.versionToBCD(this.minVersion)}if(typeof this.version=="string"){this.version=Vusion.versionToBCD(this.version)}if(this.version){if(this.minVersion<this.version){Vusion.log("Using requested version as a min version: version("+this.version+") > minVersion("+this.minVersion+")","install");this.minVersion=this.version}else{delete this.version}}if(typeof this.applyTo=="string"){this.applyTo=document.getElementById(this.applyTo)}Vusion.Install.superclass.constructor.call(this);this.addEvents(Vusion.Install.prototype.__getEventList());var B=this;this.C3=setTimeout(function(){B.Q3(true)},1)};Vusion.extend(Vusion.Install,Vusion.Observable,{applyTo:null,minVersion:"1.6.0",iacd2:false,releaseVersion:"r09",installServer:"http://deploy.vusion.com",version:null,startAgent:true,installFile:null,upgradeFile:null,ffMode:"xpi",ieMode:"exe",oldVersion:null,currentVersion:0,X3:null,AK3:null,AM3:false,AT3:"vusion_install_",notSupportedStr:"The Vusion video player is not supported on this operating system at this time.",restartPromptStr:"You must restart your browser for the changes to take effect.",allowInstallFFStr:'Please click on "Allow" in the upper right of your browser to proceed with installation',installHeaderStr:"Experience High Quality On-Demand Videos",installMessageStr:"To start watching the video, please install the Player browser plug-in.",installWarningStr:"To proceed with the installation, please agree with the license terms.",upgradeHeaderStr:"A newer version of the Player browser plug-in is available!",upgradeMessageStr:"",upgradeWarningStr:"To continue with the upgrade, please agree with the license terms.",eulaStr:"Yes, I have read and agree to the terms of the ",eulaLinkStr:"End User License Agreement.",trusteeStr:'The Vusion player is <a href="http://www.truste.com/" target="J3">TRUSTe</a> certified.',AO3:"<div id='{0}div' style='font-family: Helvetica, sans-serif; background-color: white; color: black; overflow: auto; text-align: center; padding: 0 5px 0 5px; font-size: 14px; height: 100%;'><div id='{0}body' style='position: relative; background: url({1}/images/truste_seal.jpg) bottom right no-repeat;'><span id='{0}header' style='color: #888; font-weight: bold;'>{2}</span><br /><br /><span id='{0}message'>{3}</span><br /><span id='{0}eula'><input id='{0}agreement' type='checkbox' />{4}<label style='color: blue; text-decoration: none; cursor: pointer;' onmouseover='this.style.textDecoration=\"underline\"' onmouseout='this.style.textDecoration=\"none\"' onclick='window.open(\"{1}/../eula\", \"name\", \"height=600,width=600,toolbar=0,scrollbars=1,location=centerscreen,status=1,menubar=0,resizable=1\");'>{5}</label></span><br /><span id='{0}warning' style='color: red; display:none;'>{6}</span><br /><div id='{0}download' style='background:{7};cursor: pointer; margin: 5px auto 0 auto; width: 118px; height: 28px;' onmouseup='this.style.background=\"{7}\";' onmouseout='this.style.background=\"{7}\";' onmouseover='this.style.background=\"{8}\";' onmousedown='this.style.background=\"{9}\";' onclick='if (document.getElementById(\"{0}agreement\").checked){document.startVusionDownload();}else{document.getElementById(\"{0}warning\").style.display=\"block\";}'></div><div style='margin-top: 5px; font-size: 10px;'>{10}</div></div></div>",AN3:"url({0}/images/installbuttons.gif) -{1}px center no-repeat",__getEventList:function(){return{beforeinstall:true,installfailed:true,installcomplete:true}},Q3:function(C){var B=this.getInstalledVersion();this.currentVersion=B;if(!B||B<this.minVersion){if(B&&!this.oldVersion){if(!this.oldVersion){this.oldVersion=B}else{if(B!=this.oldVersion){Vusion.log("Requested version is higher than available player version: "+B+" < "+this.minVersion,"install")}}}if(C){this.AL3(B!==null)}var A=this;setTimeout(function(){A.Q3()},500);return }if(this.startAgent){this.AA3()}this.dispatchEvent({name:(B)?"installcomplete":"installfailed",target:this})},getInstalledVersion:function(){var A=null;if(Vusion.isIE){if(!Vusion.Install.prototype.X3){try{Vusion.Install.prototype.X3=new ActiveXObject("Vusion.Check")}catch(C){}}if(Vusion.Install.prototype.X3){A=Vusion.Install.prototype.X3.installedVersionStr}}else{navigator.plugins.refresh(false);if(navigator.mimeTypes){var B=navigator.mimeTypes["application/x-vusion-check"];if(B){A=B.description}}}Vusion.log("Installed Version: "+A,"install");return(typeof A==="string")?Vusion.versionToBCD(A):A},AA3:function(){var C=null;if(Vusion.isIE){C=Vusion.Install.prototype.X3}else{C=document.getElementById("VusionCheck");if(!C){var D=document.createElement("div");D.style.width="0px";D.style.height="0px";D.innerHTML='<embed id="VusionCheck" type="application/x-vusion-check" width="0" height="0" startAgent="true"></embed>';document.body.appendChild(D);C=document.getElementById("VusionCheck")}}if(C&&C.agentCheck(true)){var A=C.agentVersion;Vusion.log("Keeping alive...","install")}var B=this;setTimeout(function(){B.AA3()},60000)},AF3:function(A){var B=this.installServer+"/p.php?i="+A+"&d="+document.domain;if(this.oldVersion){B+="&ov="+this.oldVersion}if(this.releaseVersion){B+="&r="+this.releaseVersion}if(this.iacd2){B+="&iacd2=1"}return B},download:function(){if(this.AK3){Vusion.log("Ignoring download request","install");return }if(Vusion.isChrome||(Vusion.isMac&&this.AM3)){alert(this.restartPromptStr)}if(this.ffMode=="xpi"&&Vusion.isGecko&&!Vusion.isMac){InstallTrigger.install({"Vusion Video Player":this.AF3(this.ffMode)})}else{window.location=this.AF3((this.ieMode&&Vusion.isIE)?this.ieMode:"exe")}if(Vusion.isWindows&&Vusion.isGecko&&!this.AM3){alert(this.allowInstallFFStr)}var A=this;this.AK3=setTimeout(function(){A.AK3=null},1000)},AL3:function(F){this.AM3=F;if(Vusion.isWindows2000||(!Vusion.isWindows&&!Vusion.isMac)){if(this.dispatchEvent({name:"installfailed",target:this},false)!==false){alert(this.notSupportedStr)
}}else{if(this.dispatchEvent({name:"beforeinstall",target:this,upgrading:F},false)!==false){if(!this.applyTo){alert("A container (applyTo) should be specified for the install page to be displayed inline");return }var B;if(F&&this.upgradeFile){B=this.upgradeFile}else{if(this.installFile){B=this.installFile}}if(B){if(document.getElementById(B)){this.applyTo.innerHTML=document.getElementById(B).value}else{this.applyTo.innerHTML='<iframe src="'+B+'" width="100%" height="100%" frameborder="no"></iframe>'}}else{var A=Vusion.resourcePath;var C=this.AN3;var E=(F)?[this.upgradeHeaderStr,this.upgradeMessageStr,this.upgradeWarningStr,String.format(C,A,354),String.format(C,A,472),String.format(C,A,590)]:[this.installHeaderStr,this.installMessageStr,this.installWarningStr,String.format(C,A,0),String.format(C,A,118),String.format(C,A,236)];this.applyTo.innerHTML=String.format(this.AO3,this.AT3,A,E[0],E[1],this.eulaStr,this.eulaLinkStr,E[2],E[3],E[4],E[5],this.trusteeStr);this.resizePage()}var D=this;document.startVusionDownload=function(){D.download()}}}},resizePage:function(){var A=document.getElementById(this.AT3+"body");if(A){var B=this.applyTo.clientHeight;var C=10;if(B>=200){C=Math.round(C+((B/100)*1.8))}A.style.fontSize=C+"px";document.getElementById(this.AT3+"header").style.fontSize=(C+3)+"px";A.style.top=parseInt((B-A.offsetHeight)/2,10)+"px"}}});Vusion.Components=function(){this.addEvents("componentadded","componentremoved")};Vusion.extend(Vusion.Components,Vusion.Observable,{J4:{},get:function(A){return this.J4[A]},add:function(C,B){if(B.hiddenFromList){return }this.J4[C]=B;var A=this;this.E4=setTimeout(function(){A.dispatchEvent({name:"componentadded",target:A,id:C,component:B,type:B.componentType})},0)},remove:function(C,B){var A=this.J4[C];if(A){if(A.hiddenFromList){return }if(B!==false&&A.destroy){A.destroy()}this.dispatchEvent({name:"componentremoved",target:this,id:C,component:A,type:A.componentType});delete this.J4[C]}},removeAll:function(){for(var A in this.J4){this.remove(A)}}});Vusion.components=new Vusion.Components();Vusion.Player=function(A){A=A||{};var B="A5"+(Vusion.uniqueId++);Vusion.Player.superclass.constructor.call(this);Vusion.applyProperties(this,A,{componentType:"player",width:"100%",height:"100%",id:B},this.__player_rwProperties,this.__player_rwPropertyTypes);A.startAgent=false;if(this.muted){this.R5=this.volume?this.volume:100;this.volume=0}this.BS5=new Vusion.Install(A);this.BS5.on({installcomplete:this.BH5,beforeinstall:this.BE5,scope:this});this.addEvents(Vusion.Player.prototype.__getEventList());this.relayEvents(this.BS5);Vusion.components.add(this.id,this)};Vusion.extend(Vusion.Player,Vusion.Observable,{applyTo:null,muted:false,details:{},positionTick:0.5,installMode:"integrated",setProperty:function(B,C){B=B.toLowerCase();if(typeof C=="string"){C=Vusion.convert(B,C,this.__player_rwPropertyTypes)}Vusion.log("Set: "+B+" = "+C);switch(B){case"url":if(!C){C=""}else{if(C.indexOf("vusion://")!==0){C="vusion://"+C}else{if(C.indexOf("jittr://")!==0){C=C.replace(/jittr:/,"vusion:")}}}if(this.CR5&&this.CR5[B]==C){this.CR5[B]=""}break;case"muted":B="volume";if(this.R5===undefined||(!this.muted&&C)){this.R5=(this.CR5)?this.CR5[B]:100}this.muted=C;this.dispatchEvent({name:"muted",target:this,muted:C});C=(C)?0:this.R5;break;case"volume":if(this.muted){this.R5=C;return true}break;case"details":this.details=Vusion.clone(C);this.dispatchEvent({name:"details",target:this,details:this.details});return true;case"position":case"duration":C*=1000;break;default:break}var A=this.__player_rwProperties[B];if(A===undefined){Vusion.log(B+": "+this.AS5);return false}if(!this.CR5){Vusion.log(B+": "+this.AU5,"error");return false}this.CR5[A]=C;return true},getProperty:function(name){name=name.toLowerCase();name=this.__player_rwProperties[name]||this.__player_roProperties[name];if(!name){Vusion.log(name+": unknow property");return false}if(this[name]){return this[name]}if(!this.CR5){Vusion.log(name+": "+this.AU5,"error");return false}var value=this.CR5[name];switch(name){case"state":value=this.BO5[value];break;case"muted":value=this.muted;break;case"position":case"duration":value/=1000;break;default:break}Vusion.log("Get: "+name+" = "+value);if(name=="audioLanguages"||name=="subtitleLanguages"||name=="videoBitrates"){value=eval(value)}return value},getPlugin:function(){return this.CR5},destroy:function(){this.CT5();var A=this.CR5;if(A){if(this.CB5){Vusion.removeEventHandler(A,"Error",this.CB5);Vusion.removeEventHandler(A,"PropertyChanged",this.CF5);Vusion.removeEventHandler(A,"State",this.CK5)}A.close()}this.purgeListeners();this.applyTo.innerHTML="";Vusion.components.remove(this.id,false)},resize:function(){this.BS5.resizePage()},play:function(){return this.methodCall("play")},pause:function(){return this.methodCall("pause")},togglePlay:function(){return this.methodCall("togglePlay")},stop:function(){return this.methodCall("stop")},open:function(){return this.methodCall("open")},close:function(){return this.methodCall("close")},previous:function(){return this.methodCall("previous")},next:function(){return this.methodCall("next")},BI5:"<object id='{0}' width='{1}' height='{2}' classid='CLSID:4862BED8-B3BE-4D71-8E12-B0BA44C83E7F' standby='Loading Media Player components...' {3}>{4}</object>",BJ5:"<embed id='{0}' width='{1}' height='{2}' type='application/x-jittr-player' {3} {4}/>",AX5:"<param name='{0}' value='{1}'>",AY5:"{0}='{1}' ",BO5:{0:"ready",1:"closed",2:"opening",3:"opened",4:"buffering",5:"paused",6:"playing",7:"stopped",8:"ended",9:"error",10:"created"},CB5:null,CF5:null,CW5:null,__currentPlaylist:null,__currentPlaylistId:null,CR5:null,AU5:'Plugin not available yet. It becomes available after the "ready" state.',AS5:"Property not part of the valid plugin properties.",__player_rwProperties:{applyto:"applyTo",url:"url",autostart:"autoStart",looping:"looping",volume:"volume",fullscreen:"fullScreen",aspectratio:"aspectRatio",position:"position",domainkey:"domainKey",audiolanguage:"audioLanguage",autoopen:"autoOpen",fillmode:"fillMode",showabout:"showAbout",videobitrate:"videoBitrate",detached:"detached",ontop:"onTop",subtitlelanguage:"subtitleLanguage",subtitlecolor:"subtitleColor",subtitlefont:"subtitleFont",subtitleweight:"subtitleWeight",subtitleminsize:"subtitleMinSize",subtitlemaxsize:"subtitleMaxSize",subtitlesizefactor:"subtitleSizeFactor",subtitleposition:"subtitlePosition",details:"details"},__player_rwPropertyTypes:{applyTo:"elt",url:"str",autostart:"bool",looping:"bool",volume:"int",fullScreen:"bool",aspectRatio:"float",position:"float",domainKey:"str",audioLanguage:"str",autoOpen:"bool",fillmode:"bool",showAbout:"bool",videoBitrate:"float",detached:"bool",onTop:"bool",subtitleLanguage:"str",subtitleColor:"str",subtitleFont:"str",subtitleWeight:"int",subtitleMinSize:"int",subtitleMaxSize:"int",subtitleSizeFactor:"int",subtitlePosition:"int",details:"obj"},__player_roProperties:{state:"state",duration:"duration",version:"version",revision:"revision",versionStr:"versionStr",sourcewidth:"sourceWidth",sourceheight:"sourceHeight",bitrate:"bitrate",videobitrates:"videoBitrates",audiolanguages:"audioLanguages",subtitlelanguages:"subtitleLanguages"},__getEventList:function(){var A={error:true,selectoffset:true,muted:true,details:true,beforeendedstate:true};for(eventName in Vusion.Player.prototype.__player_rwProperties){A[eventName]=true}for(eventName in Vusion.Player.prototype.__player_roProperties){A[eventName]=true}return A},methodCall:function(A){if(!this.CR5){Vusion.log(A+": "+this.AU5,"error");return false}Vusion.log(A+" player");if(A=="previous"||A=="next"){this.dispatchEvent({name:"selectOffset",target:this,playlistId:this.__currentPlaylist,offset:(A=="previous")?-1:1})}else{this.CR5[A]()}},BK5:function(){var C="";var A=(Vusion.isIE)?this.AX5:this.AY5;var B=this.__player_rwProperties.length;for(var E in this.__player_rwProperties){E=this.__player_rwProperties[E];var D=this[E];if(D!==undefined){if(E=="position"||E=="duration"){D*=1000}C+=String.format(A,E,D)
}}return C},BL5:function(C){var B=document.getElementById(this.id);if(!B||!B.version||C){var A=this;setTimeout(function(){A.BL5(false)},100)}else{this.BV5(B)}},BE5:function(B){if(this.installMode=="browser"){var A="";A=(Vusion.isIE)?"codebase='"+B.target.BF5(B.target.cabName):"pluginspage='"+B.target.installLocation;A+="'";B.browserInstallStr=A;this.BH5(B);return false}return true},BH5:function(B){var A=(Vusion.isIE)?this.BI5:this.BJ5;if(this.applyTo){if(!B.browserInstallStr){B.browserInstallStr=""}this.applyTo.innerHTML=String.format(A,this.id,this.width,this.height,B.browserInstallStr,this.BK5())}else{Vusion.log("No valid container for the player: applyTo is not defined")}this.BL5(true)},CI5:function(name,value){var isState=(name=="state");if(isState&&!value){return }if(typeof value=="string"){value=Vusion.convert(name,value,this.__player_rwPropertyTypes)}value=(!value)?this.CR5[name]:value;name=name.toLowerCase();if(isState){value=this.BO5[value];if(value=="playing"){this.CS5()}else{this.CT5()}}else{if(name=="position"||name=="duration"){value/=1000}else{if(name=="volume"&&this.muted){return }}}if(name=="audiolanguages"||name=="subtitlelanguages"||name=="videobitrates"){try{value=eval(value)}catch(e){value=[]}}var camelCase=this.__player_rwProperties[name]||this.__player_roProperties[name];if(camelCase=="undefined"){Vusion.log("Plug-in unknown property: "+name,"error");camelCase=name}var event;if(isState&&value=="ended"){event={name:"beforeEndedState",target:this,done:true};this.dispatchEvent(event);this.dispatchEvent({name:name,target:this,state:value,done:event.value})}else{event={name:camelCase,target:this};event[camelCase]=value;this.dispatchEvent(event)}if(isState&&value!="closed"){var position=this.CR5.position;if(this.BS5.currentVersion<10600){if(value=="playing"){this.dispatchEvent({name:"videoBitrate",target:this,videoBitrate:this.CR5.videoBitrate})}if(value=="opening"){position=0;this.dispatchEvent({name:"volume",target:this,volume:this.CR5.volume})}}this.dispatchEvent({name:"position",target:this,position:position/1000})}},BV5:function(B){var A=this;this.CR5=B;if(Vusion.domainKey){B.domainKey=Vusion.domainKey}this.dispatchEvent({name:"state",target:this,state:"ready"});this.CB5=function(C,D){A.dispatchEvent({name:"error",target:A,errno:C,message:D})};Vusion.addEventHandler(B,"Error",this.CB5);this.CF5=function(C){A.CI5(C)};Vusion.addEventHandler(B,"PropertyChanged",this.CF5);this.CK5=function(C){A.CI5("state",C)};Vusion.addEventHandler(B,"State",function(C){A.CK5(C)});if(this.url){this.__currentPlaylist=this.__currentPlaylistId=null;B.url=this.url}},CS5:function(){var A=this;if(this.positionTick>0){this.CW5=setTimeout(function(){A.CQ5()},this.positionTick*1000)}},CQ5:function(){var A=this.CR5.position/1000;this.dispatchEvent({name:"position",target:this,position:A});this.CS5()},CT5:function(){if(this.CW5){clearTimeout(this.CW5);this.CW5=null}}});Vusion.componentCtrs.player=Vusion.Player;
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@A6)
				windows = true;
			@elif (@B6)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return }addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){if(script.parentNode){script.parentNode.removeChild(script)}callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return }if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return }}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);
if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return }var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return }var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return }widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");
for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();if(typeof Vusion=="undefined"){var Vusion={}}Vusion.InstallFlash=function(B){Vusion.apply(this,B);this.U7+=Vusion.uniqueId;Vusion.uniqueId++;if(typeof this.flashMinVersion!="string"){Vusion.log('Version must be set as strings (ex: "9.0.0")',"error")}this.flashMinVersion=Vusion.versionToBCD(this.flashMinVersion);if(typeof this.flashVersion!="string"){Vusion.log('Version must be set as strings (ex: "9.0.0")',"error")}this.B7=this.flashVersion;this.flashVersion=Vusion.versionToBCD(this.flashVersion);if(this.flashVersion){if(this.flashMinVersion<this.flashVersion){Vusion.log("Using requested version as a min version: version("+this.flashVersion+") > minVersion("+this.flashMinVersion+")","install");this.flashMinVersion=this.flashVersion}else{delete this.flashVersion}}if(typeof this.applyTo=="string"){this.applyTo=document.getElementById(this.applyTo)}Vusion.Install.superclass.constructor.call(this);this.addEvents(Vusion.InstallFlash.prototype.__getEventList());var A=this;this.D7=setTimeout(function(){A.N7(true)},1)};Vusion.extend(Vusion.InstallFlash,Vusion.Observable,{applyTo:null,flashMinVersion:"9.0.0",installLink:"http://www.adobe.com/go/getflashplayer",flashVersion:null,flashInstallFile:null,flashUpgradeFile:null,installStr:"Please install Adobe's Flash Player.",upgradeStr:"Please upgrade your version of Adobe's Flash Player.",Q7:"<div id='{0}div' style='font-family: Helvetica, sans-serif; background-color: #FFF; overflow: auto; text-align: center; padding: 0 5px 0 5px; font-size: 14px; height: 100%;'><div id='{0}body' style='position: relative;'><span id='{0}message' style='color: #333; font-size: 16px;'>{1}</span><br/><br/><a href='{2}'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player'/></a></div></div>",P7:false,U7:"flash_install_",__getEventList:function(){return{beforeflashinstall:true,flashinstallfailed:true,flashinstallcomplete:true}},N7:function(D){var B=swfobject.getFlashPlayerVersion();var C=Vusion.versionToBCD(B.major+"."+B.minor+"."+B.release);this.currentVersion=C;if(!C||C<this.flashMinVersion){if(C&&!this.oldVersion){if(!this.oldVersion){this.oldVersion=C}else{if(C!=this.oldVersion){Vusion.log("Requested version is higher than available player version: "+C+" < "+this.flashMinVersion,"install")}}}if(D){this.O7(C!==null)}var A=this;setTimeout(function(){A.N7()},500);return }this.dispatchEvent({name:(C)?"flashinstallcomplete":"flashinstallfailed",target:this})},O7:function(D){this.P7=D;if(this.dispatchEvent({name:"beforeflashinstall",target:this,upgrading:D},false)!==false){if(!this.applyTo){alert("A container (applyTo) should be specified for the install page to be displayed inline");return }var C;if(D&&this.flashUpgradeFile){C=this.flashUpgradeFile}else{if(this.flashInstallFile){C=this.flashInstallFile}}if(C){var A=document.getElementById(C);this.applyTo.innerHTML=(A)?A.value:'<iframe src="'+C+'" width="100%" height="100%" frameborder="no"></iframe>'}else{this.applyTo.innerHTML=String.format(this.Q7,this.U7,(D)?this.upgradeStr:this.installStr,this.installLink);this.resizePage()}var B=this;document.startVusionDownload=function(){B.download()}}},resizePage:function(){var A=document.getElementById(this.U7+"body");if(A){var B=this.applyTo.clientHeight;var C=10;if(B>=200){C=Math.round(C+((B/100)*1.8))}A.style.fontSize=C+"px";A.style.top=parseInt((B-A.offsetHeight)/2,10)+"px"}}});Vusion.FlvPlayer=function(B){B=B||{};var C="A8"+(Vusion.uniqueId++);Vusion.applyProperties(this,B,{componentType:"player",width:"100%",height:"100%",id:C},this.__flvplayer_rwProperties,this.__flvplayer_rwPropertyTypes);Vusion.FlvPlayer.superclass.constructor.call(this);this.W8=new Vusion.InstallFlash(B);this.W8.on("flashinstallcomplete",this.F8,this);this.addEvents(Vusion.FlvPlayer.prototype.__getEventList());this.relayEvents(this.W8);Vusion.components.add(this.id,this);var A=Vusion.Install.prototype.getInstalledVersion()};Vusion.extend(Vusion.FlvPlayer,Vusion.Observable,{applyTo:null,muted:false,details:{},url:null,volume:100,fullScreen:false,position:0,duration:0,__getEventList:function(){var A={};for(eventName in Vusion.FlvPlayer.prototype.__flvplayer_rwPropertyTypes){A[eventName]=true}for(eventName in Vusion.FlvPlayer.prototype.__flvplayer_roProperties){A[eventName]=true}return A},F8:function(C){var A="G8"+(Vusion.uniqueId++);this.applyTo.innerHTML="<div id='"+A+"'></div>";var D={id:A,controlbar:"none"};if(this.url){D.file=this.url}if(this.autoStart){D.autostart=this.autoStart}if(this.muted){D.mute=this.muted}if(this.volume){D.volume=this.volume}if(this.looping){D.repeat=this.looping}D.tracecall="Vusion.log";Vusion.apply(D,this.flashVars);swfobject.embedSWF(Vusion.resourcePath+"/swf/mediaplayer.swf",A,this.applyTo.clientWidth,this.applyTo.clientHeight,"9.0.0",false,D,{wmode:"transparent",allowscriptaccess:"always",bgcolor:"black"});var B=this.applyTo.childNodes[0];B.style.position="absolute";B.style.outline="none";B.name=A;B.flvPlayer=this;this.M8(true)},M8:function(B){var A=this.applyTo.childNodes[0];if(!A||!this.AQ8||B){var C=this;setTimeout(function(){C.M8(false)},100)}else{this.AE8=A;A.addControllerListener("MUTE","Vusion.flvPlayerCbs.mute");A.addControllerListener("STOP","Vusion.flvPlayerCbs.stop");A.addControllerListener("VOLUME","Vusion.flvPlayerCbs.volume");A.addModelListener("ERROR","Vusion.flvPlayerCbs.error");A.addModelListener("STATE","Vusion.flvPlayerCbs.state");A.addModelListener("TIME","Vusion.flvPlayerCbs.time")}},__flvplayer_rwProperties:{applyto:"applyTo",url:"url",autostart:"autoStart",looping:"looping",volume:"volume",fullscreen:"fullScreen",position:"position",muted:"muted",details:"details"},__flvplayer_rwPropertyTypes:{applyTo:"elt",url:"str",autostart:"bool",looping:"bool",volume:"int",fullScreen:"bool",position:"float",muted:"bool",details:"obj"},__flvplayer_roProperties:{state:"state",duration:"duration",version:"version",revision:"revision",versionStr:"versionStr",sourcewidth:"sourceWidth",sourceheight:"sourceHeight",bitrate:"bitrate",videobitrates:"videoBitrates"},setProperty:function(B,C){if(!this.AE8){Vusion.log(B+": "+this.AG8,"error");return false}if(typeof C=="string"){C=Vusion.convert(B,C,this.__flvplayer_rwPropertyTypes)}B=B.toLowerCase();Vusion.log("Set: "+B+" = "+C);switch(B){case"url":if(!C){C=""}if(this.AE8[B]==C){B="seek";C=0}else{B=load;C={file:C}}this.duration=0;break;case"details":this.details=C;this.dispatchEvent({name:"details",target:this,details:C});return ;default:break}var A=B=="muted"?"mute":this.__flvplayer_rwProperties[B];if(A===undefined){Vusion.log(B+": "+this.AH8);return false}this.AE8.sendEvent(A.toUpperCase(),C);return true},getProperty:function(A){if(!this.AE8){Vusion.log(A+": "+this.AG8,"error");return false}A=A.toLowerCase();A=this.__flvplayer_rwProperties[A]||this.__flvplayer_roProperties[A];if(!A){Vusion.log(A+": unknow property");return false}return this[A]},getPlugin:function(){return this.AE8},destroy:function(){this.applyTo.innerHTML="";Vusion.components.remove(this.id,false)},resize:function(){this.W8.resizePage()},methodCall:function(A){if(!this.AE8){Vusion.log(A+": "+this.AG8,"error");return false}Vusion.log(A+" player");switch(A){case"play":this.AE8.sendEvent("PLAY",true);break;case"pause":this.AE8.sendEvent("PLAY",false);break;case"togglePlay":this.AE8.sendEvent("PLAY");break;case"stop":this.AE8.sendEvent("STOP");break;case"previous":this.dispatchEvent({name:"selectOffset",target:this,playlistId:this.__currentPlaylist,offset:-1});
break;case"next":this.dispatchEvent({name:"selectOffset",target:this,playlistId:this.__currentPlaylist,offset:1});break;case"open":break;case"close":this.AE8.sendEvent("STOP");break;default:Vusion.log("MethodCall: unsupported action: "+A);break}},AE8:null,AQ8:false,AG8:"Player not ready yet",AH8:"Attempt to set a non read/write property",play:function(){return this.methodCall("play")},pause:function(){return this.methodCall("pause")},togglePlay:function(){return this.methodCall("togglePlay")},stop:function(){return this.methodCall("stop")},previous:function(){return this.methodCall("previous")},next:function(){return this.methodCall("next")},open:function(){return this.methodCall("open")},close:function(){return this.methodCall("stop")},AW8:function(A){A.target=this;if(typeof A[A.name]=="string"){A[A.name]=Vusion.convert(A.name,A[A.name],this.__flvplayer_rwPropertyTypes)}switch(A.name){case"position":if(this.duration===0){this.duration=A.duration;this.dispatchEvent.apply(this,[{name:"duration",target:this,duration:this.duration}])}break;case"state":A.state=Vusion.flvPlayerCbs.AS8[A.state];break;default:break}this.dispatchEvent(A)}});function playerReady(A){document.getElementById(A.id).flvPlayer.AQ8=true}Vusion.flvPlayerCbs={AS8:{BUFFERING:"buffering",PLAYING:"playing",PAUSED:"paused",COMPLETED:"ended",IDLE:"ready",STOPPED:"stopped"},BC8:function(){var A=Array.prototype.slice.call(arguments);var B=document.getElementById(A[0]).flvPlayer;setTimeout(function(){B.AW8(A[1])},1)},mute:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"muted",muted:A.state})},stop:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"state",state:"STOPPED"})},volume:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"volume",volume:A.percentage})},error:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"error",errno:0,message:A.message})},state:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"state",state:A.newstate})},time:function(A){Vusion.flvPlayerCbs.BC8(A.id,{name:"position",position:A.position,duration:A.duration})}};Vusion.AdCompanion=function(B){var C="A9"+(Vusion.uniqueId++);Vusion.AdCompanion.superclass.constructor.call(this);var A={};Vusion.applyProperties(A,B,{componentType:"companion"},this.__adcompanion_properties,this.__adcompanion_propertyTypes);Vusion.apply(this,A,{id:C});this.addEvents(Vusion.AdCompanion.prototype.__getEventList());Vusion.components.add(this.id,this);this.on("adclick",function(D){if(D.marker.clickUrl){window.open(D.marker.clickUrl)}},this);this.on({adend:this.AH9,adfocus:function(D){this.AI9=D.focused;if(D.focused&&this.unMuteOnFocus&&this.CR9){this.CR9.setProperty("muted",false);this.I9=true}else{if(this.I9===true){this.CR9.setProperty("muted",true);this.I9=false}}},scope:this});this.applyTo.style.overflow="auto";if(this.marker){this.setProperty("marker",this.marker)}};Vusion.extend(Vusion.AdCompanion,Vusion.Observable,{applyTo:null,id:"",adPositionTick:0.5,marker:null,durationTimeOut:-1,muted:true,unMuteOnFocus:true,volume:100,__adcompanion_properties:{applyto:"applyTo",url:"url",marker:"marker",adpositiontick:"adPositionTick",durationtimeout:"durationTimeOut",muted:"muted",unmuteonfocus:"unMuteOnFocus",volume:"volume",fullscreen:"fullScreen",detached:"detached"},__adcompanion_propertyTypes:{applyTo:"elt",url:"str",marker:"obj",adPositionTick:"float",durationTimeOut:"float",muted:"bool",unMuteOnFocus:"bool",volume:"int",fullScreen:"bool",detached:"bool"},CR9:null,BP9:"",__currentPlayer:null,AR9:false,DF9:0,DG9:0,DK9:null,CK9:null,markerQueue:[],destroy:function(){if(this.AR9){this.dispatchEvent({name:"adend",target:this,marker:this.marker,adUnits:this.marker.adUnits,position:this.DF9,duration:this.DG9},false)}if(this.CR9){this.CR9.destroy()}this.purgeListeners();Vusion.components.remove(this.id,false)},__getEventList:function(){return{adstart:true,adposition:true,adend:true,adfocus:true,adclick:true}},CG9:function(){var A=this;this.applyTo.onclick=function(){A.dispatchEvent({name:"adclick",target:A,marker:A.marker,adUnits:A.marker.adUnits})};this.applyTo.onmouseover=function(){A.dispatchEvent({name:"adfocus",target:A,focused:true})};this.applyTo.onmouseout=function(){A.dispatchEvent({name:"adfocus",target:A,focused:false})};this.AR9=true;this.DF9=0},AH9:function(){if(this.AI9===true){this.dispatchEvent({name:"adfocus",target:this,focused:false})}this.applyTo.onclick="";this.applyTo.onmouseover="";this.applyTo.onmouseout="";this.AR9=false},AN9:function(B){if(B){Vusion.applyProperties(B,B,{offset:0,anchor:"start"},{offset:"offset",repeat:"repeat",repeatcount:"repeatCount",duration:"duration",skippable:"skippable"},{offset:"float",repeat:"float",repeatCount:"int",duration:"float",skippable:"bool"});if(Vusion.isArray(B.tracking)){var C=B.tracking;for(var A=0;A<C.length;A++){if(typeof C[A].percent=="string"){C[A].percent=parseFloat(C[A].percent)}}}}},setProperty:function(C,E,B){if(typeof E=="string"){E=Vusion.convert(C,E,this.__adcompanion_propertyTypes)}if(C=="marker"){if(this.AR9||(B!==true&&this.markerQueue.length>0)){this.markerQueue[this.markerQueue.length]=E;this.on("adEnd",this.BC9,this);this.skipAd();return }this.AN9(E)}var A=this.__adcompanion_properties[C];if(A===undefined){Vusion.log(C+" property ignored because not listed as rw property","error");return false}this[A]=E;if(C=="marker"){this.BF9()}else{if(this.CR9&&(C=="volume"||C=="muted"||C=="fullscreen"||C=="detached")){this.CR9.setProperty(C,E)}}var D={name:C,target:this};D[A]=E;this.dispatchEvent(D)},getProperty:function(A){return this[A]},skipAd:function(){if(this.AR9){if(!this.marker.skippable&&this.DG9>0){Vusion.log("Attempt to skip a non-skippable ad","error");return }if(this.CK9){clearTimeout(this.CK9);this.CK9=null}this.DH9();if(this.CR9){this.CR9.pause()}this.dispatchEvent({name:"adend",target:this,marker:this.marker,adUnits:this.marker.adUnits,position:this.DF9,duration:this.DG9})}return true},BC9:function(){if(this.markerQueue.length<=1){this.un("adEnd",this.BC9,this)}var A=this;var B=this.markerQueue.shift();setTimeout(function(){A.setProperty("marker",B,true)},1)},BF9:function(){if(!this.marker){Vusion.log("Attempt to play an ad with no marker set","error");return }var E=this.marker;var A=this.marker.adUnits;var I=null;var C=E.url;var J=E.mimeType;if(J=="adunit"){if(A&&E.adunitName&&A[E.adunitName]){var H=A[E.adunitName];C=H.url;J=H.mimeType}else{I="Attempted to play an adunit ad without a valid adunit"}}if(I){}else{if(!J){I="Attempted to play an instream ad without a valid mimeType"}else{if(!C&&J!="snippet"){I="Attempted to play an instream ad without a valid url"}else{var K=this;this.DG9=(E.duration>0)?E.duration:this.durationTimeOut;var F=this.DG9;if(this.CR9){this.CR9.destroy();this.CR9=null}switch(J){case"wmv":this.dispatchEvent({name:"adStart",target:this,marker:E,adUnits:A,indefinite:false});this.dispatchEvent({name:"adError",target:K,marker:E,adUnits:A,errno:0,message:"wmv not implemented yet",afterStart:true});this.dispatchEvent({name:"adEnd",target:K,marker:E,adUnits:A,position:0,duration:F});break;case"vusion":case"flash":this.dispatchEvent({name:"adStart",target:this,marker:E,adUnits:A,indefinite:false});this.CG9();this.BP9=J;var D=(J=="flash")?Vusion.FlvPlayer:((J=="wmv")?Vusion.WmvPlayer:Vusion.Player);this.CR9=new D({applyTo:this.applyTo,autoStart:true,url:C,positionTick:this.adPositionTick,muted:this.muted,fullScreen:this.fullScreen,detached:this.detached,volume:this.volume});this.CR9.on({state:function(L){if(L.state=="ended"){K.dispatchEvent({name:"adend",target:K,marker:E,adUnits:A,position:F,duration:F})}},duration:function(L){if(!(E.duration>0)){K.DG9=F=L.duration}},position:function(L){var M={name:"adend",target:K,marker:E,adUnits:A,position:F,duration:F};if(F>=0&&L.position>=F){L.target.pause()}else{M.name="adPosition";M.position=L.position}K.dispatchEvent(M);K.DF9=M.position},error:function(L){K.dispatchEvent({name:"adError",target:K,marker:E,adUnits:A,errno:L.errno,message:L.message,afterStart:true});K.dispatchEvent({name:"adEnd",target:K,marker:E,adUnits:A,position:K.DF9,duration:F})
}});break;case"html":case"snippet":if(J=="snippet"&&!E.snippet){I="Attempted to play a snippet ad without a code snippet"}else{this.dispatchEvent({name:"adStart",target:this,marker:E,adUnits:A,indefinite:(F==-1)});this.CG9();if(J=="html"){var G=[];if(E.keywords){G[G.length]="keywords="+E.keywords}if(E.vkeywords){G[G.length]="vkeywords="+E.vkeywords}if(G.length>0){C+="?"+G.join("&")}}var B=(J=="snippet")?E.snippet:"<iframe src='"+C+"' width='100%' height='100%' frameborder='no'></iframe>";this.applyTo.innerHTML=B;if(F>=0){this.CS9();this.CK9=setTimeout(function(){K.CK9=null;K.DH9();K.dispatchEvent({name:"adend",target:K,marker:E,adUnits:A,position:F,duration:F})},F*1000)}}break;default:I="Attempted to play an unsupported ad type: "+J;break}}}}if(I){this.dispatchEvent({name:"adError",target:this,marker:E,adUnits:A,errno:0,message:I,afterStart:false})}},resize:function(){if(this.CR9&&this.CR9.resize){this.CR9.resize()}},CS9:function(){var A=this;if(this.adPositionTick>0){this.DA9=(new Date()).getTime()/1000;this.DK9=setTimeout(function(){A.DE9()},this.adPositionTick*1000)}},DE9:function(){this.DF9=(new Date()).getTime()/1000-this.DA9;var A=this;this.DK9=setTimeout(function(){A.DE9()},this.adPositionTick*1000);this.dispatchEvent({name:"adPosition",target:this,marker:this.marker,adUnits:this.marker.adUnits,position:this.DF9,duration:this.DG9})},DH9:function(){if(this.DK9){clearTimeout(this.DK9);this.DK9=null}}});Vusion.componentCtrs.adcompanion=Vusion.AdCompanion;Vusion.AdPlayer=function(A){var C="A10"+(Vusion.uniqueId++);this.FY10={};Vusion.applyProperties(this.FY10,A,{componentType:"player"},this.__adplayer_properties,this.__adplayer_propertyTypes);Vusion.apply(this,this.FY10,{id:C});this.FY10.hiddenFromList=true;if(this.startClass||this.startFrame){this.FY10.autoStart=true}Vusion.AdPlayer.superclass.constructor.call(this);this.addEvents(Vusion.AdPlayer.prototype.__getEventList());this.on({state:this.AV10,position:function(D){this.CD10(D.position)},url:function(D){this.CJ10=-1},scope:this});var B=this;setTimeout(function(){B.AB10()},1);Vusion.components.add(this.id,this)};Vusion.extend(Vusion.AdPlayer,Vusion.Observable,{applyTo:null,id:"",adPositionTick:0.5,autoStart:true,url:null,visible:true,startClass:null,startFrame:null,endClass:null,endFrame:null,markers:null,policy:null,remoteMarkerUrl:Vusion.urls.DYNAMIC_MARKER,GD10:null,AM10:null,FZ10:"A player exists once a url is set.",GC10:null,FA10:null,FO10:false,CJ10:-1,__adplayer_properties:{applyto:"applyTo",url:"url",autostart:"autoStart",startclass:"startClass",startframe:"startFrame",endclass:"endClass",endframe:"endFrame",markers:"markers",policy:"policy",adpositiontick:"adPositionTick",visible:"visible",remotemarkerurl:"remoteMarkerUrl"},__adplayer_propertyTypes:{applyTo:"elt",url:"str",autoStart:"bool",startClass:"str",startFrame:"str",endClass:"str",endFrame:"str",markers:"obj",policy:"obj",adPositionTick:"float",visible:"bool",remoteMarkerUrl:"str"},destroy:function(){this.AI10();this.purgeListeners();Vusion.components.remove(this.id,false)},__getEventList:function(){var A={};Vusion.apply(A,Vusion.Player.prototype.__getEventList(),{markers:true,beforeadmarker:true,chapter:true,code:true,adstart:true,adposition:true,adend:true,adfocus:true,beforestartview:true,beforevideoview:true,beforeendview:true,beforeinstreamadview:true,afterstartview:true,aftervideoview:true,afterendview:true,afterinstreamadview:true,beforeremotemarker:true,beforeremotepolicy:true});Vusion.apply(A,Vusion.Install.prototype.__getEventList());if(Vusion.InstallFlash){Vusion.apply(A,Vusion.InstallFlash.prototype.__getEventList())}return A},AI10:function(){if(this.GD10){this.GD10.destroy();this.GD10=null}if(this.FA10){this.FA10.destroy();this.FA10=null}},AB10:function(){if(this.markers){this.setProperty("markers",this.markers)}else{if(this.policy){this.setProperty("policy",this.policy)}}if((this.startClass||this.startFrame)&&(!this.autoStart||(!this.url&&!this.playlist&&!this.rssFile&&!this.jsonFile))){this.show("start")}else{if(this.url){this.FX10(this.url)}}},FX10:function(B){var C=this.BA10(B);this.show("video");this.stop();if(this.GD10&&this.AM10==C){this.GD10.setProperty("url",B)}else{this.AI10();var A;switch(C){case"vusion":A=Vusion.Player;break;case"flash":A=Vusion.FlvPlayer;break;default:alert("Cannot create player for the following player type: "+C);return }this.startDiv=null;this.instreamDiv=null;this.endDiv=null;this.FY10.url=B;this.GD10=new A(this.FY10);this.AM10=C;this.relayEvents(this.GD10);this.on("duration",this.BN10,this)}},BN10:function(A){this.CJ10=(this.policy&&this.policy.markers&&this.policy.markers.length>0)?0:-1;this.BZ10(A.duration);this.dispatchEvent({name:"markers",target:this,markers:this.EY10})},AT10:function(){this.CJ10=(this.policy&&this.policy.markers&&this.policy.markers.length>0)?0:-1},AV10:function(A){if(A.state=="opened"){this.CD10(this.GD10.getProperty("position"));if(this.GC10!="video"){this.GD10.pause()}}else{if(A.state=="ended"&&A.done!==false){this.show("end")}}},BA10:function(A){var B;if(A.indexOf("vusion://")===0||A.indexOf("jittr://")===0){B="vusion"}else{B=A.lastIndexOf(".");B=(B>0)?A.substring(B+1):"vusion";if(B=="flv"||B=="swf"||B=="f4v"||B=="mp4"){B="flash"}}return B},BI10:function(D){for(var B=0;B<D.length;B++){Vusion.applyProperties(D[B],D[B],{offset:0,anchor:"start"},{offset:"offset",repeat:"repeat",repeatcount:"repeatCount",duration:"duration",skippable:"skippable"},{offset:"float",repeat:"float",repeatCount:"int",duration:"float",skippable:"bool"});if(D[B].tracking){var C=D[B].tracking;for(var A=0;A<C.length;A++){if(typeof C[A].percent=="string"){C[A].percent=parseFloat(C[A].percent)}}}}},setProperty:function(B,D){B=B.toLowerCase();if(this.GC10!="video"&&(B=="fullscreen"||B=="detached"||B=="volume"||B=="muted")){if(this.FA10){if(this.FO10&&(B=="fullscreen"||B=="detached")){this.FA10.setProperty(B,D)}else{if(B=="volume"||B=="muted"){this.FA10.setProperty(B,D)}}}else{Vusion.log("Attempt to set "+B+" when video is not playing")}return false}if(typeof D=="string"){D=Vusion.convert(B,D,this.__adplayer_propertyTypes)}if(B=="markers"&&D){if(D.markers){B="policy"}else{D=Vusion.clone(D);this.BI10(D);this.policy={markers:D}}}if(B=="policy"&&D&&D.markers){D=Vusion.clone(D);this.BI10(D.markers)}var A=this.__adplayer_properties[B];if(A!==undefined){this[A]=D}if(B=="url"){this.FY10[B]=D;this.FX10(D)}else{if(B=="visible"){this.applyTo.style.visibility=D?"inherit":"hidden"}else{if(B=="markers"){var E=this.GD10?this.GD10.getProperty("duration"):null;if(E){this.BN10(this,E)}}else{if(A){var C={name:B,target:this};C[A]=D;this.dispatchEvent(C)}else{if(B!="autostart"){this.FY10[B]=D}if(!this.GD10){Vusion.log("Setting '"+B+"' property: "+this.FZ10);return false}if(B=="position"){this.CD10(D)}this.GD10.setProperty(B,D)}}}}},getProperty:function(B){B=B.toLowerCase();var A=this.__adplayer_properties[B];if(A!==undefined){return this[A]}if(this.GD10&&this.GD10.getPlugin()){return this.GD10.getProperty(B)}A=Vusion.Player.prototype.__player_rwProperties[B];if(A!==undefined){return this.FY10[B]}return undefined},skipAd:function(){return(this.FA10)?this.FA10.skipAd():true},BZ10:function(F){var E=(this.policy)?this.policy.markers:null;var B;if(E&&E.length>0){var K=false;var I=E.length;var C=(I>0)?E[0].offset:0;for(var G=0;G<I;G++){B=E[G];if(B.anchor=="end"||B.repeat||B.offset<C){K=true}if(!B.target){B.target="instream"}B.resolvedTime=B.offset;C=B.offset}if(K){var H=Vusion.clone(E);for(G=0;G<I;G++){B=E[G];if(B.anchor=="end"){H[G].resolvedTime=F+B.offset;if(B.offset>=0){H[G].resolvedTime-=((this.FY10.positionTick)?this.FY10.positionTick:0.5)}}if(B.repeat&&B.repeat>0&&B.repeatCount>1){var J=B.repeat;C=(B.anchor=="end")?H[G].resolvedTime:B.offset;for(var D=0;C+B.repeat>=0&&C+B.repeat<=F;D++){var A=Vusion.clone(B);C+=B.repeat;A.resolvedTime=C;H.push(A);if(B.repeatCount>0&&B.repeatCount<=D+1){break}}}}E=H}E.sort(function(M,L){return M.resolvedTime-L.resolvedTime})}this.EY10=E},CD10:function(D){if(this.policy&&this.EY10&&this.CJ10>=0){var E=this.EY10;
var C=E.length;for(var A=this.CJ10;A<C&&E[A].resolvedTime<=D;A++){var B=E[A];switch(B.type){case"ad":this.CK10(A,B,this.policy.adunits);break;case"chapter":this.dispatchEvent({name:"chapter",target:this,marker:B});break;case"code":this.dispatchEvent({name:"code",target:this,marker:B});break;default:Vusion.log("Marker of unknown type: "+B.type+" at "+B.resolvedTime);break}if(B.type=="ad"&&B.skippable===false){A++;break}}this.CJ10=(A>=C)?-1:A}},CK10:function(B,E,H){var F=false;var C=this.getProperty("details");if(C&&C.keywords){E.vkeywords=C.keywords}if(E.mimeType=="adunit"&&H[E.adunitName]){var D=H[E.adunitName];if(D.mimeType=="dynamic"){var G={key:this.id+"-"+B,vendor:D.vendor,target:(E.target)?E.target:"instream",width:this.applyTo.clientWidth,height:this.applyTo.clientHeight};if(E.keywords){G.keywords=E.keywords}if(E.vkeywords){G.vkeywords=E.vkeywords}if(this.GD10&&this.GD10.details&&this.GD10.details.keywords){G.vkeywords=this.GD10.details.keywords}if(D.url){G.url=D.url}if(D.scriptUrl){G.scriptUrl=D.scriptUrl}if(this.dispatchEvent({name:"beforeremotemarker",target:this,marker:E,adUnits:H,params:G},false)!==false){var A=G.scriptUrl?G.scriptUrl:this.remoteMarkerUrl;delete G.scriptUrl;Vusion.loadScript({url:A,params:G,handler:this.CR10,scope:this,userData:E})}F=true}}if(!F){this.CU10(E,H)}},CR10:function(D,G,E){var A=Vusion.jsonMarkers[G.key];if(A&&A.success){var F=A.markers;var B=A.adUnits?A.adUnits:this.policy.adunits;if(Vusion.isArray(F)){for(var H=0;H<F.length;H++){var I=[];for(var C in E){I[I.length]=C+": "+E[C]}Vusion.applyIf(F[H],E);F[H].parentMarker=E;this.CU10(F[H],B)}}else{Vusion.applyIf(F,E);F.parentMarker=E;this.CU10(F,B)}delete Vusion.jsonMarkers[G.key]}else{Vusion.log("A dynamic marker could not be retrieved","error")}},CU10:function(B,E){if(this.dispatchEvent({name:"beforeadmarker",target:this,marker:B,skippable:B.skippable,duration:B.duration},false)!==false){Vusion.log("Playing ad for "+B.duration+"s ("+B.skippable+") at time "+B.resolvedTime+"s");if(B.target!="instream"){if(!B.target){Vusion.log("The companion ad does not have any target defined","error");return }var D=B.target;if(E){B.adUnits=E}if(this.GD10&&this.GD10.details&&this.GD10.details.keywords){B.vkeywords=this.GD10.details.keywords}var C=Vusion.components.get(B.target);if(!C){var A=document.getElementById(D);if(!A){Vusion.log("The companion ad target does not correspond to any current are on screen: "+B.target,"error");return }C=new Vusion.AdCompanion({applyTo:A,id:D,marker:B});C.on({adEnd:function(F){this.dispatchEvent({name:"afteradmarker",target:this,marker:F.marker,markers:this.EY10,index:this.EZ10(F.marker.parentMarker?F.marker.parentMarker:F.marker)})},adFocus:this.DG10,scope:this});C.__currentPlayer=this}else{C.__currentPlayer=this;C.setProperty("marker",B)}}else{if(this.FA10){if(E){B.adUnits=E}this.FA10.__currentPlayer=this;this.FA10.setProperty("marker",B)}else{this.GD10.pause();this.show("instreamAd",B,E)}}}},DG10:function(A){var B=A.target;if(B==this.FA10){return }if(A.focused){if(this.getProperty("state")!="paused"||this.FA10){B.setProperty("volume",this.getProperty("volume"));if(this.FA10){this.FA10.setProperty("muted",true)}else{this.pause()}this.FQ10=true}}else{if(this.FQ10===true){if(this.FA10){this.FA10.setProperty("muted",false)}else{this.play()}this.FQ10=false}}},show:function(H,D,A){if((H=="end"&&!this.endClass&&!this.endFrame)||(H=="start"&&!this.startClass&&!this.startFrame)||(H=="instreamAd"&&!D)||this.GC10==H){return }this.applyTo.style.visibility=(this.visible)?"inherit":"hidden";var J=this.GC10;this.GC10=H;if(this.dispatchEvent({name:"before"+H+"view",target:this,marker:D},false)!==false){if(J&&J!="video"&&this[J+"Div"]){var C=this[J+"Div"];C.parentNode.removeChild(C);this[J+"Div"]=null}var I=(this.GD10)?this.GD10.getPlugin():null;if(I){var E=(H=="video")?"100%":"0px";I.style.height=E;I.style.width=E}if(this.FA10){this.FA10.destroy();this.FA10=null}if(H=="start"||H=="end"||H=="instreamAd"){I=document.createElement("div");I.style.width="100%";I.style.height=this.applyTo.clientHeight+"px";this.applyTo.appendChild(I);this[H+"Div"]=I;if(H=="start"||H=="end"){var B=(this[H+"Class"])?this[H+"Class"]:null;var F=(this[H+"Frame"])?this[H+"Frame"]:null;if(B){I.className=B}else{if(document.getElementById(F)){I.innerHTML=document.getElementById(F).value}else{I.innerHTML="<iframe id='Vusion_"+H+"startFrame' src='"+F+"' width='100%' height='100%' frameborder='no'></iframe>"}}}else{if(A){D.adUnits=A}if(!this.FA10){this.FA10=new Vusion.AdCompanion({applyTo:I,marker:D,durationTimeOut:10,muted:this.getProperty("muted"),unMuteOnFocus:false,volume:this.getProperty("volume")});this.relayEvents(this.FA10);this.FA10.__currentPlayer=this}else{var G=this.FA10;this.FA10.__currentPlayer=this;G.setProperty("marker",D);G.setProperty("muted",this.getProperty("muted"));G.setProperty("volume",this.getProperty("volume"))}this.FA10.on({adStart:this.EI10,adEnd:this.EX10,adError:function(K){if(!K.afterStart){this.show("video");this.GD10.play()}},scope:this})}}this.dispatchEvent({name:"after"+H+"view",target:this,container:I})}},EI10:function(A){this.FJ10=false;this.FM10=false;if(this.GD10){this.FJ10=this.GD10.getProperty("fullscreen");this.GD10.setProperty("fullscreen",false);this.FM10=this.GD10.getProperty("detached");this.GD10.setProperty("detached",false)}if(A.marker.mimeType=="vusion"||A.marker.mimeType=="wmv"){this.FO10=true;A.target.setProperty("fullscreen",this.FJ10);A.target.setProperty("detached",this.FM10)}},EZ10:function(B){var C=this.EY10;for(var A=0;A<C.length;A++){if(C[A]==B){return A}}return -1},EX10:function(B){this.dispatchEvent({name:"afteradmarker",target:this,marker:B.marker,adUnits:B.adUnits,markers:this.EY10,index:this.EZ10(B.marker.parentMarker?B.marker.parentMarker:B.marker)});if(this.FA10.markerQueue.length===0){var A=this;setTimeout(function(){A.show("video");if(A.GD10){A.setProperty("fullscreen",A.FJ10);A.setProperty("detached",A.FM10);A.FO10=false}if(!A.FQ10){A.GD10.play()}},1)}},resize:function(){if(this.GD10){this.GD10.resize()}},methodCall:function(A){if(!this.GD10){if(A=="play"&&this.FY10.url){this.FX10(this.FY10.url);return }Vusion.log(A+": "+this.FZ10);return false}if(this.GC10=="start"||this.GC10=="end"){this.show("video")}if(this.GC10=="video"){this.GD10[A]()}},play:function(){return this.methodCall("play")},pause:function(){return this.methodCall("pause")},togglePlay:function(){return this.methodCall("togglePlay")},stop:function(){return this.methodCall("stop")},open:function(){return this.methodCall("open")},close:function(){return this.methodCall("close")},previous:function(){return this.methodCall("previous")},next:function(){return this.methodCall("next")}});Vusion.componentCtrs.adplayer=Vusion.AdPlayer;Vusion.Widget.util.Slider=function(B){Vusion.apply(this,B);if(typeof this.applyTo=="string"){this.applyTo=document.getElementById(this.applyTo)}Vusion.Player.superclass.constructor.call(this);var A='<div class="'+this.sliderClass+'" style="font-size: 1px; overflow: hidden;';if(this.sliderColor){A+="background-color:"+this.sliderColor+";"}if(this.height){A+="height:"+this.height+"px;"}A+='"><div class="'+this.progressClass+'" style="height:100%;font-size: 1px;';if(this.progressColor){A+="background-color:"+this.progressColor+";"}A+='"></div><div></div>';this.applyTo.innerHTML=A;var C=this.applyTo.getElementsByTagName("div");this.AS11=C[0];this.AQ11=C[1];this.AW11=C[2];this.addEvents("start","slide","end","over","out");this.setDisabled(this.isDisabled);this.setWidth(this.width)};Vusion.extend(Vusion.Widget.util.Slider,Vusion.Observable,{min:0,max:100,width:100,position:0,isDisabled:false,AH11:false,O11:false,isDragging:function(){return this.AH11},isMouseOver:function(){return this.O11},setDisabled:function(C){var B=this.AS11;if(C===true){B.onmouseover="";B.onmouseout="";B.onmousedown=""}else{if(C===false){var A=this;B.onmouseover=function(){A.O11=true;A.dispatchEvent({name:"over",target:this,position:A.position})};B.onmouseout=function(){A.O11=false;
A.dispatchEvent({name:"out",target:this,position:A.position})};B.onmousedown=function(F){A.BA11=A.BB11(A.AS11,"offsetLeft");var E=function(G){A.AX11(G)};var D=function(){A.AH11=false;Vusion.removeEventHandler(document,"mousemove",E);Vusion.removeEventHandler(document,"mouseup",D);A.dispatchEvent({name:"end",target:A,position:A.position})};if(!A.AH11){A.AH11=true;Vusion.addEventHandler(document,"mousemove",E);Vusion.addEventHandler(document,"mouseup",D);A.dispatchEvent({name:"start",target:A,position:A.position})}A.AX11(F)}}}},setWidth:function(A){this.width=A;this.AS11.style.width=A+"px";this.setPosition(this.position);this.AU11()},setRange:function(B,A){this.min=B;this.max=A;this.setPosition(this.position);this.AU11()},setPosition:function(A){if(A<this.min){A=this.min}else{if(A>this.max){A=this.max}}this.position=A;A=(A-this.min)/(this.max-this.min);this.AQ11.style.width=Math.ceil(A*this.width)+"px"},getPosition:function(){return this.position},addMarkers:function(G,I,B,J){this.clearMarkers();if(G){var C=this.width/this.max;var D=this.AS11.style.height;var M=-this.AS11.clientHeight;var K=1;for(var H=J;H<G.length;H++){var E=G[H];if(E.type==I&&(!E.target||E.target=="instream")){var A=document.createElement("div");var F=(E.resolvedTime<this.min)?this.min:((E.resolvedTime>this.max)?this.max:E.resolvedTime);A.className=B;A.style.top=(K*M)+"px";A.style.height=D;A.offset=F;this.AW11.appendChild(A);var L=((F*C)-A.offsetWidth/2);A.style.left=L+"px";K++}}}},AU11:function(){var C=this.width/this.max;var B=this.AW11.getElementsByTagName("div");for(var A=0;A<B.length;A++){var E=B[A];var D=((E.offset*C)-E.offsetWidth/2);E.style.left=D+"px"}},clearMarkers:function(){this.AW11.innerHTML=""},AX11:function(B){B=B||window.event;var A=this.position;this.setPosition(this.AZ11(B)*this.max/this.width);if(A!=this.position){this.dispatchEvent({name:"slide",target:this,position:this.position})}},AZ11:function(B){var A=0;if(B.pageX){A=B.pageX}else{if(B.clientX){A=B.clientX+document.body.scrollLeft+document.documentElement.scrollLeft}}return A-this.BA11},BB11:function(B,A){var C=0;while(B){C+=B[A];B=B.offsetParent}return C}});Vusion.Widget.util.SignalBar=function(A){Vusion.apply(this,A);if(typeof this.applyTo=="string"){this.applyTo=document.getElementById(this.applyTo)}this.applyTo.style.overflow="hidden";this.applyTo.style.padding=this.containerPadding+"px";var B="";if(this.justify=="center"){B="margin:0 auto;"}else{if(this.justify=="right"){B="float:right;"}}this.applyTo.innerHTML='<div style="overflow:hidden; font-size: 1px; height:100%;'+B+'"></div>';this.Q12=this.applyTo.getElementsByTagName("div")[0];if(this.levels){this.K12()}};Vusion.Widget.util.SignalBar.prototype={containerPadding:2,fillColors:["red","yellow","green"],defaultFill:"#CCC",barWidth:4,barSpacing:1,levels:[],P12:null,Q12:null,setLevels:function(A){this.levels=A;this.K12()},setLevel:function(F){if(!this.P12||!this.levels.length){return }var A=this.levels;for(var C=0;C<A.length;C++){if(F==A[C]){F=C;break}}var B=this.fillColors.length;var E=Math.floor(F*B/A.length);if(E>=B){E=B-1}var D=this.fillColors[E];for(C=0;C<=F;C++){if(!this.P12[C]){break}this.P12[C].style.background=D}for(;C<A.length;C++){this.P12[C].style.background=this.defaultFill}},K12:function(){var B=this.levels.length;var G=((this.barWidth+this.barSpacing)*B)-this.barSpacing;if(G<0){G=0}this.Q12.style.width=G+"px";var A="";var D,F;var C=this.levels.length;for(var E=0;E<C;E++){F=Math.round(((this.Q12.clientHeight/B)*(E+1)));D=(this.Q12.clientHeight-F);A+='<div style="position: relative; float: left; height: '+F+"px; width: "+this.barWidth+"px; top: "+D+"px; background-color: "+this.defaultFill+";";if(E<(C-1)){A+=" margin-right: "+this.barSpacing+"px;"}A+='"></div>'}this.Q12.innerHTML=A;this.P12=this.Q12.getElementsByTagName("div")}};function Efx(A){for(prop in A){this[prop]=A[prop]}if(typeof this.el=="string"){this.el=document.getElementById(this.el)}}Efx.prototype={min:10,max:100,effect:"",speed:50,changeSize:15,value:100,timeoutHandle:null,onTransition:function(){},onComplete:function(){},tweenOut:function(){this.clear();this.value=this.max;this.F13(-this.changeSize)},tweenIn:function(){this.clear();this.value=this.min;this.F13(this.changeSize)},clear:function(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle)}},F13:function(D){var C=this.value+D;var B=false;if(C<this.min){C=this.min}else{if(C>this.max){C=this.max}}if(C!=this.value){this.value=C;this.onTransition(C);if(this.effect=="height"||this.effect=="width"){B=true;C+="px"}if(this.effect=="opacity"){B=true;this.el.style.filter="alpha(value="+C+")";C/=100}if(B){this.el.style[this.effect]=C}else{this.el[this.effect]=C}var A=this;this.timeoutHandle=setTimeout(function(){A.F13(D)},this.speed)}else{this.onComplete()}}};Vusion.Widget.util.CookieMgr=function(A){Vusion.apply(this,A)};Vusion.Widget.util.CookieMgr.prototype={setCookie:function(A,C,B){var D=new Date();D.setDate(D.getDate()+B);document.cookie=A+"="+escape(C)+((B==null)?"":";expires="+D.toGMTString())},getCookie:function(A){if(document.cookie.length>0){c_start=document.cookie.indexOf(A+"=");if(c_start!=-1){c_start=c_start+A.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""},deleteCookie:function(A){this.setCookie(A,"",-1)},incrementCookie:function(C,A,D,B){var E=parseInt(this.getCookie(C),10);if(!E||E>=A){E=1}else{E++}if(E>=A){if(typeof (B)=="function"){B()}}this.setCookie(C,E,D)}};Vusion.Widget.JSPlayer=function(D){var B={};Vusion.applyProperties(B,D,{},this.__jsplayer_properties,this.__jsplayer_propertyTypes);Vusion.apply(this,B);var E=this;this.ET15=function(F){E.GE15(Vusion.getEventTarget(F))};this.BM15="languageProperties-"+parseInt(Math.random()*10000);this.BO15="audioLanguages-"+parseInt(Math.random()*10000);this.BP15="subtitleLanguages-"+parseInt(Math.random()*10000);this.BN15=this.applyTo.clientWidth-130-20;this.BJ15();this.container=this.applyTo;this.resize();Vusion.apply(B,{applyTo:this.videoDiv,width:"100%",height:"100%"});Vusion.Widget.JSPlayer.superclass.constructor.call(this,B);this.on({state:this.EX15,position:function(F){if(!this.FS15.isDragging()&&!this.FW15.isDragging()&&!this.FW15.isMouseOver()){this.FS15.setPosition(F.position);this.GF15.state.innerHTML=this.GJ15(F.position)+"/"+this.FP15}},error:function(F){F.state="error";this.EX15(F)},duration:function(F){this.FS15.setRange(0,F.duration);this.FP15=this.GJ15(F.duration)},volume:function(F){this.FW15.setPosition(F.volume)},muted:function(F){Vusion.apply(this.GF15.mute,{title:F.muted?this.unmuteTooltipStr:this.muteTooltipStr,className:"v-controls-btn-mute"+(F.muted?"-selected":"")})},afterstartview:function(){this.setControlsDisabled(true)},afterendview:function(){this.setControlsDisabled(true)},afterinstreamview:function(){this.setControlsDisabled(true)},afteradmarker:function(F){this.FS15.addMarkers(F.markers,"ad",this.adMarkerClass,F.index+1)},markers:function(F){this.FS15.addMarkers(F.markers,"ad",this.adMarkerClass,0)},adStart:function(F){this.FY15=this.GF15.state.innerHTML},adPosition:function(F){this.GF15.state.innerHTML=Math.round(F.duration-F.position)+"s remaining"},adEnd:function(F){this.GF15.state.innerHTML=this.FY15},audioLanguages:function(F){this.AY15(F.target,F.audioLanguages,this.BO15,"Audiotrac")},subtitleLanguages:function(F){this.AY15(F.target,F.subtitleLanguages,this.BP15,"Subtitles ")},scope:this});if(this.showBitrate){this.on({bitrate:function(F){this.GF15.bitrate.title="Current bitrate: "+Math.abs(F.bitrate)+"kbps"},videoBitrate:function(F){this.bitrateGraph.setLevel(Math.abs(F.videoBitrate))},videoBitrates:function(F){this.GF15.bitrate.style.display=(F.videoBitrates.length<this.minBitrateCount&&this.minBitrateCount!=0)?"none":"block";this.bitrateGraph.setLevels(F.videoBitrates)},scope:this})}if(this.playlist){var C=parseInt(this.videoDiv.style.borderWidth,10)*2;this.videoDivScroll=new Efx({el:this.videoDiv,changeSize:C,speed:1,effect:"width",min:(this.container.clientWidth-C-this.playlistWidth),max:(this.controlDiv.clientWidth-(C*1.5)),onTransition:function(H){var F=(E.controlDiv.clientWidth-(C*1.5));
var G=(F-H);if(G<this.changeSize){G=0}E.playlistDiv.style.width=G+"px"}});if(Vusion.components.get(this.playlist)){this.CO15()}else{Vusion.components.on({componentAdded:this.CO15,scope:this})}this.GH15(this.playlistVisible)}if(this.surveyEnabled){var A=[Vusion.resourcePath+"/shadowbox/shadowbox.js",Vusion.resourcePath+"/shadowbox/skin/classic/skin.js"];Vusion.loadCSS(Vusion.resourcePath+"/shadowbox/skin/classic/skin.css");Vusion.loadScripts(A);if(this.surveyPromptInterval){this.pageLoadCookie=new Vusion.Widget.util.CookieMgr();this.FK15=this.pageLoadCookie.getCookie("vusionPageViews");if(!this.FK15){this.FK15=0}this.FK15++;this.pageLoadCookie.setCookie("vusionPageViews",this.FK15,365)}}this.setControlsDisabled(this.controlDisabled)};Vusion.extend(Vusion.Widget.JSPlayer,Vusion.AdPlayer,{borderColor:"#505050",borderThickness:4,sliderColor:"#EEEEEE",progressColor:"#888888",lockDimension:"width",timelineThickness:7,volumeThickness:5,backgroundImage:"controls-background-0.png",buttonTheme:"buttons.gif",controlDisabled:false,adMarkerClass:"v-controls-slider-ad-marker",showMarkers:true,showStop:true,showBitrate:true,minBitrateCount:3,bitrateFillColors:["red","yellow","green"],bitrateDefaultFill:"#EEE",logoClass:null,playlist:null,playlistWidth:100,playlistVisible:true,playlistCloseTime:3,surveyEnabled:false,surveyPromptInterval:0,surveyCustomerName:"",surveyUrl:"http://vms.vusion.com/loyalty/loyalty.php",surveyDimensions:"800_500",playTooltipStr:"Click to pause",pauseTooltipStr:"Click to play",muteTooltipStr:"Click to mute",unmuteTooltipStr:"Click to unmute",stopTooltipStr:"Click to stop",fullScreenTooltipStr:"Full screen",GF15:null,FP15:"00:00",GD15:null,__jsplayer_properties:{applyto:"applyTo",bordercolor:"borderColor",borderthickness:"borderThickness",slidercolor:"sliderColor",progresscolor:"progressColor",timelinethickness:"timelineThickness",volumethickness:"volumeThickness",backgroundimage:"backgroundImage",buttontheme:"buttonTheme",controldisabled:"controlDisabled",admarkerclass:"adMarkerClass",showmarkers:"showMarkers",showstop:"showStop",showbitrate:"showBitrate",bitratefillcolors:"bitrateFillColors",bitratedefaultfill:"bitrateDefaultFill",playeraspectratio:"playerAspectRatio",lockdimension:"lockDimension",minbitratecount:"minBitrateCount",logoclass:"logoClass",playlist:"playlist",playlistwidth:"playlistWidth",playlistvisible:"playlistVisible",playlistclosetime:"playlistCloseTime",surveyenabled:"surveyEnabled",surveypromptinterval:"surveyPromptInterval",surveycustomername:"surveyCustomerName",surveyurl:"surveyUrl",surveydimensions:"surveyDimensions"},__jsplayer_propertyTypes:{applyTo:"elt",borderColor:"str",borderThickness:"int",sliderColor:"str",progressColor:"str",timelineThickness:"int",volumeThickness:"int",backgroundImage:"str",buttonTheme:"str",controlDisabled:"bool",adMarkerClass:"str",showMarkers:"bool",showStop:"bool",showBitrate:"bool",bitrateFillColors:"obj",bitrateDefaultFill:"str",playerAspectRatio:"int",lockDimension:"str",minBitrateCount:"int",logoClass:"str",playlist:"str",playlistWidth:"int",playlistVisible:"bool",playlistCloseTime:"int",surveyenabled:"bool",surveypromptinterval:"int",surveycustomername:"str",surveyurl:"str",surveydimensions:"str "},BD15:function(E,B,D){var C=B.split("-")[0];var A=C.substr(0,C.length-1);E.setProperty(A,D)},AY15:function(D,E,B,G){GB15=this;var F=E.length;var H="";var I="";var A="";if(B.search(/audio/)==0){A="audioLanguage"}if(B.search(/subtitle/)==0){A="subtitleLanguage"}I=GB15.getProperty(A);if((E.length>1)&&(I=="auto")){var J=(navigator.language)?navigator.language:navigator.userLanguage;var K=J.toLowerCase().substr(0,2);for(var C=0;C<F;C++){var D=E[C];if(K==D.code){I=K;GB15.setProperty(A,I);break}}}if(E.length>1){H='<span style="padding:2px;padding-right:10px;">'+G+":</span>";H+='<select style="font-size:10px; " id="'+B+'Select" onchange="GB15.BD15(GB15, this.id, this.value);">';for(var C=0;C<F;C++){var D=E[C];if(I==D.code){H+='<option value="'+D.code+'" selected>'+D.name+"</option>"}else{H+='<option value="'+D.code+'">'+D.name+"</option>"}}H+="</select>"}if(E.length>1){GB15.GF15.languages.style.display="block"}el=document.getElementById(B);el.innerHTML=H},GG15:function(){el=document.getElementById(this.BM15);el.style.display=(el.style.display=="block")?"none":"block"},BJ15:function(){this.GF15={};if(this.backgroundImage.indexOf("/")==-1){this.backgroundImage=Vusion.resourcePath+"/images/"+this.backgroundImage}if(this.buttonTheme.indexOf("/")==-1){this.buttonTheme=Vusion.resourcePath+"/images/"+this.buttonTheme}var B='style="background-image:url('+this.buttonTheme+');"';var H='<div style="border: '+this.borderColor+" "+this.borderThickness+'px solid; background-color: black;"></div>';if(this.playlist){H+='<div style="background-color: #000; border-top: '+this.borderColor+" "+this.borderThickness+"px solid; border-bottom: "+this.borderColor+" "+this.borderThickness+"px solid; border-right: "+this.borderColor+" "+this.borderThickness+'px solid;"></div>'}H+='<div class="v-div-controls" style="height:'+(this.timelineThickness+31)+"px;background-image:url("+this.backgroundImage+');">';H+='<div class="v-controls-slider-timeline"></div>';if(this.logoClass){var G;if(this.logoClass.toLowerCase()=="vusion"){G="v-logo"}else{G=this.logoClass}H+='<div class="v-div-logo '+G+'"></div>'}if(this.showStop){H+='<div class="v-controls-btn-stop" '+B+' title="'+this.stopTooltipStr+'"></div>'}H+='<div class="v-controls-btn-play" '+B+' title="'+this.playTooltipStr+'"></div>';if(this.playlist){H+='<div class="v-controls-btn-playlist"></div>'}if(this.showBitrate){H+='<div class="v-controls-div-bitrate"></div>'}H+='<div class="v-controls-slider-volume"></div><div class="v-controls-btn-mute" '+B+' title="'+this.muteTooltipStr+'"></div>';H+='<div class="v-controls-btn-languages" style="background-image:url('+Vusion.resourcePath+'/images/loyalty.png); display:none;" title="Set Language"></div>';if(this.surveyEnabled){H+='<div class="v-controls-btn-survey" style="background-image:url('+Vusion.resourcePath+'/images/loyalty.png); display: none;" title="Survey"></div>'}H+='<label class="v-controls-state">00:00/00:00</label><div class="v-controls-btn-fullscreen" '+B+' title="'+this.fullScreenTooltipStr+'"></div>';H+="</div>";var E=this;H+='<div id="'+this.BM15+'" style="position:relative; left:'+this.BN15+'px; top:2px; z-index: 9999; font-size: 10px; border: solid grey 2px; margin:0px; padding:3px; width:140px; background-color:#fff; display:none;">';H+='<div id="'+this.BO15+'"></div><div id="'+this.BP15+'"></div>';H+='<button style="font-size:8px; padding:0px; margin:0px; position:relative; left:130px; width:12px;height:12px; background-color:white; border:1px solid gray;" onClick="GB15.GG15();" >X</button></div>';this.applyTo.innerHTML=H;var D=this.applyTo.childNodes;this.videoDiv=D[0];if(this.playlist){this.playlistDiv=D[1];this.controlDiv=D[2]}else{this.controlDiv=D[1]}if(this.playlist){this.videoDiv.style.cssFloat="left";this.videoDiv.style.styleFloat="left";this.playlistDiv.style.cssFloat="left";this.playlistDiv.style.styleFloat="left";this.playlistDiv.style.overflow="hidden";this.controlDiv.style.clear="left"}var F,A;D=this.controlDiv.childNodes;for(var C=0;C<D.length;C++){F=D[C];A=F.className;this.GF15[A.substring(A.lastIndexOf("-")+1)]=F}this.setControlsDisabled(false);this.FS15=new Vusion.Widget.util.Slider({applyTo:this.GF15.timeline,height:this.timelineThickness,isDisabled:true,sliderClass:"v-controls-slider-timeline-slider",sliderColor:this.sliderColor,progressClass:"v-controls-slider-timeline-progress",progressColor:this.progressColor});this.FS15.on({slide:function(I){this.GF15.state.innerHTML=this.GJ15(I.position)+"/"+this.FP15},end:function(I){this.setProperty("position",I.position)},scope:this});this.FW15=new Vusion.Widget.util.Slider({applyTo:this.GF15.volume,height:this.volumeThickness,width:40,sliderClass:"v-controls-slider-volume-slider",sliderColor:this.sliderColor,progressClass:"v-controls-slider-volume-progress",progressColor:this.progressColor});
this.FW15.on({start:function(I){this.FY15=this.GF15.state.innerHTML},slide:function(I){this.GF15.state.innerHTML="Vol: "+Math.round(I.position)+"%";this.setProperty("volume",I.position)},end:function(I){this.GF15.state.innerHTML=this.FY15},over:function(I){this.FY15=this.GF15.state.innerHTML;this.GF15.state.innerHTML="Vol: "+Math.round(I.position)+"%"},out:function(I){this.GF15.state.innerHTML=this.FY15},scope:this});if(this.showBitrate){if(this.minBitrateCount!=0){this.GF15.bitrate.style.display="none"}this.bitrateGraph=new Vusion.Widget.util.SignalBar({applyTo:this.GF15.bitrate,justify:"right",fillColors:this.bitrateFillColors,defaultFill:this.bitrateDefaultFill})}},CO15:function(B){if(this.playlist&&B.id==this.playlist){var A=Vusion.components.get(B.id);A.on({afterrender:this.DA15,scope:this});this.playlistApplyTo=A.applyTo;this.playlistDiv.appendChild(this.playlistApplyTo)}},DA15:function(C){var B=this.playlistDiv.offsetHeight-(this.playlistDiv.offsetHeight-this.playlistDiv.clientHeight);var A=this.playlistDiv.offsetWidth-(this.playlistDiv.offsetWidth-this.playlistDiv.clientWidth);this.playlistApplyTo.style.display="block";this.playlistApplyTo.style.height=B+"px";this.playlistApplyTo.style.width=A+"px";if(C){C.target.containerDiv.style.border="none";C.target.resize()}},GH15:function(C){var B=this;var A=parseInt(this.videoDiv.style.borderWidth,10)*2;this.videoDivScroll.value=(this.videoDiv.clientWidth-A);this.playlistDiv.style.height=(this.container.clientHeight-this.controlDiv.clientHeight-A)+"px";if(typeof (C)=="string"){if(C=="true"){C=true}else{if(C=="false"){C=false}}}if(C!=false){var C;if(this.playlistDiv.style.width&&this.playlistDiv.style.width!="0px"){C=false}else{C=true}}if(C){B.playlistDiv.style.display="block";B.playlistDiv.style.height=B.videoDiv.style.height;this.videoDivScroll.tweenOut();this.videoDivScroll.onComplete=function(){if(B.playlistApplyTo){B.DA15()}}}else{this.playlistDiv.style.height=B.videoDiv.style.height;if(B.playlistApplyTo){B.playlistApplyTo.style.display="none"}else{this.playlistDiv.style.display="none"}this.videoDivScroll.tweenIn();this.videoDivScroll.onComplete=function(){B.playlistDiv.style.display="none";B.videoDiv.style.width=(B.controlDiv.clientWidth-A)+"px"}}this.playlistVisible=C},GI15:function(){var B=this;var A=this.surveyDimensions.split("_");this.DS15=true;this.on({state:function(C){if(C.state=="playing"&&B.DS15){B.EA15=true;B.pause()}},scope:this});if(player.getProperty("state")=="playing"){this.EA15=true;this.pause()}else{this.EA15=false}Vusion.Widget.util.Shadowbox.init({skipSetup:true,onClose:function(){B.DS15=false;if(B.FK15>=B.surveyPromptInterval){B.pageLoadCookie.deleteCookie("vusionPageViews");B.FK15=0}if(B.EA15){B.play()}}});Vusion.Widget.util.Shadowbox.open({player:"iframe",title:"",content:this.surveyUrl+"?c="+this.surveyCustomerName+"&u="+this.url,width:A[0],height:A[1]})},setControlsDisabled:function(A){if(this.GF15.stop){this.GF15.stop.onclick=A?"":this.ET15}if(this.GF15.playlist){this.GF15.playlist.onclick=this.ET15}if(this.GF15.survey){this.GF15.survey.onclick=this.ET15}if(this.GF15.languages){this.GF15.languages.onclick=this.ET15}this.GF15.play.onclick=this.ET15;this.GF15.fullscreen.onclick=A?"":this.ET15;this.GF15.mute.onclick=this.ET15;if(this.FS15){this.FS15.setDisabled(A)}},resize:function(){if(this.playerAspectRatio){var A=this.videoDiv.offsetHeight-this.videoDiv.clientHeight;var B=this.controlDiv.offsetHeight+A;if(this.lockDimension=="width"){this.container.style.height=Math.round(((this.container.clientWidth-A)*this.playerAspectRatio)+B)+"px"}else{if(this.lockDimension=="height"){this.container.style.width=Math.round(((this.container.clientHeight-B)/this.playerAspectRatio)+A)+"px"}}}var A=this.videoDiv.offsetHeight-this.videoDiv.clientHeight;this.videoDiv.style.height=(this.container.clientHeight-this.controlDiv.clientHeight-A)+"px";this.FS15.setWidth(this.container.clientWidth-6);Vusion.Widget.JSPlayer.superclass.resize.call(this)},destroy:function(){Vusion.Widget.JSPlayer.superclass.destroy.call(this);this.container.innerHTML=""},EX15:function(C){if(this.GD15){clearTimeout(this.GD15);this.GD15=null}var B=this.GF15;var A=null;switch(C.state){case"buffering":case"opening":A="Loading...";break;case"stopped":A="";if(B.bitrate&&this.minBitrateCount!=0){B.bitrate.style.display="none"}Vusion.apply(B.play,{className:"v-controls-btn-play",title:this.pauseTooltipStr});break;case"paused":Vusion.apply(B.play,{className:"v-controls-btn-play",title:this.pauseTooltipStr});break;case"playing":Vusion.apply(B.play,{className:"v-controls-btn-pause",title:this.playTooltipStr});this.setControlsDisabled(false);if(this.playlist&&this.playlistVisible){var D=this;setTimeout(function(){D.GH15()},(this.playlistCloseTime*1000))}if(this.GF15.survey){this.GF15.survey.style.display="block"}A=this.GJ15(this.getProperty("position"))+"/"+this.FP15;break;case"ended":if(this.surveyEnabled){if(this.FK15&&this.FK15>=this.surveyPromptInterval){this.GI15()}}this.FS15.setPosition(this.FS15.max);A=this.FP15+"/"+this.FP15;break;case"error":A=C.message;break;default:break}if(A!==null){var D=this;var E=function(){if(D.FS15.isDragging()||D.FW15.isDragging()||D.FW15.isMouseOver()){D.FY15=A}else{D.GF15.state.innerHTML=A}D.GD15=null};if(C.state=="buffering"||C.state=="opening"){this.GD15=setTimeout(E,500)}else{E()}}},GE15:function(C){var B=this.GF15;for(var A in B){if(B[A]==C){switch(A){case"languages":this.GG15();break;case"play":if(C.className=="v-controls-btn-play"){this.play()}else{this.pause()}break;case"stop":this.stop();break;case"playlist":this.GH15();case"survey":this.GI15();case"mute":this.setProperty("muted",(C.className=="v-controls-btn-mute"));break;case"fullscreen":this.setProperty("fullScreen",true);break;default:break}break}}},GJ15:function(A){sec=A|0;min=(sec/60)|0;sec=(sec%60)|0;s="";if(min<10){s+="0"}s+=min+":";if(sec<10){s+="0"}s+=sec;return s}});Vusion.componentCtrs.jsplayer=Vusion.Widget.JSPlayer;Vusion.Reporting=function(){Vusion.components.on({componentadded:function(A){this.register(A.component)},componentremoved:function(A){this.unregister(A.component)},scope:this})};Vusion.extend(Vusion.Reporting,Vusion.Observable,{T16:null,B16:0,R16:200,register:function(A){var B=A.componentType;if(B=="companion"){A.on({adStart:this.AB16,adPosition:this.AG16,adEnd:this.AI16,adClick:this.AN16,scope:this})}},unregister:function(A){var B=A.componentType;if(B=="companion"){A.un({adStart:this.AB16,adPosition:this.AG16,adEnd:this.AI16,adClick:this.AN16,scope:this})}},AA16:function(B,E){E=E||{};if(!this.T16){this.T16=document.createElement("div");this.T16.style.width=this.T16.style.height="1px";document.body.appendChild(this.T16)}var D=(new Date()).getTime()/1000;if(this.lastReportTime+this.R16<D){this.T16.innerHTML=""}this.lastReportTime=D;var C=[];for(prop in E){C[C.length]=prop+"="+escape(E[prop])}var A=document.createElement("img");B+=(C.length>0)?"?"+C.join("&"):"";Vusion.log("Reporting "+B);A.src=B;this.T16.appendChild(A)},AK16:function(C,D,A,G,F){var B=(F>0)?Math.round(G*100/F):100;if(B>100){B=100}var E={dm:document.domain,st:Math.floor((new Date()).getTime()/1000),of:D.resolvedTime,pc:B>100?100:B,pt:F};if(C.__currentPlayer){if(C.__currentPlayer.__currentPlaylistId){E.pl=C.__currentPlayer.__currentPlaylistId}E.vi=C.__currentPlayer.getProperty("url")}if(D.adunitId!==undefined){E.au=D.adunitId}if(D.mimeType=="adunit"){var H=A[D.adunitName];if(H){E.at=H.mimeType;E.ai=H.url;if(H.keywords){E.kw=H.keywords}}}else{E.at=D.mimeType;E.ai=D.url}if(D.keywords){E.kw=D.keywords}if(!E.kw&&D.parentMarker){var J=D.parentMarker;if(J.keywords){E.kw=J.keywords}else{if(J.mimeType=="adunit"){var I=A[J.adunitName];if(I&&I.keywords){E.kw=I.keywords}}}}this.AA16("http://localhost:6267/a.php",E)},AL16:function(B,D,F,A){var E=D.tracking;if(E){if(Vusion.isArray(E)){for(var C=B.AE16+1;C<E.length&&A>=E[C].percent;C++){if(A>=E[C].percent){this.AA16(E[C].url);B.AE16=C}else{break}}}else{if(typeof E=="string"&&A===0){this.AA16(E)}}}},AB16:function(B){var A=B.target;
A.AJ16=B.indefinite;if(B.indefinite){this.AK16(A,B.marker,B.adUnits,0,0)}A.AE16=-1;this.AL16(A,B.marker,B.adUnits,0)},AG16:function(A){this.AL16(A.target,A.marker,A.adUnits,Math.round(A.position*100/A.duration))},AI16:function(B){var A=B.target;if(A.AJ16!==true){this.AK16(A,B.marker,B.adUnits,B.position,B.duration)}this.AL16(A,B.marker,B.adUnits,Math.round(B.position*100/B.duration));A.AM16=0},AN16:function(A,B,C){}});Vusion.reporting=new Vusion.Reporting();Vusion.FlashPlayer=function(B){var C="A17"+(Vusion.uniqueId++);Vusion.applyProperties(this,B,{id:C},this.__flashplayer_properties,this.__flashplayer_propertyTypes);this.AN17={width:"100%",height:"100%",hiddenFromList:true};Vusion.applyIf(this.AN17,B);Vusion.FlashPlayer.superclass.constructor.call(this);this.G17=new Vusion.InstallFlash(B);this.G17.on("flashinstallcomplete",this.Y17,this);var A=Vusion.FlashPlayer.prototype.__getEventList();this.addEvents(A);this.relayEvents(this.G17);Vusion.components.add(this.id,this)};Vusion.extend(Vusion.FlashPlayer,Vusion.Observable,{layout:"SimpleFlex",flashFile:null,flashVars:null,setProperty:function(A,B){if(!this.AW17){this.AN17[A]=B}else{this.AW17.setProperty(A,B)}},getProperty:function(A){if(!this.AW17){if(typeof this.AN17[A]===undefined){Vusion.log("Access attempt to Vusion player which is not created yet","error")}return this.AN17[A]}return this.AW17.getProperty(A)},methodCall:function(A){if(!this.AW17){Vusion.log("Access attempt to Vusion player which is not created yet","error");return }this.AW17.methodCall(A)},resize:function(){if(this.AW17){var A=this.applyTo.childNodes[1];if(A){A.width=this.applyTo.clientWidth;A.height=this.applyTo.clientHeight}}},destroy:function(){var A=this.applyTo.childNodes[1];if(A){swfobject.removeSWF(A.id)}if(this.AW17){this.AW17.destroy()}this.applyTo.innerHTML=""},play:function(){return this.methodCall("play")},pause:function(){return this.methodCall("pause")},togglePlay:function(){return this.methodCall("togglePlay")},stop:function(){return this.methodCall("stop")},open:function(){return this.methodCall("open")},close:function(){return this.methodCall("close")},fastForward:function(){return this.methodCall("fastForward")},fastReverse:function(){return this.methodCall("fastReverse")},previous:function(){return this.methodCall("previous")},next:function(){return this.methodCall("next")},__flashplayer_properties:{applyto:"applyTo",layout:"layout",flashfile:"flashFile",flashvars:"flashVars"},__flashplayer_propertyTypes:{applyTo:"elt",layout:"str",flashFile:"str",flashVars:"obj"},AU17:null,AW17:null,AS17:null,AT17:false,__getEventList:function(){return Vusion.AdPlayer.prototype.__getEventList()},Y17:function(C){var A="Z17"+(Vusion.uniqueId++);this.applyTo.innerHTML="<div style='position: absolute;'></div><div id='"+A+"' style='background-color:black;'></div>";this.AU17=this.applyTo.childNodes[0];var D={componentId:this.id};Vusion.apply(D,this.flashVars);swfobject.embedSWF((this.flashFile)?this.flashFile:Vusion.resourcePath+"/swf/"+this.layout+".swf",A,this.applyTo.clientWidth,this.applyTo.clientHeight,"9.0.0",false,D,{wmode:"transparent",allowscriptaccess:"always",bgcolor:"black"});var B=this.applyTo.childNodes[1];B.width=B.height="100%";B.style.outline="none";this.AG17(true)},AG17:function(C){var B=this.applyTo.childNodes[1];if(!B||!this.AT17||C){var A=this;setTimeout(function(){A.AG17(false)},100)}else{this.AS17=B;this.AJ17()}},AJ17:function(){this.AN17.applyTo=this.AU17;this.AW17=new Vusion.AdPlayer(this.AN17);Vusion.Observable.capture(this.AW17,this.AQ17,this)},AQ17:function(A){var B={};for(var C in A){if(A[C]&&A[C].tagName){B[C]="DOM elements are not passed to Flash layer"}else{if(C=="target"){continue}else{B[C]=A[C]}}}if(!this.AS17){Vusion.log("JS->Flash: Flash not loaded yet","error");return false}this.AS17.__js_swf_fireEvent(B);this.dispatchEvent(A)},__swf_js_ready:function(){Vusion.log("Flash component is ready");this.AT17=true},__swf_js_extent:function(A){Vusion.apply(this.AU17.style,A);if(this.AW17){this.AW17.resize()}}});Vusion.componentCtrs.flashplayer=Vusion.FlashPlayer;Vusion.Playlist=function(A){var C="A18"+(Vusion.uniqueId++);Vusion.Playlist.superclass.constructor.call(this);Vusion.applyProperties(this,A,{id:C,componentType:"playlist"},this.__playlist_properties,this.__playlist_propertyTypes);this.addEvents("selected","error","playlist","end","beforerefresh","beforeremotepolicy","beforeselected");Vusion.components.on({componentAdded:this.BW18,componentremoved:this.CD18,scope:this});if(this.playlist){var B=this;setTimeout(function(){B.setProperty("playlist",B.playlist);B.setProperty("player",B.player)},1)}else{if(this.rssFile){this.CL18(this.rssFile)}else{if(this.jsonFile){this.CI18(this.jsonFile)}}}Vusion.components.add(this.id,this)};Vusion.extend(Vusion.Playlist,Vusion.Observable,{id:"",playlist:null,rssFile:null,jsonFile:null,player:null,selected:-1,title:null,autoStart:true,autoPlay:true,looping:false,defaultItem:null,timeToLive:0,__playlist_properties:{applyto:"applyTo",player:"player",playlist:"playlist",autostart:"autoStart",autoplay:"autoPlay",looping:"looping",selected:"selected",title:"title",rssfile:"rssFile",jsonfile:"jsonFile",timetolive:"timeToLive"},__playlist_propertyTypes:{applyTo:"elt",player:"str",playlist:"obj",autoStart:"bool",autoPlay:"bool",looping:"bool",selected:"int",title:"str",rssFile:"str",jsonFile:"str",timeToLive:"float"},BY18:null,BO18:null,AO18:null,AH18:false,BM18:null,BL18:false,setProperty:function(B,D){if(typeof D=="undefined"){return false}if(typeof D=="string"){if(B=="playlist"&&D.indexOf("</rss>")>=0){this.CW18(D);return true}D=Vusion.convert(B,D,this.__playlist_propertyTypes)}B=B.toLowerCase();Vusion.log("Set: "+B+" = "+D);switch(B){case"player":this.BZ18(D);break;case"playlist":this.BM18=null;this.AS18(D);this.BQ18(D);this.AJ18(this.timeToLive);this.selected=0;break;case"selected":this.CF18(D);return ;case"title":this.BR18(D);break;case"rssfile":this.CL18(D);break;case"jsonfile":this.CI18(D);break;case"timetolive":this.AJ18(D);break;default:break}var A=this.__playlist_properties[B];if(A===undefined){Vusion.log(B+": not a read/write property");return false}this[A]=D;var C={name:B,target:this};C[A]=D;this.dispatchEvent(C);if(B=="player"||B=="playlist"){if(!this.AH18&&this.autoStart){this.CF18(0)}this.AH18=false}return true},getProperty:function(A){A=this.__playlist_properties[A.toLowerCase()];if(!A){Vusion.log(A+": unknow property");return false}Vusion.log("Get: "+A+" = "+this[A]);return this[A]},refresh:function(){if(this.rssFile){this.AH18=true;this.CL18(this.rssFile)}else{if(this.jsonFile){this.AH18=true;this.CI18(this.jsonFile)}}},AJ18:function(A){if(this.AO18){clearTimeout(this.AO18);this.AO18=null}if(A>0){var B=this;this.AO18=setTimeout(function(){if(B.dispatchEvent({name:"beforerefresh",target:B},false)!==false){B.refresh()}},A*1000)}},AS18:function(D){this.BL18=(D&&D.policy&&D.policy.remote&&!D.policy.requestOnVideo);if(this.BL18){var C=D.policy;var B={key:this.id+"-"+(Vusion.uniqueId++),url:C.url};if(D.title){B.playlist=D.title}if(this.dispatchEvent({name:"beforeremotepolicy",target:this,policy:D.policy,params:B},false)!==false){if(!B.url){Vusion.log("Remote policy without a valid url","error")}else{var A=B.url;delete B.url;Vusion.loadScript({url:A,params:B,handler:this.AW18,scope:this,userData:C})}}}},AW18:function(A,C,B){var D=Vusion.jsonPolicies[C.key];this.BL18=false;if(D&&D.success){this.playlist.policy=D.policy;delete Vusion.jsonPolicies[C.key];if(this.BM18!==null){this.CF18(this.BM18)}}else{Vusion.log("A dynamic policy could not be retrieved","error")}},BZ18:function(A){if(typeof A==="string"){this.BY18=A;this.player=Vusion.components.get(A)}else{this.BY18=(A)?A.id:null;this.player=null}if(this.player){this.player.on({beforeendedstate:this.CE18,beforeEndView:this.CG18,selectOffset:this.CH18,scope:this});if(this.BO18!==null){this.CF18(this.BO18)}}},CF18:function(A){if(this.dispatchEvent({name:"beforeselected",target:this,playlist:this.playlist,index:A},false)!==false){if(this.BL18){this.BM18=A
}if(typeof this.player=="string"){this.BZ18(this.player)}if(!this.playlist||!this.playlist.videos||!this.playlist.videos.length){Vusion.log("Attempt to select a video from an empty playlist.",true);return -1}else{if(!this.player){Vusion.log("Attempt to select a video with no player selected.",true);this.BO18=A;return -1}}var C=this.playlist.videos.length;if(A>=C){if(this.looping){A=A%C}else{return -2}}else{if(A<0){if(this.looping){A=(Math.ceil(-A/C)*C)+A}else{return -2}}}var B=this.playlist.videos[A];this.player.setProperty("url",B.url);this.player.setProperty("details",B);this.player.setProperty("policy",this.BT18(A,B));var D=this.selected;this.selected=A;this.player.__currentPlaylist=this.id;this.player.__currentPlaylistId=this.playlist.playlistId;this.dispatchEvent({name:"selected",target:this,playlist:this.playlist,oldIndex:D,index:A})}return this.selected},BQ18:function(F){if(this.defaultItem){var A=F.videos;var C=A.length;var G=this.defaultItem;for(var B=0;B<C;B++){var E=A[B];for(var D in G){if(typeof E[D]=="undefined"||E[D]===null||E[D]===""){E[D]=G[D]}}}}},BR18:function(D){var A=this.playlist.videos;var C=A.length;for(var B=0;B<C;B++){if(A[B].title==D){return this.CF18(B)}}return -1},BT18:function(B,E){var G=null;if(this.playlist.policy&&this.playlist.policy.markers){G=this.playlist.policy;var F=G.markers;var A=F.length;var H=false;for(var C=0;C<A;C++){if(F[C].items){H=true}}if(H){G={};Vusion.apply(G,this.playlist.policy);G.markers=[];var D;for(C=0;C<A;C++){D=F[C];if(D.items===undefined||this.BV18(B+1,D.items)){G.markers[G.markers.length]=D}}}}if(E.policy&&E.policy.markers){G=E.policy}return G},BV18:function(D,C){var A=C.split(",");var G=false;for(var E=0;E<A.length&&!G;E++){var F=String.trimSpaces(A[E]);var B=F.split(",");if(B.length==2){G=(D>=parseInt(B[0],10)&&D<=parseInt(B[1],10))}else{G=(parseInt(B[0],10)==D)}}return G},BW18:function(A){if(this.BY18&&A.id==this.BY18){this.BZ18(A.id)}},destroy:function(){if(this.player&&typeof this.player!="string"){this.player.un("state",this.CA18,this);this.player.un("beforeEndView",this.CG18,this);this.player.un("selectOffset",this.CH18,this);if(this.player.__currentPlaylist==this.id){this.player.__currentPlaylist=null}}},CD18:function(A){if(this.player==A.component){this.player=null}},CE18:function(A){if(this.autoPlay&&this.player.__currentPlaylist==this.id){A.done=(this.CF18(this.selected+1)<0)}},CG18:function(B){if(this.player.__currentPlaylist!=this.id){return true}if(this.autoPlay&&this.playlist&&this.playlist.videos&&this.playlist.videos.length){var A=(this.selected==this.playlist.videos.length-1&&!this.looping);if(A){this.dispatchEvent({name:"end",target:this,playlist:this.playlist})}return(this.autoPlay&&A)?true:false}return true},CH18:function(A){if(this.id==A.playlistId){this.setProperty("selected",this.selected+A.offset)}},CI18:function(B){var A=window.location.hostname?window.location.hostname:"local";Vusion.loadScript({url:B,params:{key:A+"-"+B},handler:this.CK18,scope:this})},CK18:function(A,C){var B=Vusion.jsonPlaylists[C.key];if(B&&B.success){B=B.data;Vusion.jsonPlaylists[C.key]=B}else{this.dispatchEvent({name:"error",target:this,errno:1,message:A+" contains an invalid playlist"});B=null}this.setProperty("playlist",B)},CL18:function(E){var A;var F=this;var C=function(){F.dispatchEvent({name:"error",target:F,errno:2,message:E+" could not be found"});if(window.ActiveXObject){A.abort()}};var B=function(){Vusion.log(E+" loaded");clearTimeout(F.CV18);F.CV18=null;F.CY18(A)};if(document.implementation&&document.implementation.createDocument){A=document.implementation.createDocument("","",null);A.onload=B;A.onerror=C}else{A=new ActiveXObject("Microsoft.XMLDOM");A.onreadystatechange=function(){if(A.readyState==4){B()}}}try{A.load(E);this.CV18=setTimeout(C,500)}catch(D){this.dispatchEvent({name:"error",target:this,errno:4,message:"Security Exception: rss playlists must be located on same server as web page."})}},CW18:function(B){var A;if(typeof DOMParser!="undefined"){A=(new DOMParser()).parseFromString(B,"text/xml")}else{A=new ActiveXObject("Microsoft.XMLDOM");A.async=false;A.loadXML(B)}Vusion.log("Playlist parsed");this.CY18(A)},CY18:function(A){var B=false;if(typeof DOMParser!="undefined"){if(!A.documentElement){B=true}else{if(A.documentElement.nodeName=="parsererror"){Vusion.log(A.documentElement.childNodes[0].nodeValue);B=true}}}else{if(A.parseError.errorCode!==0){Vusion.log(A.parseError.errorCode+": "+A.parseError.reason+". Line: "+A.parseError.line+". Position: "+A.parseError.linepos+". Source: "+A.parseError.srcText);B=true}}var F=A.getElementsByTagName("channel")[0];if(B||!F){this.dispatchEvent({name:"error",target:this,errno:3,message:"Invalid rss file"});return }var G={videos:[]};var D=F.childNodes;for(var C=0;C<D.length;C++){var H=D[C];var E=(H.localName)?H.localName:H.baseName;if(E){if(E=="item"){G.videos[G.videos.length]=this.DB18(H)}else{if(E=="policy"){G.policy=this.DE18(H)}else{if(H.firstChild){G[E]=H.firstChild.data}}}}}this.setProperty("playlist",G)},DB18:function(E){var D={};var B=E.childNodes;for(var A=0;A<B.length;A++){var F=B[A];var C=(F.localName)?F.localName:F.baseName;if(C){if(C=="thumbnail"){D.thumbnailUrl=F.getAttribute("url")}else{if(C=="content"&&F.attributes){this.DK18(F,D)}else{if(C=="policy"){D.policy=this.DE18(F)}else{if(F.firstChild){D[C]=F.firstChild.data}}}}}}return D},DE18:function(A){var G={};this.DK18(A,G);var D=A.childNodes;for(var C=0;C<D.length;C++){var H=D[C];var F=(H.localName)?H.localName:H.baseName;if(F){if(F=="ad"){if(!G.markers){G.markers=[]}var B=G.markers.length;G.markers[B]=this.DI18(H);G.markers[B].type="ad"}else{if(F=="adunit"){if(!G.adunits){G.adunits={}}var E=this.DI18(H);G.adunits[E.name]=E}}}}return G},DI18:function(A){var C={};this.DK18(A,C);var E=A.getElementsByTagName("vusion:param");for(var B=0;B<E.length;B++){var D=E[B];C[D.getAttribute("name")]=(D.innerText!==undefined)?D.innerText:D.textContent}return C},DK18:function(B,F){var C=B.attributes;if(C){for(var D=0;D<C.length;D++){var A=C[D];var E=(A.localName)?A.localName:A.baseName;F[E]=A.value}}}});Vusion.componentCtrs.playlist=Vusion.Playlist;Vusion.Widget.JSPlaylist=function(A){Vusion.applyProperties(this,A,{},this._jsplaylist_properties,this._jsplaylist_propertyTypes);Vusion.Widget.JSPlaylist.superclass.constructor.call(this,A);if(this.layout=="vertical"&&!A.align){this.align="top"}var B=Vusion.resourcePath+"/images/playlistimages/";if(!this.buttonBackground){this.buttonBackground="background-"+this.layout+"-1.png"}if(!this.buttonImg){this.buttonImg="buttons-"+this.layout+"-1.png"}if(this.buttonBackground.indexOf("http://")==-1&&this.buttonBackground.indexOf("https://")==-1&&this.buttonBackground.indexOf("./")==-1&&this.buttonBackground.indexOf("../")==-1&&this.buttonBackground.indexOf(".")!=-1){this.buttonBackground=B+this.buttonBackground}if(this.buttonImg.indexOf("http://")==-1&&this.buttonImg.indexOf("https://")==-1&&this.buttonImg.indexOf("./")==-1&&this.buttonImg.indexOf("../")==-1){this.buttonImg=B+this.buttonImg}this.buttonImgPoints={previousOut:"0px 0px",previousOver:-this.buttonImgSize+"px 0px",previousDown:-(this.buttonImgSize*2)+"px 0px",previousDisabled:-(this.buttonImgSize*3)+"px 0px",nextOut:-(this.buttonImgSize*4)+"px 0px",nextOver:-(this.buttonImgSize*5)+"px 0px",nextDown:-(this.buttonImgSize*6)+"px 0px",nextDisabled:-(this.buttonImgSize*7)+"px 0px"};this.on({playlist:this.renderPlaylist,selected:this._renderSelected,scope:this});this.addEvents("overTitle","afterrender")};Vusion.extend(Vusion.Widget.JSPlaylist,Vusion.Playlist,{applyTo:null,template:"<label {setUrl} style='cursor: pointer; color: blue'>{title}</label><br/>",align:"left",layout:"horizontal",hoverClass:"",highlightClass:"",playlistClass:"",scroll:"button",buttonThickness:38,buttonBackground:"",buttonImgSize:18,buttonImg:"",setProperty:function(A,B){if(typeof B=="string"){B=Vusion.convert(A,B,this._jsplaylist_propertyTypes)}if(A=="template"){this.renderPlaylist({playlist:this.playlist});this[A]=B}else{return Vusion.Widget.JSPlaylist.superclass.setProperty.apply(this,arguments)
}},getProperty:function(A){A=A.toLowerCase();if(this._jsplaylist_properties[A]){return this[this._jsplaylist_properties[A]]}else{return Vusion.Widget.JSPlaylist.superclass.getProperty.apply(this,arguments)}},getIndexFromEvent:function(A){var B=Vusion.getEventTarget(A);while(B.getAttribute("vusion:item")===null){B=B.parentNode}return B.getAttribute("vusion:item")},resize:function(){var F=this.containerDiv.style.overflow;var E=0;var D=0;this.containerDiv.style.overflow="hidden";this.containerDiv.style.height="25px";var B=this.containerDiv.offsetHeight-this.containerDiv.clientHeight;var A=this.containerDiv.offsetWidth-this.containerDiv.clientWidth;this.containerDiv.style.overflow=F;if(this.scroll=="button"){if(this.layout=="horizontal"){E=(this.scrollButton0.offsetWidth+this.scrollButton1.offsetWidth)}else{if(this.layout=="vertical"){D=(this.scrollButton0.offsetHeight+this.scrollButton1.offsetHeight)}}}this.containerDiv.style.height=(this.applyTo.clientHeight-B-D)+"px";this.containerDiv.style.width=(this.applyTo.clientWidth-A-E)+"px";if(this.scroll=="button"){if(this.layout=="horizontal"){this.scrollButton0.style.height=this.containerDiv.offsetHeight+"px";this.scrollButton1.style.height=this.containerDiv.offsetHeight+"px"}else{if(this.layout=="vertical"){this.scrollButton0.style.width=this.containerDiv.offsetWidth+"px";this.scrollButton1.style.width=this.containerDiv.offsetWidth+"px"}}this.scrollDiv.style.overflow="hidden";if(Vusion.isIE){this.scrollDiv.style.height="100px";this.scrollDiv.style.width="50px"}var C=this.scrollDiv.clientWidth;this.scrollDiv.style.overflow="scroll";C-=this.scrollDiv.clientWidth;this.scrollDiv.style.height=parseInt(this.containerDiv.style.height,10)+C+"px";this.scrollDiv.style.width=parseInt(this.containerDiv.style.width,10)+C+"px";if(this.scroll=="button"){if(this.layout=="horizontal"){this.scrollMax=(this.scrollDiv.scrollWidth-this.scrollDiv.clientWidth)}else{if(this.layout=="vertical"){this.scrollMax=(this.scrollDiv.scrollHeight-this.scrollDiv.clientHeight)}}}}},renderPlaylist:function(B){var A="";var I=this;this.applyTo.style.overflow="hidden";if(this.scroll=="button"&&this.layout!="grid"){A+="<div style='cursor: pointer;";if(this.buttonBackground.indexOf(".")==-1){A+="background-color: "+this.buttonBackground+";"}else{A+="background: url("+this.buttonBackground+")";if(this.layout=="horizontal"){A+=" 0 0 repeat-y"}else{if(this.layout=="vertical"){A+=" 0 0 repeat-x"}}A+=";"}if(this.layout=="horizontal"){A+="float: left; width: "+this.buttonThickness+"px;"}else{if(this.layout=="vertical"){A+="height: "+this.buttonThickness+"px;"}}if(this.buttonImg){A+="display: table; #position: relative; overflow: hidden;"}A+="'>";if(this.buttonImg){A+="<div style='#position: absolute; #top: 50%; #left: 0; display: table-cell; vertical-align: middle;'><div style='#position: relative; #top: -50%;'><div style='margin: 0 auto; width: "+this.buttonImgSize+"px; height: "+this.buttonImgSize+"px; background: url("+this.buttonImg+") "+this.buttonImgPoints.previousOut+" no-repeat;'></div></div></div>"}A+="</div>"}A+="<div class='"+this.playlistClass+"' style='";if(this.scroll=="button"&&this.layout!="grid"){A+=" overflow: hidden !important;"}else{A+=" overflow: auto;"}if(this.layout=="horizontal"){A+=" float: left !important;"}A+="'>";if(this.scroll=="button"&&this.layout!="grid"&&!Vusion.isCamino){A+="<div style='overflow: scroll;'>"}if(this.layout=="horizontal"){A+="<table style='display: -moz-inline-box; display: inline-block; border-collapse: collapse;'><tr>"}else{if(this.layout=="vertical"){A+="<table style='height: 100%; border-collapse: collapse;'><tbody><tr><td style='vertical-align: "+this.align+";'>"}}var G,F=B.playlist.videos;for(G=0;G<F.length;G++){this._itemMapping.index=G;var J=String.formatTemplate(this.template,F[G],this._itemMapping);if(this.layout=="horizontal"){J="<td>"+J+"</td>"}else{if(this.layout=="vertical"){J="<div>"+J+"</div>"}else{if(this.layout=="grid"){J='<div style="float: left;">'+J+"</div>"}}}A+=J}if(this.layout=="horizontal"){A+="</tr></table>";this.applyTo.style.textAlign=this.align}else{if(this.layout=="vertical"){A+="</td></tr></tbody></table>";this.applyTo.style.textAlign=""}}A+="</div>";if(this.scroll=="button"&&this.layout!="grid"&&!Vusion.isCamino){A+="</div>"}if(this.scroll=="button"&&this.layout!="grid"){A+="<div style='cursor: pointer;";if(this.buttonBackground.indexOf(".")==-1){A+="background-color: "+this.buttonBackground+";"}else{A+="background: url("+this.buttonBackground+")";if(this.layout=="horizontal"){A+=" -"+this.buttonThickness+"px 0 repeat-y"}else{if(this.layout=="vertical"){A+=" 0 -"+this.buttonThickness+"px repeat-x"}}A+=";"}if(this.layout=="horizontal"){A+="float: left; width: "+this.buttonThickness+"px;"}else{if(this.layout=="vertical"){A+="height: "+this.buttonThickness+"px;"}}if(this.buttonImg){A+="display: table; #position: relative; overflow: hidden;"}A+="'>";if(this.buttonImg){A+="<div style='#position: absolute; #top: 50%; #left: 0; display: table-cell; vertical-align: middle;'><div style='#position: relative; #top: -50%;'><div style='margin: 0 auto; width: "+this.buttonImgSize+"px; height: "+this.buttonImgSize+"px; background: url("+this.buttonImg+") "+this.buttonImgPoints.nextOut+" no-repeat;'></div></div></div>"}A+="</div>"}this.applyTo.innerHTML=A;var C=this.applyTo.childNodes;if(this.scroll=="button"&&this.layout!="grid"){this.scrollButton0=C[0];this.containerDiv=C[1];if(Vusion.isCamino){this.scrollDiv=this.containerDiv}else{this.scrollDiv=this.containerDiv.childNodes[0]}this.scrollButton1=C[2];if(this.buttonImg){this.scrollButton0Img=this.scrollButton0.childNodes[0].childNodes[0].childNodes[0]}if(this.buttonImg){this.scrollButton1Img=this.scrollButton1.childNodes[0].childNodes[0].childNodes[0]}this.scrollDiv.onscroll=function(){I.checkScrollBounds("scroll")};this.scrollButton0.onmouseover=function(){if(I.scrollButton0Img.style.backgroundPosition!=I.buttonImgPoints.previousDisabled){I.scrollButton0Img.style.backgroundPosition=I.buttonImgPoints.previousOver}};this.scrollButton0.onmouseout=function(){I._clearPlaylistScroll(0);if(I.scrollButton0Img.style.backgroundPosition!=I.buttonImgPoints.previousDisabled){I.scrollButton0Img.style.backgroundPosition=I.buttonImgPoints.previousOut}};this.scrollButton0.onmousedown=function(){I._firePlaylistScroll(0);if(I.scrollButton0Img.style.backgroundPosition!=I.buttonImgPoints.previousDisabled){I.scrollButton0Img.style.backgroundPosition=I.buttonImgPoints.previousDown}return false};this.scrollButton0.onmouseup=function(){I._clearPlaylistScroll(0);if(I.scrollButton0Img.style.backgroundPosition!=I.buttonImgPoints.previousDisabled){I.scrollButton0Img.style.backgroundPosition=I.buttonImgPoints.previousOver}};this.scrollButton1.onmouseover=function(){if(I.scrollButton1Img.style.backgroundPosition!=I.buttonImgPoints.nextDisabled){I.scrollButton1Img.style.backgroundPosition=I.buttonImgPoints.nextOver}};this.scrollButton1.onmouseout=function(){I._clearPlaylistScroll(1);if(I.scrollButton1Img.style.backgroundPosition!=I.buttonImgPoints.nextDisabled){I.scrollButton1Img.style.backgroundPosition=I.buttonImgPoints.nextOut}};this.scrollButton1.onmousedown=function(){I._firePlaylistScroll(1);if(I.scrollButton1Img.style.backgroundPosition!=I.buttonImgPoints.nextDisabled){I.scrollButton1Img.style.backgroundPosition=I.buttonImgPoints.nextDown}return false};this.scrollButton1.onmouseup=function(){I._clearPlaylistScroll(1);if(I.scrollButton1Img.style.backgroundPosition!=I.buttonImgPoints.nextDisabled){I.scrollButton1Img.style.backgroundPosition=I.buttonImgPoints.nextOver}};var D={el:this.scrollDiv,min:0,speed:25,changeSize:10,value:0};D.onComplete=function(){I._scrollComplete=true;I.scrollDiv.onscroll=function(){I.checkScrollBounds("scroll")};if(I._autoScroll&&(this.min!=this.max)){I._doPlaylistScroll(this.index)}I.checkScrollBounds(this.index)};if(this.layout=="horizontal"){D.effect="scrollLeft"}else{if(this.layout=="vertical"){D.effect="scrollTop"}}this.scrollTween=new Efx(D)
}else{this.containerDiv=C[0];this.scrollDiv=this.containerDiv}this.resize();if(this.layout=="horizontal"){this._playlistItems=this.applyTo.getElementsByTagName("td")}else{if(this.layout=="vertical"){this._playlistItems=this.scrollDiv.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes}else{this._playlistItems=this.scrollDiv.childNodes}}if(this.scroll=="button"&&this.layout!="grid"){if(this.layout=="vertical"){this.scrollInterval=Math.floor(this.scrollDiv.childNodes[0].childNodes[0].childNodes[0].childNodes[0].offsetHeight/this._playlistItems.length,10)}else{if(this.layout=="horizontal"){this.scrollInterval=Math.floor(this.applyTo.getElementsByTagName("tr")[0].clientWidth/this._playlistItems.length)}}if(this.scrollMax==0){if(I.buttonImg){I.scrollButton0Img.style.backgroundPosition=this.buttonImgPoints.previousDisabled;I.scrollButton1Img.style.backgroundPosition=this.buttonImgPoints.nextDisabled}}else{if(this.scrollDiv[this.scrollTween.effect]==0){if(I.buttonImg){I.scrollButton0Img.style.backgroundPosition=this.buttonImgPoints.previousDisabled}}else{if(this.scrollDiv[this.scrollTween.effect]==this.scrollMax){if(I.buttonImg){I.scrollButton1Img.style.backgroundPosition=this.buttonImgPoints.nextDisabled}}}}}if(this._playlistItems.length!=F.length){Vusion.log("Error: The number of elements under the playlist container should match the number of items in the video list. Make sure that your template has a container","error")}else{for(G=0;G<this._playlistItems.length;G++){this._playlistItems[G].setAttribute("vusion:item",G)}var H=this.applyTo.getElementsByTagName("*");for(G=0;G<H.length;G++){var E=H[G];if(E.getAttribute("loadVideo")){E.onclick=function(K){I.setProperty("selected",I.getIndexFromEvent(K))}}if(E.getAttribute("hoverClass")){E.onmouseover=function(){Vusion.addClass(this,I.hoverClass)};E.onmouseout=function(){Vusion.removeClass(this,I.hoverClass)}}}}this.dispatchEvent({name:"afterrender",target:this,items:this._playlistItems})},checkScrollBounds:function(A){var B;if(this.layout=="horizontal"){B=this.scrollDiv.scrollLeft}else{if(this.layout=="vertical"){B=this.scrollDiv.scrollTop}}if(B==0){if(this.buttonImg){this.scrollButton0Img.style.backgroundPosition=this.buttonImgPoints.previousDisabled}}else{if(B==this.scrollMax){if(this.buttonImg){this.scrollButton1Img.style.backgroundPosition=this.buttonImgPoints.nextDisabled}}else{if(this.buttonImg){if(A==0){this.scrollButton1Img.style.backgroundPosition=this.buttonImgPoints.nextOut}else{if(A==1){this.scrollButton0Img.style.backgroundPosition=this.buttonImgPoints.previousOut}else{if(A=="scroll"){this.scrollButton0Img.style.backgroundPosition=this.buttonImgPoints.previousOut;this.scrollButton1Img.style.backgroundPosition=this.buttonImgPoints.nextOut}}}}}}},_doPlaylistScroll:function(B){if(this._scrollComplete){var A;this.scrollDiv.onscroll="";this._scrollComplete=false;this.scrollTween.index=B;if(B==0){this.scrollTween.max=this.scrollDiv[this.scrollTween.effect];A=this.scrollTween.max%this.scrollInterval;if((this.scrollTween.max-this.scrollInterval)<0){this.scrollTween.min=0}else{if(A){this.scrollTween.min=this.scrollTween.max-A}else{this.scrollTween.min=this.scrollTween.max-this.scrollInterval}}this.scrollTween.tweenOut()}else{if(B==1){this.scrollTween.min=this.scrollDiv[this.scrollTween.effect];A=(Math.ceil(this.scrollTween.min/this.scrollInterval)*this.scrollInterval)-this.scrollTween.min;if((this.scrollTween.min+this.scrollInterval)>this.scrollMax){this.scrollTween.max=this.scrollMax}else{if(A){this.scrollTween.max=this.scrollTween.min+A}else{this.scrollTween.max=this.scrollTween.min+this.scrollInterval}}this.scrollTween.tweenIn()}}}},_firePlaylistScroll:function(A){this._autoScroll=true;this._doPlaylistScroll(A)},_clearPlaylistScroll:function(A){this._autoScroll=false},_renderSelected:function(A){if(A.oldIndex>=0){this._applyClassToChildren(this._playlistItems[A.oldIndex],"highlightClass",false)}this._applyClassToChildren(this._playlistItems[A.index],"highlightClass",true)},hoverClass:"",highlightClass:"",_scrollComplete:true,_autoScroll:false,_jsplaylist_properties:{applyto:"applyTo",template:"template",layout:"layout",align:"align",playlistclass:"playlistClass",hoverclass:"hoverClass",highlightclass:"highlightClass",scroll:"scroll",buttonthickness:"buttonThickness",buttonbackground:"buttonBackground",buttonimgsize:"buttonImgSize",buttonimg:"buttonImg"},_jsplaylist_propertyTypes:{applyTo:"elt",template:"str",layout:"str",align:"str",playlistClass:"str",hoverClass:"str",highlightClass:"str",scroll:"str",buttonThickness:"int",buttonBackground:"str",buttonImgSize:"int",buttonImg:"str"},_itemMapping:{setUrl:'loadVideo="true"',highlightClass:'highlightClass="true"',hoverClass:'hoverClass="true"'},_playlistItems:null,_applyClassToChildren:function(E,A,D){var B=(D)?Vusion.addClass:Vusion.removeClass;if(E.getAttribute(A)){B(E,this[A])}var G=E.getElementsByTagName("*");for(var C=0;C<G.length;C++){var F=G[C];if(F.getAttribute(A)){B(F,this[A])}}}});Vusion.componentCtrs.jsplaylist=Vusion.Widget.JSPlaylist;function VU_getFileExt(F){var E=F.lastIndexOf(".");var D=F.length;if(E!=-1&&D!=E+1){var B=F.split(".");var A=B.length;var C=B[A-1].toLowerCase()}else{C=""}return C}function VU_EmbedError(A){document.write('<div id="EmbedError" style="width:150px; height:100px; margin:0; padding:0; border:#FF822F 1px solid; font-size:12px;" align="center">');document.write(A);document.write("</div>")}function VU_EmbedVusionMovie(B,C,D){var A="";A+="<div "+B+" style='width: "+C+"; height: "+D+";'></div>";document.write(A)}function VU_EmbedMovie(B){var A=" ";var C="500px";var E="323px";var F=0;for(var D in B){if(D=="width"){C=B[D]}else{if(D=="height"){E=B[D]}else{A+=D+'="'+B[D]+'" '}}}VU_EmbedVusionMovie(A,C,E)}Vusion.loadHandler=new Vusion.addEventHandler(window,"load",Vusion.buildPlayersFromMarkup);Vusion.unloadHandler=new Vusion.addEventHandler(window,"unload",function(){if(Vusion.components){Vusion.components.removeAll()}});