hs.graphicsDir = '/wp-content/plugins/produkty/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.showCredits = 0;
hs.padToMinWidth = true;
// The gallery example on the front page
var galleryOptions = {
slideshowGroup: 'gallery',
// wrapperClassName: 'dark',
outlineType: 'rounded-white',
dimmingOpacity: 0.8,
align: 'center',
transitions: ['expand', 'crossfade'],
fadeInOut: true,
wrapperClassName: 'borderless floating-caption',
marginLeft: 100,
marginBottom: 80,
captionEval : 'this.thumb.alt',
numberPosition: 'caption'
};
if (hs.addSlideshow) hs.addSlideshow({
slideshowGroup: 'gallery',
interval: 5000,
repeat: false,
useControls: true,
overlayOptions: {
className: 'text-controls',
position: 'bottom center',
relativeTo: 'viewport',
offsetY: -60
},
thumbstrip: {
position: 'bottom center',
mode: 'horizontal',
relativeTo: 'viewport'
}
});
/* gcm galerie dalsi predchozi */
//html kod vrstvy
function GetImgControlBarLeftArrow(height)
{
var styleHeight='';
if (height > 0)
styleHeight=' style="height:'+height+'px"';
var hsImgControlBarLeftArrow = 'Předchozí';
return hsImgControlBarLeftArrow;
}
function GetImgControlBarRightArrow(height)
{
var styleHeight='';
if (height>0)
styleHeight=' style="height:'+height+'px"';
var hsImgControlBarRightArrow = 'Další';
return hsImgControlBarRightArrow;
}
hs.Expander.prototype.onBeforeExpand = function (sender) {
if (this.slideshowGroup == 'gallery')
{
_testuju=sender;
// vytvoření elementu vrstvy a naplnění obsahem
var controlbar = document.createElement('div');
controlbar.className = "controlbar";
controlbar.innerHTML = "";
// kontrola, zda existuje předchozí obrázek
if(sender.getAdjacentAnchor(-1)){
controlbar.innerHTML = GetImgControlBarLeftArrow(this.y.size);
}
// kontrola, zda existuje následující obrázek
if(sender.getAdjacentAnchor(1)){
controlbar.innerHTML += GetImgControlBarRightArrow(this.y.size);
}
// samotné přiřazení vrstvy
if (controlbar.innerHTML != "") {
sender.createOverlay( { overlayId: controlbar, position: "middle center", hideOnMouseOut: true, opacity: 1, width: '100%' } );
}
}
}
hs.Expander.prototype.onInit = function() {
hs.marginBottom = (this.slideshowGroup == 'gallery') ? 135 : 15;
}
hs.lang = {
cssDirection: 'ltr',
loadingText : 'Načítá se...',
loadingTitle : 'Click to cancel',
focusTitle : 'Click to bring to front',
fullExpandTitle : 'Rozšířit na aktuální velikost (f)',
creditsText : 'Powered by Highslide JS',
creditsTitle : 'Go to the Highslide JS homepage',
previousText : 'Předchozí',
nextText : 'Další',
moveText : 'Pohyb',
closeText : 'Zavřít',
closeTitle : 'Zavřít (esc)',
resizeTitle : 'Změnit velikost',
playText : 'Přehrát',
playTitle : 'Přehrát slideshow (spacebar)',
pauseText : 'Pauza',
pauseTitle : 'Pauza slideshow (spacebar)',
previousTitle : 'Předchozí (šipka vlevo)',
nextTitle : 'Další (šipka vpravo)',
moveTitle : 'Pohyb',
fullExpandText : '1:1',
number: 'Obrázek %1 of %2',
restoreTitle : 'Klikni pro zavření fotky, klikni a táhni pro pohyb. Použij šipky pro předchozí a další.'
};