(function($){
window.onload=function(){ 
	$("#tS1").thumbnailScroller({ 
		scrollerType:"clickButtons", 
		scrollerOrientation:"horizontal", 
		scrollSpeed:2, 
		scrollEasing:"easeOutCirc", 
		scrollEasingAmount:400, 
		acceleration:4, 
		scrollSpeed:800, 
		noScrollCenterSpace:10, 
		autoScrolling:0, 
		autoScrollingSpeed:500, 
		autoScrollingEasing:"easeInOutQuad", 
		autoScrollingDelay:500 
	});
}



})(jQuery);


$(function(){

$("a[rel*=lightbox]").lightbox();

 $("#tabnav ul").idTabs(); 
 
 $('.mainmenu-right ul li a').click(function(){
 
 	var mItem = $(this).parent().index();
 	$("#tabnav ul li a").eq(mItem).trigger('click'); 
 
 	$('body').scrollTo('#footer',600,{easing:'linear'});

	return false;
 });
 
  $('#zitate').anythingSlider({
	  autoPlay : true,
  	startPanel : 1,
  	resizeContents    : true,
  	buildArrows     : false,      // If true, builds the forwards and backwards buttons
  	buildNavigation     : false,
  	startStopped        : false,
  	startText           : "Weiter",
  	stopText            : "Pausieren",
  	animationTime       : 2000,
  	playRtl             : false 
  	
  	
  });
  
  
    $('.eventlist .ce_text').each(function () {
        var tokenser = $(this).text().split(' ');
        if (tokenser.length > 6)
        {
            $(this).text(tokenser.slice(0, 15).join(' '));
            $(this).append('...');
        };
    })
    
    $('.st-news .teaser p').append('..');
    $('.st-veranstaltungen .teaser p').append('..');
    
  
  $('.ticket').hover(function(){
  	$(this).css('background','transparent url(tl_files/50er/bilder/template/ticket-hover.png) top left no-repeat');
  	$(this).find('span').css('color','#ad8821');		  
  }, function(){
  	$(this).css('background','transparent url(tl_files/50er/bilder/template/ticket.png) top left no-repeat');	
  	  	$(this).find('span').css('color','#97956e');		  
  });
  
  
 			var myImages = new Array();
			myImages[0] = "tl_files/50er/bilder/template/dancing-back.png";
			myImages[1] = "tl_files/50er/bilder/template/dancing-front.png";
  

  $('#parallax').imageparallax({images: myImages, allowVertical: false });

});



