// JavaScript Document

	  $(function() {
					 
		// Start #navi animation with jquery.lavalamp
		
			$("ul#navi li").css("border","0"); // Turn "Without-JS"-Style off
			$("ul#navi").lavaLamp({
				 fx: "backout", 
				 speed: 700
			});
		
			$("ul#navi li.back").css("display","block");
		
		
		// Set hover-effect of #navi-add
		
			$("#navi-add li.inactive").css("backgroundColor","#fcfcfc"); // Turn "Without-JS"-Style off
			
			
			$('#navi-add li.inactive').hover(
				function () {	jQuery(this).animate({ backgroundColor: "#f4f1ee" }, { duration: 250, queue: false });},
				function () {	jQuery(this).animate({ backgroundColor: "#fcfcfc" }, { duration: 250, queue: false }); });
			
			
			
		// Set hover-effect of image-links
		
			$(".img-right a img").css({ "opacity" : 0.85 , "border":"1px solid #c4c4c4" , "backgroundColor":"#f1f1f1" });  // Turn "Without-JS"-Style off
			
			
			$(".img-right a img").hover(function(){
				 $(this).stop().animate({"opacity": 1, "border": "1px solid #88c5de", "backgroundColor" : "#ffffff"}, { duration: 250, queue: false });
			},function(){
				 $(this).stop().animate({"opacity": 0.85, "border": "1px solid #c4c4c4", "backgroundColor" : "#f1f1f1"}, { duration: 250, queue: false });
			});

		
		// Apply fancybox to .groupfancy
		
			$(".groupfancy a").fancybox({
				'transitionIn'	:	'fade',
				'transitionOut':	'fade',
				'speedIn'		:	300, 
				'speedOut'		:	200, 
				'overlayShow'	:	true,
				'overlayOpacity' :	0.1,
				'padding'		:	8
			});
			
	  });
	  
		// Font replacement via Cufon
		
	  Cufon.replace('#navi li')('ul#navi-add li a span.navi-title')('h6')('h2')('h3')('h4');
	  
