function Globalization()
{
  this.aText = new Array();
  this.sLanguage = null;

  this.GG = function(sName, sFiles)
  {

    if (typeof(sFiles) != "undefined")
    {
			if (typeof(this.aText[this.sLanguage][sFiles]) == "undefined")
        return '';

      aText = this.aText[this.sLanguage][sFiles];  
      
      return typeof(aText[sName]) != "undefined" ? aText[sName] : '';         
    }
    else
    {
      aTexts = this.aText[this.sLanguage];
      for(i in aTexts)
        if (typeof(aTexts[i][sName]) != "undefined")
          return aTexts[i][sName];

      return '';
    }
  }
}
