var jsmarty_function_cycle_cycle_vars={};function jsmarty_function_cycle(R,d){var C=jsmarty_function_cycle_cycle_vars;var o,a,k,z,x,S;var Z,j=R.values,W=R.assign;o=R.name||"default";k=(R.print==void (0))?true:R.print;a=(R.reset==void (0))?false:R.reset;z=(R.advance==void (0))?true:R.advance;if(!(x=C[o])){x=C[o]={index:0,values:""};}if(!j){if(!x.values){d.trigger_error("cycle: missing 'values' parameter");return "";}}else{if(!x.values&&x.values!=j){x.index=0;}x.values=j;}x.delimiter=(R.delimiter)?R.delimiter:",";if(x.values&&x.values instanceof Array){S=x.values;}else{S=x.values.split(x.delimiter);}if(!x.index||a){x.index=0;}if(W){k=false;d.assign(W,S[x.index]);}if(k){Z=S[x.index];}else{Z="";}if(z){if(x.index>=S.length-1){x.index=0;}else{x.index++;}}return Z;}