if(!dojo._hasResource["pokemon.Dialog"]) { //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["pokemon.Dialog"] = true;
dojo.provide("pokemon.Dialog");

//
// pokemon.Dialog
// This dialog does NOT automatically vertically or horizontally center upon scrolling
// @author  Pokémon USA, Inc. (webmaster@go-pokemon.com)
//

dojo.require("dijit.Dialog");

dojo.declare(
	"pokemon.Dialog",
	[dijit.Dialog],
	{
		_position: function(){
			// summary: position modal dialog in center of screen

			if(dojo.hasClass(dojo.body(),"dojoMove")){ return; }
			var viewport = dijit.getViewport();
			var mb = dojo.marginBox(this.domNode);

			var style = this.domNode.style;

			if ( mb.w + 20 >= viewport.w ) {
				style.left = "10px";
			}
			else {
				style.left = Math.max( 10, Math.floor((viewport.l + (viewport.w - mb.w)/2)) ) + "px";
			}
			if ( mb.h + 20 >= viewport.h ) {
				style.top = "10px";
			}
			else {
				style.top = Math.max( 10, Math.floor((viewport.t + (viewport.h - mb.h)/2)) ) + "px";
			}
		}
	}
);

}