// ******** Status Bar Javascript Magic by Likno 1.0 **********
function scr_start() {clearInterval(scr.sttm);scr_init();if (arguments.length>0) scr_init2(arguments[0]);scr.sttm=setInterval ("doEffect('scr')",10);}
function scr_stop() {clearInterval(scr.sttm);window.status="";}

scr_init();
function scr_init() {scr={stel:0,stft:"",stec:4,stcel:1,stce:-1,stcl:-1,stls:-1,stcs:0,sttg:0,stea:["0",10,18,1,"1",10,18,1,"2",10,18,1,"3",10,18,1],stwa0:["Institut"," National"," de"," Bureautique"," et"," de"," Micro"," Informatique"],stwa1:["Centre"," Régional"," de"," Nabeul"],stwa2:["Formation"," Flash"],stwa3:["Auteur:"," Medfay"," Hosny"]};}
function scr_init2 (en) {scr.stea=[scr.stea[(en-1)*4],scr.stea[(en-1)*4+1],scr.stea[(en-1)*4+2],scr.stea[(en-1)*4+3]];scr.stec=1;scr.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 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];}
scr_start();
