var galleryOptionsColors = null;
var galleryOptionsColors2 = null;

setHighSlideSettings();



function setHighSlideSettings(){
  if(typeof(hs)=="undefined") return;
  hs.lang.creditsText = 'Автопособие - www.avtoposobie.ru';
  hs.lang.creditsTitle = "";
  hs.lang.number = "Картинка %1 из %2";
  hs.lang.restoreTitle = 'Используйте клавиши "Влево" и "Вправо" для навигации. Кликните на картинку для закрытия.'
  hs.lang.loadingText = 'Загружаем...';
  hs.lang.loadingTitle = 'Загрузка';
  
	hs.lang.focusTitle = 'Кликните, чтобы поместить сверху';
	hs.lang.fullExpandTitle = 'Исходный размер картинки (f)';
	hs.lang.previousText = 'Предыдущая';
	hs.lang.nextText = 'Следующая'; 
	hs.lang.moveText = 'Переместить';
	hs.lang.closeText = 'Закрыть'; 
	hs.lang.closeTitle = 'Закрыть (esc)'; 
	hs.lang.resizeTitle = 'Изменить размер';
	hs.lang.playText = 'Запуск';
	hs.lang.playTitle = 'Запустить слайды (пробел)';
	hs.lang.pauseText = 'Пауза';
	hs.lang.pauseTitle = 'Остановить слайды (пробел)';
	hs.lang.previousTitle = 'Предыдущая (стрелка влево)';
	hs.lang.nextTitle = 'Следующая (стрелка вправо)';
	hs.lang.moveTitle = 'Переместить';
	hs.lang.fullExpandText = '1:1';
  
  
  
  
  hs.creditsHref = "http://www.avtoposobie.ru";  
  hs.graphicsDir = "/highslide/graphics/";
  hs.zIndexCounter = 200000;

  
  galleryOptionsColors = {
		slideshowGroup: 'galleryColors',
		wrapperClassName: 'wide-border',
		outlineType: 'rounded-white',
		dimmingOpacity: 0.8,
		align: 'center',
		transitions: ['expand', 'crossfade'],
		//fadeInOut: true,
		wrapperClassName: 'wide-border',
		marginLeft: 100,
		marginBottom: 80,
		numberPosition: 'caption',
		captionEval: 'this.a.title',
		useBox: true,
		width: 800,
		height: 600
	};

	

	hs.addSlideshow({
		slideshowGroup: 'galleryColors',
		interval: 5000,
		repeat: true,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			position: 'bottom center',
			opacity: .75,
			hideOnMouseOut: true
		},
		thumbstrip: {
			position: 'above',
			mode: 'horizontal',
			relativeTo: 'expander'
		}
	});
	
	
  galleryOptionsColors2 = {
		slideshowGroup: 'galleryColors2',
		thumbnailId: 'galleryColors2ID',
		wrapperClassName: 'wide-border',
		outlineType: 'rounded-white',
		dimmingOpacity: 0.8,
		align: 'center',
		transitions: ['expand', 'crossfade'],
		//fadeInOut: true,
		wrapperClassName: 'wide-border',
		marginLeft: 100,
		marginBottom: 80,
		numberPosition: 'heading',
		captionEval: 'this.a.title',
		showCredits: false,
		useBox: true,
		width: 800,
		height: 600
	};
	

	hs.addSlideshow({
		slideshowGroup: 'galleryColors2',
		thumbnailId: 'galleryColors2ID',
		interval: 5000,
		repeat: true,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			position: 'top right',
			opacity: .75,
			offsetX: 200,
			offsetY: -65
		},
		thumbstrip: {
			position: 'rightpanel',
			mode: 'float',
			relativeTo: 'expander',
			width: '210px'
		}
	});

	
  
}

