<!--
/*
*	Objeto menú slide
*	Módulo compuesto por la definición de la clase objeto y las funciones de librería encargadas
*	del movimiento de los menús.
*
*	(c) Adico I&C 2003
*	Para más información puede contactar con:
*		e-Mail: desarrollo@adico.com
*		Tlf: 985 245 144
*/

/*************************************************************************************************
						DEFINICIÓN DE CONSTANTES Y VARIABLES PÚBLICAS
**************************************************************************************************/
//variables de programa
var NN = false; //--> true si es nestscape version inferior a la 6
var IE = false; //--> true si es IExplorer
var NN6 = false; //--> true si es nestcape version superior a la 6
var HIDDEN = ''; //--> hide para netscape inferior al 6, hidden para todos los demas
var VISIBLE = ''; //--> show para netscape inferior al 6, visible para todos los demas
var myLayer = null; //--> guarda todas las capas
var AICmain = null;//--> guarda los menus principales
var mySpeed = 15; //--> velocidad de movimientos
var subLeft = 0; //--> -10 para netscape version inferior a la 6
var closes = true; //--> indica si están todos colapsados
var whichOpen = -1; //--> cual esta abierto, ninguno
var running = false; //--> procesos en ejecución, bien de apertura o cerrado
var lastMain = 0; //--> ultima capa menu
var ieStep = 0;
var thereS = false;
var thereC = false;
var first;
var firstl;
var firstc;
var firstp;

//variables de estilo de los menús principales
var colorFondo = "#E2E2E2"; //--> fondo de la capa menu
var colorFondoSubMnu = "#F7F7F7"; //--> fondo de la capa submenu
var pathImgSep = ""; //--> imagen que hace de separador
var imgAlto = "0"; //--> alto de la limagen separadora
var claseLink = "titulo"; //--> clase de estilo a aplicar a los hipervínculos del menú principal
var claseSubLink = "enlace"; //--> clase de estilo a aplicar a los hipervínculos de los submenús
var alineacionMenu = "left"; //--> alineación de los menús LEFT|CENTER|RIGTH
var alineacionSubMnu = "left"; //--> alineación horizontal de los submenús LEFT|CENTER|RIGTH
var centradoSubMnu = "middle"; //--> alineación vertical de los submenús TOP|MIDDLE|BOTTOM
var colorTabla = "#F7F7F7"; //--> color de fondo de la tabla del submenu
var espaciadoCelda = 0; //--> tabla submenú
var rellenoCelda = 0; //--> tabla submenú
var anchoBorde = 0; //--> tabla submenú
var colorBorde = "#000000" //--> tabla submenú
/*************************************************************************************************
						DEFINICIÓN DE LA CLASE MENU Y SUB-CLASES NECESARIAS
**************************************************************************************************/
//objeto menu, constructor
function objMenu(p_iPosX, p_iPosY, p_iAlto, p_iAncho, p_iAltoSubMnu){
	// propiedades del objeto
	this.iPosX = p_iPosX;
	this.iPosY = p_iPosY;
	this.iAlto = p_iAlto;
	this.iAncho = p_iAncho;
	this.iAltoSubMnu = p_iAltoSubMnu;
	
	this.arrElements = new Array();
	
	//metodos del objeto
	this.addItemMenu = f_addItemMenu;
	this.construyeMenu = f_construyeMenu;
	this.AICInicializaMenu = AICInicializaMenu;
	
}

//definicion de los métodos del objeto menu, constructor
function f_addItemMenu(p_sTexto,p_sLink, p_sTarget, p_sStatus, p_sParameters, p_Open){
	this.arrElements[this.arrElements.length] = new objSubMenu(p_sTexto,p_sLink, p_sTarget, p_sStatus, p_sParameters, p_Open);
	return (this.arrElements[this.arrElements.length - 1]);
}

function f_construyeMenu(){
	var strAux = '';

	for (var i = 0,j = 0,k = 0; i < this.arrElements.length; i++, k++){
		//generamos la capa del menú principal
		strAux += '<DIV id="AIC' + k + '" style="position:absolute; width:' + this.iAncho + 'px; height:' + this.iAlto + 'px; z-index:2; left:' + this.iPosX + 'px; ';
		strAux += 'top:' + this.iPosY + 'px; background-color:' + colorFondo + '; layer-background-color:' + colorFondo + '; border: 1px none #000000; visibility: hidden;">';
		strAux += '<div align="' + alineacionMenu + '"><img src="../es/js/%27%20%2B%20pathImgSep%20%2B%20%27" width="' + this.iAncho + '" height="' + imgAlto + '"><br>';
		//strAux += '<a href="javascript:AICEjecutaMenu(' + k + ',\'' + this.arrElements[i].sLink + '\',\'' + this.arrElements[i].arrSubElements.length + '\',\'' + this.arrElements[i].sParameters + '\')" class="' + claseLink + '" target="' + this.arrElements[i].sTarget + '"';
		if (this.arrElements[i].sOpen==0){
			strAux += '<a href="javascript:AICEjecutaMenu(' + k + ',\'' + this.arrElements[i].sLink + '\',\'' + this.arrElements[i].arrSubElements.length + '\',\'' + this.arrElements[i].sParameters + '\')" class="' + claseLink + '"';
		}else{
			strAux += '<a href="#" onClick="' + this.arrElements[i].sLink + '" class="' + claseLink + '"';			
		}
		if (this.arrElements[i].sStatus != ''){
			while (this.arrElements[i].sStatus.indexOf('"') != -1)
				this.arrElements[i].sStatus = this.arrElements[i].sStatus.replace('"','\'');
			strAux += ' onMouseOver="javascript:window.status=\'' + this.arrElements[i].sStatus + '\';return true;"';
			strAux += ' onMouseOut="javascript:window.status=\'\';return true;"';
		}
		strAux += '>' + this.arrElements[i].sTexto + '</a>';
		strAux += '</div></div>';
		//document.write(strAux);
		//generamos la capa del submenú, si tiene
		if (this.arrElements[i].arrSubElements.length > 0){
			strAux += '<DIV id="AIC' + (++k) + '" style="position:absolute; width:' + this.iAncho + 'px; height:' + (this.iAltoSubMnu * this.arrElements[i].arrSubElements.length + this.arrElements[i].arrSubElements.length) + 'px; ';
			strAux += 'z-index:1; left:' + this.iPosX + 'px; top:' + this.iPosY + 'px; background-color:' + colorFondoSubMnu + '; layer-background-color:' + colorFondoSubMnu + '; ';
			strAux += 'border: 1px none #000000; visibility: hidden">';
			strAux += '<table width="' + this.iAncho + '" cellpadding="' + rellenoCelda + '" cellspacing="' + espaciadoCelda + '" border="' + anchoBorde + '" bordercolor="' + colorBorde + '">';
			//generamos todos los submenús
			for (j = 0; j < this.arrElements[i].arrSubElements.length; j++){
				var objAux = this.arrElements[i].arrSubElements[j];
				strAux += '<tr align="' + alineacionSubMnu + '" valign="' + centradoSubMnu + '">';
				strAux += '<td width="19" bgcolor="' + colorFondo + '" height="' + this.iAltoSubMnu + '">&nbsp;</td>';
				strAux += '<td bgcolor="' + colorTabla + '" height="' + this.iAltoSubMnu + '"> ';
				if (objAux.sOpen==0){
					strAux += '<a href="' + objAux.sLink + (objAux.sLink != 'javascript:;'?'?lCMnu=' + (k-1) + '&lNChl=' + this.arrElements[i].arrSubElements.length + (objAux.sParameters != ''?'&' + objAux.sParameters:''):'') + '" target="' + objAux.sTarget + '" class="' + claseSubLink + '"';
				}else{	
					strAux += '<a href="#" onClick="' + objAux.sLink + '" class="' + claseSubLink + '"';
				}
				if (objAux.sOver != '' || objAux.sStatus != ''){ //programamos el onmouseover
					while (objAux.sOver.indexOf('"') != -1) //quitamos las dobles comillas que pueda haber
						objAux.sOver = objAux.sOver.replace('"','\'');
					strAux += ' onMouseOver="javascript:';
					if (objAux.sOver != '')
						strAux += objAux.sOver + ';';
					if (objAux.sStatus != '')
						strAux += 'window.status=\'' + objAux.sStatus + '\';return true;'
					strAux += '"';
				}
				if (objAux.sOut != '' || objAux.sStatus != ''){ //programamos el evento onmouseout
					while (objAux.sOut.indexOf('"') != -1) //quitamos las dobles comillas que pueda haber
						objAux.sOut = objAux.sOut.replace('"','\'');
					strAux += ' onMouseOut="javascript:';
					if (objAux.sOut != '')
						strAux += objAux.sOut + ';';
					if (objAux.sStatus != '')
						strAux += 'window.status=window.defaultStatus;return true;';
					strAux += '"';
				}
				if (objAux.sClick != ''){ //programamos el evento onclick
					while (objAux.sClick.indexOf('"') != -1) //quitamos las dobles comillas que pueda haber
						objAux.sClick = objAux.sClick.replace('"','\'');
					strAux += ' onClick="javascript:';
					strAux += objAux.sClick + ';';
					strAux += '"';
				}
				strAux += '>' + objAux.sTexto + '</a></td>';
				strAux += '<td width="5" bgcolor="' + colorFondo + '" height="' + this.iAltoSubMnu + '">&nbsp;</td>';
				strAux += '</tr>';
				strAux += '<tr><td width="19" bgcolor="' + colorFondo + '"></td><td height="1" bgcolor="' + colorFondo + '"></td><td width="5" bgcolor="' + colorFondo + '"></td></tr>';
			}//fin for
			strAux += '</table></div>';
			//document.write(strAux);
		}//fin si
	}
	
	//alert(strAux);
	document.write (strAux);
}

//objeto submenu nivel 1
function objSubMenu(p_sTexto, p_sLink, p_sTarget, p_sStatus, p_sParameters, p_Open){
	//propiedades del objeto
	this.sTexto = p_sTexto;
	this.sLink = (p_sLink == '' || typeof(p_sLink) == 'undefined')?'':p_sLink;
	this.sParameters = (p_sParameters == '' || typeof(p_sParameters) == 'undefined')?'':p_sParameters;
	this.sStatus = (p_sStatus == '' || typeof(p_sStatus) == 'undefined')?'':p_sStatus;
	this.sTarget = (p_sTarget == '' || typeof(p_sTarget) == 'undefined')?'_self':p_sTarget;
	this.sOpen = p_Open;
	this.arrSubElements = new Array();
	
	//metodos del objeto
	this.addSubItemMenu = f_addSubItemMenu;
}

//definicion de los métodos del objeto menu, primer nivel
function f_addSubItemMenu(p_sTexto, p_sLink, p_sTarget, p_sOver, p_sOut, p_sClick, p_sStatus,p_sParameters, p_Open){
	this.arrSubElements[this.arrSubElements.length] = new objItemSubMenu(p_sTexto, p_sLink, p_sTarget, p_sOver, p_sOut, p_sClick, p_sStatus, p_sParameters, p_Open);
}

//objeto submenu nivel 2
function objItemSubMenu(p_sTexto, p_sLink, p_sTarget, p_sOver, p_sOut, p_sClick, p_sStatus, p_sParameters, p_Open){
	//propiedades del objeto
	this.sTexto = p_sTexto;
	this.sLink = (p_sLink == '' || typeof(p_sLink) == 'undefined')?'javascript:;':p_sLink; //--> url enlace, si no epecifica nada javascript:;
	this.sTarget = (p_sTarget == '' || typeof(p_sTarget) == 'undefined')?'_self':p_sTarget; //--> destino, sino especifica nada la misma _self
	this.sOver = (typeof(p_sOver) == 'undefined')?'':p_sOver; //--> reprogramación evento over
	this.sOut = (typeof(p_sOut) == 'undefined')?'':p_sOut; //--> reprogramación evento out
	this.sClick = (typeof(p_sClick) == 'undefined')?'':p_sClick; //--> reprogramación evento click
	this.sStatus = (typeof(p_sStatus) == 'undefined')?'':p_sStatus; //--> status a mostrar cuando se situe sobre el link
	this.sParameters = (p_sParameters == '' || typeof(p_sParameters) == 'undefined')?'':p_sParameters;
	this.sOpen = p_Open;
}


/*************************************************************************************************
						DEFINICIÓN DE FUNCIONES DE LIBRERIA
**************************************************************************************************/
function AICEjecutaMenu(myName,myLink,myChildren, myParameters){
	ieStep=0;
	thereS=false;
	thereC=false;
	
	if (myLink != '') {
		if (whichOpen != myName)
			top.document.location.href=myLink + '?lCMnu=' + myName + '&lNChl=' + myChildren + (myParameters != ''?'&' + myParameters:'');
		else
			top.document.location.href=myLink + (myParameters != ''?'?' + myParameters:'');
	}
	//if(AICEjecutaMenu.arguments.length == 2){
		//mySpeed = AICEjecutaMenu.arguments[1];
	//}
	
	if(myChildren != '' && parseInt(myChildren,10) > 0){
	
		first=myName;
		firstl=myLink;
		firstc=myChildren;
		firstp=myParameters;
		
		if(whichOpen==-1&&!running&&AICmain[myName]&&!(whichOpen==myName)){
			running=true;
			
			if(NN){
				myLayer[myName+1].clip.height=0;
				myLayer[myName+1].visibility=VISIBLE;
			}
			
			if(IE || NN6){
				myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (0) +" "+ ("auto") +")";
				myLayer[myName+1].visibility=VISIBLE;
			}
			
			AICAbrirMenuS(myName);
			AICAbrirMenuC(myName);
		}
	
		if(whichOpen>=0&&!running&&!(whichOpen==myName)){
			running=true;
			second=whichOpen;
			ieStep1=myHeight[second+1];
			thereCS=false;
			thereCC=false;
	
			AICCerrarMenuS(second);
			AICCerrarMenuC(second);
		}
	
		if(whichOpen>=0&&!running&&whichOpen==myName&&closes){
			running=true;
			second=whichOpen;
			ieStep1=myHeight[second+1];
			thereCS=false;
			thereCC=false;

			AICCerrarMenuS(second);
			AICCerrarMenuC(second);
		}
	
	}
	
	
	
}

function AICParaCerradoS(myName){
	running=false;
	thereCS=true;
	
	if(closes&&first==whichOpen){
		whichOpen=-1;
	}
	else{
		whichOpen=-1;
		AICEjecutaMenu(first,firstl,firstc,firstp);
	}
}

function AICParaAperturaS(myName){
	running=false;
	thereS=true;
	if((IE || NN6)){
		myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ ("auto") +" "+ ("auto") +")";
	}
	whichOpen=myName;
}

function AICAbrirMenuS(myName){
	myStep=mySpeed;

	if(NN&&!thereS&&!(first==lastMain)){
		if(parseInt(myLayer[first+2].top,10)+myStep>mySlide[first+1]){
			myStep=mySlide[first+1]-parseInt(myLayer[first+2].top,10);
		}
	
		for(i=first+2; i<myLayer.length; i+=2){
			myLayer[i].top=parseInt(myLayer[i].top,10)+myStep;
		}
	
		if(parseInt(myLayer[first+2].top,10)==mySlide[first+1]){
			AICParaAperturaS(first)
		}
		
		if(running)
			setTimeout("AICAbrirMenuS(first)",10);
	}
	
	if(IE&&!thereS&&!(first==lastMain)){
		if(myLayer[first+2].pixelTop+myStep>mySlide[first+1]){
			myStep=mySlide[first+1]-myLayer[first+2].pixelTop;
		}
	
		for(i=first+2; i<myLayer.length; i+=2){
			myLayer[i].pixelTop+=myStep;
		}
	
		if(myLayer[first+2].pixelTop==mySlide[first+1]){
			AICParaAperturaS(first)
		}
		
		if(running)
			setTimeout("AICAbrirMenuS(first)",10);
	}
	
	if(NN6&&!thereS&&!(first==lastMain)){
		if(parseInt(myLayer[first+2].top,10)+myStep>mySlide[first+1]){
			myStep=mySlide[first+1]-parseInt(myLayer[first+2].top,10);
		}
	
		for(i=first+2; i<myLayer.length; i+=2){
			myLayer[i].top=parseInt(myLayer[i].top,10)+myStep;
		}
	
		if(parseInt(myLayer[first+2].top,10)==mySlide[first+1]){
			AICParaAperturaS(first)
		}
		
		if(running)
			setTimeout("AICAbrirMenuS(first)",10);
	}
}

function AICAbrirMenuC(myName){
	myStep=mySpeed;
	
	if(NN&&!thereC){
		if ((parseInt(myLayer[first+1].clip.height,10)+myStep)>myHeight[first+1]){
			myLayer[first+1].clip.height=myHeight[first+1];
		}
		
		if(parseInt(myLayer[first+1].clip.height,10)==myHeight[first+1]){
			thereC=true;
			whichOpen=first;
			AICParaAperturaS(first);
		}else{
			myLayer[first+1].clip.height=parseInt(myLayer[first+1].clip.height,10)+myStep;
		}
		
		if(running)
			setTimeout("AICAbrirMenuC(first)",10);
	}
	
	if((IE || NN6)&&!thereC){
		ieStep+=myStep;
		myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep) +" "+ ("auto") +")";
		
		if(ieStep>=myHeight[first+1]){
			thereC=true;
			whichOpen=first;
			AICParaAperturaS(first);
		}
		
		if(running)
			setTimeout("AICAbrirMenuC(first)",10);
	}
}

function AICCerrarMenuS(myName){
	myStep=mySpeed;
	
	if(NN&&!thereCS&&!(second==lastMain)){
		if(parseInt(myLayer[second+2].top,10)-myStep<myTop[second+2]){
			myStep=parseInt(myLayer[second+2].top,10)-myTop[second+2];
		}
		
		for(i=second+2; imyLayer.length; i+=2){
			myLayer[i].top=parseInt(myLayer[i].top,10)-myStep;		
		}
		
		if(parseInt(myLayer[second+2].top,10)==myTop[second+2]){
			AICParaCerradoS(second);
		}
		
		if(running)
			setTimeout("AICCerrarMenuS(second)",10);
	}
	
	if(IE&&!thereCS&&!(second==lastMain)){
		if(myLayer[second+2].pixelTop-myStep<myTop[second+2]){
			myStep=myLayer[second+2].pixelTop-myTop[second+2];
		}
		
		for(i=second+2; i<myLayer.length; i+=2){
			myLayer[i].pixelTop-=myStep;		
		}
		
		if(myLayer[second+2].pixelTop==myTop[second+2]){
			AICParaCerradoS(second);
		}
		if(running)
			setTimeout("AICCerrarMenuS(second)",10);
	}
	
	if(NN6&&!thereCS&&!(second==lastMain)){
		if(parseInt(myLayer[second+2].top,10)-myStep<myTop[second+2]){
			myStep=parseInt(myLayer[second+2].top,10)-myTop[second+2];
		}
		
		for(i=second+2; i<myLayer.length; i+=2){
			myLayer[i].top=parseInt(myLayer[i].top,10)-myStep;		
		}
		
		if(parseInt(myLayer[second+2].top,10)==myTop[second+2]){
			AICParaCerradoS(second);
		}
		if(running)
			setTimeout("AICCerrarMenuS(second)",10);
	}
}

function AICCerrarMenuC(myName){
	myStep=-mySpeed;
	ieStep1-=mySpeed;
	
	if(NN&&!thereCC){
		if ((parseInt(myLayer[second+1].clip.bottom,10)+myStep)<0){
			myLayer[second+1].clip.bottom=0;
		}
		if(parseInt(myLayer[second+1].clip.bottom,10)==0){
			thereCC=true;		
			if(second==lastMain)
				AICParaCerradoS(second);
		}else{
			myLayer[second+1].clip.bottom=parseInt(myLayer[second+1].clip.bottom,10)+myStep;		
		}
		
		if(running)
			setTimeout("AICCerrarMenuC(second)",10);
	}
	
	if((IE || NN6)&&!thereCC){
		if(ieStep1<=0){
			myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (0) +" "+ ("auto") +")";
			thereCC=true;
			
			if(second==lastMain)
				AICParaCerradoS(second);
		}else{
			myLayer[myName+1].clip= "rect(" + ("auto") +" "+ ("auto") +" "+ (ieStep1) +" "+ ("auto") +")";
		}
		
		if(running)
			setTimeout("AICCerrarMenuC(second)",10);
	}
}

function AICInicializaMenu(){
	//cargamos el navegador
	IE = document.all ? 1:0;
	NN = document.layers ? 1:0;
	NN6 = !IE && !NN;
	
	//cargamos peculiaridades dependiendo de navegador y version
	HIDDEN = (NN) ? "hide" : "hidden";
	VISIBLE = (NN) ? "show" : "visible";
	
	//creamos el array de capas
	myLayer=new Array();

	if(NN){
			subLeft=-10;
	}
	
	//cargamos las capas en el array
	for (i = 0,k = 0; i < this.arrElements.length; i++, k++){
		myLayer[myLayer.length] = (NN)?document.layers['AIC' + k]:(IE)?document.all['AIC' + k].style:document.getElementById('AIC' + k).style;
		if (this.arrElements[i].arrSubElements.length > 0){
			k++;
			myLayer[myLayer.length] = (NN)?document.layers['AIC' + k]:(IE)?document.all['AIC' + k].style:document.getElementById('AIC' + k).style;
		}
	}

	//cargamos el último menu
	lastMain=myLayer.length-2;
	
	//guardamos los menús principales
	AICmain=new Array();
	for(i=0; i<myLayer.length; i++){
		mainORsub= i % 2;
		AICmain[i] = mainORsub ? 0:1;
	}
		
	//arrays de posiciones para cada capa
	myTop=new Array();
	myLeft=new Array();
	myHeight=new Array();
	myWidth=new Array();
	mySlide=new Array();
	
	for(i=0; i<myLayer.length; i++){
		if(NN&&AICmain[i]){
			if(i==0){
				myTop[i]=parseInt(myLayer[i].top,10);
				myLeft[i]=parseInt(myLayer[i].left,10);
			}
			else{
				myLeft[i]=myLeft[i-2];
				myTop[i]=myTop[i-2]+myHeight[i-2];
			}
			
			myHeight[i]=parseInt(myLayer[i].clip.height,10);
			myWidth[i]=parseInt(myLayer[i].clip.width,10);
			myLayer[i].left=myLeft[i];
			myLayer[i].top=myTop[i];
			myLayer[i].visibility=VISIBLE;
		}
		
		if(NN&&!AICmain[i]){
			myTop[i]=myTop[i-1]+myHeight[i-1];
			myLeft[i]=myLeft[i-1];
			myHeight[i]=parseInt(myLayer[i].clip.height,10);
			myWidth[i]=parseInt(myLayer[i].clip.width,10);
			mySlide[i]=myTop[i]+myHeight[i];
			myLayer[i].left=myLeft[i]+subLeft;
			myLayer[i].top=myTop[i];
		}
		
		if((IE || NN6)&&AICmain[i]){
			if(i==0){
				if (IE){
					myLeft[i]=myLayer[i].pixelLeft;
					myTop[i]=myLayer[i].pixelTop;
				}else{
					myLeft[i]=parseInt(myLayer[i].left,10);
					myTop[i]=parseInt(myLayer[i].top,10);
				}
				
			}
			else{
				myLeft[i]=myLeft[i-2];
				myTop[i]=myTop[i-2]+myHeight[i-2];
			}
			
			if (IE){
				myHeight[i]=myLayer[i].pixelHeight;
				myWidth[i]=myLayer[i].pixelWidth;
			}else{
				myHeight[i]=parseInt(myLayer[i].height,10);
				myWidth[i]=parseInt(myLayer[i].width,10);
			}
			myLayer[i].left=myLeft[i];
			myLayer[i].top=myTop[i];
			myLayer[i].visibility=VISIBLE;
		}
		
		if((IE || NN6)&&!AICmain[i]){
			myTop[i]=myTop[i-1]+myHeight[i-1];
			myLeft[i]=myLeft[i-1];
			if (IE){
				myHeight[i]=myLayer[i].pixelHeight;
				myWidth[i]=myLayer[i].pixelWidth;
				myLayer[i].pixelLeft=myLeft[i]+subLeft;
				myLayer[i].pixelTop=myTop[i];
			}else{
				myHeight[i]=parseInt(myLayer[i].height,10);
				myWidth[i]=parseInt(myLayer[i].width,10);
				myLayer[i].left=myLeft[i]+subLeft;
				myLayer[i].top=myTop[i];
			}			
			mySlide[i]=myTop[i]+myHeight[i];
		}
	}
}

/*
*	Términos legales del módulo
*
*
*/		
//-->
