function Msg() {
	this.label=new Array();
	this.defaultLanguage = null;
	if (typeof(_bMsgPrototypeCalled) == 'undefined')
		initMsg();
}
new Msg();
function initMsg() {
	_bMsgPrototypeCalled=true;
	Msg.prototype.init=MsgInit;
	Msg.prototype.add=MsgAdd;
	Msg.prototype.translate=MsgTranslate;
	Msg.prototype.get=MsgGet;
	Msg.prototype.setLanguage=MsgSetLanguage;
}

function MsgAdd(msg){
	this.label[msg]=new Array();
}

function MsgTranslate(msg,language,translation) {
	this.label[msg][language]=translation;
}

function MsgGet(msg) {
	if (this.label[msg]!=null)
		return(this.label[msg][this.defaultLanguage])
	else
		return("")
}

function MsgSetLanguage(language) {
	this.defaultLanguage=language;
}

function MsgInit(){
	this.add("select");
	this.translate("select","Eng","--Select ");
	this.translate("select","Spa","--Seleccionar ");
	this.add("country");
	this.translate("country","Eng","Country(ies)");
	this.translate("country","Spa","País(es)");
	this.add("indGpo");
	this.translate("indGpo","Eng","Indicators Group(s)");
	this.translate("indGpo","Spa","Grupo(s) de Indicadores");
	this.add("indicator");
	this.translate("indicator","Eng","Indicator(s)");
	this.translate("indicator","Spa","Indicador(es)");
	this.add("total");
	this.translate("total","Eng"," (total)");
	this.translate("total","Spa"," (total)");
	this.add("totalFem");
	this.translate("totalFem","Eng"," (females)");
	this.translate("totalFem","Spa"," (mujeres)");
	this.add("totalMale");
	this.translate("totalMale","Eng"," (males)");
	this.translate("totalMale","Spa"," (hombres)");
	this.add("ageGpo");
	this.translate("ageGpo","Eng"," (by age groups)");
	this.translate("ageGpo","Spa"," (por grupos de edad)");
	this.add("ageGpoFem");
	this.translate("ageGpoFem","Eng"," (females by age groups)");
	this.translate("ageGpoFem","Spa"," (mujeres por grupos de edad)");
	this.add("ageGpoMale");
	this.translate("ageGpoMale","Eng"," (males by age groups)");
	this.translate("ageGpoMale","Spa"," (hombres por grupos de edad)");
	this.add("otherDesagg");
	this.translate("otherDesagg","Eng"," (other desaggregation)");
	this.translate("otherDesagg","Spa"," (otra desagregación");
	this.add("lastAvailable");
	this.translate("lastAvailable","Eng","Last Available");
	this.translate("lastAvailable","Spa","Último disponible");
	this.add("selectVar");
	this.translate("selectVar","Eng","--Select Variable for ");
	this.translate("selectVar","Spa","--Seleccione variable para ");
	this.add("year");
	this.translate("year","Eng","year(s)");
	this.translate("year","Spa","año(s)");
	this.add("alertSelectFirst");
	this.translate("alertSelectFirst","Eng","You need select first the main variable");
	this.translate("alertSelectFirst","Spa","Usted debe seleccionar primero la variable principal");
	this.add("empty");
	this.translate("empty","Eng","--Empty--");
	this.translate("empty","Spa","--Vacio(a)--");
	this.add("fixed");
	this.translate("fixed","Eng","FIXED:");
	this.translate("fixed","Spa","FIJO(A):");
	this.add("cols");
	this.translate("cols","Eng","\n\nCOLUMNS:\n");
	this.translate("cols","Spa","\n\nCOLUMNAS:\n");
	this.add("rows");
	this.translate("rows","Eng","\nROWS:\n");
	this.translate("rows","Spa","\nFILAS:\n");
	this.add("alertSelectCols");
	this.translate("alertSelectCols","Eng","Please select the variable(s) for column(s)");
	this.translate("alertSelectCols","Spa","Por favor seleccione la(s) variable(s) para la(s) columna(s)");
	this.add("alertSelectRows");
	this.translate("alertSelectRows","Eng","Please select the variable(s) for row(s)");
	this.translate("alertSelectRows","Spa","Por favor seleccione la(s) variable(s) para la(s) fila(s)");
	this.add("alertSelectConst");
	this.translate("alertSelectConst","Eng","Please select the variable fixed");
	this.translate("alertSelectConst","Spa","Por favor seleccione la variable fijada");
	this.add("alertValidOption");
	this.translate("alertValidOption","Eng","Selection not available...");
	this.translate("alertValidOption","Spa","Selección no disponible...");
	this.add("countryDescriptionField");
	this.translate("countryDescriptionField","Eng","Description");
	this.translate("countryDescriptionField","Spa","Descripcion");
	this.add("indicatorDescriptionField");
	this.translate("indicatorDescriptionField","Eng","Indicator");
	this.translate("indicatorDescriptionField","Spa","Indicador");
	this.add("indicatorDefinitionField");
	this.translate("indicatorDefinitionField","Eng","Definition");
	this.translate("indicatorDefinitionField","Spa","Definicion");
	this.add("indicatorUnitMeasureField");
	this.translate("indicatorUnitMeasureField","Eng","Umeasure");
	this.translate("indicatorUnitMeasureField","Spa","Umedida");
	this.add("indicatorDescriptionFieldShort");
	this.translate("indicatorDescriptionFieldShort","Eng","IndicatorShort");
	this.translate("indicatorDescriptionFieldShort","Spa","IndicadorShor");
	this.add("indicatorLongDescriptionField");
	this.translate("indicatorLongDescriptionField","Eng","Indicator");
	this.translate("indicatorLongDescriptionField","Spa","Indicador");
	this.add("indicadorTypeDescriptionField");
	this.translate("indicadorTypeDescriptionField","Eng","Description");
	this.translate("indicadorTypeDescriptionField","Spa","Descripcion");
	this.add("thousandSeparator");
	this.translate("thousandSeparator","Eng",",");
	this.translate("thousandSeparator","Spa",".");
	this.add("decimalsSeparator");
	this.translate("decimalsSeparator","Eng",".");
	this.translate("decimalsSeparator","Spa",",");
	this.add("yearTit");
	this.translate("yearTit","Eng","YEAR: ");
	this.translate("yearTit","Spa","A&Ntilde;O: ");
	this.add("sourceTit");
	this.translate("sourceTit","Eng","SOURCE: ");
	this.translate("sourceTit","Spa","FUENTE: ");
	this.add("magnitudZero");
	this.translate("magnitudZero","Eng","Value: Magnitud zero");
	this.translate("magnitudZero","Spa","Valor: Magnitud cero");
	this.add("dataNoAvailable");
	this.translate("dataNoAvailable","Eng","Data not available for this specific indicator/year/country.");
	this.translate("dataNoAvailable","Spa","Dato no disponible para este específico indicador/año/país");
	this.add("msgTableForVariable");
	this.translate("msgTableForVariable","Eng","Table for the ");
	this.translate("msgTableForVariable","Spa","Tabla para el/la ");
	this.add("yearValue");
	this.translate("yearValue","Eng","Year");
	this.translate("yearValue","Spa","Año");
	this.add("indicatorValue");
	this.translate("indicatorValue","Eng","Indicator");
	this.translate("indicatorValue","Spa","Indicador");
	this.add("countryValue");
	this.translate("countryValue","Eng","Country");
	this.translate("countryValue","Spa","País");
	this.add("profilesURL");
	this.translate("profilesURL","Eng","/english/sha/prfl");
	this.translate("profilesURL","Spa","/spanish/sha/prfl");
	this.add("longNameTit");
	this.translate("longNameTit","Eng","LONG NAME: ");
	this.translate("longNameTit","Spa","NOMBRE LARGO: ");
	this.add("definition");
	this.translate("definition","Eng","DEFINITION: ");
	this.translate("definition","Spa","DEFINICIóN: ");
	this.add("typeTit");
	this.translate("typeTit","Eng","TYPE: ");
	this.translate("typeTit","Spa","TIPO: ");
	this.add("measureUnits");
	this.translate("measureUnits","Eng","MEASURE UNITS: ");
	this.translate("measureUnits","Spa","UNIDADES DE MEDIDA: ");
	this.add("technote");
	this.translate("technote","Eng","TECHNICAL NOTE: ");
	this.translate("technote","Spa","NOTA TéCNICA: ");
	this.add("noCategories");
	this.translate("noCategories","Eng","NUMBER OF CATEGORIES: ");
	this.translate("noCategories","Spa","NÚMERO DE CATEGORIAS: ");
	this.add("noSubCategories");
	this.translate("noSubCategories","Eng","NUMBER OF SUBCATEGORIES: ");
	this.translate("noSubCategories","Spa","NÚMERO DE SUBCATEGORIAS: ");
	this.add("technoteField");
	this.translate("technoteField","Eng","TechnicalNote");
	this.translate("technoteField","Spa","NotaTecnica");
	this.add("titleHTMLGlossary");
	this.translate("titleHTMLGlossary","Eng","Core Health Data System - Glossary");
	this.translate("titleHTMLGlossary","Spa","Sistema de Datos Básicos de Salud - Glosario");
	this.add("PAHOName");
	this.translate("PAHOName","Eng","Pan American Health Organization");
	this.translate("PAHOName","Spa","Organización Panamericana de la Salud");
	this.add("PAHOMessage");
	this.translate("PAHOMessage","Eng","Improving the Health of the Peoples of the Americas");
	this.translate("PAHOMessage","Spa","Mejorando la salud de los pueblos de las Américas");
	this.add("Homepage");
	this.translate("Homepage","Eng","Homepage");
	this.translate("Homepage","Spa","Portada");
	this.add("Data");
	this.translate("Data","Eng","Data");
	this.translate("Data","Spa","Datos");
	this.add("Topics");
	this.translate("Topics","Eng","Topics");
	this.translate("Topics","Spa","Temas");
	this.add("Resources");
	this.translate("Resources","Eng","Resources");
	this.translate("Resources","Spa","Recursos");
	this.add("AboutPAHO");
	this.translate("AboutPAHO","Eng","About PAHO");
	this.translate("AboutPAHO","Spa","Acerca de la OPS");
	this.add("Search");
	this.translate("Search","Eng","Search");
	this.translate("Search","Spa","Búsqueda");
	this.add("subsystems");
	this.translate("subsystems","Eng","Subsystems");
	this.translate("subsystems","Spa","Sistemas");
	this.add("GIS");
	this.translate("GIS","Eng","Geographic Information Subsystem");
	this.translate("GIS","Spa","Sistema de Información Geográfica");
	this.add("tabulator");
	this.translate("tabulator","Eng","Table Generator Subsystem");
	this.translate("tabulator","Spa","Sistema Generador de Tablas");
	this.add("profiles");
	this.translate("profiles","Eng","Country Health Profiles");
	this.translate("profiles","Spa","Perfiles de Salud de País");
	this.add("reference");
	this.translate("reference","Eng","Reference Documents");
	this.translate("reference","Spa","Documentos de Referencia");
	this.add("review");
	this.translate("review","Eng","Review here your selection:");
	this.translate("review","Spa","Revise aquí su selección");
	this.add("closeWindowB");
	this.translate("closeWindowB","Eng","Close Window");
	this.translate("closeWindowB","Spa","Cerrar la ventana");
	this.add("copyright");
	this.translate("copyright","Eng","<em>&copy; Pan American Health Organization. Special Program for Health Analysis. All rights reserved</em>");
	this.translate("copyright","Spa","</em>&copy; Organización Panamericana de la Salud. Programa especial de Análisis de Salud. Todos los derechos reservados");
	this.add("border");
	this.translate("border","Eng","Table border: ");
	this.translate("border","Spa","Borde en la Tabla: ");
}
