G.util
		.ready(function() {
			$("ul.fila_detallado")
					.parent()
					.mouseover(function(e) {
						var dirimg = this.getAttribute("rel");
						dirimg = dirimg.replace(".jpgpeq.jpg", ".jpg");
						var d = G.dom.$("imagenFlotante");
						if (d && d.style.display !== "block") {
							d.style.display = "block";
							d.imagen.src = dirimg;
							d.imagen.width = 250;
							d.imagen.height = 188;
							if (this.className === "destacadoX") {
								d.img.style.display="block";
								d.fondo.style.display="block";
							}
							else{
								d.img.style.display="none";
								d.fondo.style.display="none";
							}
						}

					})
					.mouseout(function(e) {
						var d = G.dom.$("imagenFlotante");
						if (d) {
							d.style.display = "none";
						}
					})
					.mousemove(
							function(e) {
								var d = G.dom.$("imagenFlotante");
								if (d) {
									var pos = G.event.getPos(e);
									var x = (pos.x + 10);
									var y = (pos.y + 10);
									if (x + 10 + 250 > G.dom.$$$("body", 0).offsetWidth) {
										x = pos.x - 250 - 10;
									}
									if (y + 10 + 188 > document.documentElement.clientHeight
											+ document.documentElement.scrollTop) {
										y = pos.y - 188 - 10;
									}
									d.style.left = x + "px";
									d.style.top = y + "px";
								}
							});
			var b = G.dom.$$$("body", 0);
			var d = G.dom.create("div", "imagenFlotante");
			d.imagen = G.dom.create("img");
			d.appendChild(d.imagen);
			b.appendChild(d);
			d.img = G.dom.create("div");
			var s = {
				position : "absolute",
				right : "0px",
				bottom : "0px",
				zIndex : 2,
				background : "url(img/destacado.gif) no-repeat scroll 0% 0% transparent",
				width : "79px",
				height : "44px",
				display : "none"
			};
			G.util.parse(s, d.img.style);
			d.appendChild(d.img);
			d.fondo = G.dom.create("div");
			var s = {
				position : "absolute",
				right : "0px",
				bottom : "0px",
				zIndex : 1,
				background : "white",
				width : "79px",
				height : "44px",
				opacity : "0.8",
				filter : "alpha(opacity=80)",
				display : "none"

			};
			G.util.parse(s, d.fondo.style);
			d.appendChild(d.fondo);
		});
