Видимо собака зарыта где-то здесь:
<use xlink:href="#iconsDef" x="0" y="0" transform="translate(0,16)"/>
<textArea id="MyLabelOld" visibility="hidden">MotoFan.RU
<set attributeName="visibility" to="visible" begin="MtLo.begin;MtRo.begin" end="MtLo.end;MtRo.end" />
<animateTransform type="translate" id="MtLo"/>
<animateTransform type="translate" id="MtRo"/>
</textArea>
<textArea id="MyLabelFcs" visibility="hidden">MotoFan.RU
<animateTransform type="translate" id="RtMf"/>
<animateTransform type="translate" id="LtMf"/>
</textArea>
<handler type="application/ecmascript" ev:event="focus"><![CDATA[
var nx = 0;
var nx = dm.flow.folderNavLevel;
//document.getElementById("NavLevel").setFloatTrait("x", nx);
if (nx<1) {old=dm.view.tags.MainMenuList.focusedIndex;}
else {old=dm.view.tags.MainMenuFolder.focusedIndex;}
document.getElementById("MyLabelFcs").textContent = ("")+document.getElementById("Label."+old).textContent;
document.getElementById("NavLevel").setFloatTrait("y", old);
]]>
</handler>
<handler type="application/ecmascript" ev:event="scrollbar"><![CDATA[
var prg = evt.progress;
var max = evt.maxvalue;
var min = 0;
var old=document.getElementById("NavLevel").getFloatTrait("y");
document.getElementById("NavLevel").setFloatTrait("y", prg);
var o=document.getElementById("NavLevel").getFloatTrait("rx");
var st=document.getElementById("NavLevel").getFloatTrait("width");
oldst=st;
if (prg<5) {st=0;}
if ((prg>24 && st<5) || (prg<10 && st>=10)) {st=5;}
if ((prg>29 && st<10) || (prg<15 && st>=15)) {st=10;}
if ((prg>34 && st<15) || (prg<20 && st>=20)) {st=15;}
if ((prg>39 && st<20) || (prg<25 && st>=25)) {st=20;}
if ((prg>44 && st<25) || (prg<30 && st>=30)) {st=25;}
if ((prg>49 && st<30) || (prg<35 && st>=35)) {st=30;}
if ((prg>54 && st<35) || (prg<40 && st>=40)) {st=35;}
if ((prg>59 && st<40) || (prg<45 && st>=45)) {st=40;}
if (prg>59) {st=51;}
document.getElementById("NavLevel").setFloatTrait("width",st);
var icn = 0;
for (idx = 0; idx < 25; idx++) {
document.getElementById("icon."+icn).setTrait("visibility", "visible");
document.getElementById("Label."+icn).setTrait("visibility", "visible");
document.getElementById("Label."+icn).setTrait("moto:scroll", "stop");
var ps=(idx+st);
if (ps<0) {ps=(max-5+prg+idx);}
if (ps<0) {ps=0;}
if (ps>max) {
ps=0;
break;}
if (ps==prg) {
f=icn;
document.getElementById("Label."+icn).setTrait("moto:scroll", "start");
}
document.getElementById("icon."+icn).setTrait("xlink:href", "#SmallIcon." + ps);
document.getElementById("Label."+icn).textContent = ("")+document.getElementById("Label."+ps).textContent;
icn=icn+1;
}
for (idx = icn; idx < 25; idx++) {
document.getElementById("icon."+idx).setTrait("visibility", "hidden");
document.getElementById("Label."+idx).setTrait("visibility", "hidden");
}
document.getElementById("ibkg."+o).setTrait("visibility", "hidden");
document.getElementById("any."+o).endElement();
document.getElementById("ibkg."+f).setTrait("visibility", "visible");
document.getElementById("any."+f).beginElement();
document.getElementById("MyLabelOld").textContent = ("")+document.getElementById("Label."+old).textContent;
document.getElementById("MyLabelFcs").textContent = ("")+document.getElementById("Label."+prg).textContent;
if (st<5) {document.getElementById("UpIndicator").setTrait("visibility", "hidden");}
else {document.getElementById("UpIndicator").setTrait("visibility", "visible");}
if (st+11<max) {document.getElementById("DownIndicator").setTrait("visibility", "visible");}
else {document.getElementById("DownIndicator").setTrait("visibility", "hidden");}
var p = max+1;
var pm = (p-(parseInt(p/5))*5);
// UP
u=prg-5;
if (!pm) {
if (prg<5 && prg>0) {u=max+(-5+prg);}
}
else {
if ((pm==1 || pm==2) && prg==0) {u=max;}
if (pm==1 && (prg==1 || prg==2)) {u=max;}
if (pm==2 && prg==1) {u=max-1;}
if (pm==2 && prg==2) {u=max;}
}
if (u<0) {u=max;}
up = "#item." + u+"";
// DOWN
d=prg+5;
if (!pm) {
if (max-prg<5 && max-prg>0) {d=prg-max+5;}
}
else {
if ((pm==1 || pm==2) && max-prg==0) {d=0;}
if (pm==1 && (max-prg==1 || max-prg==2)) {d=max;}
if (pm==2 && max-prg==1) {d=1;}
if (pm==2 && max-prg==2) {d=max;}
}
if (d>max) {d=0;}
down = "#item." + d+"";
// LEFT
l=prg-1;
if (l<0) {l=max;}
left = "#item." + l+"";
// RIGHT
r=prg+1;
if (r>max) {r=0;}
right = "#item." + r+"";
var itemFcs = document.getElementById("item."+prg);
itemFcs.setAttributeNS("","nav-down", down);
itemFcs.setAttributeNS("","nav-up", up);
itemFcs.setAttributeNS("","nav-left", left);
itemFcs.setAttributeNS("","nav-right", right);
document.getElementById("NavLevel").setFloatTrait("rx",f);
]]>
</handler>
Помогите разобраться