// JavaScript Document

	Cufon.replace('h1, h3'); // Works without a selector engine
	Cufon.replace('h2', {textShadow: '1px 1px #000',}); 
	Cufon.replace('h2.aktuell', {color: '-linear-gradient(#000000, #787878, rgb(0, 0, 0))', textShadow: '1px 1px #fff'});
	Cufon.replace('a.link-cufon', {hover:true, hover: {color: '#b12333'} });
	

	$(window).load(function() {
		 $('#slider').nivoSlider({
			  effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
			  slices:15,
			  animSpeed:500, //Slide transition speed
			  pauseTime:3000,
			  keyboardNav:true, //Use left & right arrows
			  pauseOnHover:true, //Stop animation while hovering
			  manualAdvance:false
		 });
	});



	$(document).ready(function() {
		$('#navigation').superfish({ 
					delay:       250,                            // one second delay on mouseout 
					animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
					speed:       'slow',                          // faster animation speed 
					autoArrows:  false                           
			  }); 
	});


	$(function(){  
					$('#navigation li a').append('<span class="hover"></span>');  
					$('#navigation li a').hover(  
					  function() {  
					  $('.hover', this).stop().animate({  
					 'opacity': 1 
					 }, 450,'easeOutSine')  
					 },  
					 function() {  
					$('.hover', this).stop().animate({  
					 'opacity': 0  
					 }, 450, 'easeOutQuad')  
			 });  
	});   
