
	jQuery(document).ready(function() {

		jQuery('a.highslide').click(function() {
		   return hs.expand(this);
		});
		
		$('a.email').each(function(){
			e = this.rel.replace('/','@');
			this.href = 'mailto:' + e;
			$(this).text(e);
		});
	
	});	
	


	hs.lang.cssDirection= 'ltr';
	hs.lang.loadingText = 'Laden ...';
	hs.lang.loadingTitle = 'Klicken zum Abbrechen';
	hs.lang.focusTitle = 'Klicken zum Fokussieren';
	hs.lang.fullExpandTitle = 'Originalgröße (f)';
	hs.lang.creditsText = '';
	hs.lang.creditsTitle = '';
	hs.lang.previousText = 'Zurück';
	hs.lang.nextText = 'Weiter'; 
	hs.lang.moveText = 'Verschieben';
	hs.lang.closeText = 'Schließen'; 
	hs.lang.closeTitle = 'Schließen (Esc)'; 
	hs.lang.resizeTitle = 'Skalieren';
	hs.lang.playText = 'Abspielen';
	hs.lang.playTitle = 'Abspielen (Leertaste)';
	hs.lang.pauseText = 'Pause';
	hs.lang.pauseTitle = 'Pause (Leertaste)';
	hs.lang.previousTitle = 'Zurück (Pfeil Links)';
	hs.lang.nextTitle = 'Weiter (Pfeil Rechts)';
	hs.lang.moveTitle = 'Verschieben';
	hs.lang.fullExpandText = 'Originalgröße';
	hs.lang.number = 'Bild %1 von %2';
	hs.lang.restoreTitle = 'Klicken schließt, Klicken und Halten verschiebt. Pfeiltasten navigieren.';

hs.expandDuration = 200; // milliseconds
hs.restoreDuration = 200;
hs.marginLeft = 30;
hs.marginRight = 30;
hs.marginTop = 170;
hs.outlineType = 'schwarz'; // set null to disable outlines
	hs.captionEval = 'this.thumb.title';

/*
// See http://highslide.com/ref for examples of settings  
graphicsDir : 'highslide/graphics/',
expandCursor : 'zoomin.cur', // null disables
restoreCursor : 'zoomout.cur', // null disables
expandDuration : 250, // milliseconds
restoreDuration : 250,
marginLeft : 15,
marginRight : 15,
marginTop : 15,
marginBottom : 15,
zIndexCounter : 1001, // adjust to other absolutely positioned elements
loadingOpacity : 0.75,
allowMultipleInstances: true,
numberOfImagesToPreload : 5,
outlineWhileAnimating : 2, // 0 = never, 1 = always, 2 = HTML only 
outlineStartOffset : 3, // ends at 10
padToMinWidth : false, // pad the popup width to make room for wide caption
fullExpandPosition : 'bottom right',
fullExpandOpacity : 1,
showCredits : true, // you can set this to false if you want
creditsHref : 'http://highslide.com/',
enableKeyListener : true,
openerTagNames : ['a'], // Add more to allow slideshow indexing
transitions : [],
transitionDuration: 250,
dimmingOpacity: 0, // Lightbox style dimming background
dimmingDuration: 50, // 0 for instant dimming

anchor : 'auto', // where the image expands from
align : 'auto', // position in the client (overrides anchor)
targetX: null, // the id of a target element
targetY: null,
dragByHeading: true,
minWidth: 200,
minHeight: 200,
allowSizeReduction: true, // allow the image to reduce to fit client size. If false, this overrides minWidth and minHeight
outlineType : 'drop-shadow', // set null to disable outlines
wrapperClassName : 'highslide-wrapper', // for enhanced css-control
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>'
},
*/
