(function(window){var PRODUCT_INFO={__version__:"1.0",__author__:"James Mutton <jmutton [at] akamai [dot] com>",__site__:"http://openvideoplayer.sourceforge.net",__copyright__:"2010, Akamai Technologies, Inc.",__license__:"OVP Code is Licensed under the BSD license, additional licenses apply to contributed code"};if(!window.addDOMLoadEvent){window.addDOMLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r="readyState",c="onreadystatechange",x=function(){n=1;clearInterval(t);while(i=e.shift()){i()}if(s){s[c]=""}};return function(f){if(n){return f()}if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);
/*@cc_on@*/
/*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/
if(/WebKit/i.test(navigator.userAgent)){t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10)}o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})()}if(!window.Silverlight){window.Silverlight={}}Silverlight._silverlightCount=0;Silverlight.__onSilverlightInstalledCalled=false;Silverlight.fwlinkRoot="http://go2.microsoft.com/fwlink/?LinkID=";Silverlight.__installationEventFired=false;Silverlight.onGetSilverlight=null;Silverlight.onSilverlightInstalled=function(){window.location.reload(false)};Silverlight.isInstalled=function(b){if(b==undefined){b=null}var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject){try{i=new ActiveXObject("AgControl.AgControl");if(b===null){a=true}else{if(i.IsVersionSupported(b)){a=true}}i=null}catch(l){j=true}}else{j=true}if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k){if(b===null){a=true}else{var h=k.description;if(h==="1.0.30226.2"){h="2.0.30226.2"}var c=h.split(".");while(c.length>3){c.pop()}while(c.length<4){c.push(0)}var e=b.split(".");while(e.length>4){e.pop()}var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f<e.length&&d===g);if(d<=g&&!isNaN(d)){a=true}}}}}catch(l){a=false}return a};Silverlight.WaitForInstallCompletion=function(){if(!Silverlight.isBrowserRestartRequired&&Silverlight.onSilverlightInstalled){try{navigator.plugins.refresh()}catch(a){}if(Silverlight.isInstalled(null)&&!Silverlight.__onSilverlightInstalledCalled){Silverlight.onSilverlightInstalled();Silverlight.__onSilverlightInstalledCalled=true}else{setTimeout(Silverlight.WaitForInstallCompletion,3000)}}};Silverlight.__startup=function(){navigator.plugins.refresh();Silverlight.isBrowserRestartRequired=Silverlight.isInstalled(null);if(!Silverlight.isBrowserRestartRequired){Silverlight.WaitForInstallCompletion();if(!Silverlight.__installationEventFired){Silverlight.onInstallRequired();Silverlight.__installationEventFired=true}}else{if(window.navigator.mimeTypes){var b=navigator.mimeTypes["application/x-silverlight-2"],c=navigator.mimeTypes["application/x-silverlight-2-b2"],d=navigator.mimeTypes["application/x-silverlight-2-b1"],a=d;if(c){a=c}if(!b&&(d||c)){if(!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}}else{if(b&&a){if(b.enabledPlugin&&a.enabledPlugin){if(b.enabledPlugin.description!=a.enabledPlugin.description){if(!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}}}}}}}if(!Silverlight.disableAutoStartup){if(window.removeEventListener){window.removeEventListener("load",Silverlight.__startup,false)}else{window.detachEvent("onload",Silverlight.__startup)}}};if(!Silverlight.disableAutoStartup){if(window.addEventListener){window.addEventListener("load",Silverlight.__startup,false)}else{window.attachEvent("onload",Silverlight.__startup)}}Silverlight.createObject=function(m,f,e,k,l,h,j){var d={},a=k,c=l;d.version=a.version;a.source=m;d.alt=a.alt;if(h){a.initParams=h}if(a.isWindowless&&!a.windowless){a.windowless=a.isWindowless}if(a.framerate&&!a.maxFramerate){a.maxFramerate=a.framerate}if(e&&!a.id){a.id=e}delete a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete a.isWindowless;delete a.framerate;delete a.data;delete a.src;delete a.alt;if(Silverlight.isInstalled(d.version)){for(var b in c){if(c[b]){if(b=="onLoad"&&typeof c[b]=="function"&&c[b].length!=1){var i=c[b];c[b]=function(a){return i(document.getElementById(e),j,a)}}var g=Silverlight.__getHandlerName(c[b]);if(g!=null){a[b]=g;c[b]=null}else{throw"typeof events."+b+" must be 'function' or 'string'"}}}slPluginHTML=Silverlight.buildHTML(a)}else{slPluginHTML=Silverlight.buildPromptHTML(d)}if(f){f.innerHTML=slPluginHTML}else{return slPluginHTML}};Silverlight.buildHTML=function(a){var b=[];b.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');if(a.id!=null){b.push(' id="'+Silverlight.HtmlAttributeEncode(a.id)+'"')}if(a.width!=null){b.push(' width="'+a.width+'"')}if(a.height!=null){b.push(' height="'+a.height+'"')}b.push(" >");delete a.id;delete a.width;delete a.height;for(var c in a){if(a[c]){b.push('<param name="'+Silverlight.HtmlAttributeEncode(c)+'" value="'+Silverlight.HtmlAttributeEncode(a[c])+'" />')}}b.push("</object>");return b.join("")};Silverlight.createObjectEx=function(b){var a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null){return c}};Silverlight.buildPromptHTML=function(b){var a="",d=Silverlight.fwlinkRoot,c=b.version;if(b.alt){a=b.alt}else{if(!c){c=""}a="<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";a=a.replace("{1}",c);a=a.replace("{2}",d+"108181")}return a};Silverlight.getSilverlight=function(e){if(Silverlight.onGetSilverlight){Silverlight.onGetSilverlight()}var b="",a=String(e).split(".");if(a.length>1){var c=parseInt(a[0]);if(isNaN(c)||c<2){b="1.0"}else{b=a[0]+"."+a[1]}}var d="";if(b.match(/^\d+\056\d+$/)){d="&v="+b}Silverlight.followFWLink("149156"+d)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var a,b="";if(c==null){return null}for(var d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95){b=b+String.fromCharCode(a)}else{b=b+"&#"+a+";"}}return b};Silverlight.default_error_handler=function(e,b){var d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message     \n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+"       \n";a+="Message: "+b.ErrorMessage+"     \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+"     \n";a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     \n"}else{if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     \n"}a+="MethodName: "+b.methodName+"     \n"}}alert(a)};Silverlight.__cleanup=function(){for(var a=Silverlight._silverlightCount-1;a>=0;a--){window["__slEvent"+a]=null}Silverlight._silverlightCount=0;if(window.removeEventListener){window.removeEventListener("unload",Silverlight.__cleanup,false)}else{window.detachEvent("onunload",Silverlight.__cleanup)}};Silverlight.__getHandlerName=function(b){var a="";if(typeof b=="string"){a=b}else{if(typeof b=="function"){if(Silverlight._silverlightCount==0){if(window.addEventListener){window.addEventListener("unload",Silverlight.__cleanup,false)}else{window.attachEvent("onunload",Silverlight.__cleanup)}}var c=Silverlight._silverlightCount++;a="__slEvent"+c;window[a]=b}else{a=null}}return a};Silverlight.onRequiredVersionAvailable=function(){};Silverlight.onRestartRequired=function(){};Silverlight.onUpgradeRequired=function(){};Silverlight.onInstallRequired=function(){};Silverlight.IsVersionAvailableOnError=function(d,a){var b=false;try{if(a.ErrorCode==8001&&!Silverlight.__installationEventFired){Silverlight.onUpgradeRequired();Silverlight.__installationEventFired=true}else{if(a.ErrorCode==8002&&!Silverlight.__installationEventFired){Silverlight.onRestartRequired();Silverlight.__installationEventFired=true}else{if(a.ErrorCode==5014||a.ErrorCode==2106){if(Silverlight.__verifySilverlight2UpgradeSuccess(a.getHost())){b=true}}else{b=true}}}}catch(c){}return b};Silverlight.IsVersionAvailableOnLoad=function(b){var a=false;try{if(Silverlight.__verifySilverlight2UpgradeSuccess(b.getHost())){a=true}}catch(c){}return a};Silverlight.__verifySilverlight2UpgradeSuccess=function(d){var c=false,b="3.0.50106",a=null;try{if(d.IsVersionSupported(b+".99")){a=Silverlight.onRequiredVersionAvailable;c=true}else{if(d.IsVersionSupported(b+".0")){a=Silverlight.onRestartRequired}else{a=Silverlight.onUpgradeRequired}}if(a&&!Silverlight.__installationEventFired){a();Silverlight.__installationEventFired=true}}catch(e){}return c};var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();jQuery.getFeed=function(a){a=jQuery.extend({url:null,data:null,success:null},a);if(a.url){$.ajax({type:"GET",url:a.url,data:a.data,dataType:"xml",success:function(b){var c=new JFeed(b);if(jQuery.isFunction(a.success)){a.success(c)}}})}};function JFeed(a){if(a){this.parse(a)}}JFeed.prototype={type:"",version:"",title:"",link:"",description:"",parse:function(a){if(jQuery("channel",a).length==1){this.type="rss";var b=new JRss(a)}if(b){jQuery.extend(this,b)}}};function JFeedItem(){}JFeedItem.prototype={title:"",link:"",description:"",updated:"",id:"",thumbnail:"",reference:{},files:[]};JFeedItem.prototype.getFiles=function(){var a=[];this.reference.find("[nodeName=media:content]").each(function(){var b={};b.src=jQuery(this).attr("url");b.type=jQuery(this).attr("type");b.bitrate=jQuery(this).attr("bitrate");a.push(b)});return a};function JRss(a){this._parse(a)}JRss.prototype={_parse:function(a){if(jQuery("rss",a).length==0){this.version="1.0"}else{this.version=jQuery("rss",a).eq(0).attr("version")}var b=jQuery("channel",a).eq(0);this.title=jQuery(b).find("title:first").text();this.link=jQuery(b).find("link:first").text();this.description=jQuery(b).find("description:first").text();this.language=jQuery(b).find("language:first").text();this.updated=jQuery(b).find("lastBuildDate:first").text();this.items=new Array();var c=this;jQuery("item",a).each(function(){var e=jQuery(this);var d=new JFeedItem();d.title=jQuery(this).find("title").eq(0).text();d.link=jQuery(this).find("link").eq(0).text();d.description=jQuery(this).find("description").eq(0).text();d.updated=jQuery(this).find("pubDate").eq(0).text();d.id=jQuery(this).find("guid").eq(0).text();d.thumbnail=jQuery(this).find("thumbnail").text();if(!d.thumbnail){d.thumbnail=jQuery(this).find("[nodeName=media:thumbnail]").attr("url")}d.reference=e;c.items.push(d)})}};(function(a){a.feedSlider=function(c,b){var d=this;d.$el=a(c);d.el=c;d.currentPage=1;d.timer=null;d.playing=false;d.$el.data("feedSlider",d);d.init=function(){d.options=a.extend({},a.feedSlider.defaults,b);d.$wrapper=d.$el.find("> div").css("overflow","hidden");d.$slider=d.$wrapper.find("> ul");d.$items=d.$slider.find("> li");d.$single=d.$items.filter(":first");if(d.options.buildNavigation){d.buildNavigation()}d.singleWidth=d.$single.outerWidth();d.pages=d.$items.length;d.$items.filter(":first").before(d.$items.filter(":last").clone().addClass("cloned"));d.$items.filter(":last").after(d.$items.filter(":first").clone().addClass("cloned"));d.$items=d.$slider.find("> li");d.buildNextBackButtons();d.startStop(true);if(d.options.pauseOnHover){d.$el.hover(function(){d.clearTimer()},function(){d.startStop(d.playing)})}if((d.options.hashTags==true&&!d.gotoHash())||d.options.hashTags==false){d.setCurrentPage(1)}};d.gotoPage=function(f){if(typeof(f)=="undefined"||f==null){f=1;d.setCurrentPage(1)}if(f>d.pages+1){f=d.pages}if(f<0){f=1}var e=f<d.currentPage?-1:1,h=Math.abs(d.currentPage-f),g=d.singleWidth*e*h;d.$wrapper.filter(":not(:animated)").animate({scrollLeft:"+="+g},d.options.animationTime,d.options.easing,function(){if(f==0){d.$wrapper.scrollLeft(d.singleWidth*d.pages);f=d.pages}else{if(f>d.pages){d.$wrapper.scrollLeft(d.singleWidth);f=1}}d.setCurrentPage(f)})};d.setCurrentPage=function(f,e){if(d.options.buildNavigation){d.$nav.find(".cur").removeClass("cur");a(d.$navLinks[f-1]).addClass("cur")}if(e!==false){d.$wrapper.scrollLeft(d.singleWidth*f)}d.currentPage=f};d.goForward=function(){d.gotoPage(d.currentPage+1)};d.goBack=function(){d.gotoPage(d.currentPage-1)};d.gotoHash=function(){if(/^#?panel-\d+$/.test(window.location.hash)){var f=parseInt(window.location.hash.substr(7));var e=d.$items.filter(":eq("+f+")");if(e.length!=0){d.setCurrentPage(f);return true}}return false};d.buildNavigation=function(){d.$nav=a("<div id='thumbNav'></div>").appendTo(d.$el);d.$items.each(function(f,g){var e=f+1;var h=a("<a href='#'></a>");h.text(e);h.click(function(i){d.gotoPage(e);if(d.options.hashTags){d.setHash("panel-"+e)}i.preventDefault()});d.$nav.append(h)});d.$navLinks=d.$nav.find("> a")};d.buildNextBackButtons=function(){var e=a('<a class="arrow forward">&gt;</a>'),f=a('<a class="arrow back">&lt;</a>');f.click(function(g){d.goBack();g.preventDefault()});e.click(function(g){d.goForward();g.preventDefault()});d.$wrapper.after(f).after(e)};d.startStop=function(e){if(e!==true){e=false}d.playing=e;if(e){d.clearTimer();d.timer=window.setInterval(function(){d.goForward()},d.options.delay)}else{d.clearTimer()}};d.clearTimer=function(){if(d.timer){window.clearInterval(d.timer)}};d.setHash=function(e){if(typeof window.location.hash!=="undefined"){if(window.location.hash!==e){window.location.hash=e}}else{if(location.hash!==e){location.hash=e}}return e};d.init()};a.feedSlider.defaults={easing:"swing",delay:3000,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true};a.fn.feedSlider=function(b){if(typeof(b)=="object"||b==undefined){b=(b)?b:{};return this.each(function(c){(new a.feedSlider(this,b));b.hashTags=false})}else{if(typeof(b)=="number"){return this.each(function(c){var d=a(this).data("feedSlider");if(d){d.gotoPage(b)}})}}}})(jQuery);var Controls=function(video){this.managedVideo=video;var pixel=video.ovpconfig.controls.src_img;var mvid=video.getID();this.extendedClass="";this.controlcontainer=$('<div id="'+mvid+'-controlcontainer"></div>');this.controlss=$('<div id="'+mvid+'-controls"></div>');this.playpause=$('<div id="'+mvid+'-playpause"><img src="'+pixel+'"></div>');this.volumebtn=$('<div id="'+mvid+'-volumebtn"><img src="'+pixel+'"></div>');this.fsbtn=$('<div id="'+mvid+'-fullscreenbtn"><img src="'+pixel+'"></div>');this.position=$('<div id="'+mvid+'-position"></div>');this.scrubber=$('<div id="'+mvid+'-scrubber"></div>');this.scrubberp=$('<img id="'+mvid+'-scrubber-playing" src="'+pixel+'" />');this.scrubberb=$('<img id="'+mvid+'-scrubber-buffered" src="'+pixel+'" />');this.scrubberr=$('<img id="'+mvid+'-scrubber-remaining" src="'+pixel+'" />');this.scrubber.append(this.scrubberp);this.scrubber.append(this.scrubberb);this.scrubber.append(this.scrubberr);this.duration=$('<div id="'+mvid+'-duration"></div>');var controls=this;this.playpause.click(function(){controls.managedVideo.playpause()});this.volumebtn.click(function(){controls.managedVideo.mutetoggle()});this.fsbtn.click(function(){controls.managedVideo.fullscreentoggle()});this.scrubber.click(function(e){controls._onScrubberClick(e)})};Controls.prototype.setClasses=function(){var ext=this.extendedClass;var ovpclass=this.managedVideo.ovpconfig.ovp_container_class;var cc=this.controlcontainer;cc.removeClass();cc.addClass(ovpclass+"-controlcontainer"+ext);var cs=this.controlss;cs.removeClass();cs.addClass(ovpclass+"-controls"+ext);var pp=this.playpause;pp.removeClass();pp.addClass(ovpclass+"-playbtn"+ext);var vb=this.volumebtn;vb.removeClass();vb.addClass(ovpclass+"-volumebtn"+ext);var fsb=this.fsbtn;fsb.removeClass();fsb.addClass(ovpclass+"-fullscreenbtn"+ext);var pos=this.position;pos.removeClass();pos.addClass(ovpclass+"-position"+ext);var scrw=this.scrubber;scrw.removeClass();scrw.addClass(ovpclass+"-scrubber"+ext);var scrp=this.scrubberp;scrp.removeClass();scrp.addClass(ovpclass+"-scrubber-playing"+ext);var scrb=this.scrubberb;scrb.removeClass();scrb.addClass(ovpclass+"-scrubber-buffered"+ext);var scrr=this.scrubberr;scrr.removeClass();scrr.addClass(ovpclass+"-scrubber-remaining"+ext);var dur=this.duration;dur.removeClass();dur.addClass(ovpclass+"-duration"+ext)};Controls.prototype.setPaused=function(){this.playpause.removeClass();this.playpause.addClass(this.managedVideo.ovpconfig.ovp_container_class+"-playbtn"+this.extendedClass)};Controls.prototype.setPlaying=function(){this.playpause.removeClass();this.playpause.addClass(this.managedVideo.ovpconfig.ovp_container_class+"-pausebtn"+this.extendedClass)};Controls.prototype.setVolumeBtn=function(){this.volumebtn.removeClass();this.volumebtn.addClass(this.managedVideo.ovpconfig.ovp_container_class+"-volumebtn"+this.extendedClass)};Controls.prototype.setMutedBtn=function(){this.volumebtn.removeClass();this.volumebtn.addClass(this.managedVideo.ovpconfig.ovp_container_class+"-mutedbtn"+this.extendedClass)};Controls.prototype.setExtendedClass=function(classext){this.extendedClass=classext};Controls.prototype.show=function(fnCallback){var controlcontainer=this.controlcontainer;controlcontainer.fadeIn("fast",fnCallback)};Controls.prototype.hide=function(fnCallback){var controlcontainer=this.controlcontainer;controlcontainer.fadeOut("fast",fnCallback)};Controls.prototype.remove=function(){var controlcontainer=this.controlcontainer;controlcontainer.fadeOut("fast",function(){controlcontainer.remove()})};Controls.prototype.render=function(){var vid=this.managedVideo;var controlcontainer=this.controlcontainer;var controlss=this.controlss;this.setClasses();this.position.html(this._asTime(vid.getCurrentTime()));this.duration.html("-"+this._asTime(vid.getDuration()-vid.getCurrentTime()));controlss.append(this.playpause);controlss.append(this.volumebtn);controlss.append(this.fsbtn);controlss.append(this.position);controlss.append(this.scrubber);controlss.append(this.duration);controlcontainer.append(controlss);controlcontainer.hide();$(vid.getWrapperNode()).append(controlcontainer);controlcontainer.fadeIn("fast")};Controls.prototype.updateTimeline=function(){var mvid=this.managedVideo;this.position.html(this._asTime(mvid.getCurrentTime()));this.duration.html("-"+this._asTime(mvid.getDuration()-mvid.getCurrentTime()));if(mvid.getDuration()>0){this._onProgress(mvid.getCurrentTime(),mvid.getDuration(),mvid.getBytesLoaded(),mvid.getTotalBytes())}};Controls.prototype._onPlaylistReturnClick=function(e){return null};Controls.prototype._onScrubberClick=function(e){var posx=e.pageX;var posy=e.pageY;var scrubber=this.scrubber;var L=posx-scrubber.offset().left;var W=scrubber.width();if(L==0){return null}var p=(L/W)*this.managedVideo.getDuration();this.managedVideo.seekTo(p);this.updateTimeline()};Controls.prototype._onProgress=function(playtime,playtotal,bytesLoaded,totalBytes){var totalWidth=this.scrubber.width();var progWidth=Math.round((totalWidth/playtotal)*playtime);var bufferWidth=Math.round(totalWidth*(bytesLoaded/totalBytes))-progWidth-1;var remainWidth=Math.round(totalWidth-progWidth-bufferWidth-1);this.scrubberp.width(progWidth+"px");this.scrubberb.width(bufferWidth+"px");this.scrubberr.width(remainWidth+"px")};Controls.prototype._asTime=function(t){if(!t){return"00:00"}t=Math.round(t);var s=t%60;var m=Math.floor(t/60);return this._two(m)+":"+this._two(s)};Controls.prototype._two=function(s){s+="";if(s.length<2){s="0"+s}return s};var Video=function(config){this.ovpconfig=config;this.videoconfig={sources:[]};this.renderfunc=function(){};this.environment={};this.parentNode=undefined;this.wrapperNode=undefined;this.player=undefined;this.controls=undefined;this.replacedContent=undefined;this.bytesLoaded=1;this.bytesTotal=1;this.controlsCountdown=config.control_keepalive_seconds;this.controlsState="NOTRENDERED";var self=this;this.t=undefined};Video.prototype._startCount=function(){var self=this;this.t=window.setInterval(function(){if(self.player.ended!=true){if(self.controlsState!="HIDDEN"){self.controls.updateTimeline()}}else{self.controls.setPaused()}if(self.controlsCountdown<=0){if(self.controlsState!="HIDDEN"&&self.controls&&self.controls.hide){self.hideControls()}}else{self.controlsCountdown--}},1000)};Video.prototype._pauseCount=function(){window.clearInterval(this.t)};Video.prototype.getID=function(){return this.videoconfig.id||generateGuid()};Video.prototype.getContainer=function(){return this.parentNode};Video.prototype.setRenderFunction=function(renderfunc){this.renderfunc=renderfunc};Video.prototype.parseFromDomNode=function(node){var sources=node.getElementsByTagName("source");for(var i=0;i<sources.length;i++){var src={};var source=sources[i];src.src=source.getAttribute("src");src.type=source.getAttribute("type");src.codec=source.getAttribute("codec");src.bitrate=source.getAttribute("bitrate");this.videoconfig.sources.push(src)}this.videoconfig.posterimg=node.getAttribute("poster");this.videoconfig.autoplay=new Boolean(node.getAttribute("autobuffer"));this.videoconfig.autobuffer=this.videoconfig.autoplay;this.videoconfig.controls=new Boolean(node.getAttribute("controls"));this.videoconfig.height=node.getAttribute("height");this.videoconfig.width=node.getAttribute("width");this.videoconfig.scalemode="fit";if(!this.videoconfig.id){this.videoconfig.id=node.getAttribute("id")||generateGuid()}};Video.prototype.getCurrentTime=function(){return this.player.currentTime||0};Video.prototype.getDuration=function(){return this.player.duration||0};Video.prototype.getBytesLoaded=function(){return this.bytesLoaded||0};Video.prototype.getTotalBytes=function(){return this.bytesTotal||0};Video.prototype.getWrapperNode=function(){return this.wrapperNode};Video.prototype.isPlaying=function(){if(this.player.paused==false){return true}else{return false}};Video.prototype.showControls=function(fnCallback){if(this.controlsState!="VISIBLE"){if(!this.controls){this.controls=new Controls(this);this.controls.render()}else{this.controls.show(fnCallback);this.controls.updateTimeline()}this._startCount();this.controlsState="VISIBLE"}};Video.prototype.hideControls=function(fnCallback){if(this.controlsState!="HIDDEN"){if(this.controls){this.controls.hide(fnCallback)}this._pauseCount();this.controlsState="HIDDEN"}};Video.prototype.playpause=function(){if(this.isPlaying()){this.player.pause();this.controls.setPaused()}else{this.player.play();this.controls.updateTimeline();this.controls.setPlaying()}};Video.prototype.seekTo=function(seconds){this.player.currentTime=seconds;return true};Video.prototype.mutetoggle=function(){if(this.player.volume==0){this.player.volume=1;this.controls.setVolumeBtn()}else{this.player.volume=0;this.controls.setMutedBtn()}};Video.prototype.fullscreentoggle=function(){var userAgent=navigator.userAgent.toLowerCase();var ff=(/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent))?true:false;if(this.player.webkitSupportsFullscreen){this.player.controls=true;this.player.webkitEnterFullScreen();return}var p=$(this.wrapperNode);var wind=$(window);var self=this;var env=this.environment;var controls=this.controls;this.goingFullScreen=true;if(this.environment.inFullscreen!=true){this.environment.inFullscreen=true;if(!ff){p.css("position","absolute");p.css("z-index","99")}env.playerHeight=p.height();env.playerWidth=p.width();env.playerLeft=p.offset().left;env.playerTop=p.offset().top;env.windowHeight=wind.height();env.windowWidth=wind.width();env.scrollTop=wind.scrollTop();env.scrollLeft=wind.scrollLeft();this.hideControls(function(){var oncomplete=function(){controls.setExtendedClass("-fs");controls.setClasses();if(self.isPlaying()){controls.setPlaying()}else{controls.setPaused()}self.showControls();if(!ff){p.removeClass();p.addClass(self.ovpconfig.ovp_container_class+"-video-wrapper-fs")}self.goingFullScreen=false};if(ff){p.width(env.windowWidth+"px");p.height(env.windowHeight+"px");wind.scrollTop(p.offset().top);wind.scrollLeft(p.offset().left);oncomplete()}else{p.css("position","absolute");p.animate({width:"100%",height:"100%",left:0,top:0},{duration:400,complete:oncomplete})}})}else{this.environment.inFullscreen=false;p.css("position","");p.css("left","");p.css("top","");p.css("z-index","");this.hideControls(function(){var oncomplete=function(){controls.setExtendedClass("");controls.setClasses();if(self.isPlaying()){controls.setPlaying()}else{controls.setPaused()}self.showControls();if(!ff){p.removeClass();p.addClass(self.ovpconfig.ovp_container_class+"-video-wrapper")}self.goingFullScreen=false};if(ff){p.width(env.playerWidth+"px");p.height(env.playerHeight+"px");wind.scrollTop(env.scrollTop);wind.scrollLeft(env.scrollLeft);oncomplete()}else{p.css("position","");p.animate({width:self.environment.playerWidth,height:self.environment.playerHeight},{duration:"fast",complete:oncomplete})}})}};Video.prototype.setupFader=function(){var self=this;var controls=this.controls;var p=$(this.wrapperNode);p.mousemove(function(){if(!self.goingFullScreen){self.controlsCountdown=self.ovpconfig.control_keepalive_seconds;self.showControls()}});p.mouseleave(function(){if(!self.goingFullScreen){self.hideControls()}})};Video.prototype.canPlay=function(){var retval=[];var sources=this.videoconfig.sources;for(var i=0;i<sources.length;i++){var source=sources[i];var bitrate=source.bitrate||0;retval.push({src:source.src,ismbr:false,bitrate:bitrate,type:source.type,codecs:source.codecs})}return(retval.length==0)?false:retval};Video.prototype._createPoster=function(callbackfn){var self=this;var node=this.wrapperNode;var ud=$('<div style="height:100%;width:100%;min-height:100%;min-width:100%;background:url('+this.videoconfig.posterimg+') no-repeat center black;"></div>');node.append(ud);ud.fadeTo("slow",0.4);var playcords={top:((this.videoconfig.height/2)-40),left:((this.videoconfig.width/2)-40)};var playbtn=$('<img style="top:'+playcords.top+"px;left:"+playcords.left+'px;" id="'+this.videoconfig.id+'-bigplaybtn" class="'+this.ovpconfig.ovp_container_class+'-bigplaybtn" src="'+this.ovpconfig.controls.src_img+'"/>');playbtn.mouseenter(function(){ud.fadeTo("fast",1)});playbtn.mouseleave(function(){ud.fadeTo("fast",0.4)});playbtn.click(callbackfn);node.append(playbtn)};Video.prototype.playlistReturn=function(){return null};Video.prototype.render=function(node){node=$(node);this.parentNode=node.parent();node.html("");node.show();node.addClass(this.ovpconfig.ovp_container_class+"-video-wrapper");this.wrapperNode=node;if(isIDevice()||this.ovpconfig.immediately){this._renderImmediately()}else{this._renderWithPoster()}};var SilverlightVideo=function(config){SilverlightVideo.baseConstructor.call(this,config)};extend(SilverlightVideo,Video);SilverlightVideo.prototype.canPlay=function(){var retval=[];var sources=this.videoconfig.sources;for(var i=0;i<sources.length;i++){var source=sources[i];var src=source.src;var bitrate=source.bitrate||0;var url_qs_parts=src.split("?");var path_parts=String(url_qs_parts[0]).split("/");var extension=String(_getExtension(path_parts[path_parts.length-1]));if(arrayContains(extension,["asf","wmv","wma"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}else{if(arrayContains(extension,["asx","wvx","wax"])){retval.push({src:src,ismbr:false,srctype:"refsource",type:source.type,codecs:source.codecs})}else{if(arrayContains(extension,["ism/manifest","ism\\manifest"])){retval.push({src:src,ismbr:true,srctype:"mediasource",type:source.type,codecs:source.codecs})}else{if(arrayContains(extension,["mp4","m4a","m4v","mp3"])){var protocol=src.split("://")[0];if(arrayContains(protocol,["http","https"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}}}}}}return(retval.length==0)?false:retval};var HTML5Video=function(config){HTML5Video.baseConstructor.call(this,config)};extend(HTML5Video,Video);HTML5Video.prototype._assignEvents=function(){var self=this;_addEvent(this.player,"progress",function(evt){self.bytesLoaded=evt.loaded;self.bytesTotal=evt.total})};HTML5Video.prototype.canPlay=function(){var retval=[];var sources=this.videoconfig.sources;var userAgent=navigator.userAgent.toLowerCase();var FF=(/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent))?true:false;for(var i=0;i<sources.length;i++){var source=sources[i];var src=source.src;var bitrate=source.bitrate||0;var url_qs_parts=src.split("?");var path_parts=String(url_qs_parts[0]).split("/");var extension=String(_getExtension(path_parts[path_parts.length-1]));var protocol=src.split("://")[0];if(arrayContains(protocol,["http","https"])){if((!FF)&&arrayContains(extension,["mp4","m4a","m4v","mp3"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}else{if((FF)&&arrayContains(extension,["ogg","oga","ogv"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}else{if((!FF)&&extension=="m3u8"&&(isOSX106OrHigher()||isIDevice())){retval.push({src:src,ismbr:true,srctype:"refsource",type:source.type,codecs:source.codecs})}}}}}return(retval.length==0)?false:retval};HTML5Video.prototype._render=function(){var vidHTML='<video id="'+this.videoconfig.id+'" class="'+this.ovpconfig.ovp_container_class+'-video" poster="'+this.videoconfig.posterimg+'" ';vidHTML+=(isIDevice())?"controls >":">";for(var x=0;x<this.videoconfig.sources.length;x++){var src=this.videoconfig.sources[x];vidHTML+='<source src="'+src.src+'"';if(src.type){vidHTML+=' type="'+src.type}vidHTML+='"/>'}vidHTML+="</video>";var video=$(vidHTML);video.hide();this.wrapperNode.append(video);video.fadeIn("fast");this.player=video.get(0);return video};HTML5Video.prototype._renderWithPoster=function(){var self=this;var node=this.wrapperNode;this._createPoster(function(){node.children().fadeOut("fast");node.empty();self._render();self._assignEvents();if(self.videoconfig.controls){self.showControls();self.setupFader()}if(self.videoconfig.autobuffer||self.videoconfig.autoplay){self.playpause()}})};HTML5Video.prototype._renderImmediately=function(){this._render();if(!isIDevice()){this._assignEvents();if(this.videoconfig.controls){this.showControls();this.setupFader()}if(this.videoconfig.autobuffer||this.videoconfig.autoplay){this.playpause()}}};var FlashVideo=function(config){FlashVideo.baseConstructor.call(this,config)};extend(FlashVideo,Video);FlashVideo.prototype.fullscreentoggle=function(){FlashVideo.superClass.fullscreentoggle.call(this)};FlashVideo.prototype.isPlaying=function(){if(this.player.getFlashMediaProperty("paused")){return false}else{return true}};FlashVideo.prototype.mutetoggle=function(){if(this.player.getFlashMediaProperty("volume")==0){this.player.setFlashMediaProperty("volume",1);this.controls.setVolumeBtn()}else{this.player.setFlashMediaProperty("volume",0);this.controls.setMutedBtn()}};FlashVideo.prototype.getCurrentTime=function(){return(this.player.getFlashMediaProperty)?this.player.getFlashMediaProperty("currentTime")||0:0;if(this.player.getFlashMediaProperty){return this.player.getFlashMediaProperty("currentTime")||0}else{return 0}};FlashVideo.prototype.getDuration=function(){return(this.player.getFlashMediaProperty)?this.player.getFlashMediaProperty("duration")||0:0;if(this.player.getFlashMediaProperty){return this.player.getFlashMediaProperty("duration")||0}else{return 0}};FlashVideo.prototype.seekTo=function(seconds){this.player.setFlashMediaProperty("currentTime",seconds);return true};FlashVideo.prototype.playpause=function(){if(this.isPlaying()){this.player.pauseFlashMedia();this.controls.setPaused()}else{this.player.playFlashMedia();this.controls.updateTimeline();this.controls.setPlaying()}};FlashVideo.prototype.canPlay=function(){var retval=[];var sources=this.videoconfig.sources;for(var i=0;i<sources.length;i++){var source=sources[i];var src=source.src;var bitrate=source.bitrate||0;var url_qs_parts=src.split("?");var path_parts=String(url_qs_parts[0]).split("/");var extension=String(_getExtension(path_parts[path_parts.length-1]));if(arrayContains(extension,["flv","f4v","f4f"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}else{if(arrayContains(extension,["smi","smil"])){retval.push({src:src,ismbr:true,srctype:"refsource",type:source.type,codecs:source.codecs})}else{if(arrayContains(extension,["mp4","m4a","m4v","mp3"])){retval.push({src:src,ismbr:false,srctype:"mediasource",type:source.type,codecs:source.codecs})}}}}return(retval.length==0)?false:retval};FlashVideo.prototype._render=function(callbackfn){var sources=this.canPlay();if(!sources){return false}var div_id=generateGuid();var videoconf=this.videoconfig;var div=$('<div id="'+div_id+'">');this.wrapperNode.append(div);var source=sources[0];var flashvars={src:source.src,mode:videoconf.playlistmode,scaleMode:videoconf.scalemode};var params={allowfullscreen:true,allowscriptaccess:"always",wmode:"transparent"};var attributes={id:videoconf.id,"class":this.ovpconfig.ovp_container_class+"-video"};swfobject.embedSWF(this.ovpconfig.players.Flash.src,div_id,videoconf.width,videoconf.height,this.ovpconfig.players.Flash.minver,"",flashvars,params,attributes,callbackfn)};FlashVideo.prototype._renderWithPoster=function(){var self=this;var sources=this.canPlay();if(!sources){return false}var node=this.wrapperNode;this._createPoster(function(){node.children().fadeOut("fast");node.empty();self._render(function(ret){var source=sources[0];function finishFunc(){var player=ret.ref;if(!player.setFlashMediaProperty){window.setTimeout(finishFunc,100);return false}player.setFlashMediaProperty("src",source.src);self.player=player;if(self.videoconfig.controls){self.showControls();self.setupFader()}if(self.videoconfig.autobuffer||self.videoconfig.autoplay){self.controls.setPlaying()}}window.setTimeout(finishFunc,100)})})};FlashVideo.prototype._renderImmediately=function(){var self=this;var sources=this.canPlay();if(!sources){return false}self._render(function(ret){var source=sources[0];function finishFunc(){var player=ret.ref;if(!player.setFlashMediaProperty){window.setTimeout(finishFunc,100);return false}player.setFlashMediaProperty("src",source.src);self.player=player;if(self.videoconfig.controls){self.showControls();self.setupFader()}if(self.videoconfig.autobuffer||self.videoconfig.autoplay){self.controls.setPlaying()}}window.setTimeout(finishFunc,100)})};function extend(subClass,baseClass){function inheritance(){}inheritance.prototype=baseClass.prototype;subClass.prototype=new inheritance();subClass.prototype.constructor=subClass;subClass.baseConstructor=baseClass;subClass.superClass=baseClass.prototype}jQuery.fn.replace=function(){var stack=[];return this.domManip(arguments,true,1,function(a){this.parentNode.replaceChild(a,this);stack.push(a)}).pushStack(stack)};function isIDevice(){if(navigator.userAgent.match(/iPhone/i)){return true}if(navigator.userAgent.match(/iPod/i)){return true}if(navigator.userAgent.match(/iPad/i)){return true}return false}function isOSX106OrHigher(){var UA=String(navigator.userAgent.match(/Intel Mac OS X 10_6/));if(!UA){return false}var versmaj=UA.split("_")[0].split(" ")[4];var versmin=UA.split("_")[1];return((versmaj==10&&versmin>=6)||(versmaj>10))?true:false}_addEvent=(function(){if(document.addEventListener){return function(el,type,fn){if(el&&el.nodeName||el===window){el.addEventListener(type,fn,false)}else{if(el&&el.length){for(var i=0;i<el.length;i++){addEvent(el[i],type,fn)}}}}}else{return function(el,type,fn){if(el&&el.nodeName||el===window){el.attachEvent("on"+type,function(){return fn.call(el,window.event)})}else{if(el&&el.length){for(var i=0;i<el.length;i++){addEvent(el[i],type,fn)}}}}}})();function mergeConfigs(base,ext){for(var p in ext){try{if(ext[p].constructor==Object){base[p]=mergeConfig(base[p],ext[p])}else{base[p]=ext[p]}}catch(e){base[p]=ext[p]}}return base}function isString(object){return Object.prototype.toString.call(object)==="[object String]"}function arrayContains(element,arr){for(var i=0;i<arr.length;i++){if(arr[i]==element){return true}}return false}function generateGuid(){var S4=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4())}function item_to_videoconfig(item){conf={sources:[],posterimg:"",autoplay:true,autobuffer:true,controls:true,height:"354",width:"640",scalemode:"fit",id:"someid"};conf.posterimg=item.thumbnail;conf.id=item.id;var files=item.getFiles();for(var x=0;x<files.length;x++){var file=files[x];var src={src:file.src,type:file.type};conf.sources.push(src)}return conf}function _getExtension(filename){var fparts=filename.split(".");if(fparts.length==1){return null}return fparts[fparts.length-1]}var _ovp=function(){this._config=DEFAULTS;this._defaults=DEFAULTS;this.product_info=PRODUCT_INFO};_ovp.prototype.init=function(config){this._config=mergeConfigs(mergeConfigs(DEFAULTS,this._config),config)};_ovp.prototype.render=function(element,videoconf){if(isString(element)){element=document.getElementById(element)}if(!element){return}if(element){this._playerRender(element,videoconf)}};_ovp.prototype.adopt=function(){var videos=document.body.getElementsByTagName("video");for(var i=0;i<videos.length;i++){this._playerRender(videos[i])}};_ovp.prototype.renderFeed=function(id,feedUrl){var me=this;jQuery.getFeed({url:feedUrl,success:function(feed){var items=$("<ul></ul>");var html="";var el=$("#"+id);for(var i=0;i<feed.items.length;i++){html="";var item=feed.items[i];var l_item=$('<li style="position:relative;background-image:url('+item.thumbnail+');background-repeat:no-repeat;" id="'+item.id+'" ></li>');l_item.bind("click",{item:item},function(e){el.fadeOut("fast",function(){me.render(el.get(0),item_to_videoconfig(e.data.item))})});html+='<div style="position:absolute;top:0px;left:0px;height:100%;width:100%;"><img src="'+item.thumbnail+'" style="height:100%;width:100%;"></div><h2 style="background:black;opacity:.6;color:white;margin-bottom:0px;padding:.5em;">'+item.title+"</h2>";html+='<h3 style="background:black;opacity:.6;color:white;margin-top:0px;padding:.5em;">'+item.description+"</h3></li>";l_item.append($(html));items.append(l_item)}var player=$('<div class="feedSlider"></div>').append($('<div class="wrapper"></div>').append(items));el.append(player);player.feedSlider()}})};_ovp.prototype._playerRender=function(node,videoconf){var player=this._pluginCaller("strategy");if(player&&this._getPlayerTestFunction(player)()){var video=this._getVideoObject(player);video.render(node)}else{for(var x=0;x<this._config.strategy.order.length;x++){player=this._config.strategy.order[x];if(player&&this._getPlayerTestFunction(player)(this._config.players[player].minver)){var video=this._getVideoObject(player);if(videoconf){video.videoconfig=videoconf}else{video.parseFromDomNode(node)}if(video.canPlay()){video.render(node);break}}}}};_ovp.prototype._getPlayerTestFunction=function(type){var pluginTestFunc=this._pluginCaller("gettestfunction",type);if(pluginTestFunc){return pluginTestFunc}else{if(type=="Flash"){return this.isFlashSupported}else{if(type=="Silverlight"){return this.isSilverlightSupported}else{if(type=="HTML5"){return this.isHTML5Supported}}}}return function(){return false}};_ovp.prototype._getVideoObject=function(type){var pluginVideoObject=this._pluginCaller("getvideoobject",type);if(pluginVideoObject){return pluginVideoObject}else{if(type=="Flash"){return new FlashVideo(this._config)}else{if(type=="Silverlight"){return new SilverlightVideo(this._config)}else{if(type=="HTML5"){return new HTML5Video(this._config)}}}}return function(){new Video(this._config)}};_ovp.prototype.isHTML5Supported=function(minver){var vidtest=document.createElement("video");return(("controls" in vidtest))};_ovp.prototype.isFlashSupported=function(minver){return swfobject.hasFlashPlayerVersion(minver)};_ovp.prototype.isSilverlightSupported=function(minver){return Silverlight.isInstalled(minver)};_ovp.prototype._pluginCaller=function(hookname){for(var i=0;i<this._config.plugins.length;i++){var plugin=this._config.plugins[i];if(plugin.hook==hookname){return plugin.ref(arguments)}}return null};var DEFAULTS={controls:{src_img:"images/pixel.png"},players:{Flash:{src:"ovp.swf",minver:"9",controls:true},Silverlight:{src:"ovp.xap",minver:"2",controls:true},HTML5:{minver:"0",controls:true}},strategy:{order:["HTML5","Flash","Silverlight"]},plugins:[{hook:"parsevideotag",ref:function(){}},{hook:"strategy",ref:function(){}},{hook:"gettestfunction",ref:function(){return null}},{hook:"getrenderfunction",ref:function(){return null}},{hook:"getvideoobject",ref:function(){}},{hook:"addplayer",ref:function(){}}],ovp_container_class:"ovp",control_keepalive_seconds:5,immediately:false};window.ovp=new _ovp()})(window);
