function CEstadistica(){
	this.init = function(){
		var tree = new Ext.tree.TreePanel({
			//autoHeight: true,
			height:600,
	        width: 228,
	        useArrows:true,
	        autoScroll:true,
	        animate:false,
	        enableDD:true,
	        border:false,
	        containerScroll: true,
	        rootVisible: false,
	        frame: true,
	        root: {
	            nodeType: 'async'
	        },
	        dataUrl: 'cfg/CEstadisticaTabTreePanel.php',
	        listeners: {
	            'click': function(node){
	        		if(node.leaf){
	        			var miframe=document.getElementById("iframeGrafico");
	        			miframe.src ='./ws/graph/graph' + node.id + '.php';
	        		} else {	        			
	        			// TODO: si es una carpeta despliegala
	        		}
	            }
	        }
	    });		

	    //tree.getRootNode().expand(true);
	    
		var panel = new Ext.Panel({        	
			border: true,
			//autoWidth: true,
			height:600,
    		width:1000,
			layout: 'column',
			items: [
    	        	tree,
    	        	new Ext.Panel({
    	        		border:false,
    	        		height:600,
    	        		width:600,
    	        		html: '<iframe id="iframeGrafico" src="./ws/graph/graph.php" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe>'
    	        	})
    		]
		});
		return panel;
	}
}
