// JavaScript Document jQuery(document).ready(function(jQuery) { jQuery('.slideshow .slide').each(function() { // Variablendeklaration var tooltipHeight = jQuery('.tooltip', this).height(); //jQuery('.tooltip', this).css('margin-top', '-'+(tooltipHeight/2)+'px'); }); jQuery('.slideshow .effectContainer').fadeTransition({ pauseTime: 5000, transitionTime: 1000, pauseOnMouseOver: true }); jQuery('.slideshow .slide').mouseover(function() { jQuery('.tooltip', this).show(); }).mouseout(function(){ jQuery('.tooltip', this).hide(); }); });