var originalX = 0;
var originalY = 0;
var originalWidth = 0;
var originalHeight = 0;

function abrirBanner (nombreCapa, top, left, width, height) {
	
	laCapa = document.getElementById(nombreCapa);
	
	originalX = laCapa.style.left;
	originalY = laCapa.style.top;
	originalWidth = laCapa.style.width;
	originalHeight = laCapa.style.height;
	
	laCapa.style.top = top;
	laCapa.style.left = left;
	laCapa.style.width = width;
	laCapa.style.height = height;
	
}

function cerrarBanner (nombreCapa) {
	
	laCapa = document.getElementById(nombreCapa);
	
	laCapa.style.left = originalX;
	laCapa.style.top = originalY;
	laCapa.style.width = originalWidth;
	laCapa.style.height = originalHeight;
	
}

/*

PARA INCLUIR UN DESPLEGABLE:

1. incluir este codigo en el head
<script language="javascript" type="text/javascript" src="/js/desplegable.js"></script>

2. poner el ultimo parametro de todos los flashes de la pagina a "opaque" excepto el desplegable que sera "transparent"

3. mover el script de carga del banner desplegable e incluirlo en dentro de un div con id=desplegable
<div id="desplegable" style="position:absolute; top:0; left:138; width:612; height:118; z-index:5;">

4. incluir estas lineas en el primer fotograma del banner
Stage.align = "TR";
Stage.scaleMode = "noscale";

5. incluir esta linea dentro del banner cuando debe desplegarse:
getURL("javascript:abrirBanner('desplegable', top, left, width, height);");
NOTA: los parametros deben coincidir con la posiciones y dimensiones que le corresponda a la posicion original del banner

6. incluir esta linea dentro del banner cuando debe plegarse:
getURL("javascript:cerrarBanner('desplegable');");

*/
