Type.registerNamespace("RFERL.js.custom");RFERL.js.custom.BaseListComponent=function(){this.flashPlayTimer;this.flashCallBlocked=false;this.flashCallBlockTimer};RFERL.js.custom.BaseListComponent.prototype={shortText:function(d,c,e){c=c?c:d.parent();if(d.outerWidth()>c.innerWidth()){var b=d.text().replace(/^\s+ | \s+$/g,"").substring(0,e);var a=b.lastIndexOf(" ");d.text(((b.charAt(e)===" "||a===-1)?b:b.substring(0,a))+"...")}},playItemInFlash2:function(b,a,c){window.clearTimeout(this.flashPlayTimer);this._playItemInFlash2(b,a,c)},_playItemInFlash2:function(b,a,d){var c=this;if(a.playMedia&&!this.flashCallBlocked){if(a.playMedia(b.flashXmlUrl)==="error"){this.flashPlayTimer=window.setTimeout(function(){c._playItemInFlash2(b,a,d)},500)}else{this.flashCallBlocked=true;window.setTimeout(function(){c.flashCallBlocked=false},900);d&&d()}}else{window.clearTimeout(this.flashCallBlockTimer);this.flashCallBlockTimer=window.setTimeout(function(){c._playItemInFlash2(b,a,d)},900)}}};RFERL.js.custom.BaseListComponent.registerClass("RFERL.js.custom.BaseListComponent",null,Sys.IDisposable);;
