
Cufon.replace	('h2, #navi,  .abonnieren', {hover: 'true', fontSize: '14px'});
 

jQuery(document).ready(function(){
noSpam();
jQuery('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:1,
		animSpeed:1000,
		pauseTime:6000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:false,
		pauseOnHover:false, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});



	jQuery(".iframe").fancybox({
		'width'				: '50%',
		'height'			: '75%',
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});	

	jQuery("a[rel=lightbox]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'inside'
	});
	
	jQuery('#contentMain ul li a, #submitColumn').hover(function(){
		jQuery(this).stop(true, true);
		jQuery(this).fadeTo(100,0.6);
	},function(){
		jQuery(this).stop(true, true);
		jQuery(this).fadeTo(100,1);
	});



//		##### HOVER
jQuery('ul#navi li').hover(function(){
	jQuery(this).children('span').stop(true,true);
	jQuery(this).children('span').fadeTo(200,1);

},function(){
	jQuery(this).children('span').stop(true,true);
	jQuery(this).children('span').fadeTo(500,0);

});


});

function noSpam() {
    if (document.getElementById) {
		var at = "@";
	  	var links = document.getElementsByTagName('a');
	  
	  	for (var i = 0; i < links.length; i++) {
		  	var linkElem = links[i];
			
		  	if (linkElem.className == 'escape') {
		  		var mail = linkElem.firstChild; var domain = linkElem.lastChild;
		  		mail.nextSibling.firstChild.innerHTML = at;
		  		linkElem.href = "mailto:" + mail.data + at + domain.data;
		  	}
			
	  	} // End for
	  
    } // End if
}


