/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246 
 */

jQuery.noConflict();
jQuery('#trailer').hide();
jQuery(document).ready(function($) {  

  jQuery("#trailer").innerfade({
        animationtype: 'fade',
				speed: 3000,
				timeout: 5000,
				type: 'sequence',
				containerheight: '299px',
        loop: true
  });
  
  jQuery.easing.custom = function (x, t, b, c, d) {     
    var s = 1.70158;      
    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;     
    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
  }
  
  /* News Scrollable Startseite */
  jQuery("div.scrollable").scrollable({         
    size: 9,         
    items: '#thumbs',           
    hoverClass: 'hover',   
       // Autoscrolling
    interval: 7000,    
    loop: true,
    speed: 1700,  
    easing: 'custom'    

  });
  
  $(function () {
			var tabContainers = $('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			
			$('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.tabs ul.tabNavigation a').removeClass('selected');
				$(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
		
$(function()
{
	$('.date-pick').datePicker({clickInput:true})
});

});