$(document).ready(function(){

			//$("#mainZitat2").hide();
			
			$("#slideshowHome2").animate({ 
        		opacity: 0
     		}, 1 );
     		
			$("#mainZitat2").animate({ 
        		opacity: 0
     		}, 1 );
     
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Go",             // Start text
		        stopText: "Stop"               // Stop text
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
			
			

			/*carousels - breite fuer ul setzen*/
			/*
			$('.anythingSlider ul').each(function() {
				var li_count 	= jQuery(this).find('li').length;
				var li_width 	= parseInt( jQuery(this).find('li').width() );
				var ul_sum		= li_count*li_width;
				alert(li_count);
				jQuery(this).css('width', ul_sum);
			});
			*/
			            
});


function changeHomeanimText(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag){
	//alert(currSlideElement);
}


function startSlideshowMythos(){

	zitatZaehler = 0;

	//startSlideshowMythos
	
	$("#mainZitat1").animate({ 
        opacity: 0
     }, 500 );
     
    $("#slideshowHome1").animate({ 
        opacity: 0
     }, 500 );

	$("#mainZitat2XX").animate({ 
        opacity: 1
     }, 500 );
     
     $("#slideshowHome2").animate({ 
        		opacity: 1
     }, 1 );
     
     $('#slideshowHome2').cycle({
			speed:  1000,
			autostop: 1,
			before: function(){
    					
				if(zitatZaehler == 1){
					$("#mainZitat2").animate({ 
        				opacity: 1
     				}, 500 );
     
					$("#mainZitat2").show();
				}
    					
				if(zitatZaehler > 0){
					$("#mainZitat2").append(zitat2[zitatZaehler]);
				}					
				zitatZaehler++;
    					
			}

	}); 
     	
     	

}
