muro = function(){
	
	var elLayout = Ext.DomHelper.append(document.body, {
		tag: "div", 
		id: "muro"
	}, true);
	
	var layout = new Ext.BorderLayout(elLayout, {
		monitorWindowResize: true,
		//north: { initialSize: 25 },
		center: { autoScroll: true },
		south: { initialSize: 85 }
	});
	
	/*var panelNorth = layout.add("north", new Ext.ContentPanel({
		autoCreate: true,
		fitToFrame: true,
		fitContainer: true
	}));
	
	var templatePanelNorth = new Ext.Template(
		'<table style="width:100%; height:100%; background:#EDF6FF; color:000066; font-size:10px;"><tbody>',
		'<td style="padding:5px;">',
		'Escribe lo que quieras en el Muro ;)<br>',
		'</td>',
		'</tbody></table>'
	);
	
	templatePanelNorth.overwrite(panelNorth.getEl());*/
	
	var elLayoutSouth = Ext.DomHelper.append(document.body, {
		tag: "div"
	}, true);
	
	var layoutSouth = new Ext.BorderLayout(elLayoutSouth, {
		monitorWindowResize: true,
		center: {}
	});
	
	layoutSouth.add("center", new post());
	
	layout.add("south", new Ext.NestedLayoutPanel(layoutSouth, {
		autoCreate: true,
		fitToFrame: true,
		fitContainer: true
	}));

	muro.superclass.constructor.call(this, layout, {
		title: "El Muro",
		autoCreate: true
	});
};
Ext.extend(muro, Ext.NestedLayoutPanel);/*
Ext.extend(muro, Ext.NestedLayoutPanel, {

	ventanas: [],

	dias: function(){
		var fechaActual = new Date();
		var dias = 400 - fechaActual.getDayOfYear();
		return dias;
	},
	
	somos: function(){
		this.cnn.request({
			url: "modulos/usuario/somos.php",
			method: "get",
			success: function(response, options){	
				Ext.get("somos").update(response.responseText);
			}
		});
	},
	
	aficheFocus: function(e, target){
		var afiche = Ext.get(target.id);
		if(afiche){
			if(e.type === "mouseover"){ afiche.dom.src = "images/microaficheFocus.jpg"; };
			if(e.type === "mouseout"){ afiche.dom.src = "images/microafiche.jpg"; };
			if(e.type === "click"){ afiche.dom.src = "images/microafichePressed.jpg"; };
		};
	},
	
	mostrarAfiche: function(e, target){
		if(!this.ventanas["afichebig"]){
			var el = Ext.DomHelper.append(document.body, {tag: "div"}, true);
			var ruta = "images/afiche" + String(2) + ".jpg";
			var ventana = new Ext.LayoutDialog(el, {
				modal: true,
				//(indicacion) margenes: w=28 h=51
				width: 420,
				height: 607,
				shadow: true,
				draggable: false,
				collapsible: false,
				autoTabs: true,
				resizable: false,
				title: ruta,//"Afiche oficial",
				center: { autoCreate: true }
			});					
			var layout = ventana.getLayout();	
			var panelCentro = layout.add("center", new Ext.ContentPanel({
				autoCreate: true										  
			}));
			//"' + variable + '"
			var templatepanelCentro = new Ext.Template(
				'<table cellpadding="0" cellspacing="0" style="width:100%; height:100%; background:#EDF6FF; background-image:url(images/background.png);" >',
					'<tbody>',
						'<tr>',
							'<td align="center" style="width:100%; height:100%;">',
								'<img src="' + ruta + '" alt="ˇLevántate y Resplandece!">',
							'</td>',
						'</tr>',
					'</tbody>',
				'</table>'
			);	
			templatepanelCentro.overwrite(panelCentro.getEl());
			this.ventanas["miniafiche"] = ventana;
		};
		this.ventanas["miniafiche"].show(target.id);
	}	   
});*/