var jsmarty_function_counter_counters={};function jsmarty_function_counter(x,R){var a,j,W,z,Z;var S=jsmarty_function_counter_counters;var d,o,C=x.name||"default";Z=S[C]||function(){S[C]={start:1,skip:1,count:1,direction:"up"};return S[C];}();W=Z.assign;z=Z.direction;o=(Z.assign!=0&&!Z.assign);for(a in x){j=x[a];switch(a){case "print":o=!!j;break;case "skip":Z.skip=j;break;case "assign":W=Z.assing=j;break;case "direction":z=Z.direction=j;break;case "start":Z.start=Z.count=Number(j);break;}}d=(o)?Z.count:"";if(W){R.assign(W,Z.count);}if(z=="down"){Z.count-=Number(Z.skip);}else{Z.count+=Number(Z.skip);}return d;}