// Animationen für Hauptnavigation, 2010 Christoph Walter

$(document).ready(function(){   //Erst starten wenn Dokument fertig geladen ist

if ($.browser.opera) {
var target = 'html';
}else{
var target = 'html,body';
}
$('#to_top').click(function(){ $(target).animate({scrollTop:0}, 1000); return false; });
$('p.csc-linkToTop').click(function(){ history.back(); });

$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: 'pictures/loading.gif',
				play: 6000,
				pause: 1000,
				hoverPause: true,
				animationStart: function(){
					$('.caption').animate({
						bottom:-35
					},100);
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log(current);
					};
				}
			});
		});


});
