hs.graphicsDir = '/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.showCredits = false;
//hs.dimmingOpacity = 0.75;
// Add the controlbar
$(document).ready(function(){
	//hislide для всех рисунков
	$('.content img').each(function(){
		path = $(this).attr('src');
		if(path.indexOf('preview')+1) {
			href = path.replace('/preview/','/');
			$(this).wrap('<a href="'+href+'" onclick="return hs.expand(this)"></a>');
		}
	})
});
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 0.75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});


function gebi(id) {return document.getElementById(id);}

function hidden (id) {
	if (gebi(id).style.display == 'block') gebi(id).style.display = 'none';
	else gebi(id).style.display = 'block';
}

function show_links () {
	$("div[class='links_category_list']").show();
}
function hide_links () {
	$("div[class='links_category_list']").hide();
}

