﻿hs.lang = { 
  creditsText: '',
  loadingTitle : '',
	focusTitle : '',
	fullExpandTitle : '',
	creditsText : '',
	creditsTitle : '',
	restoreTitle : ''
};

hs.graphicsDir = '../../Scripts/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.wrapperClassName = 'dark borderless floating-caption';
hs.fadeInOut = true;
hs.dimmingOpacity = .50;
hs.showCredits = false;
//hs.captionEval = 'this.thumb.alt';

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
  //slideshowGroup: 'group1',
  interval: 5000,
  repeat: false,
  useControls: false,
  fixedControls: 'fit',
  overlayOptions: {
    opacity: .6,
    position: 'bottom center',
    hideOnMouseOut: true
  }
});

/*hs.registerOverlay({
  html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
  position: 'top right',
  fade: 2 // fading the semi-transparent overlay looks bad in IE
});*/

hs.Expander.prototype.onImageClick = function (sender) {
  hs.next();
  return false;
}



// Funzione per allineare gli accessori, non c'entra un tubo qui, ma non sapevo dove metterla
var max = 0;
var i = 0;
$(function () {
  while (i < $('div.volpe').length + 3) {

    var a = $('div.volpe').eq(i).height();
    var b = $('div.volpe').eq(i + 1).height();
    var c = $('div.volpe').eq(i + 2).height();

    if (a > b && a > c) max = a;
    else if (b > a && b > c) max = b;
    else max = c;

    $('div.volpe').eq(i).height(max);
    $('div.volpe').eq(i + 1).height(max);
    $('div.volpe').eq(i + 2).height(max);

    i = i + 3;
  }
});

