// JavaScript Document

hs.lang = {
	cssDirection: 'ltr',
	loadingText : 'Kis türelmet...',
	loadingTitle : 'Mégsem',
	focusTitle : '',
	fullExpandTitle : 'Nagyítás teljes méretre (f)',
	previousText : 'Előző',
	nextText : 'Következő', 
	moveText : 'Mozgat',
	closeText : 'Bezár', 
	closeTitle : 'Bezár (esc)', 
	resizeTitle : 'Átméretez',
	playText : 'Indít',
	playTitle : 'Diavetítést indít (space)',
	pauseText : 'Állj',
	pauseTitle : 'Diavetítést megállít (space)',
	previousTitle : 'Előző (balra)',
	nextTitle : 'Következő (jobbra)',
	moveTitle : 'Mozgat',
	fullExpandText : '1:1',
	number: '%1 / %2',
	restoreTitle : ''
};
hs.showCredits = false;
hs.graphicsDir = 'js/highslide/graphics/';

hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.wrapperClassName = 'dark borderless floating-caption';
hs.fadeInOut = true;
hs.dimmingOpacity = .75;
hs.marginBottom = 60;
hs.autoplay = true;
hs.numberPosition = 'caption';
hs.preserveContent = false;

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	interval: 3000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

// Options for the video gallery
var videoOptions = {
	fullExpandOpacity: true,
	transitions: ['expand', 'crossfade'],
	objectType: 'swf', 
	width: 480, 
	objectWidth: 480,
	height: 385, 
	objectHeight: 385, 
	allowSizeReduction: false,
	preserveContent: false,
	autoplay: false,
	numberPosition: 'none',
	wrapperClassName: 'video-class',
	swfOptions: { 
		params: { 
			allowfullscreen: 'true' 
		}
	}, 
	maincontentText: 'You need to upgrade your Flash player'
}

function galeriaGeneralas(cim, galeria, konyvtar, darab) {
	document.write('<div class="foto-csoport">');
	document.write('<div class="kep">');
	document.write('<a id="'+galeria+'" href="galeria/'+konyvtar+'/01.jpg" onClick="return hs.expand(this, {slideshowGroup: \''+galeria+'\', captionText: \''+cim+'\'})"><img src="galeria/'+konyvtar+'/01_kicsi.jpg" /></a>');
	document.write('<div style="display:none">');
	for(i=2; i<=darab; i++) {
		document.write('<a href="galeria/'+konyvtar+'/'+(i<10?'0':'')+i+'.jpg" class="highslide" onclick="return hs.expand(this, {slideshowGroup: \''+galeria+'\', captionText: \''+cim+'\'})"></a>');
	}
	document.write('</div>');
	document.write('</div>');
	document.write(cim);
	document.write('</div>');
}

function videoElhelyezes(cim, url) {
	var width = 364;
	var height = 205;
	document.write('<div class="video-csoport">');
	document.write('<div class="kep">');
	document.write('<object width="' + width + '" height="' + height + '"><param name="movie" value="' + url + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + url + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + width + '" height="' + height + '"></embed></object>');
	document.write('</div>');
	document.write(cim);
	document.write('</div>');
}

window.addEvent('domready', function() {
	var myMenu = new MenuMatic({effect: 'slide & fade'});
});

