$(document).ready(function() {
	$('a[rel^=lightbox]').fancybox({'titleShow': false,	'transitionIn': 'elastic', 'transitionOut': 'elastic'});	
	$('#wimpel').draggable({containment: '#wimpel_wrapper',	scroll: false, axis: 'x', revert: true});
	$('#wimpel').mouseover(function() {
		$('#banner').append('<div id="tooltip_wimpel">Zieh mich nach links!</div>')
	}).mouseout(function() {  
      	$('#tooltip_wimpel').remove();
   	});
   	$('#banner.slide').easySlider({auto: true, controlsShow: true, numeric: true, vertical: false, pause: 3000, speed: 1200});
	$('.ce_accordion').accordion({autoHeight: false, collapsible: true});
	$('.startseite_formular').accordion({active: 1});
		
	$('#team_thumbs img').mouseover(function() {
		var text = $(this).attr('alt');
		var cl = $(this).attr('class');
		$('#team_thumbs').append('<div id="tooltip_team" class="' + cl + '">' + text + '</div>')
	}).mouseout(function() {  
      	$('#tooltip_team').remove();
   	});
   	
   	$('#team_thumbs').mouseover(function() {
		$('#tooltip_team_2').hide();
	}).mouseout(function() {
      	$('#tooltip_team_2').show();
   	});
   	
   	$('#team_thumbs img').click(function() {
   		var id = $(this).attr('class');
   		$('.team_info').slideUp('slow');
   		$('#' + id + '.team_info').slideDown('slow');
   	});
   	
   	$('#banner.slide').mouseenter(function(){
		animate("stop",true);
	});
	
	$('#banner.slide').mouseleave(function(){
		animate("next",true);
	});
});
