$(document).ready(function(){
/* ### Beginn ### */
/* LightBox */
        $('.galerie a').lightBox({
                overlayBgColor: '#35AB93',
				overlayOpacity: 0.8
        });
/* Mouseover Navi */
        $('.link img').hover(function(){
                this.src = this.src.replace("_norm","_hover");
        },
        function(){
                this.src = this.src.replace("_hover","_norm");
        });
/* Slideshow */
        $('#imageContainer').cycle({
            fx:    'fade',
                randomizeEffects: true,
            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 ### */
});