Ext.define("zones.view.Main",{extend:"Ext.panel.Panel",requires:["Ext.layout.container.Border","zones.view.ListPanel","zones.view.ZonesTreePanel","zones.view.OptionalListPanel","zones.view.Paging"],alias:"widget.main",id:"zoneMain",name:"zoneMain",border:false,frame:false,autoDestroy:true,url:"/final/monitor/zones.jsp",layout:{type:"border"},showDashboard:false,optionalListFlag:false,activeTab:0,initComponent:function(){if(Ext.isEmpty(requestParams.treeOpen)||requestParams.treeOpen==="null"){requestParams.treeOpen=false;
}else{if(requestParams.treeOpen==="true"){requestParams.treeOpen=true;}else{requestParams.treeOpen=false;}}var b=null;var a=document.getElementsByTagName("body")[0];if(!Ext.isEmpty(Ext.get(a))){b=new Ext.LoadMask(Ext.get(a),{msg:"Loading...",cls:"maskDash"});b.show();}if(optionalListFlag){var c={xtype:"optionallistpanel",id:"optionallistpanel",region:"center",flex:5,mask:b,url:this.url};
}else{var c={xtype:"listpanel",id:"listpanel",region:"center",flex:5,mask:b,url:this.url};}if(this.showDashboard===true){b.hide();}this.items=[{xtype:"zonestreepanel",border:false,header:false,region:"west",cls:"removeTreeLeftBorder",collapsed:!requestParams.treeOpen,url:"/final/monitor/zoneTree.jsp?tree=ZoneTreeModel&width=208&str=sessionID&node=Zone&treeTitle=Zones Navigation",split:true,collapseMode:"mini",collapsible:true,width:250,maxWidth:350,minWidth:150},c];
this.callParent();}});var divCount=2;var gettingComponentDivId=0;var scrolldelay;function pageScroll(){var h=Ext.getCmp("listpanel");if(!Ext.isEmpty(h)){var b=h.body;var e=0;for(i=1;i<=divCount;i++){gettingComponentDivId++;var g="dddd"+gettingComponentDivId;var a=Ext.get(g);var d="";if(!Ext.isEmpty(a)&&a!=null&&a!=undefined){d=a.dom;
}e+=d.offsetHeight;}b.scroll("bottom",e,true);scrolldelay=setTimeout("pageScroll()",3000);if($("#listpanel-body").scrollTop()+$("#listpanel-body").innerHeight()>=$("#listpanel-body")[0].scrollHeight){gettingComponentDivId=0;getDiv=0;if(window.parent.tvModePlayAction!=undefined&&window.parent.tvModePlayAction=="pause"){window.parent.Ext.getCmp("tvmode").sliderObj.play();
window.parent.Ext.getCmp("playBtn").ifScroll=false;stopScroll();}else{clearTimeout(scrolldelay);scrolldelay=setTimeout("beforeContinueScroll()",3000);}}}else{if(!Ext.isEmpty(Ext.getCmp("optionallistpanel"))){var b=Ext.getCmp("optionallistpanel").body;b.scroll("bottom",275,true);scrolldelay=setTimeout("pageScroll()",3000);
if($("#optionallistpanel-body").scrollTop()+$("#optionallistpanel-body").innerHeight()>=$("#optionallistpanel-body")[0].scrollHeight){var f=window.parent.Ext.getCmp("tvmode").sliderAction;if(kioskmodeScrollInProgress&&f!=undefined&&f=="pause"){window.parent.Ext.getCmp("playBtn").ifScroll=false;stopScroll();
kioskmodeScrollInProgress=false;window.parent.Ext.getCmp("tvmode").sliderObj.play();}else{kioskmodeScrollInProgress=true;window.parent.Ext.getCmp("tvmode").sliderObj.pause();var c=window.parent.Ext.getCmp("playBtn").ifScroll=true;}}}}}function startTvModePlayAction(){jumpScroll();window.parent.startTvModePlayAction();
}function beforeContinueScroll(){var a=Ext.getCmp("listpanel");if(!Ext.isEmpty(a)){$("#listpanel-body").scrollTop(0);scrolldelay=setTimeout("pageScroll()",3000);}else{if(!Ext.isEmpty(Ext.getCmp("optionallistpanel"))){$("#optionallistpanel-body").scrollTop(0);scrolldelay=setTimeout("pageScroll()",3000);
}}}function stopScroll(){clearTimeout(scrolldelay);}function jumpScroll(){var a=Ext.getCmp("listpanel");if(!Ext.isEmpty(a)){clearTimeout(scrolldelay);gettingComponentDivId=0;$("#listpanel-body").scrollTop(0);}else{if(!Ext.isEmpty(Ext.getCmp("optionallistpanel"))){clearTimeout(scrolldelay);$("#optionallistpanel-body").scrollTop(0);
}}}scrolldelay=null;delete scrolldelay;