- var pos = item_spc.indexOf(cls_spc);
- if (pos != -1) {
- cls_out = item_spc.substring(0, pos) + item_spc.substring(pos + cls_spc.length - 1);
- if (cls_out == " ") {
- item.className = "";
+ var pos = item_spc.indexOf(cls_spc);
+ if (pos != -1) {
+ cls_out = item_spc.substring(0, pos) + item_spc.substring(pos + cls_spc.length - 1);
+ if (cls_out == " ") {
+ item.className = "";
+ }
+ else {
+ item.className = cls_out.substring(1, cls_out.length - 1);