Initilizes the widget, sets up listeners and shows the first image
this.inherited(arguments); var img = document.createElement("img"); // FIXME: should API be to normalize an image to fit in the specified height/width? img.setAttribute("width", this.imageWidth); img.setAttribute("height", this.imageHeight); if(this.hasNav){ dojo.connect(this.outerNode, "onmouseover", function(evt){ try{_this._showNav();} catch(e){} //TODO: remove try/catch }); dojo.connect(this.outerNode, "onmouseout", function(evt){ try{_this._hideNav(evt);} catch(e){} //TODO: remove try/catch }); } this.outerNode.style.width = this.imageWidth + "px"; img.setAttribute("src", this._tempImgPath); var _this = this; this.largeNode.appendChild(img); this._tmpImage = this._currentImage = img; this._fitSize(true); this._loadImage(0, function(){ _this.showImage(0); }); this._calcNavDimensions();