intAbierto=0;
intAnterior=0;
function fncAbrirMenu() {

var posarriba=scrollarriba=window.parent.frames[1].document.body.scrollTop+35;
intAnterior=1;
window.parent.frames[1].document.all["Layer1"].style.top=posarriba;
window.parent.frames[1].document.all["Layer1"].style.left=0;
if(intIframe==1) {
document.getElementById("frTest").style.display = "inline"; 
document.getElementById("frTest").style.top=posarriba;
document.getElementById("frTest").style.left=0;
};

};

function fncCerrarMenu() {

intAnterior=0;
window.parent.frames[1].document.all["Layer1"].style.left=-2557;
if(intIframe==1) {
document.getElementById("frTest").style.display = "none"; 
document.getElementById("frTest").style.left=-250;
};
};

function fncComprobarMenu() {

	if (intAbierto!=intAnterior) {
		if(intAbierto==1) {
			fncAbrirMenu();
		} else {
			fncCerrarMenu();
		};		
	};
	
	setTimeout("fncComprobarMenu()",200);
};

fncComprobarMenu();


