this.setX(-this.getTextWidth() - 2 ); this.subresource = r; super.init(); this.rsc.setResource(this.subresource); var anm = this.animate('height',20,200,true); if (!mo_del) this.mo_del = new LzDelegate ( this , "showText" ); this.mo_del.register ( anm , "onstop" ); this.hilite = true; this.animate('height',-20,200,true); this.hideText(); this.hilite = false; this.setBGColor(0xFFC600); this.setBGColor(0x00769E); container.showSection(this.section); if ( this.hilite == true ) { this.title.setVisible(true); this.title.setAttribute("opacity",.1); this.title.animate("opacity",1,200,false); } this.title.setVisible(false); if ( show == true ) { var x= picture.getAttribute("x") - 2; var y= picture.getAttribute("y") - 2; var w= picture.getAttribute("width") + 4; var h= picture.getAttribute("height") + 4; yellowRect.setAttribute("x",x); yellowRect.setAttribute("y",y); yellowRect.setAttribute("width",w); yellowRect.setAttribute("height",h); yellowRect.setVisible(true); } else { yellowRect.setVisible(false); } yellowRect.setAttribute("x",yellowRect.getAttribute("x") - 1); yellowRect.setAttribute("y",yellowRect.getAttribute("y") - 1); yellowRect.setAttribute( "width",yellowRect.getAttribute("width") + 2); yellowRect.setAttribute( "height",yellowRect.getAttribute("height") + 2); yellowRect.setVisible(true); if (this.currentSection == animations ){ animations.anim1.stop(); } yellowRect.setAttribute("x",yellowRect.getAttribute("x") + 1); yellowRect.setAttribute("y",yellowRect.getAttribute("y") + 1); yellowRect.setAttribute( "width",yellowRect.getAttribute("width") - 2); yellowRect.setAttribute( "height",yellowRect.getAttribute("height") - 2); yellowRect.setVisible(true); var s = this[section]; if ( s != this.currentSection ) { var anm = this.currentSection.animate("opacity",0,200,false); var d = new LzDelegate ( this , "fadeInNewSection" ); d.register ( anm , "onfinish" ); this.newSection = s; } this.currentSection.setVisible(false); this.newSection.setVisible(true); this.newSection.setAttribute("opacity",.1); this.newSection.animate("opacity",1,200,false); this.currentSection = this.newSection;