function setLanguageStrings(lang)
{
  if (lang == 'en')
  {
    resolutionText = "Resolution";
    focalLengthText = "Focal length";
    pause = "Pause";
    jumpToPicture = "Jump to picture...";
    ptCaptions = "-pt captions";
    atFirstPage = "At first page";
    originalDateText = "Original date";
    highestQualitySb = "Always use the largest, highest-quality image.";
    fileSizeText = "File size";
    imageResolution = "Image resolution";
    sensorTypeText = "Sensor Type";
    increaseDelay = "Increase delay";
    apertureText = "Aperture";
    viewPhotoInfo = "View photo info";
    closeWindowText = "Close window";
    increaseFontSize = "Increase font size";
    notApplicable = "Not applicable";
    cameraModelText = "Camera model";
    sec = "s";
    optionsItem = "Options";
    slideShow = "Slide show";
    showText = "Show";
    meteringModeText = "Metering mode";
    exposureTimeText = "Exposure Time";
    smallestSize = "Smallest size";
    enableFullScreen = "Enable full-screen";
    flashText = "Flash";
    pictureInfoSb = "Information recorded by the digital camera used to take the picture";
    highestQuality = "Highest quality";
    autoSelectSb = "Allow the photo album to choose the image resolution based on screen size.";
    focusDistanceText = "Focus distance";
    decreaseDelaySb = "Decrease the time each picture is visible during a slide show.";
    play = "Play";
    captionText = "Caption";
    changeImagesEvery = "Change images every";
    smallestSizeSb = "Always use the smallest, fastest-downloading image.";
    decreaseFontSize = "Decrease font size";
    enableFullScreenSb = "Toggle between viewing the pictures in full-screen mode or window mode";
    upLevel = "Up one level";
    skinName = "<br><br>Click on the <b>Options</b> tab above in order to change language, to set the slideshow parameters, and to change the screen and caption size.  <br><br>All pictures on this website are copywrited!";
    previousPage = "Previous page";
    languageText = "Language";
    jumpToPictureSb = "Return to the index page in order to jump to a different picture in the photo album.";
    nextPage = "Next page";
    atLastPage = "At last page";
    imageResolutionSb = "Specify the resolution of the displayed image.";
    increaseDelaySb = "Increase the time each picture is visible during a slide show.";
    autoSelect = "Auto-select";
    decreaseDelay = "Decrease delay";
    languageName = "English";
    cameraMakeText = "Camera make";
  }
  if (lang == 'es')
  {
    resolutionText = "Resolution";
    focalLengthText = "Focal length";
    jumpToPicture = "Ir a la foto...";
    ptCaptions = "-puntos";
    atFirstPage = "Primera página";
    originalDateText = "Original date";
    highestQualitySb = "Always use the largest, highest-quality image.";
    fileSizeText = "File size";
    imageResolution = "Resolución de la imagen";
    increaseDelay = "Incrementar tiempo";
    sensorTypeText = "Sensor Type";
    apertureText = "Aperture";
    viewPhotoInfo = "Ver información sobre la foto";
    closeWindowText = "Cerrar ventana";
    increaseFontSize = "Incrementar tamaño del texto";
    notApplicable = "Not applicable";
    sec = "s";
    optionsItem = "Opciones";
    cameraModelText = "Camera model";
    slideShow = "Presentación de diapositivas";
    showText = "Tamaño";
    meteringModeText = "Metering mode";
    exposureTimeText = "Exposure Time";
    smallestSize = "Smallest size";
    enableFullScreen = "Pantalla completa";
    flashText = "Flash";
    pictureInfoSb = "Informacíon grabada por la camara digital utilizada";
    highestQuality = "Highest quality";
    autoSelectSb = "Permitir al programa de elegir la resolución según el tamaño Allow the photo album to choose the image resolution based on screen size.";
    focusDistanceText = "Focus distance";
    decreaseDelaySb = "Disminuir el tiempo de exposición de cada imagen durante la presentación de diapositivas.";
    captionText = "Texto";
    changeImagesEvery = "Cambiar imagen cada";
    smallestSizeSb = "Always use the smallest, fastest-downloading image.";
    decreaseFontSize = "Disminuir tamaño del texto";
    enableFullScreenSb = "Cambiar entre vista en pantalla completa o en modo ventana";
    upLevel = "Subir un nivel";
    skinName = "Puede hacer clic sobre una foto para ver la presentación de dispositivas.  Pulsando sobre <b>Opciones</b> puede cambiar el tiempo de cada diapositiva, saltar a una imagen en concreta etc.";
    previousPage = "Página anterior";
    languageText = "Idioma";
    jumpToPictureSb = "Volver a la página index para ir a una foto diferent en la presentación.";
    nextPage = "Próxima página";
    atLastPage = "Ultima página";
    imageResolutionSb = "Especificar la resolución de la imagen.";
    increaseDelaySb = "Incrementar el tiempo de exposición de cada imagen durante la presentación de diapositivas.";
    autoSelect = "Auto-selección";
    decreaseDelay = "Disminuir tiempo";
    languageName = "Castellano";
    cameraMakeText = "Camera make";
  }
  if (lang == 'fr')
  {
    resolutionText = "Resolution";
    focalLengthText = "Longueur focale";
    jumpToPicture = "Voir image...";
    ptCaptions = "-points";
    atFirstPage = "Première page";
    originalDateText = "Date originale";
    highestQualitySb = "Toujours utliliser la dimension et qualité maximum.";
    fileSizeText = "Grandeur fichier";
    imageResolution = "Résolution image";
    sensorTypeText = "Type de sensor";
    increaseDelay = "Augmenter temps d'affichage";
    apertureText = "Ouverture";
    viewPhotoInfo = "Voir informations";
    closeWindowText = "Fermer fenêtre";
    increaseFontSize = "Augmenter grandeur du texte des images";
    notApplicable = "N'existe pas";
    sec = "seg.";
    optionsItem = "Options";
    cameraModelText = "Modèle";
    slideShow = "Présentation diapositives";
    showText = "Dimension texte";
    meteringModeText = "Mode Metering";
    junk = "";
    exposureTimeText = "Temps d'exposition";
    smallestSize = "Dimensions minimum";
    enableFullScreen = "Ecran complet";
    flashText = "Flash";
    pictureInfoSb = "Information enregistrée par l'appareil utilisée pour la photo";
    highestQuality = "La meilleure qualité possible";
    autoSelectSb = "Choix automatique de la résolution selon la dimension de l'écran.";
    focusDistanceText = "Distance focale";
    decreaseDelaySb = "Diminuer le temps d'affichage de chaque photo lors de la présentation des diapositives.";
    captionText = "Commentaires";
    changeImagesEvery = "Changer image toutes les";
    smallestSizeSb = "Toujours utiliser la dimension la plus petite et de téléchargement la plus rapide.";
    decreaseFontSize = "Diminuer la grandeur du texte des images";
    enableFullScreenSb = "Changer entre ecran complet et mode fenêtre";
    upLevel = "Monter un niveau";
    skinName = "Pour voir les images, cliquez sur n'importe laquelle pour commencer la présentation.<br>En cliquant sur <b>Options</b>, vous pouvez changer de langue, du temps d'affichage des diapos etc.";
    previousPage = "Page précédente";
    languageText = "Langue";
    jumpToPictureSb = "Retour à la page index ou aller à une autre image de la présentation.";
    nextPage = "Prochaine page";
    atLastPage = "Dernière page";
    imageResolutionSb = "Spécifier résolution de l'image affichée.";
    increaseDelaySb = "Augmenter le temps d'affichage de chaque photo lors de la présentation des diapositives.";
    autoSelect = "Auto-selection";
    decreaseDelay = "Diminuer temps d'affichage";
    languageName = "Francais";
    cameraMakeText = "Marque";
  }
  if (lang == 'ca')
  {
    resolutionText = "Resolution";
    focalLengthText = "Focal length";
    jumpToPicture = "Jump to picture...";
    ptCaptions = "-pt captions";
    atFirstPage = "At first page";
    originalDateText = "Original date";
    highestQualitySb = "Always use the largest, highest-quality image.";
    fileSizeText = "File size";
    imageResolution = "Image resolution";
    increaseDelay = "Increase delay";
    sensorTypeText = "Sensor Type";
    apertureText = "Aperture";
    viewPhotoInfo = "View photo info";
    closeWindowText = "Close window";
    increaseFontSize = "Increase font size";
    notApplicable = "Not applicable";
    sec = "s";
    optionsItem = "Options";
    cameraModelText = "Camera model";
    slideShow = "Slide show";
    showText = "Show";
    meteringModeText = "Metering mode";
    exposureTimeText = "Exposure Time";
    smallestSize = "Smallest size";
    enableFullScreen = "Enable full-screen";
    flashText = "Flash";
    pictureInfoSb = "Information recorded by the digital camera used to take the picture";
    highestQuality = "Highest quality";
    autoSelectSb = "Allow the photo album to choose the image resolution based on screen size.";
    focusDistanceText = "Focus distance";
    decreaseDelaySb = "Decrease the time each picture is visible during a slide show.";
    captionText = "Caption";
    changeImagesEvery = "Change images every";
    smallestSizeSb = "Always use the smallest, fastest-downloading image.";
    decreaseFontSize = "Decrease font size";
    enableFullScreenSb = "Toggle between viewing the pictures in full-screen mode or window mode";
    upLevel = "Up one level";
    skinName = "Multilingual Slide Show skin";
    previousPage = "Previous page";
    languageText = "Language";
    jumpToPictureSb = "Return to the index page in order to jump to a different picture in the photo album.";
    nextPage = "Next page";
    atLastPage = "At last page";
    imageResolutionSb = "Specify the resolution of the displayed image.";
    increaseDelaySb = "Increase the time each picture is visible during a slide show.";
    autoSelect = "Auto-select";
    decreaseDelay = "Decrease delay";
    languageName = "Catala";
    cameraMakeText = "Camera make";
  }
}

var LANGUAGE_INDEX = [
  "en",
  "es",
  "fr",
  "ca"
];

