Type.registerNamespace("Insys.LechTV");
Insys.LechTV.MediaQuality=function(){
throw Error.invalidOperation();
};
Insys.LechTV.MediaQuality.prototype={High:3,Medium:2,Low:1};
Insys.LechTV.MediaQuality.registerEnum("Insys.LechTV.MediaQuality",true);
Insys.LechTV.Media=function Insys$LechTV$Media(id,_2,_3,_4){
this.id=id;
this.title=_2;
this.imageUrl=_3;
this.description=_4;
};
Insys.LechTV.Media.prototype={};
Insys.LechTV.Media.registerClass("Insys.LechTV.Media");
Insys.LechTV._MediaListItem=function Insys$LechTV$_MediaListItem(_5,_6,_7,_8,_9){
Insys.LechTV._MediaListItem.initializeBase(this,[_5,_6]);
this._name=_6;
this._clickDelegate=Function.createDelegate(_9,_7);
this._actionDelegate=Function.createDelegate(_9,_8);
this._image=_5.content.findName(_6+"_Image");
this._reflectionImage=_5.content.findName(_6+"_ReflectionImage");
this._titleTextBlock=_5.content.findName(_6+"_TitleText");
this._descriptionTextBlock=_5.content.findName(_6+"_DescriptionText");
this._clickArea=new Ee.UI.Xaml.Media._Button(_5,_6+"_ClickArea",null,this._clickHandler,null,this,false);
this._actionButton=new Ee.UI.Xaml.Media._Button(_5,_6+"_ActionButton",null,this._actionHandler,null,this,false);
};
function Insys$LechTV$_MediaListItem$_clickHandler(){
this._clickDelegate(this);
}
function Insys$LechTV$_MediaListItem$_actionHandler(){
this._actionDelegate(this);
}
function Insys$LechTV$_MediaListItem$set_physicalIndex(_a){
this._physicalIndex=_a;
}
function Insys$LechTV$_MediaListItem$set_title(_b){
if(this._titleTextBlock){
this._titleTextBlock.Text=_b;
}
}
function Insys$LechTV$_MediaListItem$set_description(_c){
if(this._descriptionTextBlock){
this._descriptionTextBlock.Text=_c;
}
}
function Insys$LechTV$_MediaListItem$set_imageUrl(_d){
this._image.Source=_d;
if(this._reflectionImage){
this._reflectionImage.Source=_d;
}
}
function Insys$LechTV$_MediaListItem$set_media(_e){
this._media=_e;
this.set_title(_e.title);
this.set_description(_e.description);
this.set_imageUrl(_e.imageUrl);
}
function Insys$LechTV$_MediaListItem$get_media(){
return this._media;
}
function Insys$LechTV$_MediaListItem$get_name(){
return this._name;
}
Insys.LechTV._MediaListItem.prototype={_name:null,_physicalIndex:0,_virtualIndex:0,set_physicalIndex:Insys$LechTV$_MediaListItem$set_physicalIndex,set_imageUrl:Insys$LechTV$_MediaListItem$set_imageUrl,set_title:Insys$LechTV$_MediaListItem$set_title,set_description:Insys$LechTV$_MediaListItem$set_description,set_media:Insys$LechTV$_MediaListItem$set_media,get_media:Insys$LechTV$_MediaListItem$get_media,get_name:Insys$LechTV$_MediaListItem$get_name,_clickDelegate:null,_actionDelegate:null,_clickHandler:Insys$LechTV$_MediaListItem$_clickHandler,_actionHandler:Insys$LechTV$_MediaListItem$_actionHandler};
Insys.LechTV._MediaListItem.registerClass("Insys.LechTV._MediaListItem",Ee.UI.Xaml.Media._DomElement);
Insys.LechTV.MediaList=function Insys$LechTV$MediaList(_f,_10,_11){
Insys.LechTV.MediaList.initializeBase(this,[_f,_10]);
var _12=this.get_control();
if(!_12){
return;
}
_12.cursor="Arrow";
this._scrollAnimationSB=_12.findName(_10+"_ScrollAnimationStoryboard");
if(this._scrollAnimationSB){
this._scrollAnimation=_12.findName(_10+"_ScrollAnimation");
}
var _13=this._scrollAnimation?(this._scrollAnimation.duration.seconds*1000):200;
_13=Math.max(_13,200);
this._scrollNext=new Ee.UI.Xaml.Media._Button(_f,_10+"_ScrollNext",_13,this._scrollNextClick,null,this);
this._scrollPrev=new Ee.UI.Xaml.Media._Button(_f,_10+"_ScrollPrevious",_13,this._scrollPrevClick,null,this);
this._findItems(_10);
this._virtualItems=[];
this.set_items([]);
var _14=_f.content.findName("CaptionText");
if(_11&&_14){
_14.Text=_11;
}
};
function Insys$LechTV$MediaList$addMedia(_15){
Array.add(this._virtualItems,_15);
this._reassignImages();
}
function Insys$LechTV$MediaList$removeVideoAt(_16){
Array.removeAt(this._virtualItems,_16);
this._reassignImages();
}
function Insys$LechTV$MediaList$get_items(){
if(arguments.length!==0){
throw Error.parameterCount();
}
return this._virtualItems;
}
function Insys$LechTV$MediaList$set_items(_17){
this._virtualItems=Array.clone(_17);
this._reset();
this._assignImages();
}
function Insys$LechTV$MediaList$reset_items(_18){
this._virtualItems=Array.clone(_18);
this._reassignImages();
}
function Insys$LechTV$MediaList$onItemClick(_19){
}
function Insys$LechTV$MediaList$onItemMediaClick(_1a){
}
function Insys$LechTV$MediaList$onActionClick(_1b){
}
function Insys$LechTV$MediaList$onActionMediaClick(_1c){
}
function Insys$LechTV$MediaList$_reassignImages(){
for(var i=0,l=this._items.length;i<l;i++){
var _1f=this._itemOffset+i;
var _20=(this._itemOffset+i)%this._items.length;
var _21=this._items[_20];
if(_1f<this._virtualItems.length){
_21.set_media(this._virtualItems[_1f]);
_21.get_control().visibility=0;
_21._virtualIndex=_1f;
}else{
if(_20!=this._overflowIndex){
_21.get_control().visibility=1;
}
}
}
}
function Insys$LechTV$MediaList$_assignImages(){
for(var i=0,l=this._items.length;i<l;i++){
var _24=this._items[i];
var _25=this._itemOffset+i;
if(_25<this._virtualItems.length){
_24.set_media(this._virtualItems[_25]);
_24.get_control().visibility=0;
_24._virtualIndex=_25;
}else{
_24.get_control().visibility=1;
}
}
}
function Insys$LechTV$MediaList$_findItems(_26){
var _27=this.get_control();
var i=1;
this._items=[];
var _29=_26+"_Item1";
var _2a=new Insys.LechTV._MediaListItem(_27.getHost(),_29,this._itemClick,this._itemAction,this,true);
while(_2a.get_control()){
_2a.set_physicalIndex(i-1);
this._items[this._items.length]=_2a;
i++;
_29=_26+"_Item"+i;
_2a=new Insys.LechTV._MediaListItem(_27.getHost(),_29,this._itemClick,this._itemAction,this,true);
}
if(this._items.length===0){
throw Error.invalidOperation("ImageList needs at least one scroll item.");
}
var _2b=this._items[0].get_control();
this._itemSize=_2b.width;
this._itemSpacing=_2b["Canvas.Left"]*2;
}
function Insys$LechTV$MediaList$_handleOverflow(_2c){
var _2d=_2c===1?(this._items.length-1):-1;
var _2e=this._itemOffset+_2d;
var _2f=this._items[this._overflowIndex];
_2f.set_media(this._virtualItems[_2e]);
_2f._virtualIndex=_2e;
var _30=_2f.get_control();
_30["Canvas.Left"]=_2e*(this._itemSize+this._itemSpacing)+(this._itemSpacing/2);
_30.visibility=0;
this._overflowIndex+=_2c;
if(this._overflowIndex<0){
this._overflowIndex=this._items.length-1;
}else{
if(this._overflowIndex>=this._items.length){
this._overflowIndex=0;
}
}
}
function Insys$LechTV$MediaList$_itemClick(_31){
this.onItemClick(_31._virtualIndex);
this.onItemMediaClick(_31.get_media());
}
function Insys$LechTV$MediaList$_itemAction(_32){
this.onActionClick(_32._virtualIndex);
this.onActionMediaClick(_32.get_media());
}
function Insys$LechTV$MediaList$_reset(){
this._itemOffset=0;
for(var i=0,l=this._items.length;i<l;i++){
var _35=this._items[i];
_35._virtualIndex=i;
_35.get_control()["Canvas.Left"]=i*(this._itemSize+this._itemSpacing)+(this._itemSpacing/2);
}
this._overflowIndex=this._items.length-1;
if(this._scrollAnimation){
this._scrollAnimation.To="0";
this._scrollAnimationSB.begin();
}
}
function Insys$LechTV$MediaList$_scroll(_36){
if(this._scrollAnimation){
this._handleOverflow(_36);
var _37=this._itemOffset;
this._itemOffset+=_36;
this._scrollAnimation.From="-"+(_37*(this._itemSize+this._itemSpacing));
this._scrollAnimation.To="-"+(this._itemOffset*(this._itemSize+this._itemSpacing));
this._scrollAnimationSB.begin();
}else{
this._itemOffset+=_36;
this._assignImages();
}
}
function Insys$LechTV$MediaList$_scrollNextClick(){
if(this._itemOffset<(this._virtualItems.length-this._items.length+1)){
this._scroll(1);
}
}
function Insys$LechTV$MediaList$_scrollPrevClick(){
if(this._itemOffset>0){
this._scroll(-1);
}
}
function Insys$LechTV$MediaList$dispose(){
if(this._scrollNext){
this._scrollNext.dispose();
}
if(this._scrollPrev){
this._scrollPrev.dispose();
}
this._scrollNext=null;
this._scrollPrev=null;
if(this._items){
for(var i=0,l=this._items.length;i<l;i++){
var _3a=this._items[i].button;
_3a.dispose();
}
this._items=null;
}
this._virtualItems=null;
this._itemSize=null;
this._itemSpacing=null;
this._scrollAnimation=null;
this._scrollAnimationSB=null;
Insys.LechTV.MediaList.callBaseMethod(this,"dispose");
}
function Insys$LechTV$MediaList$count(){
return this._virtualItems.length;
}
Insys.LechTV.MediaList.prototype={_items:null,_virtualItems:null,_scrollNext:null,_scrollPrev:null,_scrollAnimation:null,_scrollAnimationSB:null,_itemSize:0,_itemSpacing:0,_overflowIndex:0,count:Insys$LechTV$MediaList$count,addMedia:Insys$LechTV$MediaList$addMedia,removeVideoAt:Insys$LechTV$MediaList$removeVideoAt,get_items:Insys$LechTV$MediaList$get_items,set_items:Insys$LechTV$MediaList$set_items,reset_items:Insys$LechTV$MediaList$reset_items,onItemClick:Insys$LechTV$MediaList$onItemClick,onItemMediaClick:Insys$LechTV$MediaList$onItemMediaClick,onActionClick:Insys$LechTV$MediaList$onActionClick,onActionMediaClick:Insys$LechTV$MediaList$onActionMediaClick,_assignImages:Insys$LechTV$MediaList$_assignImages,_reassignImages:Insys$LechTV$MediaList$_reassignImages,_findItems:Insys$LechTV$MediaList$_findItems,_handleOverflow:Insys$LechTV$MediaList$_handleOverflow,_itemClick:Insys$LechTV$MediaList$_itemClick,_itemAction:Insys$LechTV$MediaList$_itemAction,_reset:Insys$LechTV$MediaList$_reset,_scroll:Insys$LechTV$MediaList$_scroll,_scrollNextClick:Insys$LechTV$MediaList$_scrollNextClick,_scrollPrevClick:Insys$LechTV$MediaList$_scrollPrevClick,dispose:Insys$LechTV$MediaList$dispose};
Insys.LechTV.MediaList.registerClass("Insys.LechTV.MediaList",Ee.UI.Xaml.Media._DomElement);
Insys.LechTV.Playlist=function Insys$LechTV$Playlist(_3b,_3c){
Insys.LechTV.Playlist.initializeBase(this,[_3b,_3c]);
};
function Insys$LechTV$Playlist$_scrollToEnd(){
if(this._itemOffset<(this._virtualItems.length-this._items.length+1)){
this._scroll(1);
setTimeout(Function.createDelegate(this,this._scrollToEnd),300);
}
}
function Insys$LechTV$Playlist$addMedia(_3d){
Insys.LechTV.Playlist.callBaseMethod(this,"addMedia",[_3d]);
this._scrollToEnd();
}
function Insys$LechTV$Playlist$onActionClick(_3e){
this.removeVideoAt(_3e);
if(this._virtualItems.length-this._itemOffset<this._items.length-1){
this._scrollPrevClick();
}
}
function Insys$LechTV$Playlist$_itemClick(_3f){
this._currentIndex=_3f._virtualIndex;
this.onItemClick(this._virtualItems[_3f._virtualIndex]);
}
function Insys$LechTV$Playlist$get_nextMedia(){
if(this._currentIndex>=this._virtualItems.length-1){
return null;
}
this._currentIndex++;
return this._virtualItems[this._currentIndex];
}
Insys.LechTV.Playlist.prototype={_currentIndex:-1,addMedia:Insys$LechTV$Playlist$addMedia,onActionClick:Insys$LechTV$Playlist$onActionClick,_itemClick:Insys$LechTV$Playlist$_itemClick,_scrollToEnd:Insys$LechTV$Playlist$_scrollToEnd,get_nextMedia:Insys$LechTV$Playlist$get_nextMedia};
Insys.LechTV.Playlist.registerClass("Insys.LechTV.Playlist",Insys.LechTV.MediaList);
Insys.LechTV.FeaturedContent=function Insys$LechTV$FeaturedContent(_40,_41){
Insys.LechTV.FeaturedContent.initializeBase(this,[_40,_41]);
this._items=new Array();
Array.add(this._items,new Insys.LechTV._MediaListItem(_40,_41+"_Item1",this._itemClick,this._actionClick,this));
Array.add(this._items,new Insys.LechTV._MediaListItem(_40,_41+"_Item2",this._itemClick,this._actionClick,this));
Array.add(this._items,new Insys.LechTV._MediaListItem(_40,_41+"_Item3",this._itemClick,this._actionClick,this));
this._control.addEventListener("mouseEnter",Function.createDelegate(this,this.stopRotate));
this._control.addEventListener("mouseLeave",Function.createDelegate(this,this.startRotate));
};
function Insys$LechTV$FeaturedContent$_rotate(){
var _42;
for(var i in this._items){
if(this._items[i].isZoomedIn){
_42=((++i)%(this._items.length));
break;
}
}
this._zoomIn(this._items[_42]);
}
function Insys$LechTV$FeaturedContent$startRotate(){
if(!this._rotateInterval){
this._rotateInterval=window.setInterval(Function.createDelegate(this,this._rotate),10000);
}
}
function Insys$LechTV$FeaturedContent$stopRotate(){
window.clearInterval(this._rotateInterval);
this._rotateInterval=null;
}
function Insys$LechTV$FeaturedContent$onItemMediaClick(_44){
}
function Insys$LechTV$FeaturedContent$onActionMediaClick(_45){
}
function Insys$LechTV$FeaturedContent$_zoomIn(_46){
var _47=this.get_control();
for(var i in this._items){
_47.findName(this._items[i].get_name()+"_ZoomOut").Begin();
this._items[i].get_control()["Canvas.Zindex"]=0;
this._items[i].isZoomedIn=false;
}
_46.get_control()["Canvas.ZIndex"]=10;
var _49=_47.findName(_46.get_name()+"_ZoomIn");
_49.Begin();
_46.isZoomedIn=true;
}
function Insys$LechTV$FeaturedContent$_actionClick(_4a){
this.onActionMediaClick(_4a.get_media());
}
function Insys$LechTV$FeaturedContent$_itemClick(_4b){
if(_4b.isZoomedIn){
this.onItemMediaClick(_4b.get_media());
}else{
this._zoomIn(_4b);
}
}
function Insys$LechTV$FeaturedContent$set_items(_4c){
var j=0;
for(var i in this._items){
this._items[i].set_media(_4c[j++]);
}
this._zoomIn(this._items[0]);
this.startRotate();
}
Insys.LechTV.FeaturedContent.prototype={_rotateInterval:null,onItemMediaClick:Insys$LechTV$FeaturedContent$onItemMediaClick,onActionMediaClick:Insys$LechTV$FeaturedContent$onActionMediaClick,set_items:Insys$LechTV$FeaturedContent$set_items,_zoomIn:Insys$LechTV$FeaturedContent$_zoomIn,_itemClick:Insys$LechTV$FeaturedContent$_itemClick,_actionClick:Insys$LechTV$FeaturedContent$_actionClick,startRotate:Insys$LechTV$FeaturedContent$startRotate,stopRotate:Insys$LechTV$FeaturedContent$stopRotate,_rotate:Insys$LechTV$FeaturedContent$_rotate};
Insys.LechTV.FeaturedContent.registerClass("Insys.LechTV.FeaturedContent",Ee.UI.Xaml.Media._DomElement);
Insys.LechTV.Player=function(_4f){
Insys.LechTV.Player.initializeBase(this,[_4f]);
this.add_mediaEnded(Function.createDelegate(this,this._onMediaEnded));
this._titleTextBlock=_4f.content.findName("TitleText");
this._descriptionTextBlock=_4f.content.findName("DescriptionText");
this._overlays["Info"]={visible:false,button:new Ee.UI.Xaml.Media._MultiStateButton(_4f,"InfoButton",null,this._toggleInfo,null,this,"","InfoOnSymbol")};
this._overlays["Playlist"]={visible:false,button:new Ee.UI.Xaml.Media._MultiStateButton(_4f,"PlaylistButton",null,this._togglePlaylist,null,this,"","PlaylistOnSymbol")};
this._overlays["Recommend"]={visible:false,button:new Ee.UI.Xaml.Media._MultiStateButton(_4f,"RecommendButton",null,this._toggleRecommend,null,this,"","RecommendOnSymbol")};
this._emailButton=new Ee.UI.Xaml.Media._Button(_4f,"EmailButton",null,this._emailMediaExternalUrl,null,this,false);
this._qualityButtons[Insys.LechTV.MediaQuality.Medium]=new Ee.UI.Xaml.Media._MultiStateButton(_4f,"HQButton",null,this._setMQ,null,this,"HQOffSymbol","HQOnSymbol");
this._qualityButtons[Insys.LechTV.MediaQuality.Low]=new Ee.UI.Xaml.Media._MultiStateButton(_4f,"LQButton",null,this._setLQ,null,this,"LQOffSymbol","LQOnSymbol");
this.set_placeholderImage("http://static.lechpoznan.tv/Images/misc/player_bg.jpg");
_4f.content.findName("Recommend_Show").AddEventListener("Completed",Function.createDelegate(this,this._showTextBox));
this._urlTextBox=$get("urlTextBox");
this._loginBox=$get("loginBox");
this._deniedBox=$get("deniedBox");
this._setMediaQuality();
};
function Insys$LechTV$Player$_toggleOverlay(_50){
for(var _51 in this._overlays){
if(this._overlays[_51].visible==true){
this.get_element().content.findName(_51+"_Hide").Begin();
this._overlays[_51].visible=false;
this._overlays[_51].button.set_state(0);
if(_51=="Recommend"){
this._hideTextBox();
}
}else{
if(_51==_50){
this.get_element().content.findName(_51+"_Show").Begin();
this._overlays[_51].visible=true;
this._overlays[_51].button.set_state(1);
}
}
}
}
function Insys$LechTV$Player$_toggleInfo(){
this._toggleOverlay("Info");
}
function Insys$LechTV$Player$_togglePlaylist(){
this._toggleOverlay("Playlist");
}
function Insys$LechTV$Player$_showTextBox(){
if(this.get_element().content.findName("Recommend")["Canvas.Top"]==0){
this._urlTextBox.style.display="block";
}
}
function Insys$LechTV$Player$_hideTextBox(){
this._urlTextBox.style.display="none";
}
function Insys$LechTV$Player$get_mediaExternalUrl(){
var _52="http://www.lechpoznan.tv/";
if(this._currentMedia){
_52=_52+"?id="+this._currentMedia.id;
}
return _52;
}
function Insys$LechTV$Player$_emailMediaExternalUrl(){
if(!this._currentMedia){
return;
}
document.location.href="mailto:?Subject=Lech TV: "+this._currentMedia.title+"&Body=Zobacz koniecznie: "+this.get_mediaExternalUrl();
}
function Insys$LechTV$Player$_toggleRecommend(){
this._toggleOverlay("Recommend");
if(this._urlTextBox){
if(!this._overlays["Recommend"].visible){
this._urlTextBox.style.display="none";
}
}
}
function Insys$LechTV$Player$_setMediaInfo(_53){
if(this._titleTextBlock){
this._titleTextBlock.Text=_53.title;
}
if(this._descriptionTextBlock){
this._descriptionTextBlock.Text=_53.description;
}
if(this._urlTextBox){
this._urlTextBox.value=this.get_mediaExternalUrl();
}
}
function Insys$LechTV$Player$_setLQ(){
this._setMediaQuality(Insys.LechTV.MediaQuality.Low);
}
function Insys$LechTV$Player$_setMQ(){
this._setMediaQuality(Insys.LechTV.MediaQuality.Medium);
}
function Insys$LechTV$Player$_setMediaQuality(_54){
if(!_54){
_54=readCookie("LechTVMediaQuality");
}
if(_54!=Insys.LechTV.MediaQuality.Low&&_54!=Insys.LechTV.MediaQuality.Medium){
_54=Insys.LechTV.MediaQuality.Low;
}
if(this._currentQuality!=_54){
if(this._currentQuality){
this._qualityButtons[this._currentQuality].set_state(0);
}
this._qualityButtons[_54].set_state(1);
this._currentQuality=_54;
createCookie("LechTVMediaQuality",_54);
if(this._currentMedia){
Insys.LechTV.MediaInfoService.GetMediaWithQualityUrl(this._currentMedia.id,this._currentQuality,Function.createDelegate(this,this._setMediaUrlCallback),this._zonkCallback);
}
}
}
function Insys$LechTV$Player$playMedia(_55){
this._currentMedia=_55;
this._setMediaInfo(_55);
Insys.LechTV.MediaInfoService.GetMediaWithQualityUrl(_55.id,this._currentQuality,Function.createDelegate(this,this._setMediaUrlCallback),this._zonkCallback);
Insys.LechTV.MediaInfoService.GetRelatedMedia(_55.id,Function.createDelegate(this,this._setRelatedMediaCallback),this._zonkCallback);
}
function Insys$LechTV$Player$playLiveMedia(){
Insys.LechTV.MediaInfoService.GetLiveMedia(Function.createDelegate(this,this._getLiveMediaCallback),this._zonkCallback);
}
function Insys$LechTV$Player$_getLiveMediaCallback(_56,_57){
if(_56){
this.playMedia(_56);
}
}
function Insys$LechTV$Player$addToPlaylist(_58){
if(this._playlist){
this._playlist.addMedia(_58);
if(this._overlays["Playlist"].visible==false){
this._togglePlaylist();
}
if(this._playlist.count()==1&&this.get_playState()=="Closed"){
this.playMedia(this._playlist.get_nextMedia());
}
}
}
function Insys$LechTV$Player$_setMediaUrlCallback(_59,_5a){
if(_59=="LOGIN"){
this.set_mediaUrl(null);
this.hideDeniedBox();
this.showLoginBox();
}else{
if(_59=="DENIED"){
this.set_mediaUrl(null);
this.hideLoginBox();
this.showDeniedBox();
}else{
this.hideLoginBox();
this.hideDeniedBox();
this.set_mediaUrl(_59);
}
}
}
function Insys$LechTV$Player$_zonkCallback(_5b){
alert(_5b.get_message());
}
function Insys$LechTV$Player$set_relatedMediaList(_5c){
this._relatedMediaList=_5c;
this._relatedMediaList.onItemMediaClick=Function.createDelegate(this,this.playMedia);
this._relatedMediaList.onActionMediaClick=Function.createDelegate(this,this.addToPlaylist);
}
function Insys$LechTV$Player$_setRelatedMediaCallback(_5d,_5e){
if(this._relatedMediaList){
this._relatedMediaList.set_items(_5d);
}
}
Insys.LechTV.Player.prototype={_currentQuality:null,_currentMedia:null,_qualityButtons:{},_overlays:{},_playlist:null,_relatedMediaList:null,_toggleInfo:Insys$LechTV$Player$_toggleInfo,_togglePlaylist:Insys$LechTV$Player$_togglePlaylist,_toggleRecommend:Insys$LechTV$Player$_toggleRecommend,_showTextBox:Insys$LechTV$Player$_showTextBox,_hideTextBox:Insys$LechTV$Player$_hideTextBox,_emailMediaExternalUrl:Insys$LechTV$Player$_emailMediaExternalUrl,_toggleOverlay:Insys$LechTV$Player$_toggleOverlay,_setMediaInfo:Insys$LechTV$Player$_setMediaInfo,playMedia:Insys$LechTV$Player$playMedia,playLiveMedia:Insys$LechTV$Player$playLiveMedia,_getLiveMediaCallback:Insys$LechTV$Player$_getLiveMediaCallback,addToPlaylist:Insys$LechTV$Player$addToPlaylist,_setMediaUrlCallback:Insys$LechTV$Player$_setMediaUrlCallback,_zonkCallback:Insys$LechTV$Player$_zonkCallback,set_relatedMediaList:Insys$LechTV$Player$set_relatedMediaList,_setRelatedMediaCallback:Insys$LechTV$Player$_setRelatedMediaCallback,get_mediaExternalUrl:Insys$LechTV$Player$get_mediaExternalUrl,_setMediaQuality:Insys$LechTV$Player$_setMediaQuality,_setMQ:Insys$LechTV$Player$_setMQ,_setLQ:Insys$LechTV$Player$_setLQ,handleInfoOverlayShow:function(_5f,_60){
this.sender.findName("InfoOverlay_Show").Begin();
},set_playlist:function(_61){
this._playlist=_61;
this._playlist.onItemClick=Function.createDelegate(this,this.playMedia);
},_onMediaEnded:function(_62,_63){
var _64=this._playlist.get_nextMedia();
if(_64!=null){
this.playMedia(_64);
}
},showLoginBox:function(){
this._loginBox.style.display="block";
$get("txtLogin").focus();
},hideLoginBox:function(){
this._loginBox.style.display="none";
},showDeniedBox:function(){
this._deniedBox.style.display="block";
},hideDeniedBox:function(){
this._deniedBox.style.display="none";
}};
Insys.LechTV.Player.registerClass("Insys.LechTV.Player",EePlayer.Player);


