//<![CDATA[
	hs.graphicsDir = './resources/highslide/graphics/';
	hs.dynamicallyUpdateAnchors = false;
	hs.showCredits = false;
	hs.outlineType = '';


	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.85;
	hs.onDimmerClick = function() { return true; }
		
	hs.marginBottom = 15; // make room for the thumbstrip and the controls

	hs.addSlideshow({
		slideshowGroup: 'images',
		interval: 3000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			position: 'top right',
			relativeTo: 'viewport',
			hideOnMouseOut: false,
			offsetX: -20
	
		},
		fixedControls: false
	});





 
		// Language strings
		// Best to leave loadingText, loadingTitle and number blank; it makes the page design happy.
		hs.lang = {
			cssDirection:     'ltr',
			loadingText :     '',
			loadingTitle :    '',
			focusTitle :      'Klick um nach vorn zu bringen',
			fullExpandTitle : 'Zur Originalgröße erweitern',
			fullExpandText :  'Vollbild',
			creditsText :     'Powered by <i>Highslide JS</i>',
			creditsTitle :    'Gehe zur Highslide JS Homepage',
			previousText :    'Voriges',
			previousTitle :   'Voriges (Pfeiltaste links)',
			nextText :        'Nächstes',
			nextTitle :       'Nächstes (Pfeiltaste rechts)',
			moveTitle :       'Verschieben',
			moveText :        'Verschieben',
			closeText :       'Schließen',
			closeTitle :      'Schließen (Esc)',
			resizeTitle :     'Größe wiederherstellen',
			playText :        'Abspielen',
			playTitle :       'Slideshow abspielen (Leertaste)',
			pauseText :       'Pause',
			pauseTitle :      'Pausiere Slideshow (Leertaste)',
			number :          '',
			restoreTitle :    'Klick um das Bild zu schließen, klick und ziehe um zu verschieben. Benutze Pfeiltasten für vor und zurück.'
		};

	hs.onKeyDown = function(sender, e) {
		if (e.keyCode == 32) return false;
	};


    // Open a specific thumbnail based on querystring input.
    hs.addEventListener(window, "load", function() {
       // get the value of the autoload parameter
       var autoload = /[?&]autoload=([^&#]*)/.exec(window.location.href);
       // virtually click the anchor
       if (autoload) document.getElementById(autoload[1]).onclick();
    });

	function closeImage(){
	   return hs.close()
	};

//]]>
