// JavaScript Document


		$(document).ready(function(){	
			$("#slider").easySlider({
				auto: true, 
				pause: 6000,
				continuous: true
			});
		});	


        $(function() {
            var offset = $("#logo").offset();
            var topPadding = 10;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $("#logo").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $("#logo").stop().animate({
                        marginTop: 0
                    });
                };
            });
        });
		

			$(document).ready(function() 
			{
				$('.menu ul li').each(function() {
				   $(this).qtip({
					  content: $(this).children('.menubeschreibung'),
					  show: 'mouseover',
					  hide: { when: 'mouseout', fixed: true },
					  style: { name: 'light', border: 2 },
					  position: {
						   corner: { target: 'topRight', tooltip: 'topLeft' }
						},	  
					  show: { effect: { type: 'grow' } }
					
				   });
				});
			});

			$(document).ready(function() 
			{
				$('#logo').each(function() {
				   $(this).qtip({
					  content: $(this).children('#quicknavi'),
					  show: 'mouseover',
					  hide: { when: 'mouseout', fixed: true },
					  style: { name: 'light', border: 0 },
					  position: {
						   corner: { target: 'bottomMiddle', tooltip: 'topMiddle' }
						},	  
					  show: { effect: { type: 'slide' } }
					
				   });
				});
			});
			
			$(document).ready(function() 
			{
				$('.kasten-leistungen').each(function() {
				   $(this).qtip({
					  content: $(this).children('p'),
					  show: 'mouseover',
					  hide: { when: 'mouseout', fixed: true },
					  style: { name: 'light', border: 1 },
					  position: { target: 'mouse' },	  
					  show: { effect: { type: 'grow' } }
					
				   });
				});
			});			
			

