	var Ventana_aviso = Class.create({
		
		initialize: function(){
		
			this.ventana;
			this.borde_arriba;
			this.centro;
			this.borde_abajo
			this.texto;
			this.botones;
			
			this.crear_ventana();
			this.crear_borde_arriba();
			this.crear_centro();
			this.crear_borde_abajo();
			this.crear_texto();
			this.crear_botones();
			
			this.centro.insert(this.texto);
			this.centro.insert(this.botones);
			
			this.ventana.insert(this.borde_arriba);
			this.ventana.insert(this.centro);
			this.ventana.insert(this.borde_abajo);
			
			$('telon').insert(this.ventana);
			$('telon').show();		
		
		},
		
		crear_ventana: function(){
			this.ventana = new Element("div", {"id": "ventana-aviso"});
		},
		
		crear_borde_arriba: function(){
			this.borde_arriba = new Element("div", {"class": "sup"});
		},
		
		crear_centro: function(){
			this.centro = new Element("div", {"class": "med"});
		},
		
		crear_borde_abajo: function(){
			this.borde_abajo = new Element("div", {"class": "inf"});
		},
	
		crear_texto: function(){
			var texto_esp = "<h2>S&oacute;lo ha seleccionado 1 espacio</h2><p>Le recordamos que puede recibir información de varios espacios con una única solicitud. Para ello sólo tiene que añadirlos a su lista.</p><p>¿Est&aacute; seguro de que desea continuar?</p>";
			this.texto = new Element("div", {"class": "texto"} );
			this.texto.update(texto_esp);
		},
		
		crear_botones: function(){
			this.botones = new Element("div", {"class": "botones", "style": "text-align: center"});
			var boton1 = new Element("div", {"class": "boton-solicitud clase"});
			var boton2 = new Element("div", {"class": "boton-solicitud clase"});
			boton1.update("SÍ, SOLICITAR INFORMACIÓN");
			boton2.update("NO, AÑADIRÉ MÁS ESPACIOS");
			
			Event.observe(boton1, "click", this.continuar);
			Event.observe(boton2, "click", this.cerrar);
			
			this.botones.insert(boton1);
			this.botones.insert(boton2);
		},
		
		cerrar: function(){
			$('ventana-aviso').remove();
			$('telon').hide();
		},
		
		continuar: function(){
			window.location.href="http://www.ofisecre.com/confirmar";
		}
	});
