/**
 * All rights reserved
 * 
 * @author Kozicki Jakub <kuba.kozicki@gmail.com>
 */

hs.lang.loadingText = 'Ładowanie...';
hs.lang.loadingTitle = 'Kliknij aby anulować';
hs.lang.focusTitle = 'Kliknij aby ustawić przenieść na wierzch';
hs.lang.previousText = 'Poprzednie';
hs.lang.nextText = 'Następne'; 
hs.lang.moveText = 'Przesuń';
hs.lang.closeText = 'Zamknij'; 
hs.lang.closeTitle = 'Zamknij (esc)'; 
hs.lang.resizeTitle = 'Zmień rozmiar';
hs.lang.playText = 'Start';
hs.lang.playTitle = 'Rozpocznij pokaz slajdów (spacje)';
hs.lang.pauseText = 'Pauza';
hs.lang.pauseTitle = 'Przerwij pokaz slajdów (spacja)',
hs.lang.previousTitle = 'Poprzednie (strzałka w lewo)',
hs.lang.nextTitle = 'Kolejne (strzałka w prawo)',
hs.lang.moveTitle = 'Przesuń';

hs.onSetClickEvent = function (sender, e) {
   e.element.onclick = function () {
      return hs.expand(this, { slideshowGroup: this.parentNode.className });
   };
   return false;
};

hs.isUnobtrusiveAnchor = function(el) {
	if (el.href && /\.jpg$/.test(el.href)) return 'image';
};

hs.preserveContent  = false;
hs.graphicsDir = "../images/highslide/";
hs.align = "center";
hs.transitions = ["expand", "crossfade"];
hs.outlineType = "rounded-white";
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.25;

// Add the controlbar
hs.addSlideshow({
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: "fit",
	overlayOptions: {
		opacity: .75,
		position: "bottom center",
		hideOnMouseOut: true
	}
});
