//js document CSG 2007

function MM_setTextOfLayer(objId,x,newText) { //v9.0

  with (document) if (getElementById && ((obj=getElementById(objId))!=null))

    with (obj) innerHTML = unescape(newText);

}

function MM_changeProp(objId,x,theProp,theValue) { //v9.0

  var obj = null; with (document){ if (getElementById)

  obj = getElementById(objId); }

  if (obj){

    if (theValue == true || theValue == false)

      eval("obj.style."+theProp+"="+theValue);

    else eval("obj.style."+theProp+"='"+theValue+"'");

  }

}


function MM_showHideLayers() { //v9.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) 

  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

function MM_goTourl(img) { //v3.0

  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;

  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

}


var capa

function mostrar(idCapa){

if (document.layers) capa = eval("document." + idCapa);

if (document.all) capa = eval(idCapa + ".style");

if (document.getElementById) capa = eval('document.getElementById("' + idCapa + '").style');if ((capa.visibility == "hidden") || (capa.visibility == "hide")){

capa.visibility = (document.layers) ? "show" : "visible" ;

}else{

capa.visibility = (document.layers) ? "show" : "visible" ;
}
document.suscriptorform.nombre.focus();
}


var capa

function ocultar(idCapa){

if (document.layers) capa = eval("document." + idCapa);

if (document.all) capa = eval(idCapa + ".style");

if (document.getElementById) capa = eval('document.getElementById("' + idCapa + '").style');if ((capa.visibility == "hidden") || (capa.visibility == "hide")){

capa.visibility = (document.layers) ? "hide" : "hidden" ;

}else{

capa.visibility = (document.layers) ? "hide" : "hidden" ;

}

}

function escalar(idCapa,x,y){

	var capa;

	if (document.layers)

		capa = eval("document." + idCapa);

	if (document.all)

		capa = eval(idCapa + ".style");

	if (document.getElementById)

		capa = eval('document.getElementById("' + idCapa + '").style');

	capa.width = x + "px";

	capa.height = y + "px";

}
function mover(idCapa,x,y){

	var capa;

	if (document.layers)

		capa = eval("document." + idCapa);

	if (document.all)

		capa = eval(idCapa + ".style");

	if (document.getElementById)

		capa = eval('document.getElementById("' + idCapa + '").style');

	capa.left = x + "px";

	capa.top = y + "px";

}

<!--
var T;
var Tanto = 0;
function Opacidad(ID,SiNo)
{
	if(SiNo == 1)
		Tanto+=10;
	else
		Tanto-=10;
	if(Tanto > 100 || Tanto < 0)
	{
		clearTimeout(T);
		if(Tanto <= 0)
		{
			Tanto = 0;
			document.getElementById("ImagenGrande").style.visibility="hidden";
		}else{
			Tanto = 100;
		}
		return;
	}
	if(document.all)
		document.getElementById(ID).style.filter = "alpha(opacity = " + Tanto + ");";
	else
		document.getElementById(ID).style.opacity = Tanto;
	
	T = setTimeout("Opacidad('" + ID + "'," + SiNo +")", 1);
}
function MostrarFoto(SRC)
{
	var Capa = document.getElementById("ImagenGrande");
	document.getElementById("Foteador").style.visibility="hidden";
	Capa.style.visibility = "visible";
	Capa.innerHTML = "<table  background='images/bg_degradado.jpg' cellspacing='0' cellpading='0' border='0' class='Estilo2'><tr><td align='right'><a href='javascript:OcultarFoto();'>Cerrar</a></td></tr><tr><td><img src='" + SRC + "' onclick='OcultarFoto();' style='cursor:pointer;' align='absmiddle' /><br /></td></tr></table>";
	Opacidad(Capa.id, 1);
}

function OcultarFoto()
{
	var Capa = document.getElementById("ImagenGrande");
	Opacidad(Capa.id, 0);
	document.getElementById("Foteador").style.visibility="visible";
}
//-->

<!-- Popeador CSG 2004 -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=508,height=250,left = 450.5,top = 157.5');");
}
// End -->

var capa

function cambio(idCapa){

if (document.layers) capa = eval("document." + idCapa);

if (document.all) capa = eval(idCapa + ".style");

if (document.getElementById) capa = eval('document.getElementById("' + idCapa + '").style');if ((capa.visibility == "hidden") || (capa.visibility == "hide")){

capa.visibility = (document.layers) ? "show" : "visible" ;

}else{

capa.visibility = (document.layers) ? "hide" : "hidden" ;

}

}

//-->
