﻿function Traduccion () {
	var textos = new Array();

	function AddTextos(objTextos) {
	    for (var i in objTextos) {
	        if (typeof textos[i] == "undefined") {
	            textos[i] = objTextos[i];
	        }
	    };
	};
	
	function GetTexto(simbolo) {
		if (typeof textos[simbolo] != "undefined") {
		    texto = textos[simbolo];
		    args = GetTexto.arguments;
		    for (var i = 1; i < args.length; i++) {
		        texto = texto.replace(new RegExp("\\{" + (i - 1) + "\\}", "g"), args[i]);
	        };
	        return texto;
	    } else {
	        return "";
	    };
	};

	this.AddTextos = AddTextos;
	this.GetTexto = GetTexto;
};

var itTraduccion = new Traduccion();

