


jQuery(function ($) {
  $.fn.simpleSpy = function (limit, interval) {
    limit = limit || 2;
    interval = 500;

    return this.each(function () {

        var $list = $(this),
            items = [], // uninitialised
            currentItem = limit,
            total = 0, // initialise later on
            height = $list.find('> li:first').height();

        // capture the cache
        $list.find('> li').each(function () {
            items.push('<li>' + $(this).html() + '</li>');
        });
        total = items.length;
        $list.wrap('<div class="spyWrapper" />').parent().css({ height : height * limit });
        $list.find('> li').filter(':gt(' + (limit - 1) + ')').remove();

        // 2. effect
        function spy() {
            if (items.length <= currentItem) return;

            var $insert = $(items[currentItem]).css({
                height : 0,
                opacity : 0,
                display : 'none'
            }).prependTo($list);
			
			$insert.animate({opacity : 0},4500, function () {
				
	            // fade the LAST item out
	            $list.find('> li:last').animate({ opacity : 0}, 750, function () {
	               	$insert.animate({ opacity : 1,height : height }, 750);
	                   $(this).remove();
	            });
				
				
	            currentItem++;
	            if (currentItem >= total) {
	                currentItem = 0;
	            }
	            setTimeout(spy, interval);
			
			});
        }
        spy();
    });
  };

}); 


eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(4).z(l(){$("A.B").C(l(){3 a=r.s.6(1,2);3 b=a.6(0,1);3 c=a.6(1,1);8($("#m"+b).t()==""){n(3 x=b+\'1\';x<=b+\'5\';x++){8(a>x-1){4.7("i"+x).9="/d-e/f/g/h/j/u.k"}p{4.7("i"+x).9="/d-e/f/g/h/j/o.k"}}}},l(){3 a=r.s.6(1,2);3 b=a.6(0,1);3 c=a.6(1,1);8($("#m"+b).t()==""){n(3 x=b+\'1\';x<=b+\'5\';x++){4.7("i"+x).9="/d-e/f/g/h/j/o.k"}}})});l D(a){3 b=a.6(0,1);3 c=a.6(1,1);n(3 x=b+\'1\';x<=b+\'5\';x++){8(a>x-1){4.7("i"+x).9="/d-e/f/g/h/j/u.k"}p{4.7("i"+x).9="/d-e/f/g/h/j/o.k"}}8(c==1){$("#q"+b).E(F)}p{$("#q"+b).v(w)}8(c==1&&4.7(\'m\'+b).y==1){c=0;$("#q"+b).v(w);n(3 x=b+\'1\';x<=b+\'5\';x++){4.7("i"+x).9="/d-e/f/g/h/j/o.k"}}4.7(\'m\'+b).y=c}',42,42,'|||var|document||substr|getElementById|if|src||||wp|content|themes|tagesgeld|images||buttons|png|function|isoquestionrating|for|stern|else|isoquestioncomment|this|id|val|stern_a|slideUp|250||value|ready|img|star|hover|setrate|slideDown|500'.split('|'),0,{}))

$.fn.tooltip=function(){$(this).hover(function(){if($('#tooltip').length==0)$('body').append('<div id="tooltip"></div>');$("#tooltip").html($(this).attr("title")).fadeIn(200);$(this).removeAttr("title");$(document).mousemove(function(e){$("#tooltip").css({'top':(e.pageY+8)+'px','left':(e.pageX+12)+'px'})})},function(){$("#tooltip").hide();$(this).attr("title",$("#tooltip").html())})};




$(document).ready(function(){

	$('#tabs').tabs();
	$('ul.spy').simpleSpy();
/*
	$("#content td.i9 a[title]").tooltip();
$("#content td.i9 a").live("click",function(){
	return false;
})	*/
	

	$(".addanswer a").bind("click", function(e){

		var $link = $(this);
		
		$link.html('');
		$link.addClass("load");

		
		$link.closest("div").load($link.attr('href'), function(){
	
			$link.removeClass("load");
			
		});
		
		return false;
	
	});



});



