hs.graphicsDir = WB_URL+'/include/highslide/graphics/';
hs.showCredits = false;
hs.outlineType = 'rounded-white';
hs.dimmingOpacity = 0.5;
hs.fadeInOut = true;
hs.align = 'center';
hs.allowMultipleInstances = false;
hs.captionEval = '';
hs.headingEval = 'this.a.title';
hs.headingOverlay.position = 'below';
hs.restoreCursor = 'zoomout.cur';

hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Schließen"></div>',
	position: 'top right',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

// German language strings
hs.lang = {
	cssDirection: 'ltr',
	loadingText: 'Lade...',
	loadingTitle: 'Klick zum Abbrechen',
	focusTitle: 'Klick um nach vorn zu bringen',
	fullExpandTitle: 'Zur Originalgröße erweitern',
	creditsText: 'Powered by <i>Highslide JS</i>',
	creditsTitle: 'Gehe zur Highslide JS Homepage',
	previousText: 'Voriges',
	nextText: 'Nächstes',
	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)',
	previousTitle: 'Voriges (Pfeiltaste links)',
	nextTitle: 'Nächstes (Pfeiltaste rechts)',
	moveTitle: 'Verschieben',
	fullExpandText: 'Vollbild',
	number: 'Bild %1 von %2',
	restoreTitle: 'Klick um das Bild zu schließen, klick und ziehe um zu verschieben. Benutze Pfeiltasten für vor und zurück.'
};

// Add the slideshow controller
slideshow = {
	slideshowGroup : ['mediathek'],
	interval: 5000,
	repeat: true,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: '0.75',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-10',
		hideOnMouseOut: true
	}
};
$(function(){
	hs.addSlideshow(slideshow);
});

// gallery config object
var mediathek = {
	slideshowGroup: 'mediathek',
	autoplay:true,
	numberPosition: 'caption',
	transitions: ['expand', 'crossfade']
};

// video config object
var videothek = {
	objectType: 'iframe',
	width: 750, 
	height: 525, 
	numberPosition: 'caption',
	transitions: ['expand', 'crossfade']
};

// areamap video config object
var video = {
	objectType: 'iframe',
	height: 500,
	numberPosition: 'caption',
	captionEval: 'this.a.alt',
	transitions: ['expand', 'crossfade']
};

// bibliothek config object
var bibliothek = {
	objectType: 'swf', 
	objectWidth: 750, 
	objectHeight: 550, 
	preserveContent: false, 
	wrapperClassName: 'no-footer', 
	allowSizeReduction: false, 
	maincontentText: 'Bitte aktualisieren Sie Ihren Flash-Player',
	swfOptions: {
		flashvars: {
			xmlFile: ''
		}, 
		params: {
			allowFullscreen: 'true',
			allowScriptAccess: 'always',
			quality: 'high'
		} 
	} 
};

// popups
var popup = {
	objectType: 'iframe',
	width: 638,
	height: 650
}
