{ id: 'db_node_%%%NODEID%%%', layout:'vbox', tools: [{ id:'gear', handler: function(){ } }], frame: true, bodyStyle: 'padding: 0px;', plr: null, title: '%%%NODENAME%%%', sukaMineWidth: -1, items:[{ id: 'db_node_%%%NODEID%%%_pic', border: true, width: '100%', html: '' },{ xtype: 'spacer', height: 3 },{ html: '
 
 
  
', height: 90 }], listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ if( rawWidth!= undefined ){ if( p.sukaMineWidth != adjWidth ){ p.sukaMineWidth = adjWidth; var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( XX + 120 ); var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.setHeight( XX ); }; }; var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.update(''); }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( xx + 120 ); var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.setHeight( xx ); document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); }, destroy: function( t ){ if( t.plr != null ) t.plr.dispose(); t.plr = null; } } }