function MiBannerDesplegable(fixed,floated,x,y)
	{	
		var ObjectPosition = function(fixed)
			{				
				var curleft = 0;
				var curtop = 0;
				if (fixed.offsetParent) {
					do {
						curleft += fixed.offsetLeft;
						curtop += fixed.offsetTop;
					} while (fixed = fixed.offsetParent);
				}
				return [curleft,curtop];
			};				

		this.fixed = document.getElementById(fixed);
		this.floated = document.getElementById(floated);
		this.x = x;
		this.y = y;

		var aryPosition = ObjectPosition(this.fixed);
		var curleft = aryPosition[0];
		var curtop = aryPosition[1];
		var contenidoFloated = this.floated.innerHTML;
		this.floated.innerHTML='';
		
		this.showFlyout = function() 
			{				
				this.floated.style.left = curleft + (this.x) + "px";
				this.floated.style.top = curtop + (this.y) + "px";
				this.floated.innerHTML=contenidoFloated;
				this.floated.style.display="block";
			}
		this.hideFlyout = function() 
			{
				this.floated.style.display='none';
				this.floated.innerHTML='';
			}
	}		
