//>>built
define("dojox/image/Gallery",["dijit","dojo","dojox","dojo/require!dojo/fx,dijit/_Widget,dijit/_Templated,dojox/image/ThumbnailPicker,dojox/image/SlideShow"],function(e,b,d){b.provide("dojox.image.Gallery");b.experimental("dojox.image.Gallery");b.require("dojo.fx");b.require("dijit._Widget");b.require("dijit._Templated");b.require("dojox.image.ThumbnailPicker");b.require("dojox.image.SlideShow");b.declare("dojox.image.Gallery",[e._Widget,e._Templated],{imageHeight:375,imageWidth:500,pageSize:d.image.SlideShow.prototype.pageSize,
autoLoad:!0,linkAttr:"link",imageThumbAttr:"imageUrlThumb",imageLargeAttr:"imageUrl",titleAttr:"title",slideshowInterval:3,templateString:b.cache("dojox.image","resources/Gallery.html",'\x3cdiv dojoAttachPoint\x3d"outerNode" class\x3d"imageGalleryWrapper"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"thumbPickerNode"\x3e\x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"slideShowNode"\x3e\x3c/div\x3e\n\x3c/div\x3e'),postCreate:function(){this.widgetid=this.id;this.inherited(arguments);this.thumbPicker=new d.image.ThumbnailPicker({linkAttr:this.linkAttr,
imageLargeAttr:this.imageLargeAttr,imageThumbAttr:this.imageThumbAttr,titleAttr:this.titleAttr,useLoadNotifier:!0,size:this.imageWidth},this.thumbPickerNode);this.slideShow=new d.image.SlideShow({imageHeight:this.imageHeight,imageWidth:this.imageWidth,autoLoad:this.autoLoad,linkAttr:this.linkAttr,imageLargeAttr:this.imageLargeAttr,titleAttr:this.titleAttr,slideshowInterval:this.slideshowInterval,pageSize:this.pageSize},this.slideShowNode);var a=this;b.subscribe(this.slideShow.getShowTopicName(),function(c){a.thumbPicker._showThumbs(c.index)});
b.subscribe(this.thumbPicker.getClickTopicName(),function(c){a.slideShow.showImage(c.index)});b.subscribe(this.thumbPicker.getShowTopicName(),function(c){a.slideShow.moveImageLoadingPointer(c.index)});b.subscribe(this.slideShow.getLoadTopicName(),function(c){a.thumbPicker.markImageLoaded(c)});this._centerChildren()},setDataStore:function(a,c,f){this.thumbPicker.setDataStore(a,c,f);this.slideShow.setDataStore(a,c,f)},reset:function(){this.slideShow.reset();this.thumbPicker.reset()},showNextImage:function(a){this.slideShow.showNextImage()},
toggleSlideshow:function(){b.deprecated("dojox.widget.Gallery.toggleSlideshow is deprecated.  Use toggleSlideShow instead.","","2.0");this.toggleSlideShow()},toggleSlideShow:function(){this.slideShow.toggleSlideShow()},showImage:function(a,c){this.slideShow.showImage(a,c)},resize:function(a){this.thumbPicker.resize(a)},_centerChildren:function(){var a=b.marginBox(this.thumbPicker.outerNode),c=b.marginBox(this.slideShow.outerNode);a=(a.w-c.w)/2;0<a?b.style(this.slideShow.outerNode,"marginLeft",a+"px"):
0>a&&b.style(this.thumbPicker.outerNode,"marginLeft",-1*a+"px")}})});