$(document).ready(function(){	
	// das Plugin jquery.pause-resume-animation.js
	eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[1-9a-hj-oq-v]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1.j.startAnimation=k(8,7,9,a){$(4).r(8,7,9,a);5 2={d:4.e(0),8:8,7:7,9:9,a:a,l:b m().n(),f:0,o:0};6(!1.3){1.extend({3:b s(2)})}t{g(5 i h 1.3){6(1.3[i].d==4.e(0)){1.3[i]=2}t{1.3.u(2)}}}};1.j.pauseAnimation=k(){6(1.3){g(5 i h 1.3){6(1.3[i].d==4.e(0)){$(4).stop();5 v=b m().n();5 2=1.3[i];2.f+=(v-2.l);2.o=2.7-2.f;6(2.f>2.7){5 c=b s();g(5 p h 1.3){6(1.3[p]!=2)c.u(1.3[p])};1.3=c.length>0?c:null;delete c;q 4};break}}};q 4};1.j.resumeAnimation=k(){6(1.3){g(5 i h 1.3){5 2=1.3[i];6(2.d==4.e(0)){4.r(2.8,2.o,2.9,2.a);2.l=b m().n();q 4}}}};',[],32,'|jQuery|data|pauseableAnimations|this|var|if|duration|params|easing|callback|new|newArray|target|get|timePlayed|for|in||fn|function|startTime|Date|getTime|timeRemaining||return|animate|Array|else|push|now'.split('|'),0,{}))

	// ------------------------	
		var $jt = $("#jobticker");
		
		var to = "-"+$jt.height()+"px";
		var len = $("#jobticker li").length;
		if (len > 4) {
			var slowDown = 0; // wenns langsamer laufen soll einfach mal 5000 reinschreiben :)
			var speed = 1000*len+slowDown;
			
			$("#jobticker li").clone(true).appendTo("#jobticker");
		
			function doLoop(top) {
				$jt.startAnimation({top: top}, speed, "linear", function () {
					$(this).css("top", "0");
					doLoop(top);
					});
				}
		
			// Anhalten und weiter bei mouseover / out
			$jt.hover(function () {
				$jt.pauseAnimation();
			}, function () {
				$jt.resumeAnimation();
			});
		
			setTimeout(function () {doLoop(to)}, 1000); // eine sekunde warten bevor der Ticker läuft.. dann kann man auch das 1. LI noch lesen
		
		}
		
	});

