hs.graphicsDir = './images/graphics/';
	hs.outlineType = 'rounded-white';
	hs.showCredits = false;
	hs.wrapperClassName = 'draggable-header';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = false;
	hs.dimmingOpacity = 0.75;
	// define the restraining box
	hs.useBox = true;
	//hs.width = 640;
	//hs.height = 480;
	// Add the controlbar
var groups = ['chalet1', 'chalet2', 'chalet10', 'abri1', 'abri3', 'auvent2', 'auvent3', 'auvent5', 'auvent6', 'garage1', 'garage2', 'garage3', 'garage11', 'garage13'];
for (var i = 0; i < groups.length; i++) {
   // Add the controlbar
   hs.addSlideshow({
      slideshowGroup: groups[i],
      interval: 5000,
      repeat: false,
      useControls: true,
      fixedControls: true,
      overlayOptions: {
         opacity: 0.9,
         position: 'bottom center',
         hideOnMouseOut: true
      }
   });
} 
hs.lang = {
	cssDirection: 'ltr',
	loadingText : 'Chargement ...',
	loadingTitle : 'Clic pour annuler',
	focusTitle : 'Clic pour mettre en avant',
	fullExpandTitle : 'Afficher la taille réelle (f)',
	creditsText : '',
	creditsTitle : 'BOSSET-BATIMENTS',
	previousText : 'précédent',
	nextText : 'Suivant', 
	moveText : 'Déplacer',
	closeText : 'Fermer', 
	closeTitle : 'Fermer (touche Echap)', 
	resizeTitle : 'Recadrer',
	playText : 'Jouer',
	playTitle : 'Jouer la galerie (barre espace)',
	pauseText : 'Pause',
	pauseTitle : 'Pause galerie (barre espace)',
	previousTitle : 'Précédent (flèche gauche)',
	nextTitle : 'Suivant (flèche droite)',
	moveTitle : 'Déplacer',
	fullExpandText : '1:1',
	number: 'Image %1 sur %2',
	restoreTitle : 'Clic pour fermer, clic et maintenir pour déplacer. Utiliser les touches pour la suivante ou précédente.'
};
hs.printImage = function (el)
{
   var exp = hs.expanders[hs.getWrapperKey(el)];
   link = "about:blank";
   var pw = window.open(link, "_new");
   pw.document.open();
   pw.document.write(exp.getPrintPage());
   pw.document.close();
   return false;
};
hs.Expander.prototype.getPrintPage = function()
{
   // We break the closing script tag in half to prevent
   // the HTML parser from seeing it as a part of
   // the *main* page.

   var height = (this.x.full > 970) ? 970 : this.x.full;

   return "<html>\n" +
      "<head>\n" +
      "<title></title>\n" +
      "<script>\n" +"function step1() {\n" +
      "  setTimeout('step2()', 10);\n" +
      "}\n" +
      "function step2() {\n" +
      "  window.print();\n" +
      "  window.close();\n" +
      "}\n" +
      "</scr" + "ipt>\n" +
      "</head>\n" +
      "<body onLoad='step1()' style='text-align: center'>\n" +
      "<img src='" + this.content.src + "'  height='"+ height +"'/>\n" +
      "</body>\n" +
      "</html>\n";
};

// pdf button
/* hs.Expander.prototype.onBeforeExpand = function() {
	this.createOverlay({
	html: '<div class="pdf"><a class="lien" href="'+ this.thumb.title +'">Téléchargement <img src="images/pdf.png" width="32" height="32" style="border: none" alt="Download pdf" title="Download pdf"></a><div>',
	position: 'top right',
	fade: 2, 
	opacity: 1.0
	});
}; */

