
hs.graphicsDir 		= '/_scripts/pmpup/graphics/';
hs.showCredits = 0;
hs.padToMinWidth = true;
hs.outlineType 		= 'rounded-white';
//hs.captionEval = 'this.thumb.alt';

// langue

hs.lang = {
	cssDirection: 'ltr',
	loadingText : 'Chargement...',
	loadingTitle : 'Cliquez ici pour annuler',
	focusTitle : 'Cliquez ici pour placer au premier plan',
	fullExpandTitle : 'Développer à taille réelle (f)',
	previousText : 'Pr&eacute;c&eacute;dent',
	nextText : 'Suivant', 
	moveText : 'Déplacer',
	closeText : 'Fermer', 
	closeTitle : 'Fermer (esc)', 
	resizeTitle : 'Resize',
	playText : 'Lecture',
	playTitle : 'Lecture diaporama (barre d\'espace)',
	pauseText : 'Pause',
	pauseTitle : 'Pause diaporama (barre d\'espace)',
	previousTitle : 'Pr&eacute;c&eacute;dent (flèche à gauche)',
	nextTitle : 'Suivant (flèche à droite)',
	moveTitle : 'Déplacer',
	fullExpandText : 'Développer',
	number: 'Image %1 of %2',
	restoreTitle : 'Cliquez pour fermer l\'image, cliquez et faites glisser pour déplacer. Utilisez les touches fléchées pour les suivants et précédents.'
};


//hs.align = 'center';
if (hs.registerOverlay) {
	// The white controlbar overlay
	hs.registerOverlay({
		thumbnailId: 'thumb3',
    	overlayId: 'controlbar',
    	position: 'top right',
    	hideOnMouseOut: true
	});
	// The simple semitransparent close button overlay
	hs.registerOverlay({
		thumbnailId: 'thumb2',
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});
}

// ONLY FOR THIS EXAMPLE PAGE!
// Initialize wrapper for rounded-white. The default wrapper (drop-shadow)
// is initialized internally.
if (hs.addEventListener && hs.Outline) hs.addEventListener(window, 'load', function () {
	new hs.Outline('rounded-white');
	//new hs.Outline('glossy-dark');
});

// The gallery example on the front page
var galleryOptions = {
	slideshowGroup: 'gallery',
	wrapperClassName: 'glossy-dark',
	outlineType: 'glossy-dark',
	dimmingOpacity: 0.6,
	align: 'center',
	transitions: ['expand', 'crossfade']
};


if (hs.addSlideshow) hs.addSlideshow({
    slideshowGroup: 'gallery',
    interval: 5000,
    repeat: false,
    useControls: true,
	fixedControls: 'fit',
    overlayOptions: {
        opacity: .6,
        position: 'bottom center',
        hideOnMouseOut: true
	}
});


// centree
var zoomphoto = {
	captionEval: 'this.thumb.alt',
	slideshowGroup: 'zoomphoto',
	wrapperClassName: 'rounded-white',
	outlineType: 'rounded-white',
	//dimmingOpacity: 0.6,
	//align: 'center',
	transitions: ['expand', 'crossfade']
};


window.onload = function()
{
	hs.preloadImages(5);
}

function changeInfosImage(zoom, image, titre)
{
	if(navigator.appName == 'Microsoft Internet Explorer')
		var index = 0;
	else
		var index = 1;

	if(document.getElementById('caption-for-thumb_0'))
		document.getElementById('caption-for-thumb_0').childNodes[index].innerHTML = titre;
	else if(document.getElementById('caption-for-thumb_0-hsOrig')) 
		document.getElementById('caption-for-thumb_0-hsOrig').childNodes[index].innerHTML = titre;
	document.getElementById('thumb_0').childNodes[index].src.alt = titre; 
	document.getElementById('thumb_0').childNodes[index].style.backgroundImage = 'url('+image+')'; 
	document.getElementById('thumb_0').href = zoom;
}
