Syn.TvPpv=Syn.Component.extend({init:function(config){this._super(config);this.syn_tv_pop=new Syn.TvPopup(config);this.syn_tv_pop.removePopups();this.uniqueElmt("select_event_assets").connect("click",this,"reloadComponent",["event"]);this.uniqueElmt("select_movie_assets").connect("click",this,"reloadComponent",["movie"]);this.uniqueElmt("movie_assets").find("a").connect("click",this,"createPopup");this.uniqueElmt("event_assets").find("a").connect("click",this,"createPopup")},createPopup:function(element){return this.syn_tv_pop.showPopup(element,"tv_ppv_popup")},reloadComponent:function(asset_type){this.syn_tv_pop.removePopups();this.submit({"selected_asset_type":asset_type},this.showIndicator())},showIndicator:function(){var x=(this.uniqueElmt("asset_container").width()/ 2) - (this.uniqueElmt("payperview_indicator").width() /2);var height=this.uniqueElmt("asset_container").height();this.uniqueElmt("payperview_modal").css("height",height+"px");this.uniqueElmt("payperview_indicator").css("left",x+"px");this.uniqueElmt("payperview_modal").show();this.uniqueElmt("payperview_indicator").show()}});