/* Menü */
$(document).ready(function(){
   $('li.headlink').hover(
      function() { $('ul', this).css('display', 'block'); },
      function() { $('ul', this).css('display', 'none'); }
	 );
});
$(document).ready(function(){
						   
/* 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;
	});
/* Lightbox */
	$('.gallery a').lightBox({
		overlayBgColor: '#8f4f5f'						 
	});
/* 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()');


});