$(document).ready(function(){
/* ### Beginn ### */
/* LightBox */
	$('.galerie').lightBox();
/* Slideshow */
	$('#bildwechsel').cycle({
		fx:    'fade',
		speed:  2500
	});

/* Popup Fenster */
	$('.popup').click(function(){
		open(this.href, 'f', 'height=400, width=400, resizable=yes, scrollbars=no');
		return false;
	});
/* Mousover Galerie */
	$("#mylink a").hover(function(){
		var largePath = $(this).attr("href");
		$("#bild").attr({ src: largePath });
		return false;
	});
	$("#mylink a").click(function(){
		var largePath = $(this).attr("href");
		$("#bild").attr({ src: largePath });
		return false;
	});
/* PDF Dateien mit Image versehen */
	$('a[href$=pdf]').addClass('pdf');
/* Zebra */
	$('#zebra tr:nth-child(even)').addClass('gerade');
/* Blur */
	$('a').attr('onfocus','if(this.blur)this.blur()');
/* ### Ende ### */
});
