$(document).ready(function() {
	
		$('#wrapper-ticker').vTicker({
			speed: 500,
			pause: 4000,
			showItems: 1,
			animation: 'fade',
			height: 0
		});
		$("#twitter").getTwitter({
			userName: "FENNOBED",
			numTweets: 15,
			views: 4,
			loaderText: "Lade Betten Gezwitscher&hellip;",
			slideIn: true,
			slideDuration: 250,
			showHeading: true,
			headingText: "Betten Gezwitscher",
			showProfileLink: false,
			showTimestamp: true
		});
		
		
		$(window).load(function() {
			$('#show-content').nivoSlider({
				effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
				slices:50,
				animSpeed:1000, //Slide transition speed
				pauseTime:8000,
				startSlide:0, //Set starting Slide (0 index)
				directionNav:false, //Next & Prev
				directionNavHide:true, //Only show on hover
				controlNav:true, //1,2,3...
				controlNavThumbs:true, //Use thumbnails for Control Nav
			  	controlNavThumbsFromRel:false, //Use image rel for thumbs
				controlNavThumbsSearch: '.jpg', //Replace this with...
				controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
				keyboardNav:true, //Use left & right arrows
				pauseOnHover:true, //Stop animation while hovering
				manualAdvance:false, //Force manual transitions
				captionOpacity:1, //Universal caption opacity
				beforeChange: function(){},
				afterChange: function(){},
				slideshowEnd: function(){} //Triggers after all slides have been shown
			});
			$('#show-content').append('<span class="control-nav"></span>');
			$('#show-content').data('nivo:vars').stop = false;
			$('.control-nav').toggle(function(){
				$('#show-content').data('nivo:vars').stop = true;
				$('.control-nav').css({'background':'url(http://www.fennobed.de/img/play.png) no-repeat'});
			},function(){
				$('#show-content').data('nivo:vars').stop = false;
				$('.control-nav').css({'background':'url(http://www.fennobed.de/img/pause.png) no-repeat'});
			});
		});
		
		
		
	});
	
