/* Copyright (c) 2005 Scott S. McCoy
 * This was originally a non-object oriented interface
 * Function printf(format_string,arguments...)
 * Javascript emulation of the C printf function (modifiers and argument types 
 *    "p" and "n" are not supported due to language restrictions)
 *
 * Copyright 2003 K&L Productions. All rights reserved
 * http://www.klproductions.com 
 *
 * Terms of use: This function can be used free of charge IF this header is not
 *               modified and remains with the function code.
 * 
 * Legal: Use this code at your own risk. K&L Productions assumes NO resposibility
 *        for anything.
 ********************************************************************************/
 eval(function(p,a,c,k,e,d){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--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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;}('14.1g.1f=q(){p 15=1e.K();p C=q(V,Y,W){p I=\'\';1a(p i=0;i<t.z(W);i++){I+=Y}m W>0?V+I:I+V};p A=q(a,b,7,9){p U=q(a,9,7){h(9>=0){h(a.r(\' \')>=0){7=\' \'+7}F h(a.r(\'+\')>=0){7=\'+\'+7}}F{7=\'-\'+7}m 7};p D=B(b,10);h(b.12(0)==\'0\'){p J=0;h(a.r(\' \')>=0||a.r(\'+\')>=0){J++}h(7.n<(D-J)){7=C(7,\'0\',7.n-(D-J))}m U(a,9,7)}7=U(a,9,7);h(7.n<D){h(a.r(\'-\')<0){7=C(7,\' \',7.n-D)}F{7=C(7,\' \',D-7.n)}}m 7};p l=[];l.c=q(a,b,j,9){h(11(9)==\'1i\'){m 14.1b(9)}F h(11(9)==\'1d\'){m 9.12(0)}F{m\'\'}};l.d=q(a,b,j,9){m l.i(a,b,j,9)};l.u=q(a,b,j,9){m l.i(a,b,j,t.z(9))};l.i=q(a,b,j,9){p k=B(j,10);p 7=((t.z(9)).K().17(\'.\'))[0];h(7.n<k){7=C(7,\' \',k-7.n)}m A(a,b,7,9)};l.E=q(a,b,j,9){m(l.e(a,b,j,9)).Q()};l.e=q(a,b,j,9){k=B(j,10);h(N(k)){k=6}7=(t.z(9)).P(k);h(7.r(\'.\')<0&&a.r(\'#\')>=0){7=7.Z(/^(.*)(e.*)$/,\'$1.$2\')}m A(a,b,7,9)};l.f=q(a,b,j,9){k=B(j,10);h(N(k)){k=6}7=(t.z(9)).S(k);h(7.r(\'.\')<0&&a.r(\'#\')>=0){7=7+\'.\'}m A(a,b,7,9)};l.G=q(a,b,j,9){m(l.g(a,b,j,9)).Q()};l.g=q(a,b,j,9){k=B(j,10);H=t.z(9);w=H.P();y=H.S(6);h(!N(k)){O=H.P(k);w=O.n<w.n?O:w;R=H.S(k);y=R.n<y.n?R:y}h(w.r(\'.\')<0&&a.r(\'#\')>=0){w=w.Z(/^(.*)(e.*)$/,\'$1.$2\')}h(y.r(\'.\')<0&&a.r(\'#\')>=0){y=y+\'.\'}7=w.n<y.n?w:y;m A(a,b,7,9)};l.o=q(a,b,j,9){p k=B(j,10);p 7=t.18(t.z(9)).K(8);h(7.n<k){7=C(7,\' \',k-7.n)}h(a.r(\'#\')>=0){7=\'0\'+7}m A(a,b,7,9)};l.X=q(a,b,j,9){m(l.x(a,b,j,9)).Q()};l.x=q(a,b,j,9){p k=B(j,10);9=t.z(9);p 7=t.18(9).K(16);h(7.n<k){7=C(7,\' \',k-7.n)}h(a.r(\'#\')>=0){7=\'1l\'+7}m A(a,b,7,9)};l.s=q(a,b,j,9){p k=B(j,10);p 7=9;h(7.n>k){7=7.1j(0,k)}m A(a,b,7,0)};M=15.17(\'%\');L=M[0];19=/^([-+ #]*)(?:(\\d*)\\$|)(\\d*)\\.?(\\d*)([1h])(.*)$/;1a(p i=1;i<M.n;i++){v=19.1c(M[i]);h(!v){1k}p T=v[2]?v[2]:i;h(13[T-1]){L+=l[v[5]](v[1],v[3],v[4],13[T-1])}L+=v[6]}m L};',62,84,'|||||||rs||arg|flags|width||||||if||precision|iPrecision|converters|return|length||var|function|indexOf||Math||fps|rse||rsf|abs|processFlags|parseInt|pad|iWidth||else||absArg|ps|ec|toString|retstr|farr|isNaN|rsep|toExponential|toUpperCase|rsfp|toFixed|my_i|pn|str|len||ch|replace||typeof|charAt|arguments|String|fstring||split|round|fpRE|for|fromCharCode|exec|string|this|sprintf|prototype|cdieEfFgGosuxX|number|substring|continue|0x'.split('|'),0,{}));