var kovasznai_carousel = {
  index: 0,
  min: 0,
  max: 0,
  show: function() {
    jQuery( '.ngg-imageoverwiev li' ).hide();
    jQuery( '.ngg-imageoverwiev li:eq(' + this.index + ')' ).show();
  },
  showNext: function( count ) {
    this.index += count;
    if( this.index >= this.max ) {
      this.index -= count;
    }
    this.show();
  },
  showPrev: function( count ) {
    this.index -= count;
    if( this.index < this.min ) {
      this.index += count;
    }
    this.show();
  },
  set: function( min, max ) {
    this.index = min;
    this.min = min;
    this.max = max;
    this.show();
  }
}

/*
jQuery( document ).ready( function() {
	jQuery( '#slimbox-hidden a' ).click();
} );
*/

