hs.graphicsDir = './images/graphics/';
	hs.outlineType = 'rounded-white';
	hs.showCredits = false;
	hs.wrapperClassName = 'draggable-header';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.75;
	// define the restraining box
	hs.useBox = true;
	//hs.width = 640;
	//hs.height = 480;
	// Add the controlbar
var groups = ['menu', 'neuf1', 'renovation1', 'renovation2', 'renovation3', 'tertiaire1', 'tertiaire2', 'tertiaire3'];
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.Expander.prototype.printHtml = function ()
{
    var pw = window.open("about:blank", "_new");
    pw.document.open();
    pw.document.write(this.getHtmlPrintPage());
    pw.document.close();
    return false;
};
hs.Expander.prototype.getHtmlPrintPage = 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 body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body') 
        || this.innerContent;

    return "<html>\n" +
        "<head>\n" +
        "<title>Temporary Printing Window</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()'>\n" +
        body.innerHTML +
        "</body>\n" +
        "</html>\n";
};
hs.Expander.prototype.printIframe = function () {
   var name = this.iframe.name;
   frames[name].focus();
   frames[name].print();
   return false;
}
