// Bildübergänge Navi und Co.
$(document).ready(function() {
	$('.fadeThis').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(500, 1);
	  }, function () {
	    $span.stop().fadeTo(300, 0);
	  });
	});
	// get rid of the text
	$('.fadeThis > .hover').empty();
});

// Bildwechsel für Headergrafik
jQuery(function($) { 
  if($("#inner-head-right ul li").length > 1) { 
    $("#inner-head-right ul").innerfade({ 
    speed: 3000, 
    timeout: 6000, 
    containerheight: '253px' 
    });
  }
});

// Flyout Twitter
$(document).ready(function(){
    // Ermöglicht selbstständige Animation nach x Sekunden
      //setTimeout(function() {
      //  $("#twitter").animate( { paddingTop:"23px"}, 1000 );
      //}, 10000); 
    $("#open_twitter").mouseover(function(){ $("#twitter").stop().animate( { paddingTop:"23px"}, 300 ); });
    $("#open_twitter").mouseout(function(){ $("#twitter").stop().animate( { paddingTop:"0px"}, 800 ); });
});
