IBSYS.using("media");if(!IBSYS.media.flashPlayer){IBSYS.media.flashPlayer={}}IBSYS.media.singleIndexPlayer={container:null,config:null,init:function(d,c){this.container=d;this.config=c;this.container.style.width=this.config.component_width+"px";this.container.style.height=this.config.component_height+"px";this.container.style.position="relative";var e=document.createElement("div");e.setAttribute("id",d.id+"_pb");e.style.width="320px";e.style.height="225px";e.style.position="absolute";e.style.top="8px";e.style.left="1px";this.container.appendChild(e);var g=document.createElement("div");g.setAttribute("id",d.id+"_csw");g.style.width=this.config.cs_width+"px";g.style.height=this.config.cs_height+"px";g.style.position="absolute";g.style.top=(parseInt(this.config.vp_height)+10)+"px";g.style.left="6px";this.container.appendChild(g);var a=document.createElement("div");a.setAttribute("id",d.id+"_cs");a.style.width=this.config.cs_width+"px";a.style.height=this.config.cs_height+"px";g.appendChild(a);var f={swfUrl:this.config.vp_swf_url,width:this.config.vp_width,height:this.config.vp_height,usage:this.config.playback_usage,skin_swf_url:this.config.skin_swf_url,xamlUrl:this.config.xamlUrl,bg_clr:this.config.bg_clr,hlgt_clr:this.config.hlgt_clr,hdl_txt_clr:this.config.hdl_txt_clr,minutes_between_ads:this.config.minutes_between_ads,play_first_editorial_video:this.config.play_first_editorial_video,wmode:this.config.wmode};var b={swfUrl:this.config.cs_swf_url,width:this.config.cs_width,height:this.config.cs_height,section_widget_coid:this.config.section_widget_coid,thin:"true",skin_swf_url:this.config.skin_swf_url,contentEndPoint:this.config.contentEndPoint,idx_label:this.config.idx_label,bg_clr:this.config.bg_clr,hlgt_clr:this.config.hlgt_clr,vid_link:this.config.vid_link,wmode:this.config.wmode};IBSYS.application.Application.addEventListener(this.onIBEvent,this);IBSYS.media.vidPlayModule.init(e,f);IBSYS.media.selectContentModule.init(a,b)},onIBEvent:function(a){if(a.getName()==="movieLoaded"){this.container.style.backgroundColor=this.config.bg_clr;this.container.style.backgroundImage="url("+this.config.background_image_path+")"}}};