function inicio(){
	//cambio tamaņo de contenido
	document.getElementById('cont').style.width = anchopag+"px";
	document.getElementById('centradohor').style.width = anchopag+"px";
	document.getElementById('cont').style.height = altopag+"px";
	document.getElementById('centradohor').style.height = altopag+"px";
	//cambio fuente de contenido
	document.getElementById('cont').style.fontSize = fuente+"pt";
}

// #############################################################################
// Funciones varias
function AgregarFavoritos(fav_url,fav_titulo){
if (document.all)
	window.external.AddFavorite(fav_url,fav_titulo)
}
function reemplazar(str, match, replace) {
  str=str+"";
  var a = str.indexOf(match);
  if (a >= 0) { str = str.substring(0,a) + replace + str.substring(a + match.length); }
  return str;
}
// #############################################################################
// Funciones usadas en pagina de inicio
function ini_es(){
	document.getElementById("m_en").style["visibility"] = "hidden";
	document.getElementById("m_es").style["visibility"] = "visible";
	document.getElementById("boton_es").style["visibility"] = "hidden";
	document.getElementById("boton_en").style["visibility"] = "hidden";
	o_marq_ambos.quitar();
	o_marq_en.quitar();
	o_marq_es.comenzar();
}

function ini_en(){
	document.getElementById("m_es").style["visibility"] = "hidden";
	document.getElementById("m_en").style["visibility"] = "visible";
	document.getElementById("boton_es").style["visibility"] = "hidden";
	document.getElementById("boton_en").style["visibility"] = "hidden";
	o_marq_ambos.quitar();
	o_marq_es.quitar();
	o_marq_en.comenzar();
}

function ini_eleccion() {
	document.getElementById("m_es").style["visibility"] = "hidden";
	document.getElementById("m_en").style["visibility"] = "hidden";
	document.getElementById("boton_es").style["visibility"] = "visible";
	document.getElementById("boton_en").style["visibility"] = "visible";
	o_marq_ambos.comenzar();
}
// #############################################################################
function CrearCookie(nombre,valor,dias) {
	if (dias != 0) {
		var fecha = new Date();
		fecha.setTime(fecha.getTime() + dias*24*360*1000 );
		var expir = "; expires=" + fecha.toGMTString();
	}
	else var expir = "";
	document.cookie = nombre + "=" + valor + expir + "; path=/";
}
function LeerCookie(nombre) {
	nombre = nombre + "=";
	var tcook = document.cookie.split(';');
	for(var i=0 ; i < tcook.length ; i++) {
		var cook = tcook[i];
		while (cook.charAt(0)==' ') cook = cook.substring(1,cook.length);
		if (cook.indexOf(nombre) == 0) return cook.substring(nombre.length,cook.length);
	}
	return null;
}
function BorrarCookie(nombre) {
	CrearCookie(nombre,"",-1);
}
// #############################################################################
//Ocultar elemento, manteniendo el espacio que ocuparia en pantalla
function ocultar_mf(idElemento)
{
    document.getElementById(idElemento).style["visibility"] = "hidden";
}
//Mostrar elemento
function mostrar_mf(idElemento)
{
    document.getElementById(idElemento).style["visibility"] = "visible";
}
//Ocultar elemento, incluyendo el espacio que ocuparia si estuviera visible
function ocultar(idElemento)
{
    document.getElementById(idElemento).style["display"] = "none";
}
//Mostrar elemento como si fuera DIV
function mostrar_bloque(idElemento)
{
    document.getElementById(idElemento).style["display"] = "block";
}
//Mostrar elemento como si fuera SPAN
function mostrar_enlinea(idElemento)
{
    document.getElementById(idElemento).style["display"] = "inline";
}
// #############################################################################
//abrir ventana
function win(pagina,ancho,alto){
    izq=(screen.width)?(screen.width-ancho)/2:100;
    arr=(screen.height)?(screen.height-alto)/2:100;
    prop = 'top=' + arr + ',left=' + izq + ',width=' + ancho + ',height=' + alto +
           ',location=no , directories=no , menubar=no , toolbar=no , status=no , ' +
           'scrollbars=no , resizable=no , fullscreen=no';
    PopWin = window.open(pagina,'PopWin',prop);
    PopWin.focus();
}
// #############################################################################
function ListaCorreo(idioma){
    if (idioma=='es') pagina='../e-mail_es.php';
    if (idioma=='en') pagina='../e-mail_en.php';
    ancho = 400;
    alto = 300;
    izq=(screen.width)?(screen.width-ancho)/2:100;
    arr=(screen.height)?(screen.height-alto)/2:100;
    prop = 'top=' + arr + ',left=' + izq + ',width=' + ancho + ',height=' + alto +
           ',location=no , directories=no , menubar=no , toolbar=no , status=no , ' +
           'scrollbars=no , resizable=no , fullscreen=no';
    PopWin = window.open(pagina,'PopWin',prop);
    PopWin.focus();
}

function Contactos(idioma){
    if (idioma=='es') pagina='/email_es.php';
    if (idioma=='en') pagina='/email_en.php';
    ancho = 630;
    alto = 560;
    izq=(screen.width)?(screen.width-ancho)/2:100;
    arr=(screen.height)?(screen.height-alto)/2:100;
    prop = 'top=' + arr + ',left=' + izq + ',width=' + ancho + ',height=' + alto +
           ',location=no , directories=no , menubar=no , toolbar=no , status=no , ' +
           'scrollbars=no , resizable=no , fullscreen=no';
    PopWin = window.open(pagina,'PopWin',prop);
    PopWin.focus();
}

/* Cambia imagen de tag identificado con propiedad name */
function Cambiar(nombre,imagen){
    document.images[nombre].src = imagen.src;
}
// #############################################################################
// #############################################################################
// #############################################################################

