
//Initialisation

hs.graphicsDir 		= '/_scripts/pmpup/graphics/';
hs.outlineType 		= 'rounded-white';
hs.showCredits 		= false;
hs.fullExpandIcon 	= 'fullexpand2.gif';

    hs.outlineWhileAnimating = true;
    
hs.fullExpandTitle 	= 'Expand to actual size';
hs.restoreTitle 	= 'Clique gauche maintenu pour déplacer l\'image.';
hs.focusTitle 		= 'Click to bring to front';
hs.loadingText 		= 'Chargement...';
hs.loadingTitle 	= 'Cliquer pour annuler';
hs.enlargeTitle 	= 'Cliquer pour agrandir';


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;
}

	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
			opacity: .75,
			position: 'top center',
			hideOnMouseOut: true
		}
	});
