(function(d,m){var k="tubepress_",i="embedded_",n=function(p){return"#"+k+i+"title_"+p},c=m.Beacon,f=c.subscribe,a="normal",o=m.Ajax.LoadStyler,h=o.applyLoadingStyle,l=o.removeLoadingStyle,e="tubepress.playerlocation.",b=function(p){return"#"+k+i+"object_"+p},g=function(w,r,p,q,v,t){if(r!==a){return}var s=n(t),u=d(s);h(s);h(b(t));if(u.length>0){u[0].scrollIntoView(true)}},j=function(v,s,w,q,p,r,u,t){if(s!==a){return}d("#"+k+"gallery_"+t+" div."+k+"normal_"+i+"wrapper:first").replaceWith(q);l(n(t));l(b(t))};f(e+"invoke",g);f(e+"populate",j)}(jQuery,TubePress));