// ******** Status Bar Javascript Magic by Likno 1.0 **********
function sta_start() {clearInterval(sta.sttm);sta_init();if (arguments.length>0) sta_init2(arguments[0]);sta.sttm=setInterval ("doEffect('sta')",10);}
function sta_stop() {clearInterval(sta.sttm);window.status="";}

sta_init();
function sta_init() {sta={stel:0,stft:"",stec:2,stcel:1,stce:-1,stcl:-1,stls:-1,stcs:0,sttg:0,stea:["Kompetenzplattform-lwb",0,1,1,"1",10,16,1],stwa1:["leben"," ::"," wohnen"," ::"," bauen"]};}
function sta_init2 (en) {sta.stea=[sta.stea[(en-1)*4],sta.stea[(en-1)*4+1],sta.stea[(en-1)*4+2],sta.stea[(en-1)*4+3]];sta.stec=1;sta.stel=0;}
function doEffect(es) {var s=eval(es);if (s.stce==s.stec) {if (s.stcel==s.stel) {clearInterval(s.sttm);window.status=s.stft;return;} else {if (s.stel>0) s.stcel++;s.stce=-1;s.stcl=s.stls;}}if (s.stcl==s.stls) {s.stce++;s.sttx=s.stea[s.stce*4];s.sttp=s.stea[s.stce*4+1];s.stsd=s.stea[s.stce*4+2];s.stls=s.stea[s.stce*4+3];s.stcl=0;s.stsp=1;s.sttg=0;}if (21-s.stsd-s.sttg==0) {var stres=eval("stEffect"+s.sttp+"(s.sttx,s.stsp++,es);");s.sttg=0;if (stres!="") window.status=stres;else {s.stcl++;s.stsp=1;}}s.sttg++;}
function stEffect0(text,step){if (step>text.length) return "";else return text.substring(0,step);}
function stEffect10(text,step,es){var wa=eval(es+".stwa"+text);for (var i=0,text=""; i<wa.length; i++) text+=wa[i];var n=text.length+20,i=0,w=0,s2=step,j=0;while (i+n<step) {i+=n;s2-=n;w++;n-=wa[j++].length;}if (w>=wa.length) return "";for (i=(n-s2),s=""; i>0; i--,s+=" ");for (i=0,s1=""; i<w; i++) s1+=wa[i];return s1+s+wa[w];}
sta_start();