var maxim=2;
var minim=0;
var defecto=0;
var tamanoactual=defecto;

function menosTamano() {
	if (tamanoactual > minim) {
		tamanoactual-=1;
		clase="textoNegro"+tamanoactual; /* clases: textoNegro0, textoNegro1, textoNegro2,textoNegro3 definidas en el .css */
		document.getElementById("contenido").className=clase;
	}
}

function masTamano() {
	if (tamanoactual < maxim) {
		tamanoactual+=1;
		clase="textoNegro"+tamanoactual; /* clases: textoNegro0, textoNegro1, textoNegro2, textoNegro3 definidas en el .css */
		document.getElementById("contenido").className=clase;
	} 
}
menu_status = new Array(); 

function showHide(theid){
    if (document.getElementById) {
	if (theid == "all"){
		for(i=1;i<=15;i++){
		document.getElementById("menu"+i).className = 'hide'; 
		menu_status["menu"+i] = 'hide';
		}
	} else {
			for(i=1;i<=15;i++){
				document.getElementById("menu"+i).className = 'hide'; 
				menu_status["menu"+i] = 'hide';
			}
    		var switch_id = document.getElementById(theid);
        		if(menu_status[theid] != 'show') {
           		switch_id.className = 'show';
           		menu_status[theid] = 'show';
        		}else{
           		switch_id.className = 'hide';
           		menu_status[theid] = 'hide';
        		}
			}
		
    }
}
function showLink(theLink){
    if (document.getElementById) {
	for(i=1;i<=26;i++){
		document.getElementById("link"+i).className = 'menu';
	}
    var link_id = document.getElementById(theLink);
    link_id.className = 'menuOver';
	}
}
var enlaceActivo = '';
function showActive(theActive){
	enlaceActivo = theActive;
}
function showMenuOver(theMenuOver){
	if (document.getElementById) {	
	var menuover = document.getElementById(theMenuOver);
		if (enlaceActivo == theMenuOver){
		menuover.className = 'menuOver'
		}else{
		menuover.className = 'menu'
		}
	}
}
function Cargar(Seccion, Enlace, Idioma){
	if((Seccion!=null) && (Enlace!=null) && (Idioma!=null)){
		parent.contenido.location.href = "frm_enlace.asp?s="+Seccion+"&e="+Enlace+"&i="+Idioma;
	}else{
		parent.contenido.location.href = "frm_error.htm";
	}
}
//Activa el link abierto de los submenus
document.alinkColor = "#98b311";
//Funciones de scrolleo
function movedown(){
	if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
	else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
		crossobj.top-=speed
		movedownvar=setTimeout("movedown()",20)
	}
	function Cargar(Seccion, Enlace, Idioma){
	if((Seccion!=null) && (Enlace!=null) && (Idioma!=null)){
		parent.contenido.location.href = "frm_enlace.asp?s="+Seccion+"&e="+Enlace+"&i="+Idioma;
	}else{
		parent.contenido.location.href = "frm_error.htm";
	}
}
//Activa el link abierto de los submenus
document.alinkColor = "#98b311";
//Funciones de scrolleo
function movedown(){
	if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
	else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
		crossobj.top-=speed
		movedownvar=setTimeout("movedown()",20)
	}
function imprimir() {
if (window.print)
window.print()
else
alert("Para imprimir presione Crtl+P.");
}
function atras(){
	parent.contenido.history.go(-1);
	}
function siguiente(){
	parent.contenido.history.go(+1);
	}
	function moveup(){
	if (iens6&&parseInt(crossobj.style.top)<=0)
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
	else if (ns4&&crossobj.top<=0)
		crossobj.top+=speed
		moveupvar=setTimeout("moveup()",20)
}

function getcontent_height(){
	if (iens6)
		contentheight=crossobj.offsetHeight-200
	else if (ns4)
		document.nscontainer.document.nscontent.visibility="show"
	}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

