// ******** Status Bar Javascript Magic by Likno 1.0 **********
function legend_start() {clearInterval(legend.sttm);legend_init();if (arguments.length>0) legend_init2(arguments[0]);legend.sttm=setInterval ("doEffect('legend')",10);}
function legend_stop() {clearInterval(legend.sttm);window.status="";}

legend_init();
function legend_init() {legend={stel:0,stft:"",stec:1,stcel:1,stce:-1,stcl:-1,stls:-1,stcs:0,sttg:0,stea:["INOCAR: Certificado con Norma ISO 9001-2000",3,10,1]};}
function legend_init2 (en) {legend.stea=[legend.stea[(en-1)*4],legend.stea[(en-1)*4+1],legend.stea[(en-1)*4+2],legend.stea[(en-1)*4+3]];legend.stec=1;legend.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 stEffect3(text,step) {if (step>text.length) return "";else {for (var i=0,r=""; i<text.length-step; i++) r+=" ";return r+text;}}
legend_start();
