$(document).ready(function(){
	$('.item.1').cycle({
      	timeout: 4500
	});

	$('.item.2').cycle({
      	timeout: 4400
	});

	$('.item.3').cycle({
      	timeout: 4600
	});

	$('.item.4').cycle({
      	timeout: 4300
	});

	$('.item.5').cycle({
      	timeout: 4700
	});
	
	
	// Sponsorenseite
	$('.sponsoren #wrapper #content img').tinyTips('title');
	
	$('.sponsoren #wrapper #content img').hover(function(){
		$(this).animate({opacity: '1'}, {queue:false, duration: 300});
	}, function(){
		$(this).animate({opacity: '0.4'}, {queue:false, duration: 300});
	});
	
	
	$(".news:last").css({border: '0', margin: '0'});
	
	
	
	
	// jQuery SmoothScroll
	$('span[rel*=#]').click(function() {
         var duration=1000;
         var easing='swing';

		var target=$($(this).attr("rel")+', div[id='+$(this).attr("rel").slice(1)+']').offset().top-250;
		if(target > $(document).height()-$(window).height()) target=$(document).height()-$(window).height()-250;			
		if($.browser.safari) var animationSelector='body:not(:animated)';
		else var animationSelector='html:not(:animated)';

		$(animationSelector).animate({ scrollTop: target }, duration, easing, function() {
		});
		return false;
	});
	
});
