$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		horizontal_padding: 20, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: true, /* true/false */
		allow_resize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
		//hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		//modal: false,  /* If set to true, only the close button will close the window */
		//changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		//callback: function(){} /* Called when prettyPhoto is closed */
		social_tools: '',
		overlay_gallery: false,
		deeplinking: false
	});
	
	// Bilderrand bei jedem dritten bild in der galerie auf 0px setzen
	
	// Bilder zaehlen
	var anzahlBilder = $(".bildergalerie img").length;
	for (var i = 2; i < anzahlBilder; i=i+3){
		$(".bildergalerie img:nth("+i+")").css({'marginRight' : '0px'});
	}
	
	// englisch not yet ready
	// $(".e").click(function(event) {
	// 		event.preventDefault();
	// 		alert("Our english pages are not yet ready.\n\nPlease be patient. Thank you!");
	// 	});
});
