/**
* Configuration for the highslide tool   
* 
*     44accb0dbd5834d54ace320b1adb3315
*        
*/

  hs.showCredits = 0;
  hs.graphicsDir = 'fileadmin/templates/_layout/js/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = null;
	hs.fadeInOut = true;
  hs.dimmingDuration = 25;
	hs.dimmingOpacity = 0.85;
  
  hs.preserveContent = false; 

	// define the restraining box
	hs.useBox = true;
	hs.width = 806;
	hs.height = 460;

	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 4000,
		repeat: true,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
});  

      // Translate to german
      hs.lang = {
       cssDirection:     'ltr',
       loadingText :     'Lade...',
       loadingTitle :    'Klick zum Abbrechen',
       focusTitle :      'Klick um nach vorn zu bringen',
       fullExpandTitle : 'Zur Originalgröße erweitern',
       fullExpandText :  'Vollbild',
       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 :          '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.'
      };
      
      

hs.skin = {
	controls:
		'<div class="highslide-controls"><ul>'+
			'<li class="highslide-previous">'+
				'<a href="#" title="{hs.lang.previousTitle}">'+
				'<span>{hs.lang.previousText}</span></a>'+
			'</li>'+
			'<li class="highslide-play">'+
				'<a href="#" title="{hs.lang.playTitle}">'+
				'<span>{hs.lang.playText}</span></a>'+
			'</li>'+
			'<li class="highslide-pause">'+
				'<a href="#" title="{hs.lang.pauseTitle}">'+
				'<span>{hs.lang.pauseText}</span></a>'+
			'</li>'+
			'<li class="highslide-next">'+
				'<a href="#" title="{hs.lang.nextTitle}">'+
				'<span>{hs.lang.nextText}</span></a>'+
			'</li>'+
			'<li class="highslide-move">'+
				'<a href="#" title="{hs.lang.moveTitle}">'+
				'<span>{hs.lang.moveText}</span></a>'+
			'</li>'+
			'<li class="highslide-full-expand">'+
				'<a href="#" title="{hs.lang.fullExpandTitle}">'+
				'<span>{hs.lang.fullExpandText}</span></a>'+
			'</li>'+
			'<li class="highslide-close">'+
				'<a href="#" title="{hs.lang.closeTitle}" >'+
				'<span>{hs.lang.closeText}</span></a>'+
			'</li>'+
		'</ul></div>'
	,
	contentWrapper:
		'<div class="highslide-header"><ul>'+
			'<li class="highslide-previous">'+
				'<a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)">'+
				'<span>{hs.lang.previousText}</span></a>'+
			'</li>'+
			'<li class="highslide-next">'+
				'<a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)">'+
				'<span>{hs.lang.nextText}</span></a>'+
			'</li>'+
			'<li class="highslide-move">'+
				'<a href="#" title="{hs.lang.moveTitle}" onclick="return false">'+
				'<span>{hs.lang.moveText}</span></a>'+
			'</li>'+
			'<li class="highslide-close">'+
				'<a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)">'+
				'<span>{hs.lang.closeText}</span></a>'+
			'</li>'+
		'</ul></div>'+
		'<div class="highslide-body"></div>'+
		'<div class="clearZero"></div>'+
		'<div class="highslide-footer"><div>'+
			'<span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span>'+
		'</div></div>'
};

/**
 * Callbacks
 */
 
/*
 * reload iframe in overlay, fixes safari display problems
 */
hs.Expander.prototype.onAfterExpand = function() {
  if ($('iframe')[0]) {
    $('iframe')[0].contentDocument.location.reload(true);
  }
}
