(function($){$.fn.Question=function(c){var d={speed:900,pause:3500,showItems:1,mousePause:true};var c=$.extend(d,c);moveUp=function(a,b){first=a.children('a:first').clone(true);a.animate({top:'-='+b+'px'},c.speed,function(){$(this).children('a:first').remove();$(this).css('top','0px');$(".question .a").attr("href",a.children('a:first').attr("href"))});first.appendTo(a)};rest=function(a){a.children('a').each(function(){if($(this).text().length*12.6>$(this).outerWidth())$(this).css({paddingTop:"15px",height:71});else $(this).css({paddingTop:"",height:""})})};return this.each(function(){obj=$(this);maxHeight=0;obj.children('a').each(function(){if($(this).text().length*12.6>$(this).outerWidth())$(this).css({paddingTop:"15px",height:71});if($(this).outerHeight()>maxHeight){maxHeight=$(this).outerHeight()}});$(window).resize(function(){rest(obj)});$(".question .a").attr("href",obj.children('a:first').attr("href"));interval=setInterval('moveUp(obj, maxHeight)',c.pause);if(c.mousePause){$(".question").bind("mouseenter",function(){clearInterval(interval)}).bind("mouseleave",function(){interval=setInterval('moveUp(obj, maxHeight)',c.pause)})}})}})(jQuery);
