d.mixin(this, params);
this._domNode = node;
// check if we have a valid rotator
var r = this.rotator;
if(r){
// remove all of the controller's child nodes just in case
while(node.firstChild){
node.removeChild(node.firstChild);
}
for(var i=0; i
var n = r.panes[i].node,
s = d.attr(n, "thumbsrc") || d.attr(n, "src"),
t = d.attr(n, "alt") || "";
if(/img/i.test(n.tagName)){
(function(j){
d.create("a", {
classname: _css + ' ' + _css + j + ' ' + (j == r.idx ? _selected : ""),
href: s,
onclick: function(e){
d.stopEvent(e);
if(r){
r.control.apply(r, ["go", j]);
}
},
title: t,
innerHTML: '
'
}, node);
})(i);
}
}
this._con = d.connect(r, "onUpdate", this, "_onUpdate");
}