this.childopen=[];
this.imgloaded=false;
this.loaded=false;
this.prepare(),
prepare: function(){
var imgElms=this.menu.getElements('img');
if(imgElms.length&&!this.imgloaded) {
var imgSrcs=[];
imgElms.each(function(image){
imgSrcs.push(image.src)
});
new Asset.images(imgSrcs,{onComplete:function(){
this.start();}.bind(this)
});
this.imgloaded=true;
this.start.delay(3000,this);
} else {
this.start();
}
},
start:function(){
if(this.loaded){
return;
}
}
Вот так нужно