
switch(lang) {
	case 'it': 	hs.lang = {
		loadingText : 'Caricamento..',
		loadingTitle : 'Clicca per interrompere',
		restoreTitle : 'Cliccate per chiudere, cliccate e trascinate per spostare. Utilizzate i tasti freccia per scorrere.',
		nextTitle : 'Prossima',
		nextText : 'tasto freccia dx',
		previousTitle : 'Precedente',
		previousText : 'tasto freccia sx',
		moveText : 'Sposta',
		closeText : 'Chiudi', 
		closeTitle : 'Chiudi (esc)', 
		resizeTitle : 'Ridimensiona'
	};break;


	case 'de' : hs.lang = {
   loadingText :     'Lade...',
   loadingTitle :    'Klick zum Abbrechen',
   focusTitle :      'Klick um nach vorn zu bringen',
   fullExpandTitle : 'Zur Originalgröße erweitern',
   fullExpandText :  'Vollbild',
   previousText :    'Voriges',
   previousTitle :   'Voriges (Pfeiltaste links)',
      nextText :     'Nächstes',
   nextTitle :       'Nächstes (Pfeiltaste rechts)',
   moveTitle :       'Verschieben',
   moveText :        'Verschieben',
   closeText :       'Schließen',
   closeTitle :      'Schließen (Esc)',
   resizeTitle :     'Größe wiederherstellen',
   number :          'Bild %1/%2',
   restoreTitle :    'Klick um das Bild zu schließen, klick und ziehe um zu verschieben. Benutze Pfeiltasten fur vor und zuruck.'

	};break;
	
	case 'fr' : hs.lang = {
		loadingText : 'Chargement en cours',
    loadingTitle : 'Cliquer pour annuler',
    focusTitle : 'Cliquer pour basculer au premier plan',
    fullExpandTitle : 'Agrandir &agrave; la taille actuelle',
    creditsText : 'Actionné par <i>Highslide JS</i>',
    creditsTitle : 'Visiter Highslide JS homepage',
    previousText : 'Précédent',
    nextText : 'Suivant', 
    moveText : 'Déplacer',
    closeText : 'Fermer', 
    closeTitle : 'Fermer (échap)', 
    resizeTitle : 'Redimensionner',
    playText : 'Jouer',
    playTitle : 'Lancer la diaporama (espace)',
    pauseText : 'Pause',
    pauseTitle : 'Arrêter la diaporama (espace)',
    previousTitle : 'Précédent (flèche gauche)',
    nextTitle : 'Suivant (flèche droite)',
    moveTitle : 'Déplacer',
    fullExpandText : 'Taille réelle',
    number: 'Image %1 sur %2',
    restoreTitle : 'Cliquer pour fermer l\'image, Cliquer et glisser pour déplacer. Utiliser les flèches du clavier pour avancer ou reculer.'
	};break;
	
	default: case 'en' : hs.lang = {
		nextTitle : 'Next',
		nextText : 'right arrow key',
		previousTitle : 'Previous',
		previousText : 'left arrow key',
		restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
	}; break;

}


function customCaption(label, index, lenght) {
	caption='';
	caption += '<div style="height: 30px">';
    		
    		if (index!=lenght)
    			caption +=  		
    				'<div style="float:right; text-align: center; margin-right: 5px">'+
							'<a href="#" onclick="return hs.next(this)" class="control">'+hs.lang.nextTitle+'<br/><small style="font-size: 12px; font-weight:normal;">'+hs.lang.nextText+'</small></a>'+
						'</div>';
				
				if (index!=1)
    			caption += 
							'<div style="float:right; text-align: center; margin-right: 15px">'+
    						'<a href="#" onclick="return hs.previous(this)" class="control">'+hs.lang.previousTitle+'<br/><small style="font-size: 12px; font-weight:normal;">'+hs.lang.previousText+'</small></a>'+
    					'</div>';
    	
    		caption +='<div >'+label+'</div>';

   caption += '</div>';
   return caption;
}
    

    




