(function(e,m){var a="shadowbox",b="src/main/web/players/"+a+"/",l="lib",q="html",d=m.Beacon,h=d.subscribe,c=m.Lang.Utils,n=m.DomInjector,j="tubepress.playerlocation.",o=function(){return c.isDefined(window.Shadowbox)},g=function(){Shadowbox.path=b+l+"/";Shadowbox.init({initialHeight:160,initialWidth:320,skipSetup:true,players:[q],useSizzle:false});Shadowbox.load()},p=function(){if(!o()){var r=b+l+"/"+a;n.loadJs(r+".js");n.loadCss(r+".css");c.callWhenTrue(g,o,300)}},k=function(w,t,r,s,v,u){if(t!==a){return}Shadowbox.open({player:q,height:r,width:s,content:"&nbsp;"})},f=function(r){e("#sb-player").html(r)},i=function(u,s,x,t,z,r,w,A){var y,v;if(s!==a){return}y=function(){f(t)};v=function(){return e("#sb-player").length>0};c.callWhenTrue(y,v,200)};h(j+"invoke",k);h(j+"populate",i);p()}(jQuery,TubePress));