if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};
deconcept.SWFObject=function(c,a,b,d,e,f,g,h,j,k){if(document.getElementById){this.DETECT_KEY=k?k:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];c&&this.setAttribute("swf",c);a&&this.setAttribute("id",a);b&&this.setAttribute("width",b);d&&this.setAttribute("height",d);e&&this.setAttribute("version",new deconcept.PlayerVersion(e.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(!window.opera&&document.all&&this.installedVer.major>7)if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(!deconcept.prepUnloadSet){deconcept.prepUnloadSet=true;window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)}};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}f&&this.addParam("bgcolor",f);this.addParam("quality",g?g:"high");this.setAttribute("useExpressInstall",
false);this.setAttribute("doExpressInstall",false);this.setAttribute("xiRedirectUrl",h?h:window.location);this.setAttribute("redirectUrl","");j&&this.setAttribute("redirectUrl",j)}};
deconcept.SWFObject.prototype={useExpressInstall:function(c){this.xiSWFPath=!c?"expressinstall.swf":c;this.setAttribute("useExpressInstall",true)},setAttribute:function(c,a){this.attributes[c]=a},getAttribute:function(c){return this.attributes[c]||""},addParam:function(c,a){this.params[c]=a},getParams:function(){return this.params},addVariable:function(c,a){this.variables[c]=a},getVariable:function(c){return this.variables[c]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var c=
[],a,b=this.getVariables();for(a in b)c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b[a]);return c},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+
(this.getAttribute("style")||"")+'"';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var a=this.getParams(),b;for(b in a)c+=[b]+'="'+a[b]+'" ';a=this.getVariablePairs().join("&");if(a.length>0)c+='flashvars="'+a+'"';c+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+
'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';a=this.getParams();for(b in a)c+='<param name="'+b+'" value="'+a[b]+'" />';a=this.getVariablePairs().join("&");if(a.length>0)c+='<param name="flashvars" value="'+a+'" />';c+="</object>"}return c},write:function(c){if(this.getAttribute("useExpressInstall"))if(this.installedVer.versionIsValid(new deconcept.PlayerVersion([6,0,65]))&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",
true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){(typeof c=="string"?document.getElementById(c):c).innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));
return false}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description)c=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){a=1;for(var b=3;a;)try{b++;a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);c=new deconcept.PlayerVersion([b,
0,0])}catch(d){a=null}}else{try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);a.AllowScriptAccess="always"}catch(f){if(c.major==6)return c}try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(a!=null)c=new deconcept.PlayerVersion(a.GetVariable("$version").split(" ")[1].split(","))}return c};
deconcept.PlayerVersion=function(c){this.major=c[0]!=null?parseInt(c[0]):0;this.minor=c[1]!=null?parseInt(c[1]):0;this.rev=c[2]!=null?parseInt(c[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(c){if(this.major<c.major)return false;if(this.major>c.major)return true;if(this.minor<c.minor)return false;if(this.minor>c.minor)return true;if(this.rev<c.rev)return false;return true};
deconcept.util={getRequestParameter:function(c){var a=document.location.search||document.location.hash;if(c==null)return a;if(a){a=a.substring(1).split("&");for(var b=0;b<a.length;b++)if(a[b].substring(0,a[b].indexOf("="))==c)return a[b].substring(a[b].indexOf("=")+1)}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var c=document.getElementsByTagName("OBJECT"),a=c.length-1;a>=0;a--){c[a].style.display="none";for(var b in c[a])if(typeof c[a][b]=="function")c[a][b]=function(){};c[a].removeNode(true)}};
if(!document.getElementById&&document.all)document.getElementById=function(c){return document.all[c]};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;function tpResize(c,a,b){c=document.getElementById(c);c.style.height=a+"px";c.style.width=b+"px"}function tpGetTop(c){for(result=0;c;){result+=c.offsetTop;c=c.offsetParent}return result}function tpGetLeft(c){for(result=0;c;){result+=c.offsetLeft;c=c.offsetParent}return result}
tpThisMovie=function(c){return(window.frame?frame.contentWindow.document||frame.contentDocument.document:document).getElementById(c)};function tpDebug(c){if(document.getElementById("debugDiv"))document.getElementById("debugDiv").innerHTML+=c+"<br>"}function tpOpenNewWindow(c,a,b){window.open(c,a,b)}var tpTrackingImage=new Image;function tpCallTrackingUrl(c){c=unescape(c);tpTrackingImage.src=c;for(i=0;!tpTrackingImage.complete&&i<1E5;i++);}function tpGetUseJS(){return"true"}
function tpGetCommManagerID(){return tpCommID}tpLogLevel="warn";function tpSetLogLevel(c){tpLogLevel=c}function tpGetLogLevel(){return tpLogLevel}function tpGetProperties(){var c={};c.commManagerId=tpGetCommManagerID();c.useJS=tpGetUseJS();c.registeredComponents=tpGetRegisteredIDs();c.logLevel=tpGetLogLevel();return c}var tpRegisteredIDArr;
function tpRegisterID(c){tpRegisteredIDArr||(tpRegisteredIDArr=[]);for(var a=0;a<tpRegisteredIDArr.length;a++)if(tpRegisteredIDArr[a]==c)return;tpRegisteredIDArr.push(c)}function tpGetRegisteredIDs(){return tpRegisteredIDArr}var tpController,tpCommID,tpBridgeID,tpExternalController;
function tpSetCommManagerID(c,a,b){if(c&&a){(a=window.document.getElementById("commManagerDiv"))&&a.parentNode.removeChild(a);a=window.document.createElement("div");a.id="commManagerDiv";a.style.position="absolute";a.style.top="0";a.style.left="0";var d=window.document.getElementsByTagName("body")[0];d.insertBefore(a,d.firstChild);b=new SWFObject(b?b:"swf/commManager.swf",c,"1","1","9.0.0.0");b.addParam("allowScriptAccess","always");b.addParam("wmode","transparent");b.write("commManagerDiv")}tpController=
new tpControllerClass;tpBridgeID=(tpCommID=c)?c:"unknown"}
function tpControllerClass(){var c=this;if(window.addEventListener){this.pageLoadListener=function(){window.removeEventListener("load",c.pageLoadListener,true);c.callFunction("htmlPageLoaded",[tpGetRegisteredIDs()])};window.addEventListener("load",this.pageLoadListener,true)}else if(window.attachEvent){this.pageLoadListener=function(){window.detachEvent("onload",c.pageLoadListener);c.callFunction("htmlPageLoaded",[tpGetRegisteredIDs()])};window.attachEvent("onload",this.pageLoadListener)}else alert("this won't work");
this.sendMessage=function(a,b,d){var e={};e.message=b;e.destination=a;if(this.isLoading&&!d)this.messageQueue.push(e);else this.canMessage?this.doSendMessage(e):this.priorityQueue.push(e)};this.doSendMessage=function(a){this.isShutDown||tpThisMovie(a.destination).executeMessage(a.message)};this.checkMessageQueue=function(){for(;this.messageQueue.length>0;)this.doSendMessage(this.messageQueue.shift())};this.checkPriorityQueue=function(){for(;this.priorityQueue.length>0;){var a=this.priorityQueue.shift();
if(a.destination=="unknown")a.destination=tpBridgeID;this.doSendMessage(a)}};this.wrapMessage=function(a,b){var d={globalDataType:this.getDataTypeName("CommInfo"),id:"javascript"};return{globalDataType:this.getDataTypeName("MessageInfo"),name:a,payload:b,comm:d}};this.getDataTypeName=function(a){switch(a){case "AdPattern":return"com.theplatform.pdk.data::AdPattern";case "Banner":return"com.theplatform.pdk.data::Banner";case "BaseClip":return"com.theplatform.pdk.data::BaseClip";case "CallInfo":return"com.theplatform.pdk.communication::CallInfo";
case "CategoryInfo":return"com.theplatform.pdk.data::CategoryInfo";case "Clip":return"com.theplatform.pdk.data::Clip";case "CommInfo":return"com.theplatform.pdk.communication::CommInfo";case "CustomData":return"com.theplatform.pdk.data::CustomData";case "CustomValue":return"com.theplatform.pdk.data::CustomValue";case "DispatchInfo":return"com.theplatform.pdk.communication::DispatchInfo";case "FunctionInfo":return"com.theplatform.pdk.communication::FunctionInfo";case "HandlerInfo":return"com.theplatform.pdk.communication::HandlerInfo";
case "HyperLink":return"com.theplatform.pdk.data::HyperLink";case "MediaClick":return"com.theplatform.pdk.data::MediaClick";case "MediaFile":return"com.theplatform.pdk.data::MediaFile";case "MessageInfo":return"com.theplatform.pdk.communication::MessageInfo";case "MetricInfo":return"com.theplatform.pdk.data::MetricInfo";case "Overlay":return"com.theplatform.pdk.data::Overlay";case "PdkEvent":return"com.theplatform.pdk.events::PdkEvent";case "ProviderInfo":return"com.theplatform.pdk.data::ProviderInfo";
case "Range":return"com.theplatform.pdk.data::Range";case "Rating":return"com.theplatform.pdk.data::Rating";case "Release":return"com.theplatform.pdk.data::Release";case "ReleaseInfo":return"com.theplatform.pdk.data::ReleaseInfo";case "ScopeInfo":return"com.theplatform.pdk.communication::ScopeInfo";case "Sort":return"com.theplatform.pdk.data::Sort";case "Subtitles":return"com.theplatform.pdk.data::Subtitles";case "TrackingUrl":return"com.theplatform.pdk.data::TrackingUrl";case "BandwidthPreferences":return"com.theplatform.pdk.data::BandwidthPreferences";
case "Annotation":return"com.theplatform.pdk.data::Annotation"}};this.createScope=function(a){if(a==undefined)return this.defaultScope;else{a.push("javascript");return{globalDataType:this.getDataTypeName("ScopeInfo"),controlId:"javascript",isGlobal:true,isAny:false,isEmpty:false,scopeIds:a}}};this.registerFunction=function(a,b,d){d=this.createScope(d);var e=false;if(this.functions[a]==undefined){this.functions[a]={};e=true}for(var f=0;f<d.scopeIds.length;f++){var g=d.scopeIds[f];if(g=="*")return;
this.functions[a][g]=b}if(e){a=this.wrapMessage("registerFunction",{globalDataType:this.getDataTypeName("FunctionInfo"),name:a,scope:d});this.sendMessage(tpBridgeID,a,true)}};this.unregisterFunction=function(a){var b=this.createScope(scopes);if(this.functions[a]!=undefined){for(var d=this.functions[a],e=0;e<b.scopeIds.length;e++){var f=b.scopeIds[e];if(f=="*"){delete d;break}d[f]!=undefined&&delete d[f]}e=false;if(d!=undefined){for(var g in d){e=true;break}e||delete this.functions[a]}}if(!e){a=this.wrapMessage("unregisterFunction",
{globalDataType:this.getDataTypeName("FunctionInfo"),name:a,scope:b});this.sendMessage(tpBridgeID,a,true)}};this.addEventListener=function(a,b,d){d=this.createScope(d);d={globalDataType:this.getDataTypeName("HandlerInfo"),name:a,handler:b,scope:d};var e=false;if(this.events[a]==undefined){this.events[a]=[];e=true}a=this.events[a];for(var f=false,g=0;g<a.length;g++)if(a[g].handler==b){a[g]=d;f=true;break}f||a.push(d);tpDebug("how many listeners? "+a.length);if(e){b=this.wrapMessage("addEventListener",
d);this.sendMessage(tpBridgeID,b,true)}};this.removeEventListener=function(a,b,d){if(this.events[a]!=undefined){d=this.createScope(d);b={globalDataType:this.getDataTypeName("HandlerInfo"),name:a,handler:b,scope:d};d=this.events[a];for(var e=0;e<d.length;e++)if(d[e].handler==b.handler){d=d.splice(e,1);break}if(d.length==0){delete this.events[a];a=this.wrapMessage("removeEventListener",b);this.sendMessage(tpBridgeID,a,true)}}};this.dispatchEvent=function(a,b,d){d=this.createScope(d);a={globalDataType:this.getDataTypeName("PdkEvent"),
type:a,data:b};a={globalDataType:this.getDataTypeName("DispatchInfo"),evt:a,scope:d};this.doDispatchEvent(a);a=this.wrapMessage("dispatchEvent",a);this.sendMessage(tpBridgeID,a,true)};this.callFunction=function(a,b,d){d=this.createScope(d);a={globalDataType:this.getDataTypeName("CallInfo"),name:a,args:b,scope:d};this.doCallFunction(a);a=this.wrapMessage("callFunction",a);this.sendMessage(tpBridgeID,a,true)};this.doDispatchEvent=function(a){if(this.events[a.evt.type]!=undefined)for(var b=this.events[a.evt.type],
d=0;d<b.length;d++){var e=b[d];if(a.scope.isAny)eval(e.handler)(a.evt);else for(var f=0;f<e.scope.scopeIds.length;f++){var g=e.scope.scopeIds[f],h=false;if(g=="*"){eval(e.handler)(a.evt);break}for(var j=0;j<a.scope.scopeIds.length;j++){tpDebug("running through scopes handler: "+g+" dispatch: "+a.scope.scopeIds[j]);if(g==a.scope.scopeIds[j]){h=true;eval(e.handler)(a.evt);break}}if(h)break}}};this.doCallFunction=function(a){if(this.functions[a.name]!=undefined){for(var b={},d=0;d<a.scope.scopeIds.length;d++){var e=
a.scope.scopeIds[d];if(this.functions[a.name][e]!=undefined)b[this.functions[a.name][e]]="f"}for(var f in b)eval(f)(a.args)}};this.receiveMessage=function(a,b){if(a=="javascript")switch(b.name){case "commReady":tpBridgeID=tpCommID;this.canMessage=true;this.checkPriorityQueue();break;case "bridgeReady":tpBridgeID=b.comm.id;this.canMessage=true;this.checkPriorityQueue();break;case "dispatchEvent":this.receiveEvent(b.payload);break;case "callFunction":this.doCallFunction(b.payload)}else this.sendMessage(a,
b,true)};this.receiveEvent=function(a){if(a.evt.type=="OnPlayerLoaded"){this.isLoading=false;this.checkMessageQueue()}this.doDispatchEvent(a)};this.setRelease=function(a,b,d){a=this.modRelease(a);this.callFunction("setRelease",[a,b],d)};this.loadRelease=function(a,b,d){a=this.modRelease(a);this.callFunction("loadRelease",[a,b],d)};this.loadReleaseURL=function(a,b,d){this.callFunction("loadReleaseURL",[a,b],d)};this.setReleaseURL=function(a,b,d){this.callFunction("setReleaseURL",[a,b],d)};this.loadSmil=
function(a,b,d){if(b==undefined)b=true;this.callFunction("loadSmil",[a,b],d)};this.setSmil=function(a,b){this.callFunction("setSmil",[a],b)};this.resetPlayer=function(a){this.callFunction("resetPlayer",[],a)};this.setPlayerMessage=function(a,b,d){if(b==undefined)b=5E3;this.callFunction("setPlayerMessage",[a,b],d)};this.clearPlayerMessage=function(a){this.callFunction("clearPlayerMessage",[],a)};this.setCurrentReleaseList=function(a,b){this.callFunction("setCurrentReleaseList",[a],b)};this.seekToPosition=
function(a,b){this.callFunction("seekToPosition",[a],b)};this.seekToPercentage=function(a,b){this.callFunction("seekToPercentage",[a],b)};this.nextClip=function(a){this.callFunction("nextClip",[],a)};this.previousClip=function(a){this.callFunction("previousClip",[],a)};this.mute=function(a,b){this.callFunction("mute",[a],b)};this.pause=function(a,b){this.callFunction("pause",[a],b)};this.setPreviewImageUrl=function(a,b){this.callFunction("setPreviewImageUrl",[a],b)};this.showFullScreen=function(a,
b){a?alert("Switching to full screen from Javascript is not supported by the Flash run-time. Flash only allows you to go to full screen mode via a click in the player itself."):this.callFunction("showFullScreen",[a],b)};this.showEmailForm=function(a,b){this.callFunction("showEmailForm",[a],b)};this.showLinkForm=function(a,b){this.callFunction("showLinkForm",[a],b)};this.trace=function(a,b,d){this.callFunction("trace",[a,b,d],null)};this.useDefaultPlayOverlay=function(a,b){this.callFunction("useDefaultPlayOverlay",
[a],b)};this.getUseDefaultPlayOverlay=function(a){this.callFunction("getUseDefaultPlayOverlay",[],a)};this.useDefaultLinkForm=function(a,b){this.callFunction("useDefaultLinkForm",[a],b)};this.useDefaultEmailForm=function(a,b){this.callFunction("useDefaultEmailForm",[a],b)};this.getSubtitleLanguage=function(a,b){this.callFunction("getSubtitleLanguage",[a],b)};this.clickPlayButton=function(a){this.callFunction("clickPlayButton",[],a)};this.disablePlayerControls=function(a,b,d){this.callFunction("disablePlayerControls",
[a,b],d)};this.hidePlayerRegions=function(a,b,d){this.callFunction("hidePlayerRegions",[a,b],d)};this.setSubtitleLanguage=function(a,b){this.callFunction("setSubtitleLanguage",[a],b)};this.getPlayerVariables=function(a,b){this.callFunction("getPlayerVariables",[a],b)};this.setVolume=function(a,b){this.callFunction("setVolume",[a],b)};this.clearAdCookie=function(a){this.callFunction("clearAdCookie",[],a)};this.setBandwidthPreferences=function(a,b){if(a)a.globalDataType=this.getDataTypeName("BandwidthPreferences");
this.callFunction("setBandwidthPreferences",[a],b)};this.getBandwidthPreferences=function(a){this.callFunction("getBandwidthPreferences",[],a)};this.setVideoScalingMethod=function(a,b){this.callFunction("setVideoScalingMethod",[a],b)};this.setExpandVideo=function(a,b){this.callFunction("setExpandVideo",[a],b)};this.showPlayerCard=function(a,b,d,e,f,g){this.callFunction("showPlayerCard",[a,b,d,e,f],g)};this.hidePlayerCard=function(a,b,d){this.callFunction("hidePlayerCard",[a,b],d)};this.setVariable=
function(a,b,d,e){this.setProperty(a,b,d,e)};this.setProperty=function(a,b,d,e){this.callFunction("setProperty",[a,b,d,e],null)};this.getNextClip=function(a){this.callFunction("getNextClip",[],a)};this.addAnnotation=function(a){if(a)a.globalDataType=this.getDataTypeName("Annotation");this.callFunction("addAnnotation",[a])};this.removeAnnotation=function(a){if(a)a.globalDataType=this.getDataTypeName("Annotation");this.callFunction("removeAnnotation",[a])};this.clearAnnotations=function(){this.callFunction("clearAnnotations",
[])};this.getAnnotations=function(){return this.callFunction("getAnnotations",[])};this.refreshReleaseModel=function(a,b,d,e,f,g,h,j,k){if(d)d.globalDataType=this.getDataTypeName("Sort");if(e)e.globalDataType=this.getDataTypeName("Range");this.callFunction("refreshReleaseModel",[a,b,d,e,f,g,j,k],h)};this.previewRefreshReleaseModel=function(a,b,d,e,f,g,h,j,k){if(d)d.globalDataType=this.getDataTypeName("Sort");if(e)e.globalDataType=this.getDataTypeName("Range");this.callFunction("previewRefreshReleaseModel",
[a,b,d,e,f,g,j,k],h)};this.previewNextRefreshReleaseModel=function(a){this.callFunction("previewNextRefreshReleaseModel",[],a)};this.refreshCategoryModel=function(a,b,d){this.callFunction("refreshCategoryModel",[a,d],b)};this.nextRange=function(a){this.callFunction("nextRange",[],a)};this.previousRange=function(a){this.callFunction("previousRange",[],a)};this.getCurrentRange=function(a){this.callFunction("getCurrentRange",[],a)};this.setClipInfo=function(a,b,d){a=this.modClip(a);this.callFunction("setClipInfo",
[a,b],d)};this.clearCategorySelection=function(a){this.callFunction("clearCategorySelection",[],a)};this.suspendPlayAll=function(a,b){this.callFunction("suspendPlayAll",[a],b)};this.playNext=function(a,b,d){this.callFunction("playNext",[a,b],d)};this.playPrevious=function(a,b){this.callFunction("playPrevious",[a],b)};this.getNextRelease=function(a,b,d){this.callFunction("getNextRelease",[a,b],d)};this.modRelease=function(a){if(a){a.globalDataType=this.getDataTypeName("Release");if(a.categories)a.categories=
this.modCategories(a.categories);if(a.thumbnails)for(var b=0;b<a.thumbnails.length;b++){a.thumbnails[b].globalDataType=this.getDataTypeName("MediaFile");if(a.thumbnails[b].customValues)a.thumbnails[b].customValues=this.modCustomValues(a.thumbnails[b].customValues)}if(a.customValues)a.customValues=this.modCustomValues(a.customValues);if(a.metrics)for(b=0;b<a.metrics.length;b++)a.metrics[b].globalDataType=this.getDataTypeName("MetricInfo");if(a.provider){a.provider.globalDataType=this.getDataTypeName("ProviderInfo");
if(a.provider.customValues)a.provider.customValues=this.modCustomValues(a.provider.customValues)}if(a.ratings)for(b=0;b<a.ratings.length;b++)a.ratings[b].globalDataType=this.getDataTypeName("Rating");if(a.URL)a.url=a.URL}return a};this.modCustomValues=function(a){for(var b=0;b<a.length;b++)a[b].globalDataType=this.getDataTypeName("CustomValue");return a};this.modCategories=function(a){for(var b=0;b<a.length;b++)a[b].globalDataType=this.getDataTypeName("CategoryInfo");return a};this.modClip=function(a){if(a){a.globalDataType=
this.getDataTypeName("Clip");var b=a.baseClip;b||(b={});if(a.banners)b.banners=a.banners;if(a.overlays)b.overlays=a.overlays;a.baseClip=this.modBaseClip(b);if(a.chapter)a.chapter.globalDataType=this.getDataTypeName("Chapter")}return a};this.modBaseClip=function(a){a||(a={});a.globalDataType=this.getDataTypeName("BaseClip");if(a.moreInfo){a.moreInfo.globalDataType=this.getDataTypeName("HyperLink");if(a.moreInfo.clickTrackingUrls)a.moreInfo.clickTrackingUrls=this.modTracking(a.moreInfo.clickTrackingUrls)}if(a.banners)for(var b=
0;b<a.banners.length;b++){a.banners[b].globalDataType=this.getDataTypeName("Banner");if(a.banners[b].clickTrackingUrls)a.banners[b].clickTrackingUrls=this.modTracking(a.banners[b].clickTrackingUrls)}if(a.overlays)for(b=0;b<a.overlays.length;b++){a.overlays[b].globalDataType=this.getDataTypeName("Overlay");if(a.overlays[b].clickTrackingUrls)a.overlays[b].clickTrackingUrls=this.modTracking(a.overlays[b].clickTrackingUrls)}if(a.availableSubtitles)for(b=0;b<a.availableSubtitles;b++)a.availableSubtitles[b].globalDataType=
this.getDataTypeName("Subtitles");if(a.categories)a.categories=this.modCategories(a.categories);if(a.adPattern)a.adPattern.globalDataType=this.getDataTypeName("AdPattern");if(a.trackingURLs)a.trackingURLs=this.modTracking(a.trackingURLs);if(a.contentCustomData)a.contentCustomData.globalDataType=this.getDataTypeName("CustomData");if(a.ownerCustomData)a.ownerCustomData.globalDataType=this.getDataTypeName("CustomData");if(a.outletCustomData)a.outletCustomData.globalDataType=this.getDataTypeName("CustomData");
return a};this.modTracking=function(a){for(var b=0;b<a.length;b++)a.globalDataType=this.getDataTypeName("TrackingUrl");return a};this.shutDown=function(){this.callFunction("shutDown",[],["*"]);this.isShutDown=true};this.events={};this.functions={};this.isLoading=true;this.canMessage=false;this.messageQueue=[];this.priorityQueue=[];this.sendQueue=[];this.isShutDown=this.isSending=false;this.blankString="__blank_string__";this.defaultScope={globalDataType:this.getDataTypeName("ScopeInfo"),controlId:"javascript",
isGlobal:true,isAny:false,isEmpty:false,scopeIds:["javascript","default"]}}function tpReceiveMessage(c,a){tpController.receiveMessage(c,a)}var tpHolderName="pdkHolder",tpExternalJS;function tpSetPlayerIDForExternal(){}function tpSetHolderIDForExternal(c){tpHolderName=c}function tpLoadExternalMediaJS(){tpExternalJS=tpLoadExternalMediaJS.arguments;for(var c=0;c<tpExternalJS.length;c++)tpLoadScript(tpExternalJS[c])}
function tpCleanupExternal(){if(tpExternalJS){for(var c=window.document.getElementsByTagName("head")[0].getElementsByTagName("script"),a=0;a<c.length;a++)for(var b=0;b<tpExternalJS.length;b++)if(c[a].src==tpExternalJS[b]){window.document.getElementsByTagName("head")[0].removeChild(c[a]);break}tpExternalJS.length=0}tpExternalController&&tpExternalController.cleanup()}tpScriptLoader=new ScriptLoader;function tpLoadJScript(c,a,b,d){tpScriptLoader.addScript(c,a,b,d)}
function callbackDispatcher(c){tpScriptLoader.callbackDispatcher(c)}function invokeCallbacks(){tpScriptLoader.invokeCallbacks()}function LoadObj(c,a,b,d){this.script=c;this.callback=a;this.id=b;this.atts=d}function ScriptLoader(){this.scriptQueue=[];this.callbackQueue=[]}ScriptLoader.prototype.addScript=function(c,a,b,d){this.scriptQueue.push(new LoadObj(c,a,b,d));this.scriptQueue.length==1&&this.checkScriptQueue()};
ScriptLoader.prototype.checkScriptQueue=function(){if(this.scriptQueue.length)this.loadScript(this.scriptQueue.shift());else interval_id=setInterval("invokeCallbacks()",100)};ScriptLoader.prototype.callbackDispatcher=function(c){for(var a in this.callbackQueue)if(this.callbackQueue[a]==c){this.checkScriptQueue();return}this.callbackQueue.push(c);this.checkScriptQueue()};
ScriptLoader.prototype.invokeCallbacks=function(){for(clearInterval(interval_id);this.callbackQueue.length;){var c=this.callbackQueue.shift();eval(c.callback)(c.script)}};
ScriptLoader.prototype.loadScript=function(c){var a=c.script,b=c.callback,d=c.id,e=c.atts,f=window.document.createElement("script");f.charset="utf-8";if(d)f.id=d;f.type="text/javascript";if(e)for(d=0;d<e.length;d++)f.setAttribute(e[d].att,e[d].value);f.src=a;if(b){var g=function(h,j){j(h);this.onerror=this.onload=this.onreadystatechange=null};f.onreadystatechange=function(){g(c,callbackDispatcher)};f.onload=function(){g(c,callbackDispatcher)};f.onerror=function(){g(c,callbackDispatcher)}}window.document.getElementsByTagName("head")[0].appendChild(f)};
function tpLoadScript(c,a,b,d){var e=window.document.createElement("script");e.charset="utf-8";if(b)e.id=b;e.type="text/javascript";if(d)for(b=0;b<d.length;b++)e.setAttribute(d[b].att,d[b].value);e.src=c;if(a){var f=function(g,h){g(h);this.onerror=this.onload=this.onreadystatechange=null};e.onreadystatechange=function(){f(a,c)};e.onload=function(){f(a,c)};e.onerror=function(){f(a,c)}}window.document.getElementsByTagName("head")[0].appendChild(e)}
function tpExternalControllerClass(){this.playerTypes={};this.extPlayers={};this.registerExternalPlayer=function(c,a){this.playerTypes[c]=a};this.routeMessage=function(c,a,b,d,e){var f=this.extPlayers[a];f||(f=this.extPlayers[a]={});var g=f[b];if(!g){g=this.playerTypes[b];if(!g)return;g=eval("new "+g+"('"+c+"', '"+a+"');");if(!g)return;f[b]=g}g[d](e)};this.returnMessage=function(c,a,b,d){tpThisMovie(c).receiveJSMessage(a,b,d)};this.cleanup=function(){for(var c in this.extPlayers){var a=this.extPlayers[c],
b;for(b in a){a[b].cleanup();delete a[b]}delete this.extPlayers[c]}}}function tpExternalMessage(c,a,b,d,e){tpExternalController.routeMessage(c,a,b,d,e)}tpExternalController=new tpExternalControllerClass;function tpShowAlert(c){switch(c){case "FULLSCREEN_DISABLED":alert("Full screen is only available with Flash 9 or later")}};
