var g_largeMapContollerObject = {};
(function () {
	var largeMapController = function(){};
	largeMapController.prototype = {
		init: function() {
			YAHOO.util.Event.addListener( 'pub-map-view-larger-link', 'click', this.showLargeMap, this );
		},
		dialog: {},
		showLargeMap: function() {
			if( !this.dialog ) {
				this.dialog =  
					    new YAHOO.widget.SimpleDialog("larger-map-dialog",  
						     { width: "55em", 
						       height: "35em",
						       modal: true,
						       fixedcenter: true, 
						       visible: false, 
						       draggable: false, 
						       close: true, 
						       effect:{ effect: YAHOO.widget.ContainerEffect.FADE, 
								duration: 0.25 },
						       constraintoviewport: true 
						     } ); 
				this.dialog.setBody( '<div id="large-map-view"></div>' );
				document.body.className = 'yui-skin-sam';
				this.dialog.render(document.body);
				YAHOO.util.Event.addListener( 'larger-map-dialog_mask', 'click', function( e, o ){ o.hide() }, this.dialog );
				g_loadCurrentMap( "large-map-view", true );
			}

			YAHOO.util.Dom.setStyle( ['larger-map-dialog_mask'], 'opacity', 0 );

			this.dialog.show( );
			var fadeIn = new YAHOO.util.Anim('larger-map-dialog_mask', { opacity: { from: 0, to: 0.75 } }, 0.25 );
			fadeIn.animate( );

		}
	};

	g_largeMapContollerObject = new largeMapController();
	YAHOO.util.Event.onDOMReady( g_largeMapContollerObject.init, {}, g_largeMapContollerObject );
})();

