hs.outlineType = 'glossy-dark';
hs.align = 'center';
hs.outlineWhileAnimating = true;
hs.graphicsDir = '/public/js/highslide/graphics/';

hs.transitions = ['expand', 'crossfade'];

hs.fadeInOut = true;

hs.expandSteps = 30; // number of steps in zoom. Each step lasts for duration/step milliseconds.
hs.expandDuration = 500; // milliseconds
hs.restoreSteps = 30;
hs.restoreDuration = 500;
hs.dragByHeading = false;


hs.lang = {
	loadingText :     'Laddar...',
	loadingTitle :    'Klicka för att avbryta',
	focusTitle :      'Klicka för att visa överst',
	fullExpandTitle : 'Förstora till full storlek',
	fullExpandText :  'Full storlek',
	creditsText :     'Skapat med <i>Highslide JS</i>',
	creditsTitle :    'Gå till Highslide JS hemsida',
	previousText :    'Föregående',
	previousTitle :   'Föregående (vänster piltangent)',
	nextText :        'Nästa',
	nextTitle :       'Nästa (höger piltangent)',
	moveTitle :       'Flytta',
	moveText :        'Flytta',
	closeText :       'Stäng',
	closeTitle :      'Stäng (esc)',
	resizeTitle :     'Ändra storlek',
	playText :        'Spela',
	playTitle :       'Spela bildspel (mellanslag)',
	pauseText :       'Pausa',
	pauseTitle :      'Pausa bildspel (mellanslag)',
	restoreTitle :    'Klicka för att stänga bilden. Klicka och dra för att flytta. Använd piltangenter för nästa och föregående bild.'
};


hs.showCredits = false;
hs.preserveContent = false;
hs.allowSizeReduction = false;

//hs.objectLoadTime = 'after';



//hs.slideshowGroup = 'group1';

hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		position: 'bottom center',
		opacity: .75,
		hideOnMouseOut: true

	}

	,
	thumbstrip: {
		position: 'above center',
		mode: 'horizontal',
		relativeTo: 'expander'
	}
	
});


hs.onSetClickEvent = function ( sender, e ) {
	// set the onclick for the element, output the group name to the caption for debugging
	
	switch (e.type) {
		
		case 'ajax':

			break;

		case 'iframe':
			
			e.element.onclick = function () {
				/*
				hs.width = 400;
				hs.height = 100;
				*/

				return hs.htmlExpand(this, {
					objectType: 'iframe',
					width: 800,
					height: 600
				});
			}
			break;

		default:
			e.element.onclick = function () {
				/*
				hs.allowSizeReduction = true;
				hs.width = 750;
				hs.height = 400;
				*/
				hs.useBox = true;
			
				return hs.expand(this, {
					slideshowGroup: 'group1',
					dimmingOpacity: 0.5,
					width: 750,
					height: 425
				});
			}
			break;

	}
   
	// return false to prevent the onclick being set once again
	return false;
}



