//	POPUP --------------------------------------------------
function irA(cadena){
	window.document.flash.SetVariable("seccion", cadena);
	window.document.flash.TCallLabel("/","cambiar");
}

function pop(a,w,h,t){ 
	l=(screen.width-w)/2; 
	t=(screen.height-h)/2;
	if (t==undefined) t="_blank";
	property="width="+w+",height="+h+",top="+t+",left="+l; 
	var vPopup = window.open(a,t,property);
	if (vPopup == undefined) alert("No se pudo abrir la ventana.\nAsegrate de no tener un bloqueador de ventanas habilitado.");
	vPopup.focus();
}

//	REDIMENSIONAR VENTANA AL CENTRO --------------------------
function resizeWin(w, h) {
	window.resizeTo(w, h);
	window.moveTo((screen.width - w) / 2, (screen.height - (h + 28)) / 2);
}

//	FULLSCREEN ------------------------------------------------
function launchFull(url,name) {
	//alert(name);
	var str = "scrollbars=no,left=0,screenX=0,top=0,screenY=0";

	var ah = (window.screen)?(window.screen.availHeight - 30):770;
	var aw = (window.screen)?(window.screen.availWidth - 10):590;
	str += ",height=" + ah;
	str += ",innerHeight=" + ah;
	str += ",width=" + aw;
	str += ",innerWidth=" + aw;
	str += ",location";
	str += ",resizable";

	ventanaFull = window.open(url, name, str);
	ventanaFull.focus();		
}

//	ABRE POPUP EN EL OPENER -----------------------------------
function popupOpener(URLtoOpen,ancho,alto) {
	var popup = window.open(URLtoOpen, "popup", "resizeable=0,status=0,width=" + ancho + ",height=" + alto + ",scrollbars=no");
	popup.focus();
	popup.moveTo((screen.width - ancho) / 2, (screen.height - (alto + 50)) / 2);
}

function ampliarIframe(bSentido) {
	var vIframe = document.getElementById("detector");
	vIframe.style.display = bSentido?"":"none";
	vIframe.style.height = bSentido?"30px":"1px";
}

function detectarFlash() {
	var vIframe = document.getElementById("detector");
	var vLocation = vIframe.contentWindow.document.location;
	if (String(vLocation).indexOf("flash_no.htm") != -1){
		vIframe.style.height="0px";
		vIframe.src = "htm/detector.htm";
	}
}



