
$(document).ready(function() {
			$.fn.delay = function( time, name ) {
		    return this.queue( ( name || "fx" ), function() {
        	var self = this;
        	setTimeout(function() { $.dequeue(self); } , time );
    		} );
			};
			
			
			
			var cyLayout = {
							fx: 'fade',
							timeout: 5000,
							speed: 1000,
							delay: 1000,
							pager: '#pager',
							prev: '#zurueck',
							next: '#weiter'
							}
				$('#slideshow').cycle(cyLayout);
				$('#startStop').toggle(
									   function() {
										   $('#slideshow').cycle('pause');
										   $(this).text('fortsetzen');
										   },
									   function() {
										   $('#slideshow').cycle('resume');
										   $(this).text('pause');
										   }
									   );
				$('#en_de').toggle(
									   function() {
										   $('#bio_de').fadeOut(300);
										   $('#bio_en').fadeIn(600);
										   $(this).text('deutsch');
										   },
									   function() {
										   $('#bio_en').fadeOut(300);
										   $('#bio_de').fadeIn(600);
										   $(this).text('english');
										   }
									   );
			
			
			var lbLayout = {
					overlayBgColor: '#000',
					overlayOpacity: .7,
					txtImage: 'Bild',
					txtOf: 'von',
					imageBtnClose: 'images/lbBilder/stop_klein.png',
					imageBtnPrev: 'images/lbBilder/prev_klein.png',
					imageBtnNext: 'images/lbBilder/next_klein.png',
					imageLoading: 'images/lbBilder/ajax-loader.gif',
					imageBlank: 'images/lbBilder/lightbox-blank.gif'
					}
				$('.lightbox').lightBox(lbLayout);
				$('#galerie').fadeIn(2000);
				$('#bio').fadeIn(1000);
				$('#slide').fadeIn(5000);
				$('#steuerung').fadeIn(5000);
				$('#steuerung2').fadeIn(5000);
				$('#slide2').fadeOut(4000);
				$('#smallpic').fadeIn(260);
				$('#impressum_d').fadeIn(800);
				$('#smallpic').mouseenter(function () {
											   $(this).fadeOut(500, function () {
																			 $(this).fadeIn(1000);
																			 
																			 })
											   });
											   
											   
											   
				
				
});					

		
