/*
 * Imagen de la casa
 */
var imgLaCasa = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Fachada_01.jpg'
	}
});

var imgPlantaBaja = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Cocina_02.jpg'
	}
});

var imgCocina = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Cocina_01.jpg'
	}
});

var imgSalita = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Salon_04.jpg'
	}
});

var imgBano = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Bano_03.jpg'
	}
});

var imgGarage = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Cochera_01.jpg'
	}
});

var imgPatio = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Patio_01.jpg'
	}
});

var imgHabitacionMatrimonio = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Habitacion_03.jpg'
	}
});

var imgHabitacionDoble = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Habitacion_07.jpg'
	}
});

var imgSalon = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Salon_02.jpg'
	}
});

var imgCuartoBano = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '267px',
		height : '200px',
		src    : './imagenes/200x267/Bano_02.jpg'
	}
});

var imgTerrazas = new Ext.Panel({
	
	bodyCfg      : {
		cls    : 'img_on_panel',
		tag    : 'img',
		width  : '200px',
		height : '267px',
		src    : './imagenes/267x200/Terraza_02.jpg'
	}
});


if (!redireccionar()) {
	Ext.onReady(function() {
		
		/*
		 * Hacemos que al poner el ratón encima del elemento, se muestre la imagen correspondiente.
		 */
		 Ext.QuickTips.init();
		
		 new Ext.ToolTip({
	            target       : 'idLaCasa',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgLaCasa]
			});
		
		 new Ext.ToolTip({
	            target       : 'idPlantaBaja',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgPlantaBaja]
			});
		
		 new Ext.ToolTip({
	            target       : 'idCocina',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgCocina]
			});
		
		 new Ext.ToolTip({
	            target       : 'idSalita',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgSalita]
			});
		
		 new Ext.ToolTip({
	            target       : 'idBano',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgBano]
			});
		
		 new Ext.ToolTip({
	            target       : 'idGarage',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgGarage]
			});
		
		 new Ext.ToolTip({
	            target       : 'idPatio',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgPatio]
			});
		
		 new Ext.ToolTip({
	            target       : 'idHabitacionMatrimonio',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgHabitacionMatrimonio]
			});
		
		 new Ext.ToolTip({
	            target       : 'idHabitacionDoble',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgHabitacionDoble]
			});
		 
		 new Ext.ToolTip({
	         target       : 'idSalon',   
	         width        : 'auto',
	         height       : 'auto',
	         items        : [imgSalon]
			});
		
		 new Ext.ToolTip({
	            target       : 'idCuartoBano',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgCuartoBano]
			});
		
		 new Ext.ToolTip({
	            target       : 'idTerrazas',   
	            width        : 'auto',
	            height       : 'auto',
	            items        : [imgTerrazas]
			});
	});
}
